NLAlib.ShiftedQR.decoupleRound_writes
Library · theorem
Exact arithmetic
A visit retains an already decoupled block or executes the actual scalar step and rescan. Read-only parameter and constant views remain outside both write regions. A fragment of the exact decoupler NLAlib.ShiftedQR.scalarDecouple, which exact shifted QR (NLAlib.ShiftedQR.deflationRoutine) takes as its decoupler.
NLAlib.ShiftedQR.decoupleRound_writes {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
[Ops.Has Ops.CmpTst Q] {Mch : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar Mch I)
(hE : Ops.ExactModel id Mch) (hL : Ops.IsIndexLit Mch I) (hC : Ops.IsCmp id I) {θ : ℝ}
(Iter : Ops.Stmt O Q) (hIter : ShiftedQR.IterationContract θ Iter I) {tape : Ops.Tape ℝ}
{μ : Ops.Mem ℝ} {n m F M j : ℕ} {τ B α γ δ : ℝ} {w p c r : ℕ × ℕ}
{H₀ : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} (hyp : RapidDecouplingHyps H₀ τ B θ α γ δ m F)
(hkn : 2 ^ m ≤ n) (hτ : 0 ≤ τ) (hM : M = ⌈√2 / exceptionalSpacing (2 ^ m) B θ α ((1 - γ) ^ 2)⌉₊)
(hMpos : 0 < M) (hInv : ShiftedQR.DecoupleInv H₀ τ B θ α γ m j w r μ)
(hParams : μ.store.readBlock p.1 p.2 5 = some [τ, B, θ, α, γ])
(hConst : μ.store.readBlock c.1 c.2 2 = some [τ ^ 2, (1 - γ) ^ (2 * 2 ^ m)])
(hl : μ.Live [w, p, c, w, r]) (hw : w.2 + 2 * ((n + 1) * (n + 1)) ≤ μ.store.len w.1)
(hr : r.2 + 5 ≤ μ.store.len r.1)
(hWR :
Ops.Fp.Disj (Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1)))) (Ops.Store.inBlock r.1 r.2 5))
(hSep :
(Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))) ⊔ Ops.Store.inBlock r.1 r.2 5).Disj
(Ops.Store.inBlock p.1 p.2 5 ⊔ Ops.Store.inBlock c.1 c.2 2)) :
Ops.Writes Ops.Mode.total I tape (ShiftedQR.decoupleRound Iter)
(Ops.Env.frame [n + 1, m, 2 ^ m, M] [w, p, c, w, r])
(Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))) ⊔ Ops.Store.inBlock r.1 r.2 5)
(fun μ' ↦ μ'.pos = μ.pos ∧ ShiftedQR.DecoupleInv H₀ τ B θ α γ m (j + 1) w r μ') μImport NLAlib.Eigensolvers.ShiftedQR.DecoupleRound.