Bounded binary floating-point quantization
Library · Source module
Bounded binary floating-point quantization
The binary layout is Lean core's Float.Model.Format. The significand exponent is clamped below at the format's smallest exponent; spacing scales with magnitude in the normal range and is constant only for subnormals. The upper range is the largest finite representable value.
The nearest-integer selector is a parameter. Its certificate is a half-unit absolute-error bound, which permits every nearest tie policy, including ties to even. Mathlib's round is one possible selector, with ties upward; it is not identified with IEEE's ties-to-even rule. This is a noncomputable mathematical quantizer, not a native implementation. [Higham2002, §2.2].
Main results
* NLAlib.Computation.absRelErr_binaryFloatRound: relative error plus gradual underflow. * NLAlib.Computation.isBinaryRep_binaryFloatRound: finite-range representability. * NLAlib.Computation.binaryFloatRound_eq_self: exactness on represented values. * NLAlib.Computation.relErr_binaryFloatRound_of_minExponent_le: normal relative error. * NLAlib.Computation.binaryFloatRound_two_zpow_sub_two: strict subnormal underflow. * NLAlib.Computation.IsBinaryRep.abs_le: the largest finite magnitude. * NLAlib.Computation.abs_sub_binaryFloatRound_le: relative error above the smallest normal number, as a floor. * NLAlib.Computation.abs_binaryFloatRound_le_of_abs_le: rounding stays below a larger represented value.
Declarations
- NLAlib.Computation.IsBinaryRep.abs_le
- NLAlib.Computation.IsBinaryRep.neg
- NLAlib.Computation.absRelErr_binaryFloatRound
- NLAlib.Computation.abs_binaryFloatRound_le_of_abs_le
- NLAlib.Computation.abs_sub_binaryFloatRound_le
- NLAlib.Computation.binaryFloatRound
- NLAlib.Computation.binaryFloatRound_eq_self
- NLAlib.Computation.binaryFloatRound_two_zpow_sub_two
- NLAlib.Computation.binaryFloatRound_zero
- NLAlib.Computation.isBinaryRep_binaryFloatRound
- NLAlib.Computation.relErr_binaryFloatRound_of_minExponent_le