NLAlib.ShiftedQR.roundedDecouple_pwrites_of_loop
Library · theorem
This statement changed in the recorded rename: 2026-11-schur, 2026-11-smalleig.
Standard rounding
The decoupling loop from its rounds: the allocation of the scan registers and the two index reads of m and n_0 from the parameter words (NLAlib.Ops.PWrites.allocs, NLAlib.Ops.PWrites.bindIdx) carry a probabilistic specification of NLAlib.ShiftedQR.roundedDecoupleLoopWith at every fresh buffer to NLAlib.ShiftedQR.roundedDecoupleWith from the precondition of NLAlib.ShiftedQR.RandomDecouplingRoutineContract. A step in the proof of NLAlib.ShiftedQR.roundedDecoupleWith_randomDecouplingRoutineContract_at.
NLAlib.ShiftedQR.roundedDecouple_pwrites_of_loop {n : ℕ} {O Q : Type} [Ops.Has Ops.ScalarOp O]
[Ops.Has Ops.IndexOp O] [Ops.Has ShiftedQR.DiskSampleOp O] [Ops.Has Ops.CmpTst Q]
[Ops.Has Ops.IdxTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ} (hI : I.IsMeasurable)
{win : O → List ℕ → ℕ} (hloc : ∀ (o : O), I.TapeLocal o (win o)) (hS : Ops.IsScalar M I)
(hM : Ops.StdModel u id M) (hQ : Ops.IsToNat id I) {law : ℕ → Measure ℝ} {k q F T : ℕ}
{SE : Ops.Stmt O Q} (hqk : q ≤ k) {w p f lg : ℕ × ℕ} {ns ws : ℕ} {ps qs : List ℝ}
{tL R tv γ Bi α ε : ℝ} (hps : ps = ShiftedQR.roundedDecoupleParams tL R tv γ Bi α ε k q ++ qs)
{H : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {e ωD φ : ℝ} (hφ : 0 ≤ φ)
(hloop :
∀ (L : ℕ),
lg.1 < L →
(∀ b ∈ [w, p, f], b.1 ≠ lg.1) →
Ops.PWrites law I (ShiftedQR.roundedDecoupleLoopWith SE)
(Ops.Env.frame [n + 1, k, ps.length, F, T, q, (ShiftedQR.excNet ε).length, ws]
[w, p, (L, 0), w, f, lg])
(Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))) ⊔ Ops.Store.inBlock f.1 f.2 1 ⊔
Ops.Store.inBlock L 0 5 ⊔
Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * ws)))
(fun μ ↦
ShiftedQR.DecoupleLoopCtx n L w p f ps μ ∧
HoldsMatrix w H μ.store ∧ HoldsSlottedLog lg ns ws [] [] μ.store)
(fun μ' ↦
μ'.store.get f.1 f.2 = some 0 ∧
∃ Ls H',
Ls.length = ns ∧
(∀ x ∈ slotEntries ws Ls, x.1 + 1 < n + 1) ∧
HoldsSlottedLog lg ns ws Ls [] μ'.store ∧
IsPerturbedUnitarySimilarBy (givensLog (n + 1) (slotEntries ws Ls)) H H' e ∧
IsUpperHessenberg H' ∧
(∃ j, n ≤ ↑j + k ∧ ‖H' j.succ j.castSucc‖ ≤ ωD) ∧
HoldsMatrix w H' μ'.store)
φ) :
Ops.PWrites law I (ShiftedQR.roundedDecoupleWith SE)
(Ops.Env.frame [n + 1, k, ps.length, F, T, ns, ws] [w, p, w, f, lg])
(Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))) ⊔ Ops.Store.inBlock f.1 f.2 1 ⊔
Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * ws)))
(fun μ ↦
μ.Live [lg] ∧
lg.2 + ns * (1 + 5 * ws) ≤ μ.store.len lg.1 ∧
(∀ b ∈ [w, p, f], b.1 ≠ lg.1) ∧
HoldsMatrix w H μ.store ∧
μ.store.readBlock p.1 p.2 ps.length = some ps ∧
μ.Live [w, p, w, f] ∧
w.2 + 2 * ((n + 1) * (n + 1)) ≤ μ.store.len w.1 ∧
f.2 + 1 ≤ μ.store.len f.1 ∧
Ops.Fp.Disj (Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))))
(Ops.Store.inBlock f.1 f.2 1) ∧
Ops.Fp.Disj (Ops.Store.inBlock p.1 p.2 ps.length)
(Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))) ⊔
Ops.Store.inBlock f.1 f.2 1))
(fun μ' ↦
μ'.store.get f.1 f.2 = some 0 ∧
∃ Ls H',
Ls.length = ns ∧
(∀ x ∈ slotEntries ws Ls, x.1 + 1 < n + 1) ∧
HoldsSlottedLog lg ns ws Ls [] μ'.store ∧
IsPerturbedUnitarySimilarBy (givensLog (n + 1) (slotEntries ws Ls)) H H' e ∧
IsUpperHessenberg H' ∧
(∃ j, n ≤ ↑j + k ∧ ‖H' j.succ j.castSucc‖ ≤ ωD) ∧ HoldsMatrix w H' μ'.store)
φImport NLAlib.Eigensolvers.ShiftedQR.RoundedDecoupleContract.