Real interpretation of binary models #
Finite format-parameterized bit patterns denote exact real values. Arithmetic refinement belongs in later modules, after the executable operation has been related to one exact dyadic intermediate and one rounding step.
Numerics.Dyadic real semantics expressed using a signed integer significand.
Left-shifting a signed significand multiplies its real value by the matching power of two.
Exact dyadic addition agrees with addition in the real semantics.
The exact dyadic product used by Model.mul agrees with real multiplication.
Real interpretation for finite values; returns none for NaN and infinity.
Instances For
Total real interpretation, mapping NaN and infinity to 0. Numerical theorems must
therefore establish finiteness or handle exceptional inputs separately.
Instances For
Real interpretation of Lean's unpacked logical float; NaN and infinity map to zero.
Instances For
Both signed zeros of Lean's unpacked float model denote the real zero.
A finite unpacked model value denotes its signed integer mantissa times its dyadic scale.
The policy-aware zero constructor denotes zero for every encoding.
Executable and logical decoding agree for formats represented by Lean's IEEE model.