NLAlib.exists_isAccurate_binaryFloatMachine_and_hasLaw_eighSampleLaw
Library · theorem
The hypotheses of Theorem 4.2 are satisfiable in binary128: for a binary format fmt with precision p = 113 and E = 15 exponent bits (the layout of IEEE binary128) there is a nearest selector r (ties away from zero; any odd nearest selector, ties to even included, would do) such that the machine NLAlib.binaryFloatMachine of fmt and r, which rounds its arithmetic to the format's grid (overflow not modelled; negation is exact and the uniform sampler clamps to the scale, so off-grid inputs can give off-grid results) with correctly rounded black boxes, satisfies the contract NLAlib.FloatMachine.IsAccurate with the identity decoding, u = 2^{-p}, floor \tau = 2^{e_{\min} + p - 1}, range the largest finite number, \mu_{\mathrm{MM}}(d) = \mu_{\mathrm{QR}}(d) = 2d (monotone, nonnegative) and c_{\mathrm{N}} = \sqrt2, its samplers have measurable fibres and countable ranges, and for every size 1 \le n \le 1024, with \varepsilon = 2^{-15}, \theta = 1/2, R_0 = 1 (every Hermitian input of spectral norm at most 1; the stored type is ℝ, so the input and \beta are real parameters, not numbers of the format), m = \min(n, \ell + 1), \hat T = 2\sqrt2\sqrt n + \sqrt{\log(96nm/\theta)} and N_* = N(\theta/(12n\ell(\ell + 1)), \beta/(16n)) (NLAlib.newtonSchulzSteps), there are a depth \ell \ge NLAlib.bisectionDepth \varepsilon and an accuracy 0 < \beta \le \hat\beta = \frac{(\ell - 1)^2\varepsilon\sqrt\theta}{52\ell^2(2\ell - 1) \sqrt{nm\min(n, e)}\,\hat T} \,, \qquad \frac{\hat\beta}{1 + 2^{-6}} \le \beta \,, meeting the two precision conditions with p bits, the floor and range conditions, the exponent condition with E bits, and independent node samples \zeta_a, a a list of booleans, each of law NLAlib.eighSampleLaw n, on a probability space. These are the hypotheses of NLAlib.FloatMachine.IsAccurate.measureReal_not_isApproxDiagonalization_eigh_le_of_logb_le_of_hasLaw_eighSampleLaw and of NLAlib.FloatMachine.IsAccurate.measureReal_not_isApproxDiagonalization_eigh_le_of_exponentBits_le_of_hasLaw_eighSampleLaw, so neither is vacuous: the examples below apply both. The witnesses are \ell = 20, \beta = \hat\beta (about 81.2 and 75.2 of the 113 bits and 6.9 of the 15 exponent bits at n = 1024) and the infinite product of the sample laws. No printed source.
NLAlib.exists_isAccurate_binaryFloatMachine_and_hasLaw_eighSampleLaw (fmt : Float.Model.Format)
(hp : fmt.mantissaBits = 113) (hE : fmt.exponentBits = 15) :
∃ r,
(∀ (x : ℝ), Computation.AbsRelErr 0 (1 / 2) x ↑(r x)) ∧
(binaryFloatMachine fmt r).IsAccurate id (2⁻¹ ^ fmt.mantissaBits)
(2 ^ (fmt.minExponent + ↑fmt.mantissaBits - 1)) fmt.maxFinite (fun d ↦ 2 * ↑d)
(fun d ↦ 2 * ↑d) √2 ∧
(∀ (c z : ℝ), MeasurableSet ((binaryFloatMachine fmt r).unif c ⁻¹' {z})) ∧
(∀ (c : ℝ), (Set.range ((binaryFloatMachine fmt r).unif c)).Countable) ∧
(∀ (z : ℝ × ℝ), MeasurableSet ((binaryFloatMachine fmt r).normal ⁻¹' {z})) ∧
(Set.range (binaryFloatMachine fmt r).normal).Countable ∧
(Monotone fun d ↦ 2 * ↑d) ∧
0 < 2⁻¹ ^ fmt.mantissaBits ∧
Real.logb 2 (2⁻¹ ^ fmt.mantissaBits)⁻¹ = ↑fmt.mantissaBits ∧
2 ≤ fmt.exponentBits ∧
∀ (n : ℕ),
1 ≤ n →
n ≤ 1024 →
∃ ℓ β,
bisectionDepth (2⁻¹ ^ 15) ≤ ℓ ∧
0 < β ∧
β ≤
(↑ℓ - 1) ^ 2 * 2⁻¹ ^ 15 * √(1 / 2) /
(52 * ↑ℓ ^ 2 * (2 * ↑ℓ - 1) *
√(↑n * min (↑n) (↑ℓ + 1) * min (↑n) (rexp 1)) *
(2 * √2 * √↑n +
√(Real.log
(96 * ↑n * min (↑n) (↑ℓ + 1) / (1 / 2))))) ∧
(↑ℓ - 1) ^ 2 * 2⁻¹ ^ 15 * √(1 / 2) /
(52 * ↑ℓ ^ 2 * (2 * ↑ℓ - 1) *
√(↑n * min (↑n) (↑ℓ + 1) * min (↑n) (rexp 1)) *
(2 * √2 * √↑n +
√(Real.log
(96 * ↑n * min (↑n) (↑ℓ + 1) / (1 / 2))))) /
(1 + 2⁻¹ ^ 6) ≤
β ∧
Real.logb 2 (2⁻¹ ^ 15)⁻¹ + 3 / 2 * Real.logb 2 (1 / 2)⁻¹ +
Real.logb 2
(↑n * (4 * (2 * ↑n) + 10 + 10 * √↑n)) +
1 / 2 *
Real.logb 2
(↑n * min (↑n) (↑ℓ + 1) *
min (↑n) (rexp 1)) +
Real.logb 2
(2 * √2 * √↑n +
√(Real.log
(96 * ↑n * min (↑n) (↑ℓ + 1) /
(1 / 2)))) +
Real.logb 2 (↑ℓ * (↑ℓ + 1)) +
Real.logb 2 (↑ℓ ^ 2 * (2 * ↑ℓ - 1) / (↑ℓ - 1) ^ 2) +
13 ≤
↑fmt.mantissaBits ∧
Real.logb 2 β⁻¹ +
Real.logb 2
(2048 *
(↑n +
newtonSchulzSteps
(1 / 2 / (12 * ↑n * ↑ℓ * (↑ℓ + 1)))
(β / (16 * ↑n)) +
1) *
(4 * (2 * ↑n) + 10 + 10 * √↑n) +
16 *
(4 * (2 * ↑n) + 4 * √↑n * (√2 + 1) +
2 * (2 * ↑n) +
1)) ≤
↑fmt.mantissaBits ∧
2 ^ (fmt.minExponent + ↑fmt.mantissaBits - 1) *
(100 * ↑n * √↑n) ≤
min (√(1 / 2 / (8 * ↑n * min (↑n) (↑ℓ + 1))))
(2⁻¹ ^ 15 * min 1 1) ∧
16 *
(2 * 1 + ↑n + 2 * ↑ℓ + 2 * √2 * √↑n +
√(Real.log
(96 * ↑n * min (↑n) (↑ℓ + 1) /
(1 / 2)))) ≤
fmt.maxFinite ∧
Real.logb 2
(Real.logb 2
(1536 * (↑n + ↑ℓ + 2) ^ 3 /
(2⁻¹ ^ 15 * (1 / 2))) +
2) +
1 ≤
↑fmt.exponentBits ∧
∃ Ω' x μ ζ,
IsProbabilityMeasure μ ∧
iIndepFun ζ μ ∧
∀ (a : List Bool),
HasLaw (ζ a) (eighSampleLaw n) μImport NLAlib.Eigensolvers.SpectralBisection.Instance.