NLA-lib Explorer

NLAlib.Ops.Inputs.initialBytes_eq

Library · theorem

The resident payload of the problem: the cells of the slots, in their storage.

NLAlib.Ops.Inputs.initialBytes_eq {K : Type} {r b : ℕ} (D : Ops.Inputs K r b) {d : Fin r → ℕ}
  (X : D.problem.Input d) :
  D.problem.initialBytes d X = (List.ofFn fun i ↦ (D.formats i).bytes * (D.slot d i).len).sum

Full source on GitHub

Import NLAlib.Ops.RoutineProblem.