NLA-lib Explorer

Total finite-word binary64 arithmetic for Ops

Library · Source module

Total finite-word binary64 arithmetic for Ops

Addition, subtraction, multiplication, division, negation and square root use Lean's native Float functions on finite words. A nonfinite result is replaced by positive zero; the accuracy range proves that fallback is inactive. Rational literals use a separately specified nearest binary64 word constructor, avoiding overflow in separate numerator/denominator conversions. Its tie policy is Mathlib's integer rounding policy, not a claim about a native rational API.

The numerical model retains gradual underflow and an explicit largest-finite-result range. It concerns core's logical Float functions; native runtime replacement and physical operation costs require their own implementation certificates.

Main results

* NLAlib.Ops.Float64.mixedModel_machine: in-range native arithmetic with gradual underflow. * NLAlib.Ops.Float64.decode_lit_zero: the zero literal decodes exactly. * NLAlib.Ops.Float64.decode_add_of_decode_zero: exact accumulation from decoded zero. * NLAlib.Ops.Float64.exists_scalar_model: joint functional and numerical realization.

Declarations