Formalizing dimensional analysis using the Lean theorem prover
| dc.contributor.author | Bobbin, Maxwell P. | |
| dc.contributor.author | Jones, Colin | |
| dc.contributor.author | Velkey, John | |
| dc.contributor.author | Josephson, Tyler R. | |
| dc.date.accessioned | 2025-10-22T19:57:49Z | |
| dc.date.issued | 2025-09-16 | |
| dc.description.abstract | Dimensional analysis is fundamental to the formulation and validation of physical laws, ensuring that equations are dimensionally homogeneous and scientifically meaningful. In this work, we use Lean 4 to formalize the mathematics of dimensional analysis. We define physical dimensions as mappings from base dimensions to exponents, prove that they form an Abelian group under multiplication, and implement derived dimensions and dimensional homogeneity theorems. Building on this foundation, we introduce a definition of physical variables that combines numeric values with dimensions, extend the framework to incorporate SI base units and fundamental constants, and implement the Buckingham Pi Theorem. Finally, we demonstrate the approach on an example: the Lennard-Jones potential, where our framework enforces dimensional consistency and enables formal proofs of physical properties such as zero-energy separation and the force law. This work establishes a reusable, formally verified framework for dimensional analysis in Lean, providing a foundation for future libraries in formalized science and a pathway toward scientific computing environments with built-in guarantees of dimensional correctness. | |
| dc.description.sponsorship | We are grateful to the Lean prover community and contributors of Mathlib on whose work this project is built. We especially acknowledge the work of Joseph Tooby-Smith and Alfredo Moriera-Rosa, who created independent formulations of physical variables in varying states of implementation. These can be found here and here, respectively. Alfredo Moriera-Rosa and Terence Tao provided inspiration and advice in formulating the cast function and tactic to make the graded structure work for physical variables. This material is based on work supported by the National Science Foundation (NSF) CAREER Award #2236769 | |
| dc.description.uri | http://arxiv.org/abs/2509.13142 | |
| dc.format.extent | 19 pages | |
| dc.genre | journal articles | |
| dc.genre | preprints | |
| dc.identifier | doi:10.13016/m2cov8-qyt9 | |
| dc.identifier.uri | https://doi.org/10.48550/arXiv.2509.13142 | |
| dc.identifier.uri | http://hdl.handle.net/11603/40502 | |
| dc.language.iso | en | |
| dc.relation.isAvailableAt | The University of Maryland, Baltimore County (UMBC) | |
| dc.relation.ispartof | UMBC Student Collection | |
| dc.relation.ispartof | UMBC Chemical, Biochemical & Environmental Engineering Department | |
| dc.relation.ispartof | UMBC Faculty Collection | |
| dc.rights | Attribution-NonCommercial-ShareAlike 4.0 International | |
| dc.rights.uri | https://creativecommons.org/licenses/by-nc-sa/4.0/ | |
| dc.subject | UMBC ATOMS Lab | |
| dc.subject | Physics - Chemical Physics | |
| dc.title | Formalizing dimensional analysis using the Lean theorem prover | |
| dc.type | Text | |
| dcterms.creator | https://orcid.org/0000-0002-0100-0227 |
Files
Original bundle
1 - 1 of 1
