NLA-lib Explorer

NLAlib.Ops.Examples.WorkedInstances.EarlyExit.exec_cap

Library · theorem

The evaluator on the counter 7: the loop stops at its cap of five rounds.

NLAlib.Ops.Examples.WorkedInstances.EarlyExit.exec_cap :
  ∃ st,
    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) (fun x ↦ 0) (Ops.Examples.twoCells 7 0) =
        some st ∧
      st.mem = Ops.Examples.twoCells 2 5 ∧
        st.cost =
            List.foldl (fun x1 x2 ↦ x1 + x2) 0 Ops.Examples.WorkedInstances.EarlyExit.capTrace ∧
          st.peak = 0

Full source on GitHub

Import NLAlib.Ops.Examples.WorkedInstances.EarlyExit.