Theorem (FloatMachine.IsAccurate.measureReal_not_isApproxDiagonalization_eigh_bisectionDepth_le_of_logb_le_of_hasLaw_eighSampleLaw). Hermitian diagonalization in linear precision, at fixed parameters (Theorem 4.2 with every parameter chosen). Let the machine meet NLAlib.FloatMachine.IsAccurate with unit roundoff u, floor \tau \ge 0 and range \Omega at the constants of correctly rounded black boxes, \mu_{\mathrm{MM}}(d) = \mu_{\mathrm{QR}}(d) = 2d and c_{\mathrm{N}} = \sqrt2 (those of NLAlib.binaryFloatMachine), with samplers of 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 a stored R_0 > 0, let 0 < \varepsilon \le 2^{-15}, 0 < \theta \le 1 and \Lambda = \log_2\frac1\varepsilon + \log_2\frac1\theta + \log_2 n \,. Run NLAlib.eigh with the depth counter \ell = \lceil\log_2(1/\varepsilon)\rceil + 5 (NLAlib.bisectionDepth), a sign step limit of at least 4\Lambda and a stored accuracy \frac{\varepsilon\sqrt\theta}{2048\,(n\Lambda)^{3/2}} \le \beta \le \frac{\varepsilon\sqrt\theta}{1024\,(n\Lambda)^{3/2}} (the upper end rounded down to a power of two, say), on node samples that are independent, each with law NLAlib.eighSampleLaw n. If the precision is \log_2\frac1u \ge \log_2\frac1\varepsilon + \frac32\log_2\frac1\theta + \frac72\log_2 n + 4\log_2\Lambda + 24 \,, the floor is small, 300n^3\tau \le \varepsilon\theta\min(R_0, 1), and the range large, 64(R_0 + n + \Lambda) \le \Omega, then \mathbb{P}\bigl[\mathsf{eigh}(\mathbf{A}, \varepsilon) \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. At these constants the precision is 54.6, 67.4, 92.4 and 123.1 bits at (n, \varepsilon, \theta) = (1, 2^{-15}, 1), (10, 2^{-15}, 1), (1000, 2^{-15}, 1), (1000, 2^{-40}, 1/2). It is at least 54.6 bits, the value at (1, 2^{-15}, 1), so binary64 (p = 53) never meets it, while the general bit count NLAlib.FloatMachine.IsAccurate.measureReal_not_isApproxDiagonalization_eigh_le_of_logb_le_of_hasLaw_eighSampleLaw asks for 49.3 there at the same constants; binary128 (p = 113) meets it at 1 \le n \le 1024, \varepsilon = 2^{-15}, \theta = 1/2, R_0 = 1 with at most 94.3 bits (the third example in NLAlib/Eigensolvers/SpectralBisection/Instance.lean). The hypotheses are satisfiable for every n, \varepsilon, \theta, R_0: the last example there meets them at every n \ge 1, 0 < \varepsilon \le 2^{-15}, 0 < \theta \le 1, R_0 > 0 in a binary format chosen for the parameters. [Shah2024, Theorem 4.2], there \log_2(1/\varepsilon) + \log_2\max(n^{1.5}\mu_{\mathrm{QR}}, n^2c_{\mathrm{N}}, n^{4.5}\mu_{\mathrm{MM}}) + 2\log_2\log_2(1/\varepsilon) + 1.5\log_2(1/\theta) + \log_2\log_2(n\log_2(1/\varepsilon)/\theta) + 23 bits for R_0 = \|\mathbf{A}\|_2, node-dependent accuracies and unspecified floor and range conditions; at the same constants, \mu_{\mathrm{MM}}(n) = \mu_{\mathrm{QR}}(n) = 2n and c_{\mathrm{N}} = \sqrt2, that is 48.8, 67.9, 105.4 and 135.0 bits at the four points.
Headline
Lean statement and details
NLAlib.FloatMachine.IsAccurate.measureReal_not_isApproxDiagonalization_eigh_bisectionDepth_le_of_logb_le_of_hasLaw_eighSampleLaw.{u_1,
u_2}
{F : Type u_1} {M : FloatMachine F ℝ ℂ} {dec : F → ℝ} {u τ Ω : ℝ}
(hM : M.IsAccurate dec u τ Ω (fun d ↦ 2 * ↑d) (fun d ↦ 2 * ↑d) √2)
(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) {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Λ : Λ = Real.logb 2 (dec ε)⁻¹ + Real.logb 2 θ⁻¹ + Real.logb 2 ↑n)
(hβ : dec ε * √θ / (2048 * (↑n * Λ) * √(↑n * Λ)) ≤ dec β)
(hβ' : dec β ≤ dec ε * √θ / (1024 * (↑n * Λ) * √(↑n * Λ)))
(hbits :
Real.logb 2 (dec ε)⁻¹ + 3 / 2 * Real.logb 2 θ⁻¹ + 7 / 2 * Real.logb 2 ↑n + 4 * Real.logb 2 Λ +
24 ≤
Real.logb 2 u⁻¹)
{signFuel : ℕ} (hfuel : 4 * Λ ≤ ↑signFuel) (hτ₀ : 0 ≤ τ)
(hτ : 300 * ↑n ^ 3 * τ ≤ dec ε * θ * min (dec R₀) 1) (hΩ : 64 * (dec R₀ + ↑n + Λ) ≤ Ω)
{Ω' : 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 (bisectionDepth (dec ε)) A R₀ ε β fun a ↦ ζ a ω).1)
(fun i ↦ dec ((eigh M signFuel (bisectionDepth (dec ε)) A R₀ ε β fun a ↦ ζ a ω).2 i))
(2 * dec ε * dec R₀) (dec ε / 3)} ≤
θ