NLA-lib Explorer

NLAlib.Ops.Problem.initialBytes_of_lengths

Library · theorem

Declared buffer capacities determine resident payload, including uninitialized slots.

NLAlib.Ops.Problem.initialBytes_of_lengths {K : Type} {r b : ℕ} {P : Ops.Problem K r b}
  (d : Fin r → ℕ) (x : P.Input d) (lens : Fin b → ℕ)
  (h : ∀ (i : Fin b), List.length ((↑x).2 i) = lens i) :
  P.initialBytes d x = (List.ofFn fun i ↦ (P.formats i).bytes * lens i).sum

Full source on GitHub

Import NLAlib.Ops.Certification.