NLA-lib Explorer

NLAlib.Ops.Examples.WorkedInstances.EarlyExit.exec_stop

Library · theorem

The evaluator on the counter 2: the loop stops at a false test.

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

Full source on GitHub

Import NLAlib.Ops.Examples.WorkedInstances.EarlyExit.