NLAlib.Computation.val_eq_binaryFloatRound_of_binaryFloatQuantize
Library · theorem
Successful quantization returns the actual rounded input value.
NLAlib.Computation.val_eq_binaryFloatRound_of_binaryFloatQuantize {fmt : Float.Model.Format}
{he : 2 ≤ fmt.exponentBits} {r : ℝ → ℤ} {hr : ∀ (x : ℝ), Computation.AbsRelErr 0 (1 / 2) x ↑(r x)}
{a : ℝ} {w : Computation.BinaryFloat fmt}
(h : Computation.binaryFloatQuantize fmt he r hr a = some w) :
↑w = Computation.binaryFloatRound fmt r aImport NLAlib.Matrix.FinitePrecision.BinaryFloatCarrier.