NLAlib.SmallEig.smallEigProg_pwrites_schur
Library · theorem
Standard rounding
The small-eigenvalue program in Schur form ([BanksGarzaVargasSrivastava2025, Theorem 1.1], with the Schur form): let the machine have the standard model at \boldsymbol{u} \le \boldsymbol{u}_{\mathrm{SmallEig}} (NLAlib.SmallEig.uSmallEig at n_{\max}), index literals, exact natural literals up to n + 1, exact toNat and comparisons, a measurable interpretation reading the tape only in its windows, draws that store the tape entry, a stream s_U uniform on [0, 1] with an exact polar disk sampler on it, and a stream s_G with the standard real Gaussian law; let the eigenvalue gap and the eigenvector condition of a complex Ginibre perturbation have the tails c_1, c_2 with \mathbf{b}_1, \mathbf{b}_2 > 0; let n + 1 \le n_{\max}, \mathbf{M} of order n + 1 with \|\mathbf{M}\|_2 \le \Sigma, 0 < \delta \le \Sigma and 0 < \varphi \le 1. Then from a memory holding \mathbf{M} and the words (NLAlib.SmallEig.SmallEigInput), except with probability at most \varphi, the run writes only the block and the accumulator and stores an upper triangular \widehat{\mathbf{T}}_\mathbf{b} and \widehat{\mathbf{U}}_\mathbf{b} with \|\widehat{\mathbf{U}}_\mathbf{b} - \mathbf{V}\|_2 \le (1 + 24\boldsymbol{u})^{R} - 1 and \widehat{\mathbf{T}}_\mathbf{b} = \mathbf{V}^{\mathsf{H}}(\mathbf{M} + \mathbf{E})\mathbf{V} for an exact unitary \mathbf{V} and some \|\mathbf{E}\|_2 \le \delta, R = NLAlib.SmallEig.smallEigLeafRotations at n_{\max} and the cap. Shared by the trees of NLAlib.Schur.denseSchurWith, NLAlib.Schur.denseSchur, NLAlib.ShiftedQR.roundedShQRSmallEig and 2 more.
NLAlib.SmallEig.smallEigProg_pwrites_schur {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 : ℝ}
{n : ℕ} (hS : Ops.IsScalar Mch I) (hM : Ops.StdModel u id Mch) (hL : Ops.IsIndexLit Mch I)
(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} (hA : c₁.BoundsGinibreGap)
(hB : c₂.BoundsGinibreCondition) (hb₁ : 0 < c₁.b) (hb₂ : 0 < c₂.b) {nmax : ℕ} (hn : n + 1 ≤ nmax)
{M : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {S δ φ : ℝ} (hMS : specNorm M ≤ S) (hδ : 0 < δ)
(hδS : δ ≤ S) (hφ : 0 < φ) (hφ1 : φ ≤ 1) (hu : u ≤ SmallEig.uSmallEig nmax S δ φ c₁ c₂)
(w q o : ℕ × ℕ) :
Ops.PWrites law I (SmallEig.smallEigProg sG)
(Ops.Env.frame (SmallEig.smallEigDims n nmax S δ φ c₁ c₂) [w, q, w, o])
(Ops.Store.inBlock w.1 w.2 (2 * ((n + 1) * (n + 1))) ⊔
Ops.Store.inBlock o.1 o.2 (2 * ((n + 1) * (n + 1))))
(SmallEig.SmallEigInput nmax S δ φ c₁ c₂ w q o M)
(fun μ' ↦
∃ Ub Tb,
Schur.HoldsSchurPair w o Ub Tb μ'.store ∧
Tb.IsUpperTriangular ∧
IsTrackedUnitarySimilar
((1 + 24 * u) ^
SmallEig.smallEigLeafRotations nmax (SmallEig.smallEigCap nmax S δ φ c₁ c₂) -
1)
δ 1 M Ub Tb)
φImport NLAlib.Eigensolvers.SmallEig.ProgramSchur.