NLA-lib Explorer

NLAlib.Ops.Examples.WorkedInstances.EarlyExit.peak_eq_zero

Library · theorem

Every successful run of the program uses no scratch.

NLAlib.Ops.Examples.WorkedInstances.EarlyExit.peak_eq_zero {d : Fin 0 → ℕ} {m : Ops.Mem ℕ}
  {st : Ops.St (Ops.Examples.COp ⊕ Ops.Bookkeeping) Ops.Examples.CTst ℕ}
  (h :
    Ops.exec Ops.Examples.WorkedInstances.EarlyExit.program Ops.Examples.ctlInterp
        Ops.Examples.WorkedInstances.EarlyExit.resources (fun x ↦ Ops.StorageFormat.cell)
        (fun x x_1 ↦ 0) d m =
      some st) :
  st.peak = 0

Full source on GitHub

Import NLAlib.Ops.Examples.WorkedInstances.EarlyExit.