LeanBET: Formally-verified surface area calculations in Lean
Ejike D. Ugwuanyi, Colin T. Jones, John Velkey, Tyler R. Josephson

TL;DR
This paper introduces LeanBET, a formally verified pipeline for BET surface area calculations implemented in Lean 4, ensuring correctness and numerical accuracy compared to traditional methods.
Contribution
It provides the first fully executable and formally verified BET analysis workflow in Lean, covering the entire process from window enumeration to linear regression.
Findings
LeanBET agrees with the reference method to machine precision on most datasets.
The formalization covers the complete BETSI workflow, including checks and selection criteria.
The implementation demonstrates that scientific computing workflows can be both verified and numerically accurate.
Abstract
The Brunauer--Emmett--Teller (BET) method is a standard tool for estimating surface areas from adsorption isotherms, yet practical implementations involve multiple algorithmic steps whose correctness is rarely made explicit. In this work, we present a fully executable and formally verified BET analysis pipeline implemented in the Lean~4 theorem prover. Our formalization covers the complete BET Surface Identification (BETSI)-style workflow, including window enumeration, monotonicity checks, knee selection, and linear regression. We carry out computations in floating-point arithmetic and develop the corresponding correctness proofs over the real numbers, using a shared polymorphic implementation that supports both. On the proof side, we show that the regression coefficients returned by the algorithm agree with their specification-level definitions and minimize the least-squares error…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
