NLAlib.reduceLastStep_writes_word
Library · theorem
This statement changed in the recorded rename: 2026-11-schur.
One step of the reduction (NLAlib.reduceLastStep) on any scalar machine with exact comparisons stores the machine step NLAlib.reduceLastStepWord in place, for c + 1 < N and r < N, appends its entry NLAlib.reduceLastStepEntry to the pending slot of the log, and writes only the matrix, its two scratch blocks (in buffers of their own) and the log (apart from the matrix). The plane is an exact natural (hNat up to n_{\max} \ge c). A fragment of the tree NLAlib.hessenbergReduceLast.
NLAlib.reduceLastStep_writes_word {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)
(hC : Ops.IsCmp id I) (hL : Ops.IsIndexLit M I) {nmax : ℕ} (hNat : Ops.IsExactNatLit id M nmax)
{τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {N r c : ℕ} (hc : c + 1 < N) (hr : r < N) (hcn : c ≤ nmax)
{a cf uv lg : ℕ × ℕ} {A : Matrix (Fin N) (Fin N) ℂ} (hA : HoldsMatrix a A m.store) {ns w : ℕ}
{L : List (Option (List GivensEntry))} {P : List GivensEntry}
(hlog : HoldsSlottedLog lg ns w L P m.store) (hj : L.length < ns) (hw : P.length < w)
(hcf : cf.2 + 4 ≤ m.store.len cf.1) (huv : uv.2 + 4 ≤ m.store.len uv.1) (hac : a.1 ≠ cf.1)
(hau : a.1 ≠ uv.1) (hlu : lg.1 ≠ uv.1) (hlc : lg.1 ≠ cf.1)
(hla :
Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 (2 * (N * N)))
(Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * w))))
(hl : m.Live [lg]) :
Ops.Writes Ops.Mode.total I τ reduceLastStep
(Ops.Env.frame [N, r, c, w, L.length, P.length] [a, a, cf, uv, lg])
(Ops.Store.inBlock a.1 a.2 (2 * (N * N)) ⊔ Ops.Store.inBlock cf.1 cf.2 4 ⊔
Ops.Store.inBlock uv.1 uv.2 4 ⊔
Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * w)))
(fun m' ↦
m'.pos = m.pos ∧
HoldsMatrix a (reduceLastStepWord M r c A) m'.store ∧
HoldsSlottedLog lg ns w L (P ++ [reduceLastStepEntry M r c A]) m'.store)
mImport NLAlib.Eigensolvers.HessenbergReduction.