NLAlib.ShiftedQR.shiftedStep_writes_of_sweep
Library · theorem
The frame of the scalar step on any machine: initialization stores the machine shift (NLAlib.ShiftedQR.machineShiftedPrefix) in a fresh working matrix and the raw matrix in the output, and allocates the coefficient arena. If every run of the sweep from such a state ends with the output holding a matrix with the property P, so does the step. This reduces the routine NLAlib.ShiftedQR.shiftedStepRoutine to its sweep, a fragment on the working matrix and the coefficients it allocates; it is shared by the exact judgment (NLAlib.ShiftedQR.shiftedStepRoutine_meets) and the rounded one (NLAlib.ShiftedQR.shiftedStepRoutine_meets_rounded). Its output is supplied uninitialized capacity; all temporary buffers are scoped.
NLAlib.ShiftedQR.shiftedStep_writes_of_sweep {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)
{τ : Ops.Tape ℝ} {m : Ops.Mem ℝ} {n : ℕ} {a s z : ℕ × ℕ}
{H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {shift : ℂ}
{P : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ → Prop} (hl : m.Live [a, s, z])
(hH : HoldsMatrix a H m.store) (hs : m.store.readBlock s.1 s.2 2 = some [shift.re, shift.im])
(hz : z.2 + 2 * ((n + 1) * (n + 1)) ≤ m.store.len z.1)
(haz :
Ops.Fp.Disj (Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))))
(Ops.Store.inBlock z.1 z.2 (2 * ((n + 1) * (n + 1)))))
(hsz :
Ops.Fp.Disj (Ops.Store.inBlock s.1 s.2 2) (Ops.Store.inBlock z.1 z.2 (2 * ((n + 1) * (n + 1)))))
(hsweep :
∀ (m₁ : Ops.Mem ℝ) (w cf : ℕ × ℕ),
HoldsMatrix w (ShiftedQR.machineShiftedPrefix M H shift (n + 1)) m₁.store →
HoldsMatrix z H m₁.store →
cf.2 + 4 ≤ m₁.store.len cf.1 →
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)))) →
Ops.Fp.Disj (Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))))
(Ops.Store.inBlock cf.1 cf.2 4) →
Ops.Fp.Disj (Ops.Store.inBlock z.1 z.2 (2 * ((n + 1) * (n + 1))))
(Ops.Store.inBlock cf.1 cf.2 4) →
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 ∧ ∃ H', P H' ∧ HoldsMatrix z H' m'.store) m₁) :
Ops.Writes Ops.Mode.total I τ ShiftedQR.shiftedStep (Ops.Env.frame [n + 1] [a, s, z])
(Ops.Store.inBlock z.1 z.2 (2 * ((n + 1) * (n + 1))))
(fun m' ↦ m'.pos = m.pos ∧ ∃ H', P H' ∧ HoldsMatrix z H' m'.store) mImport NLAlib.Eigensolvers.ShiftedQR.Step.