NLAlib.FloatMachine.IsAccurate.measureReal_not_isApproxDiagonalization_eigh_le_of_hasLaw_eighSampleLaw
Library · theorem
Headline of spectral-bisection-diagonalization
Hermitian diagonalization in linear precision (Theorem 4.2): let the machine meet NLAlib.FloatMachine.IsAccurate u \tau \Omega (constants \mu_{\mathrm{MM}}, \mu_{\mathrm{QR}}, c_{\mathrm{N}}), with \mu_{\mathrm{MM}}, \mu_{\mathrm{QR}} monotone and nonnegative, c_{\mathrm{N}} \ge 0, and the samplers with measurable fibres and countable ranges. Let the stored n \times n input \mathbf{A}, n \ge 1, have Hermitian decoding with \|\mathbf{A}\|_2 \le R_0, for stored R_0 > 0, \varepsilon, \beta (decoded values) with 0 < \varepsilon \le 2^{-15}, 0 < \theta \le 1, a depth counter \ell \ge NLAlib.bisectionDepth \varepsilon, m = \min(n, \ell + 1), \nu = 4\mu_{\mathrm{MM}}(n) + 10 + 10\sqrt n, and the precomputed accuracy 0 < \beta \le \hat\beta = \frac{(\ell - 1)^2\,\varepsilon\sqrt\theta}{52\,\ell^2(2\ell - 1) \sqrt{n m \min(n, e)}\,\hat T} \,, \qquad \hat T = 2\sqrt2\sqrt n + \sqrt{\log(96nm/\theta)} \,, N_* = N(\theta/(12n\ell(\ell + 1)), \beta/(16n)) (NLAlib.newtonSchulzSteps). If 146n\ell(\ell + 1)\nu u \le \theta\beta (the sign function), 2048(n + N_* + 1)\nu u \le \beta (the stopping test), 16(4\mu_{\mathrm{QR}}(n) + 4\sqrt n(c_{\mathrm N} + 1) + 2\mu_{\mathrm{MM}}(n) + 1)u \le \beta (deflation), the sign step limit is at least N_*, 0 \le \tau, 100n^{3/2}\tau \le \min(\sqrt{\theta/(8nm)}, \varepsilon\min(R_0, 1)), 16(2R_0 + n + 2\ell + \hat T) \le \Omega, and the node samples \zeta_a are independent, each of law NLAlib.eighSampleLaw n, then \mathbb{P}\bigl[\mathsf{eigh}(\mathbf{A}, \varepsilon, \theta) \text{ is not an approximate diagonalization with residual } 2\varepsilon R_0 \text{ and } \mathbf{U} \text{ within } \varepsilon/3 \text{ of unitary}\bigr] \le \theta \,, \mathsf{eigh} the decoded output of NLAlib.eigh. [Shah2024, Theorem 4.2], there with R_0 = \|\mathbf{A}\|_2, node-dependent accuracies, other constants (here the Event I charge of a node is proportional to its size and Event II uses the smallest-singular-value tail \min(r^2, e r)\mathbf{x}^2), and an operation count (not formalized); the bit count is NLAlib.FloatMachine.IsAccurate.measureReal_not_isApproxDiagonalization_eigh_le_of_logb_le_of_hasLaw_eighSampleLaw. Result: spectral-bisection-diagonalization
NLAlib.FloatMachine.IsAccurate.measureReal_not_isApproxDiagonalization_eigh_le_of_hasLaw_eighSampleLaw.{u_1,
u_2}
{F : Type u_1} {M : FloatMachine F ℝ ℂ} {dec : F → ℝ} {u τ Ω cN : ℝ} {μM μQ : ℕ → ℝ}
(hM : M.IsAccurate dec u τ Ω μM μQ cN) (hunifm : ∀ (c z : F), MeasurableSet (M.unif c ⁻¹' {z}))
(hunifc : ∀ (c : F), (Set.range (M.unif c)).Countable)
(hnormalm : ∀ (z : F × F), MeasurableSet (M.normal ⁻¹' {z}))
(hnormalc : (Set.range M.normal).Countable) (hμM : Monotone μM) (hμQ : Monotone μQ)
(hμM₀ : 0 ≤ μM 0) (hμQ₀ : 0 ≤ μQ 0) (hcN : 0 ≤ cN) {n : ℕ} (hn : 1 ≤ n)
{A : Matrix (Fin n) (Fin n) (F × F)} (hA : (decodeMatrix dec A).IsHermitian) {R₀ ε β : F} {θ : ℝ}
(hR₀ : specNorm (decodeMatrix dec A) ≤ dec R₀) (hR₀pos : 0 < dec R₀) (hε : 0 < dec ε)
(hε₁ : dec ε ≤ 2⁻¹ ^ 15) (hθ : 0 < θ) (hθ₁ : θ ≤ 1) {ℓ : ℕ} (hℓ : bisectionDepth (dec ε) ≤ ℓ)
(hβ : 0 < dec β)
(hβle :
dec β ≤
(↑ℓ - 1) ^ 2 * dec ε * √θ /
(52 * ↑ℓ ^ 2 * (2 * ↑ℓ - 1) * √(↑n * min (↑n) (↑ℓ + 1) * min (↑n) (rexp 1)) *
(2 * √2 * √↑n + √(Real.log (96 * ↑n * min (↑n) (↑ℓ + 1) / θ)))))
{Nst : ℝ} (hN : Nst = newtonSchulzSteps (θ / (12 * ↑n * ↑ℓ * (↑ℓ + 1))) (dec β / (16 * ↑n)))
(husign : 146 * ↑n * ↑ℓ * (↑ℓ + 1) * (4 * μM n + 10 + 10 * √↑n) * u ≤ θ * dec β)
(hustop : 2048 * (↑n + Nst + 1) * (4 * μM n + 10 + 10 * √↑n) * u ≤ dec β)
(hudefl : 16 * (4 * μQ n + 4 * √↑n * (cN + 1) + 2 * μM n + 1) * u ≤ dec β) {signFuel : ℕ}
(hfuel : Nst ≤ ↑signFuel) (hτ₀ : 0 ≤ τ)
(hτ : τ * (100 * ↑n * √↑n) ≤ min (√(θ / (8 * ↑n * min (↑n) (↑ℓ + 1)))) (dec ε * min (dec R₀) 1))
(hΩ :
16 * (2 * dec R₀ + ↑n + 2 * ↑ℓ + 2 * √2 * √↑n + √(Real.log (96 * ↑n * min (↑n) (↑ℓ + 1) / θ))) ≤
Ω)
{Ω' : Type u_2} {mΩ' : MeasurableSpace Ω'} {μ : Measure Ω'}
{ζ : List Bool → Ω' → EighSample ℝ ℂ n} (hind : iIndepFun ζ μ)
(hlaw : ∀ (a : List Bool), HasLaw (ζ a) (eighSampleLaw n) μ) :
μ.real
{ω |
¬IsApproxDiagonalization (decodeMatrix dec A)
(decodeMatrix dec (eigh M signFuel ℓ A R₀ ε β fun a ↦ ζ a ω).1)
(fun i ↦ dec ((eigh M signFuel ℓ A R₀ ε β fun a ↦ ζ a ω).2 i)) (2 * dec ε * dec R₀)
(dec ε / 3)} ≤
θImport NLAlib.Eigensolvers.SpectralBisection.Global.