NLA-lib Explorer

NLAlib.Ops.Mem.room_allocs

Library · theorem

Fresh buffers with the allocation chain's declared lengths have room for the whole scratch operand tuple. No per-buffer capacity proof is required by the caller.

NLAlib.Ops.Mem.room_allocs {K : Type} (μ : Ops.Mem K) (L : ℕ) (ns : List ℕ)
  (hlens : ∀ (i : ℕ) (hi : i < ns.length), μ.store.len (L + i) = ns[i]) :
  μ.Room (List.map (fun i ↦ (L + i, 0)) (List.range ns.length)) ns

Full source on GitHub

Import NLAlib.Ops.Logic.Allocation.