NLAlib.ShiftedQR.sweep_terminates
Library · theorem
The sweep terminates on any matrices: on a scalar machine with exact comparisons, from any working matrix at w and output at z of order n + 1, the n rounds of the Givens sweep write only the two matrices and the coefficient words and leave both matrices stored.
NLAlib.ShiftedQR.sweep_terminates {Op Tst : Type} [Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.CmpTst Tst]
{M : Ops.Machine ℝ} {I : Ops.Interp Op Tst ℝ} (hS : Ops.IsScalar M I) (hCmp : Ops.IsCmp id I)
{τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {n : ℕ} {w z cf : ℕ × ℕ}
{W₀ Z₀ : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} (hW : HoldsMatrix w W₀ m.store)
(hZ : HoldsMatrix z Z₀ m.store) (hc : cf.2 + 4 ≤ m.store.len cf.1)
(hwz :
Ops.Fp.Disj (Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))))
(Ops.Store.inBlock z.1 z.2 (2 * ((n + 1) * (n + 1)))))
(hwc :
Ops.Fp.Disj (Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))))
(Ops.Store.inBlock cf.1 cf.2 4))
(hzc :
Ops.Fp.Disj (Ops.Store.inBlock z.1 z.2 (2 * ((n + 1) * (n + 1))))
(Ops.Store.inBlock cf.1 cf.2 4))
(hl : m.Live [w, z, cf, w, z]) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.sweep (Ops.Env.frame [n + 1] [w, z, cf, w, z])
(Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))) ⊔
Ops.Store.inBlock z.1 z.2 (2 * ((n + 1) * (n + 1))) ⊔
Ops.Store.inBlock cf.1 cf.2 4)
(fun m' ↦ m'.pos = m.pos ∧ ∃ W Z, True ∧ HoldsMatrix w W m'.store ∧ HoldsMatrix z Z m'.store) mImport NLAlib.Eigensolvers.ShiftedQR.StableStepTermination.