NLA-lib Explorer

NLAlib.exists_isAccurate_binaryFloatMachine_and_hasLaw_eighSampleLaw_of_le

Library · theorem

The hypotheses of Theorem 4.2 are satisfiable at every parameter: for every size n \ge 1, tolerance 0 < \varepsilon \le 2^{-15}, failure probability \theta > 0 and bound R_0 > 0 there are a binary format fmt, a nearest selector r (ties away from zero), the depth \ell = NLAlib.bisectionDepth \varepsilon and the accuracy \beta = \hat\beta at its bound such that the machine NLAlib.binaryFloatMachine of fmt and r satisfies the contract NLAlib.FloatMachine.IsAccurate at the format's constants (u = 2^{-p}, floor \tau = 2^{e_{\min} + p - 1}, range the largest finite number, \mu_{\mathrm{MM}}(d) = \mu_{\mathrm{QR}}(d) = 2d, c_{\mathrm N} = \sqrt2) with samplers of measurable fibres and countable ranges, and, with m = \min(n, \ell + 1), \hat T = 2\sqrt2\sqrt n + \sqrt{\log(96nm/\theta)}, \hat\beta = (\ell - 1)^2\varepsilon\sqrt\theta/(52\ell^2(2\ell - 1)\sqrt{nm\min(n, e)}\,\hat T) and N_* = N(\theta/(12n\ell(\ell + 1)), \beta/(16n)) (NLAlib.newtonSchulzSteps), the accuracy window \hat\beta/(1 + 2^{-6}) \le \beta \le \hat\beta, the two precision conditions with p bits, the floor condition 100n^{3/2}\tau \le \min(\sqrt{\theta/(8nm)}, \varepsilon\min(R_0, 1)), the range condition 16(2R_0 + n + 2\ell + \hat T) \le \Omega, the exponent condition with E \ge 2 bits, and independent node samples, 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 (any R_0 > 0) and of NLAlib.FloatMachine.IsAccurate.measureReal_not_isApproxDiagonalization_eigh_le_of_exponentBits_le_of_hasLaw_eighSampleLaw (there with 1/2 \le R_0 \le 1) apart from \theta \le 1, which both theorems also assume; so for 0 < \theta \le 1 neither becomes vacuous as the parameters change. The construction itself needs only \theta > 0. Each condition on the format is an upper bound on u or \tau or a lower bound on p, E or \Omega, and in a binary format \tau and \Omega depend on E alone (up to a factor 2 in \Omega), so the format takes p = \lceil\max(\cdot)\rceil + 2 and E large enough for the exponent, floor and range conditions together. The input and \beta are real parameters (the stored type is ℝ). At n = 0 the bound \hat\beta is 0 and no \beta > 0 exists. No printed source.

NLAlib.exists_isAccurate_binaryFloatMachine_and_hasLaw_eighSampleLaw_of_le {n : ℕ} (hn : 1 ≤ n)
  {ε θ R₀ : ℝ} (hε : 0 < ε) (hε₁ : ε ≤ 2⁻¹ ^ 15) (hθ : 0 < θ) (hR₀ : 0 < R₀) :
  ∃ fmt 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 ∧
                        bisectionDepth ε ≤ ℓ ∧
                          0 < β ∧
                            β ≤
                                (↑ℓ - 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 * ε * √θ /
                                      (52 * ↑ℓ ^ 2 * (2 * ↑ℓ - 1) *
                                          √(↑n * min (↑n) (↑ℓ + 1) * min (↑n) (rexp 1)) *
                                        (2 * √2 * √↑n +
                                          √(Real.log (96 * ↑n * min (↑n) (↑ℓ + 1) / θ)))) /
                                    (1 + 2⁻¹ ^ 6) ≤
                                  β ∧
                                Real.logb 2 ε⁻¹ + 3 / 2 * Real.logb 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) / θ))) +
                                          Real.logb 2 (↑ℓ * (↑ℓ + 1)) +
                                        Real.logb 2 (↑ℓ ^ 2 * (2 * ↑ℓ - 1) / (↑ℓ - 1) ^ 2) +
                                      13 ≤
                                    ↑fmt.mantissaBits ∧
                                  Real.logb 2 β⁻¹ +
                                        Real.logb 2
                                          (2048 *
                                                (↑n +
                                                    newtonSchulzSteps
                                                      (θ / (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 (√(θ / (8 * ↑n * min (↑n) (↑ℓ + 1)))) (ε * min R₀ 1) ∧
                                      16 *
                                            (2 * R₀ + ↑n + 2 * ↑ℓ + 2 * √2 * √↑n +
                                              √(Real.log (96 * ↑n * min (↑n) (↑ℓ + 1) / θ))) ≤
                                          fmt.maxFinite ∧
                                        Real.logb 2
                                                (Real.logb 2 (1536 * (↑n + ↑ℓ + 2) ^ 3 / (ε * θ)) +
                                                  2) +
                                              1 ≤
                                            ↑fmt.exponentBits ∧
                                          ∃ Ω' x μ ζ,
                                            IsProbabilityMeasure μ ∧
                                              iIndepFun ζ μ ∧
                                                ∀ (a : List Bool), HasLaw (ζ a) (eighSampleLaw n) μ

Full source on GitHub

Import NLAlib.Eigensolvers.SpectralBisection.Instance.