NLA-lib Explorer

NLAlib.Ops.Fp.Apart.disj_subviews

Library · theorem

Two independently indexed families of views are disjoint when matching parent regions have separated relative intervals. Views from different parents inherit their separation from the parent collection. The two families may have different sizes and repeat parent indices.

NLAlib.Ops.Fp.Apart.disj_subviews {zs : List (ℕ × ℕ)} {ls : List ℕ} (h : Ops.Fp.Apart zs ls)
  {p q : ℕ} (left : Fin p → Fin (min zs.length ls.length))
  (right : Fin q → Fin (min zs.length ls.length)) (lo llen : Fin p → ℕ) (ro rlen : Fin q → ℕ)
  (hl : ∀ (a : Fin p), lo a + llen a ≤ ls.getD (↑(left a)) 0)
  (hr : ∀ (b : Fin q), ro b + rlen b ≤ ls.getD (↑(right b)) 0)
  (hsep :
    ∀ (a : Fin p) (b : Fin q), left a = right b → lo a + llen a ≤ ro b ∨ ro b + rlen b ≤ lo a) :
  (Ops.Fp.blocks
        (List.ofFn fun a ↦ ((zs.getD ↑(left a) (0, 0)).1, (zs.getD ↑(left a) (0, 0)).2 + lo a))
        (List.ofFn llen)).Disj
    (Ops.Fp.blocks
      (List.ofFn fun b ↦ ((zs.getD ↑(right b) (0, 0)).1, (zs.getD ↑(right b) (0, 0)).2 + ro b))
      (List.ofFn rlen))

Full source on GitHub

Import NLAlib.Ops.Logic.BlockPartition.