NLA-lib Explorer

NLAlib.Sign.initialScalars_writes

Library · theorem

The executed scalar block stores the computed threshold, its negative and literal one. No initial contents of the output region are needed. A fragment of NLAlib.Sign.signRoutine.

NLAlib.Sign.initialScalars_writes {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op] {M : Ops.Machine K}
  {I : Ops.Interp Op Tst K} (hS : Ops.IsScalar M I) {τ : Ops.Tape K} {eps den : K} {e d t : ℕ × ℕ}
  {m : Ops.Mem K} (he : m.store.get e.1 e.2 = some eps) (hd : m.store.get d.1 d.2 = some den)
  (ht : t.2 + 5 ≤ m.store.len t.1) :
  Ops.Writes Ops.Mode.total I τ Sign.initialScalars (Ops.Env.frame [] [e, d, t])
    (Ops.Store.inBlock t.1 t.2 5)
    (fun μ ↦
      μ.pos = m.pos ∧
        μ.store.get t.1 t.2 = some (M.div eps den) ∧
          μ.store.get t.1 (t.2 + 4) = some (M.neg (M.div eps den)) ∧
            μ.store.get t.1 (t.2 + 3) = some (M.lit 1))
    m

Full source on GitHub

Import NLAlib.Eigensolvers.Sign.InitialScalars.