A project to digitalize high energy physics.
🎯 Digitalize results (meaning calculations, definitions, and theorems) from high energy physics into Lean 4.
🎯 Develop structures to aid the creation of new results in high energy physics using Lean, with the potential future use of AI.
🎯 Create good documentation so that the project can be used for pedagogical purposes.
HepLean currently includes, but is not limited to, the following parts:
Lorentz 🗂️: The Lorentz group, Lorentz algebra, Weyl fermions, Real Lorentz vectors, complex Lorentz vectors, complex Lorentz tensors, bispinors, Pauli matrices, etc.
Index notation 🗂️ 📄: Formalization of index notation using category theory allowing commands like
{A | μ ν ⊗ S | μ ν = - A | μ ν ⊗ S | μ ν}ᵀ
Anomaly cancellation 🗂️: Results related to solutions to the anomaly cancellation conditions of several theories.
Standard Model physics 🗂️: Properties of the Higgs potential.
BSM physics 🗂️: Starts to: Georgi Glashow model, Pati-Salam, Spin(10), Two Higgs doublet model.
Flavor physics 🗂️: Properties of the CKM matrix.
- 📄 Joseph Tooby-Smith, HepLean: Digitalising high energy physics, arXiv:2405.08863
- 📄 Joseph Tooby-Smith, Formalization of physics index notation in Lean 4, arXiv:2411.07667
- 💻 Example code snippet related to Anomaly cancellation conditions.
- 🎥 Seminar recording of "HepLean: Lean and high energy physics" by J. Tooby-Smith
- Hu, Jiewen, Thomas Zhu, and Sean Welleck. "miniCTX: Neural Theorem Proving with (Long-) Contexts." arXiv preprint arXiv:2408.03350 (2024). Project page
How HepLean was used: Theorems from the space-time files of HepLean were included in a data set used to evaluate the ability of models to prove theorems from real-world repositories, which requires working with definitions, theorems, and other context not seen in training.
We follow here roughly the same contribution policies as MathLib4 (which can be found here).
A guide to contributing can be found here.
If you want permission to create a pull-request for this repository contact Joseph Tooby-Smith on the Lean Zulip, or email.
If you want to playaround with HepLean, but do not want to download Lean, then you can use GitPod.
Installation instructions for Lean 4 can be found:
or
- Clone this repository (or download the repository as a Zip file)
- Open a terminal at the top-level in the corresponding directory.
- Run
lake exe cache get
. The commandlake
should have been installed when you installed Lean. - Run
lake build
. - Open the directory (not a single file) in Visual Studio Code (or another Lean compatible code editor).
- Lean Copilot and LLMLean allow for the use of large language models in Lean
- tryAtEachStep allows one to apply a tactic, e.g.
exact?
at each step of a lemma in a file to see if it completes the goal. This is useful for golfing proofs.