Primus for X

Primus for Physics

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.

A Physics project in Primus, from the first prompt to the checked write-up.
01

The work you rarely have time to check line by line

m ẍ = −∇V

Deriving an equation of motion

From a Lagrangian or Hamiltonian to the equations that govern the system.

H_eff

Working out an effective Hamiltonian

Reducing a full model to the Hamiltonian that matters at the scale you care about.

∫ f(x) dx

Evaluating an integral

In closed form where one exists, to high precision where it doesn’t.

lim x→0

Taking a limit

And confirming it behaves: limiting cases and asymptotics, checked rather than assumed.

02

It doesn’t just do the work. It checks the answer.

IN LEAN

Machine-checked with Physlib

Physlib is the Lean physics library covering classical mechanics, electromagnetism, relativity, statistical mechanics and QFT.

OUTSIDE LEAN

Recomputed independently

Results are recomputed in sympy, scipy and mpmath, separately from the derivation that produced them.

NUMBERS ONLY

Closed forms from PSLQ

When a result exists only as a number, PSLQ proposes a closed form and Primus tests it.

03

From a number to a formula

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.

04

Every result says how it was established

  • Machine-checked

    Proved in Lean and verified by the computer.

  • Verified by computation

    Recomputed independently and found to agree.

  • Heuristic

    Supported by the evidence, and labeled as not yet established.

05

Trace any claim back to the steps that produced it

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.

A Primus project's activity log, with its research stages completed on the left and Primus's account of its checks on the right
The activity log of a finished Physics project.

Physics is now a specialization in Primus, available to everyone.

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