NLAlib.ShiftedQR.processLarge_writes
Library · theorem
Exact arithmetic
The actual large-range program decouples its raw block, binds the returned small-entry index, and commits the resulting two children. The global assumptions concern the input matrix and parameters; the decoupling proof is local to one fixed scalar implementation. A fragment: its tree runs only inside the tree of NLAlib.ShiftedQR.processRange. A fragment of the tree NLAlib.ShiftedQR.processRange.
NLAlib.ShiftedQR.processLarge_writes {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
[Ops.Has Ops.IdxTst Q] {Mch : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar Mch I)
(hE : Ops.ExactModel id Mch) (hL : Ops.IsIndexLit Mch I) (hQ : Ops.IsToNat id I) {θ : ℝ}
(D : Ops.Stmt O Q) (hD : ShiftedQR.DecouplingContract θ D I) {tape : Ops.Tape ℝ} {μ : Ops.Mem ℝ}
{n d lo j m F M : ℕ} {a p stack out w r : ℕ × ℕ} {H A : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
{roots : Fin (n + 1) → ℂ} {τ ε B α γ δ g : ℝ} {rest done : List (ℕ × ℕ)}
(hG : ShiftedQR.WorklistGeometry (n + 1) a p stack out w r μ)
(hInv : DeflationInv H ε ((lo, d + 1) :: rest) done A roots)
(hGlobal : ShiftedQRHyps H B θ α γ δ g m F) (hτ : τ = δ * frobNorm H)
(hM : M = ⌈√2 / exceptionalSpacing (2 ^ m) B θ α ((1 - γ) ^ 2)⌉₊) (hkn : 2 ^ m ≤ d)
(hA : HoldsMatrix a A μ.store) (hW : HoldsMatrix w (subBlock A (lo, d + 1)) μ.store)
(hParams : μ.store.readBlock p.1 p.2 5 = some [τ, B, θ, α, γ])
(hOut : ShiftedQR.FinishedHolds out done roots μ.store)
(hSt : ShiftedQR.StackHolds stack rest.reverse μ.store)
(hε : ε = ↑(((lo, d + 1) :: rest ++ done).length - 1) * τ)
(hj : 2 * done.length + ((lo, d + 1) :: rest).length = j + 1) :
Ops.Writes Ops.Mode.total I tape (ShiftedQR.processLarge D)
(Ops.Env.frame [n + 1, m, 2 ^ m, F, M, lo, d + 1] [a, p, stack, out, w, r])
(ShiftedQR.worklistFp (n + 1) a stack out w r)
(fun μ' ↦ μ'.pos = μ.pos ∧ ShiftedQR.WorklistInv H τ a stack out (j + 1) μ') μImport NLAlib.Eigensolvers.ShiftedQR.RangeLarge.