MSMay 10

FLoPS: Semantics, Operations, and Properties of P3109 Floating-Point Representations in Lean

arXiv:2602.1596534.6h-index: 9Has Code
AI Analysis

For developers and verifiers of numerical software targeting emerging low-precision hardware, this work provides a machine-checked specification to reason about the P3109 standard.

The paper presents FLoPS, a formal model of the upcoming IEEE-P3109 low-precision floating-point standard in Lean, and uses it to verify foundational properties and analyze algorithms. Key findings include that FastTwoSum computes exact overflow error under saturation for any rounding mode, while ExtractScalar fails for one-bit precision formats.

The upcoming IEEE-P3109 standard for low-precision floating-point arithmetic can become the foundation of future machine learning hardware and software. Unlike IEEE-754, P3109 introduces a parametric framework defined by bitwidth, precision, signedness, and domain. This flexibility results in a vast combinatorial space of formats -- some with as little as one bit of precision -- alongside novel features such as stochastic rounding and saturation arithmetic. These deviations create a unique verification gap that this paper intends to address. This paper presents FLoPS, Formalization in Lean of the P3109 Standard, which is a comprehensive formal model of P3109 in Lean. Our work serves as a rigorous, machine-checked specification that facilitates deep analysis of the standard. We demonstrate the model's utility by verifying foundational properties and analyzing key algorithms within the P3109 context. Specifically, we reveal that FastTwoSum exhibits a novel property of computing exact "overflow error" under saturation using any rounding mode, whereas previously established properties of the ExtractScalar algorithm fail for formats with one bit of precision. This work provides a verified foundation for reasoning about P3109 and enables formal verification of future numerical software. Our Lean development is open source and publicly available.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes