SciLib formalizes a century of physics experiments and theories in Lean

CatAstro_Piyush · x · 2026-10-23

On day 241 of a daily hackathon streak, the author shares progress on SciLib, a project formalizing the history of physics in Lean (layered as Lean → Mathlib → Physlib → SciLib). The chart covers classics like Balmer's formula (1885), Thomson's e/m measurement (1897), Geiger–Marsden scattering (1909), Franck–Hertz (1914), and Nagaoka/Rutherford/Bohr atomic models.

The design encodes science as a graph: nodes are theories (statements) and experiments (raw records); edges mean 'A implies B', 'A contradicts B', or 'A interprets experiment'. It supports iterative derivation, retrieving everything known, returning which theories explain a given experiment, plus supported/granted/refuted status flags, and defines sensor/actuator interfaces for lab simulation.

Related event: SciLib Brings Machine-Checkable Formal Verification of Science to Lean(2 posts)→

Original post →

More from coding & agent

coding & agent channel →