NLA-lib Explorer

NLAlib.Ops.Examples.runsL_scale_link

Library · theorem

The liberal corollary, through the induced interpretation: if the linked program (reciprocals and multiplications) succeeds, the conclusion holds with ε = 2 u + u ^ 2. One application of link_liberal; no certificate and no proof about the loop. Its success companion is runs_scale_link.

NLAlib.Ops.Examples.runsL_scale_link {K : Type} [Inhabited K] {recipF : K → Option K}
  {mulF : K → K → K} {I : Ops.Interp Ops.Examples.ROp Empty K}
  (hI : Ops.Examples.IsRecipMul Ops.Mode.liberal recipF mulF I) {u : ℝ} {dec : K → ℝ}
  (hM : Ops.Examples.RecipModel u dec recipF mulF) (hu : 0 ≤ u) {τ : Ops.Tape K} {n : ℕ}
  {v s : ℕ × ℕ} {m : Ops.Mem K} (hvs : v.1 ≠ s.1) :
  Ops.ConditionalRunsL I τ (Ops.Stmt.link Ops.Examples.divTable Ops.Examples.scale)
    { idx := [n, v.2, s.2], buf := [v.1, s.1] } m
    (Ops.Examples.ScalePost dec (2 * u + u ^ 2) n v s m)

Full source on GitHub

Import NLAlib.Ops.Examples.Liberal.