NLAlib.SmallEig.smallEigProg_core_pwrites
Library · theorem
This statement changed in the recorded rename: 2026-11-schur.
Standard rounding
The core call of NLAlib.SmallEig.smallEigProg ([BanksGarzaVargasSrivastava2025, Theorem 6.1], in Schur form): on the machine and streams of NLAlib.SmallEig.smallEigProg_pwrites_schur, from a memory set up for the core (NLAlib.SmallEig.SmallEigCoreReady) with a block \mathbf{H} in the class of the core and an accumulator \mathbf{X}, the pair (\mathbf{X}, \mathbf{H}) tracked from (\mathbf{I}, \mathbf{M}) with errors ((1 + 24\boldsymbol{u})^{(n+1)^2} - 1, 5\delta/8), the rounded worklist (NLAlib.ShiftedQR.solveRoundedWith_pwrites with the decoupler and the order-one leaf) writes only the block, the accumulator and the failure word and, except with probability at most \varphi/4, stores an upper triangular \widehat{\mathbf{T}}_\mathbf{b} and \widehat{\mathbf{U}}_\mathbf{b} tracked from (\mathbf{I}, \mathbf{M}) with errors ((1 + 24\boldsymbol{u})^R - 1, \delta). The replay errors are absorbed by NLAlib.SmallEig.smallEigReplay_le_omega. A step in the proof of NLAlib.SmallEig.SmallEigScratch.of_alloc, NLAlib.SmallEig.smallEigProg_tail_pwrites, NLAlib.SmallEig.smallEigProg_pwrites_schur.
NLAlib.SmallEig.smallEigProg_core_pwrites {O Q : Type} [Ops.Has Ops.ScalarOp O]
[Ops.Has Ops.IndexOp O] [Ops.Has Ops.SampleOp O] [Ops.Has ShiftedQR.DiskSampleOp O]
[Ops.Has Ops.CmpTst Q] [Ops.Has Ops.IdxTst Q] {Mch : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ}
(hS : Ops.IsScalar Mch I) (hM : Ops.StdModel u id Mch) (hL : Ops.IsIndexLit Mch I) {n : ℕ}
(hNat : Ops.IsExactNatLit id Mch (n + 1)) (hQ : Ops.IsToNat id I) (hC : Ops.IsCmp id I)
(hI : I.IsMeasurable) {win : O → List ℕ → ℕ} (hloc : ∀ (o : O), I.TapeLocal o (win o))
(hSmp : Ops.IsSample I) {law : ℕ → Measure ℝ} {sU sG : ℕ}
(hDisk : ShiftedQR.IsPolarDiskSampler sU I) (hU : law sU = ℙ.restrict (Set.Icc 0 1))
(hG : law sG = gaussianReal 0 1) {c₁ c₂ : PolyLogTail} (hb₁ : 0 < c₁.b) (hb₂ : 0 < c₂.b)
{nmax : ℕ} (hn : n + 1 ≤ nmax) {S δ φ : ℝ} (hδ : 0 < δ) (hδS : δ ≤ S) (hφ : 0 < φ) (hφ1 : φ ≤ 1)
(hu : u ≤ SmallEig.uSmallEig nmax S δ φ c₁ c₂) {M : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ}
{w p ub : ℕ × ℕ} {L : ℕ} {ρ : Ops.Env} {ds : List Ops.IExp} {args : List Ops.Operand}
(hd :
Ops.IExp.evalList ρ.idx ds =
some
[n + 1, 1, (SmallEig.smallEigParams nmax S δ φ c₁ c₂).length,
SmallEig.smallEigCap nmax S δ φ c₁ c₂, SmallEig.smallEigCap nmax S δ φ c₁ c₂,
SmallEig.smallEigCap nmax S δ φ c₁ c₂ + (n + 1), n + 1])
(ha : Ops.Operand.evalList ρ args = some [w, (L + 1, 0), p, ub, w, ub, (L, 0)]) :
Ops.PWrites law I (Ops.Stmt.frame ds args (SmallEig.smallEigCore sG)) ρ
(Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))) ⊔
Ops.Store.inBlock ub.1 ub.2 (2 * ((n + 1) * (n + 1))) ⊔
Ops.Store.inBlock L 0 1)
(fun μ ↦
∃ H X,
SmallEig.SmallEigCoreClass nmax S δ φ c₁ c₂ H ∧
IsTrackedUnitarySimilar ((1 + 24 * u) ^ ((n + 1) * (n + 1)) - 1) (5 * δ / 8) 1 M X H ∧
SmallEig.SmallEigCoreReady (SmallEig.smallEigParams nmax S δ φ c₁ c₂) w p ub L H X μ)
(fun μ' ↦
∃ Ub Tb,
Schur.HoldsSchurPair w ub Ub Tb μ'.store ∧
Tb.IsUpperTriangular ∧
IsTrackedUnitarySimilar
((1 + 24 * u) ^
SmallEig.smallEigLeafRotations nmax (SmallEig.smallEigCap nmax S δ φ c₁ c₂) -
1)
δ 1 M Ub Tb)
(φ / 4)Import NLAlib.Eigensolvers.SmallEig.ProgramSchur.