NLA-lib Explorer

NLAlib.Ops.Fp.Apart.disj_view_collections

Library · theorem

Two collections of views are disjoint when different parent regions are apart and the two views within each matching parent are disjoint. The same index supplies containment and local separation; callers do not need to enumerate every cross-pair of views.

NLAlib.Ops.Fp.Apart.disj_view_collections {m : ℕ} {parent x y : Fin m → ℕ × ℕ}
  {length lx ly : Fin m → ℕ} (h : Ops.Fp.Apart (List.ofFn parent) (List.ofFn length))
  (hx :
    ∀ (i : Fin m),
      Ops.Store.inBlock (x i).1 (x i).2 (lx i) ≤
        Ops.Store.inBlock (parent i).1 (parent i).2 (length i))
  (hy :
    ∀ (i : Fin m),
      Ops.Store.inBlock (y i).1 (y i).2 (ly i) ≤
        Ops.Store.inBlock (parent i).1 (parent i).2 (length i))
  (hxy :
    ∀ (i : Fin m),
      Ops.Fp.Disj (Ops.Store.inBlock (x i).1 (x i).2 (lx i))
        (Ops.Store.inBlock (y i).1 (y i).2 (ly i))) :
  (Ops.Fp.blocks (List.ofFn x) (List.ofFn lx)).Disj (Ops.Fp.blocks (List.ofFn y) (List.ofFn ly))

Full source on GitHub

Import NLAlib.Ops.Logic.BlockPartition.