NLA-lib Explorer

NLAlib.Ops.Examples.Certification.repeat_wp

Library · theorem

The total program-logic proof of the source program.

NLAlib.Ops.Examples.Certification.repeat_wp {I : Ops.Interp Ops.ScalarOp Empty ℝ}
  (hI : Ops.IsScalar Ops.exactMachine I) (d : Fin 1 → ℕ)
  (input : Ops.Examples.Certification.repeatProblem.Input d) (τ : Ops.Tape ℝ) :
  Ops.Wp Ops.Mode.total I τ Ops.Examples.Certification.repeatProgram.body
    (Ops.Program.environment d)
    (fun m' ↦
      m'.store.get 1 0 =
        some
          (↑(d 0) *
            have this := (↑input).1;
            this))
    (Ops.Examples.Certification.repeatProblem.initial d input)

Full source on GitHub

Import NLAlib.Ops.Examples.Certification.