NLA-lib Explorer

NLAlib.FloatMachine.IsArithAccurate

Library · structure

M.IsArithAccurate dec u τ Ω μM: the arithmetic contract of a floating-point machine at decoding dec, unit roundoff u, floor \tau, range \Omega and product constant \mu_{\mathrm{MM}}: zero and one are exact; rounded conversion, addition, subtraction, multiplication and division (by a nonzero) return a rounding (NLAlib.IsRoundingOf) of the exact result on the decoded operands; negation and comparisons are exact; conversion to a natural number is the exact floor \lfloor\bar \mathbf{x}\rfloor_+; the matrix-multiplication black box meets NLAlib.IsMatMulErr through the decoding. The part of NLAlib.FloatMachine.IsAccurate that says nothing about the QR black box and the samplers. [Shah2024, Section 1.2 and Definitions 1.1–1.2], with componentwise complex storage.

NLAlib.FloatMachine.IsArithAccurate.{u_3} {F : Type u_3} (M : FloatMachine F ℝ ℂ) (dec : F → ℝ)
  (u τ Ω : ℝ) (μM : ℕ → ℝ) : Prop

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.Machine.