Benchmarking Energy Calculations Using Formal Proofs

dc.contributor.authorEjike David Ugwuanyi
dc.contributor.authorJones, Colin
dc.contributor.authorVelkey, John
dc.contributor.authorJosephson, Tyler R.
dc.date.accessioned2025-06-17T14:45:20Z
dc.date.available2025-06-17T14:45:20Z
dc.date.issued2025-05-14
dc.description.abstractTraditional approaches for validating molecular simulations rely on making software open source and transparent, incorporating unit testing, and generally employing human oversight. We propose an approach that eliminates software errors using formal logic, providing proofs of correctness. We use the Lean theorem prover and programming language to create a rigorous, mathematically verified framework for computing molecular interaction energies. We demonstrate this in LeanLJ, a package of functions, proofs, and code execution software that implements Lennard Jones energy calculations in periodic boundaries. We introduce a strategy that uses polymorphic functions and typeclasses to bridge formal proofs (about idealized Real numbers) and executable programs (over floating point numbers). Execution of LeanLJ matches the current gold standard NIST benchmarks, while providing even stronger guarantees, given LeanLJ's grounding in formal mathematics. This approach can be extended to formally verified molecular simulations, in particular, and formally verified scientific computing software, in general. Keywords: Formal verification, Lean 4, molecular simulations, functional programming.
dc.description.sponsorshipThis material is based on work supported by the National Science Foundation NSF CAREER Award 2236769
dc.description.urihttp://arxiv.org/abs/2505.09095
dc.format.extent25 pages
dc.genrejournal articles
dc.genrepreprints
dc.identifierdoi:10.13016/m2ely6-znzl
dc.identifier.urihttps://doi.org/10.48550/arXiv.2505.09095
dc.identifier.urihttp://hdl.handle.net/11603/38881
dc.language.isoen_US
dc.relation.isAvailableAtThe University of Maryland, Baltimore County (UMBC)
dc.relation.ispartofUMBC Faculty Collection
dc.relation.ispartofUMBC Chemical, Biochemical & Environmental Engineering Department
dc.relation.ispartofUMBC Student Collection
dc.rightsAttribution 4.0 International
dc.rights.urihttps://creativecommons.org/licenses/by/4.0/
dc.subjectUMBC ATOMS Lab
dc.subjectCondensed Matter - Statistical Mechanics
dc.titleBenchmarking Energy Calculations Using Formal Proofs
dc.typeText
dcterms.creatorhttps://orcid.org/0000-0002-0100-0227
dcterms.creatorhttps://orcid.org/0009-0006-4335-5428

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
2505.09095v1.pdf
Size:
1.08 MB
Format:
Adobe Portable Document Format