Physics is now a specialization you can select in Primus, available to everyone. It does the calculations physicists do every day, and then it checks the answer.
From a Lagrangian or Hamiltonian to the equations that govern the system.
Reducing a full model to the Hamiltonian that matters at the scale you care about.
In closed form where one exists, to high precision where it doesn’t.
And confirming it behaves: limiting cases and asymptotics, checked rather than assumed.
Physlib is the Lean physics library covering classical mechanics, electromagnetism, relativity, statistical mechanics and QFT.
Results are recomputed in sympy, scipy and mpmath, separately from the derivation that produced them.
When a result exists only as a number, PSLQ proposes a closed form and Primus tests it.
Plenty of calculations end in a number: a sum evaluated numerically, an integral done by quadrature. PSLQ searches for an exact expression that matches it, built from constants like π, ζ(3) and log 2.
A match isn’t a proof, so Primus treats it as a proposal and tests it before it goes in the write-up.
Proved in Lean and verified by the computer.
Recomputed independently and found to agree.
Supported by the evidence, and labeled as not yet established.
All calculations are in the activity log. When the write-up states a result, you can follow it back through the runs and reasoning behind it, including what failed along the way.

Sign in, create a project, and choose the Physics specialization.