NLA-lib Explorer

NLAlib.SmallEig.oneEigMove_writes

Library · theorem

The end of a round (NLAlib.SmallEig.oneEigMove) with the scratch of NLAlib.SmallEig.oneEig from L: on a scalar machine with index literals and exact comparisons, from the mark K[1] 0 or the best point stored, a pair at lam and a flag 0 or 1 at f apart from it, it writes only lam, Tau and f, and stores words in Tau and lam and a flag 0 or 1. Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.

NLAlib.SmallEig.oneEigMove_writes {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
  [Ops.Has Ops.CmpTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar M I)
  (hL : Ops.IsIndexLit M I) (hCmp : Ops.IsCmp id I) {L : ℕ} {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ}
  {lam f : ℕ × ℕ} (hlam : lam.1 < L) (hf : f.1 < L) (hlen : List.length μ.store = L + 7)
  (h0 : μ.store.len L = 1) (hroom : lam.2 + 2 ≤ μ.store.len lam.1) (hroomf : f.2 < μ.store.len f.1)
  (hlf : Ops.Fp.Disj (Ops.Store.inBlock lam.1 lam.2 2) (Ops.Store.inBlock f.1 f.2 1))
  (hw : Ops.HoldsWords μ.store [lam, (lam.1, lam.2 + 1)])
  (hK :
    μ.store.get (L + 6) 1 = some 0 ∨
      Ops.HoldsWords μ.store [(L + 6, 1), (L + 4, 2), (L + 4, 1), (L + 4, 0)])
  (hF : SmallEig.OneEigFlag M f μ.store) :
  Ops.Writes Ops.Mode.total I τ SmallEig.oneEigMove
    (Ops.Env.frame [] [(L + 4, 0), (L + 6, 0), lam, (L, 0), f])
    (Ops.Store.inBlock lam.1 lam.2 2 ⊔ Ops.Store.inBlock L 0 1 ⊔ Ops.Store.inBlock f.1 f.2 1)
    (fun μ' ↦
      Ops.HoldsWords μ'.store [(L, 0), lam, (lam.1, lam.2 + 1)] ∧ SmallEig.OneEigFlag M f μ'.store)
    μ

Full source on GitHub

Import NLAlib.Eigensolvers.SmallEig.OneEigParts.