NLAlib.Ops.Fp.Apart.subviews
Library · theorem
Refine an apart collection into subviews. Each view stays inside its parent block, and views of the same parent have disjoint relative intervals. Views of different parents inherit disjointness automatically. The resulting operand collection permits arbitrary reordering and several scalar or matrix views of one arena.
NLAlib.Ops.Fp.Apart.subviews {zs : List (ℕ × ℕ)} {ls : List ℕ} (h : Ops.Fp.Apart zs ls) {k : ℕ}
(parent : Fin k → Fin (min zs.length ls.length)) (offset len : Fin k → ℕ)
(hsub : ∀ (a : Fin k), offset a + len a ≤ ls.getD (↑(parent a)) 0)
(hsep :
∀ (a b : Fin k),
a ≠ b → parent a = parent b → offset a + len a ≤ offset b ∨ offset b + len b ≤ offset a) :
Ops.Fp.Apart
(List.ofFn fun a ↦ ((zs.getD ↑(parent a) (0, 0)).1, (zs.getD ↑(parent a) (0, 0)).2 + offset a))
(List.ofFn len)Import NLAlib.Ops.Logic.Footprint.