NLA-lib Explorer

NLAlib.isAccurate_binaryFloatMachine

Library · theorem

The binary-format machine satisfies the contract (NLAlib.FloatMachine.IsAccurate): for a binary format fmt with precision p, smallest exponent e_{\min} and smallest normal number \tau = 2^{e_{\min} + p - 1} \le 1, and an odd nearest selector r (half-unit error, r(-\mathbf{x}) = -r(\mathbf{x})), the machine NLAlib.binaryFloatMachine satisfies the contract with the identity decoding, unit roundoff u = 2^{-p}, floor \tau, range the largest finite number, \mu_{\mathrm{MM}}(d) = \mu_{\mathrm{QR}}(d) = 2d and c_{\mathrm{N}} = \sqrt2. Entrywise rounding errs by \sqrt2\,u\max(\|\mathbf{X}\|_2, \tau) per entry, hence by 2du\max(\cdot) in the spectral norm via the Frobenius norm; the oddness keeps the rounded \mathbf{A}\mathbf{A}^{\mathsf{H}} Hermitian. No printed source.

NLAlib.isAccurate_binaryFloatMachine {fmt : Float.Model.Format} {r : ℝ → ℤ}
  (hr : ∀ (x : ℝ), Computation.AbsRelErr 0 (1 / 2) x ↑(r x)) (hodd : ∀ (x : ℝ), r (-x) = -r x)
  (hτ₁ : 2 ^ (fmt.minExponent + ↑fmt.mantissaBits - 1) ≤ 1) :
  (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

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.BinaryFloatMachine.