Not confirmed / Analysis & computing
FloatLib
Arbitrary verified fast precision floating point arithmetic in Lean, with proofs, optimized backends, and support for IEEE binary and decimal, posits, and custom formats.
Not confirmed / RESOURCE RECORD
Begin with what is known.
Arbitrary verified fast precision floating point arithmetic in Lean, with proofs, optimized backends, and support for IEEE binary and decimal, posits, and custom formats.
No verified screenshot or content image is available. Follow the official source to inspect this resource.
01 / PURPOSE
What it helps you explore
- IEEE binary and decimal. Binary arithmetic handles subnormals, signed zeros, infinities, NaNs, rounding modes, and status flags. Decimal32, decimal64, and decimal128 come in both BID and DPD encodings, with arithmetic, conversions, and rounding proofs.
- Posits and quires. Pick a total width with ExecFloat.Posit (bits := n). A quire, ExecFloat.Posit.Quire (bits := n), accumulates products exactly up to its capacity and rounds once at the end. We follow the 2022 posit standard.
- Small and custom formats. FP8, FP6, FP4, OCP MX blocks, fixed point, logarithmic, and codebook representations all share the same numerical interfaces. P3109 gets its own chapter, which explains the working group's format rules and the report our implementation follows.
- Classical rounding results. Correct rounding, half-ulp error bounds, and Sterbenz's exact-subtraction lemma tie the real-valued theory to the arithmetic that runs. Mixed-precision bounds cover casts, products, and accumulator updates, under their stated finiteness assumptions.
- Intervals and affine quantization. One interval API takes binary, decimal, posit, and custom endpoints, each with a stated outward-rounding contract. The interval tactic proves real inequalities, elementary functions included, by certified evaluation and subdivision. Affine quantization has a real-valued specification with a rounding rule you supply, plus a proof connecting nearest-even quantization to the executable rational implementation.
- Repeatedly rounded sums. A reduction tree fixes the order of the additions. Its error bounds account for rounding at every node, including absolute-error terms near underflow. For a sum that rounds only once, use the exact accumulators.
Before you use it
- The directory describes the official project; deployment, maintenance and infrastructure requirements must be checked in its documentation.
- Hosted plans, commercial support, taxes and usage limits are not verified by this repository listing.
02 / RESOURCE FACTS
Look beyond the preview.
- Resource type
- Not confirmed
- Access conditions
- Not confirmed
- Pricing
- Pricing not confirmed
- Pricing scope
- FloatLib official project
- Pricing conditions
- The repository does not establish a current hosted-service price. Review the official pricing and deployment terms before purchase.
- Subjects
- Not confirmed
- Maintainer
- Not confirmed
- Languages
- Not confirmed
- License · code
- MIT
03 / SOURCES
Keep the source in the picture.
- api.github.com/repos/lean-dojo/FloatLib
Checked 27 Oct 2026 · Source evidence reviewed
- api.github.com/repos/lean-dojo/FloatLib/readme
Checked 27 Oct 2026 · Source evidence reviewed
A source check is not peer review, institutional endorsement or independent testing.
Share this resource
Copy the profile link. It is not an academic citation.