NLA-lib Explorer

NLAlib.Ops.StdModel.isArithAccurate_toFloatMachine

Library · theorem

Standard rounding

The unbounded-exponent standard model implies the existing matrix arithmetic contract at floor zero, for any range. Literal one must decode exactly, and the supplied multiplication routine satisfies its own numerical contract. No QR or sampler accuracy is inferred.

NLAlib.Ops.StdModel.isArithAccurate_toFloatMachine {K : Type} {M : Ops.Machine K} {dec : K → ℝ}
  {u Ω : ℝ} (h : Ops.StdModel u dec M) (hone : dec (M.lit 1) = 1) (mm : MatMulMap (K × K))
  (qr : QRMap (K × K)) (unif : K → ℝ → K) (normal : ℂ → K × K) (μ : ℕ → ℝ)
  (hmm : IsMatMulErr (decodeComplex dec) u 0 Ω μ fun {l m n} ↦ mm) :
  (M.toFloatMachine dec (fun {l m n} ↦ mm) (fun {m n} ↦ qr) unif normal).IsArithAccurate dec u 0 Ω μ

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.OpsMachine.