NLAlib.ShiftedQR.trialAccept_writes
Library · theorem
This statement changed in the recorded rename: 2026-11-schur.
Standard rounding
The acceptance of a trial on a scalar machine with the standard model and exact natural literals up to 1: NLAlib.ShiftedQR.trialAccept copies the matrix at T to A, stores 0 in G and 1 in Fl, closes the pending slot of the log as accepted, and writes only these.
Shared by the tree of NLAlib.ShiftedQR.shqrSmallEigRoutine, on its scratch.
NLAlib.ShiftedQR.trialAccept_writes {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
{M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ} (hS : Ops.IsScalar M I)
(hM : Ops.StdModel u id M) (hNat : Ops.IsExactNatLit id M 1) {τ : Ops.Tape ℝ} {m : Ops.Mem ℝ}
{n : ℕ} {t a g f : ℕ × ℕ} {H' : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
(hT : HoldsMatrix t H' m.store) (hra : a.2 + 2 * ((n + 1) * (n + 1)) ≤ m.store.len a.1)
(hrg : g.2 < m.store.len g.1) (hrf : f.2 < m.store.len f.1)
(hta :
Ops.Fp.Disj (Ops.Store.inBlock t.1 t.2 (2 * ((n + 1) * (n + 1))))
(Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1)))))
(hga :
(Ops.Store.inBlock g.1 g.2 1 ⊔ Ops.Store.inBlock f.1 f.2 1).Disj
(Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1)))))
(hgf : Ops.Fp.Disj (Ops.Store.inBlock g.1 g.2 1) (Ops.Store.inBlock f.1 f.2 1))
(hL : Ops.IsIndexLit M I) {ns w : ℕ} {lg : ℕ × ℕ} {L : List (Option (List GivensEntry))}
{P : List GivensEntry} (hlog : HoldsSlottedLog lg ns w L P m.store) (hj : L.length < ns)
(hlgl : m.Live [lg]) (hlgb : ∀ b ∈ [t, a, g, f], b.1 ≠ lg.1) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.trialAccept
(Ops.Env.frame [n + 1, w, L.length] [t, a, g, f, lg])
(Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))) ⊔ Ops.Store.inBlock g.1 g.2 1 ⊔
Ops.Store.inBlock f.1 f.2 1 ⊔
Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * w)))
(fun m' ↦
HoldsMatrix a H' m'.store ∧
m'.store.get g.1 g.2 = some 0 ∧
m'.store.get f.1 f.2 = some 1 ∧ HoldsSlottedLog lg ns w (L ++ [some P]) [] m'.store)
mImport NLAlib.Eigensolvers.ShiftedQR.RoundedRegularizeTrial.