NLA-lib Explorer

Native finite binary64 arithmetic in the logical Float model

Library · Source module

Native finite binary64 arithmetic in the logical Float model

The arithmetic functions are Lean's actual Float operations. Their decoded accuracy and finite-range guarantees are consequences of core normalization, rounding and packing, with mixed error retained for gradual underflow. No optional evaluator is used.

The original core-model proofs follow the NumLean provenance recorded in docs/design/Finite-Precision-Arithmetic.md. Native runtime replacements and their physical costs are separate implementation obligations.

Main results

* NLAlib.Computation.absRelErr_float_mul: mixed multiplication error. * NLAlib.Computation.isFinite_float_mul_of_abs_le: finite in-range products. * NLAlib.Computation.floatDecode_add_eq_of_decode_zero: exact zero addition.

Declarations