NLA-lib Explorer

NLAlib.Ops.Mem.Room.subviews

Library · theorem

Capacity passes from parent blocks to any finite collection of contained subviews. Repeated parent indices are permitted: capacity does not require disjoint views.

NLAlib.Ops.Mem.Room.subviews {K : Type} {m : Ops.Mem K} {zs : List (ℕ × ℕ)} {ls : List ℕ}
  (h : m.Room zs ls) {q : ℕ} (parent : Fin q → Fin (min zs.length ls.length))
  (offset len : Fin q → ℕ) (hsub : ∀ (i : Fin q), offset i + len i ≤ ls.getD (↑(parent i)) 0) :
  m.Room
    (List.ofFn fun i ↦ ((zs.getD ↑(parent i) (0, 0)).1, (zs.getD ↑(parent i) (0, 0)).2 + offset i))
    (List.ofFn len)

Full source on GitHub

Import NLAlib.Ops.Logic.BlockSequence.