NLAlib.SmallEig.rhess_pwrites
Library · theorem
This statement changed in the recorded rename: 2026-11-schur.
Standard rounding
RHess makes the last-row weights large ([BanksGarzaVargasSrivastava2025, Proposition 5.3], corrected: the anti-concentration is applied to the eigenvectors of the input, fixed before the draw, its erratum P4): on a scalar machine with the standard model at the unit roundoff \boldsymbol{u}, \mathbf{M}.\mathrm{lit}(0) = 0 and exact comparisons, a measurable interpretation reading the tape only in its windows whose draws store the tape entry, and a stream sG with the standard real Gaussian law: let \mathbf{A} of order n + 1 have \mathbf{A}\mathbf{V} = \mathbf{V}\operatorname{diag}(\mathbf{d}) with \|\mathbf{V}\|_2\|\mathbf{V}^{-1}\|_2 \le B, eigenvalues separated by g > 0 and \|\mathbf{A}\|_2 \le \Sigma; let s > 0, 0 < \varphi' \le 1, R \ge 2(\sqrt{n + 1} + 1) + \sqrt{2\log(1/\varphi')}, and the precision conditions 100(n + 1)^2\boldsymbol{u} \le 1, 60(n + 1)\boldsymbol{u} \le s/(2R) and 200(n + 1)^2\boldsymbol{u}\Sigma \le \min(g/(32(n + 1)B), sg/(1024(n + 1)B^2R)). Then from \mathbf{A} at a, except with probability at most (n + 1)s^2 + \varphi', the run writes only the matrix and the log, closes n accepted slots of the log (planes below n), and stores an upper Hessenberg perturbed unitary similarity \widehat{\mathbf{H}} of \mathbf{A} by the exact unitary of the slots' entries (NLAlib.givensLog) with backward error 200(n + 1)^2\boldsymbol{u}\Sigma that has a diagonalization \mathbf{V}', \mathbf{d}' with \|\mathbf{V}'\|_2\|\mathbf{V}'^{-1}\|_2 \le 2B, eigenvalues separated by g/2, and every last-row weight at least s^2/(64R^2B^2). Shared by the trees of NLAlib.ShiftedQR.shqrSmallEigRoutine and NLAlib.SmallEig.smallEigRoutine, on their scratch.
NLAlib.SmallEig.rhess_pwrites {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
[Ops.Has Ops.SampleOp O] [Ops.Has Ops.CmpTst Q] {M : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} {u : ℝ}
(hS : Ops.IsScalar M I) (hM : Ops.StdModel u id M) (hzero : M.lit 0 = 0) (hC : Ops.IsCmp id I)
(hSmp : Ops.IsSample I) {law : ℕ → Measure ℝ} {sG : ℕ} (hG : law sG = gaussianReal 0 1) {n : ℕ}
{A V : Matrix (Fin (n + 1)) (Fin (n + 1)) ℂ} {d : Fin (n + 1) → ℂ} {B g S s R φ' : ℝ}
(hV : IsUnit V) (hAV : A * V = V * diagonal d) (hκ : pseudoConditionNumber V ≤ B) (hg : 0 < g)
(hgap : ∀ (i j : Fin (n + 1)), i ≠ j → g ≤ ‖d i - d j‖) (hAS : specNorm A ≤ S) (hs : 0 < s)
(hφ' : 0 < φ') (hφ'1 : φ' ≤ 1) (hR : 2 * (√(↑n + 1) + 1) + √(2 * Real.log φ'⁻¹) ≤ R)
(hnu : 100 * (↑n + 1) ^ 2 * u ≤ 1) (hus : 60 * (↑n + 1) * u ≤ s / (2 * R))
(huc :
200 * (↑n + 1) ^ 2 * u * S ≤
min (g / (32 * (↑n + 1) * B)) (s * g / (1024 * (↑n + 1) * B ^ 2 * R)))
{a : ℕ × ℕ} (hL : Ops.IsIndexLit M I) (h1 : 1 ≤ n) {nmax : ℕ} (hNat : Ops.IsExactNatLit id M nmax)
(hn : n ≤ nmax) {ns w : ℕ} {lg : ℕ × ℕ} {LL : List (Option (List GivensEntry))}
(hj : LL.length + n ≤ ns) (hw : n ≤ w) :
Ops.PWrites law I (SmallEig.rhess sG) (Ops.Env.frame [n + 1, w, LL.length] [a, a, lg])
(Ops.Store.inBlock a.1 a.2 (2 * ((n + 1) * (n + 1))) ⊔
Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * w)))
(fun μ ↦
HoldsMatrix a A μ.store ∧
μ.Live [a] ∧ HoldsSlottedLog lg ns w LL [] μ.store ∧ μ.Live [lg] ∧ lg.1 ≠ a.1)
(fun μ' ↦
∃ H V' d' Ls,
HoldsMatrix a H μ'.store ∧
Ls.length = n ∧
(∀ e ∈ slotEntries w Ls, e.1 + 1 < n + 1) ∧
HoldsSlottedLog lg ns w (LL ++ Ls) [] μ'.store ∧
IsUpperHessenberg H ∧
IsPerturbedUnitarySimilarBy (givensLog (n + 1) (slotEntries w Ls)) A H
(200 * (↑n + 1) ^ 2 * u * S) ∧
IsUnit V' ∧
H * V' = V' * diagonal d' ∧
pseudoConditionNumber V' ≤ 2 * B ∧
(∀ (i j : Fin (n + 1)), i ≠ j → g / 2 ≤ ‖d' i - d' j‖) ∧
∀ (i : Fin (n + 1)), s ^ 2 / (64 * R ^ 2 * B ^ 2) ≤ lastRowWeights V' i)
((↑n + 1) * s ^ 2 + φ')Import NLAlib.Eigensolvers.SmallEig.RandomHessenberg.