PhysLean/README.md

75 lines
4 KiB
Markdown
Raw Normal View History

2024-04-16 16:23:49 -04:00
# High Energy Physics in Lean
2024-05-20 08:13:59 -04:00
[![](https://img.shields.io/badge/Read_The-Docs-green)](https://heplean.github.io/HepLean/)
[![](https://img.shields.io/badge/PRs-Welcome-green)](https://github.com/HEPLean/HepLean/pulls)
[![](https://img.shields.io/badge/Lean-Zulip-green)](https://leanprover.zulipchat.com)
2024-06-07 10:12:10 -04:00
[![](https://img.shields.io/badge/Lean-v4.9.0_rc1-blue)](https://github.com/leanprover/lean4/releases/tag/v4.9.0-rc1)
2024-05-20 08:13:59 -04:00
2024-05-02 15:25:35 -04:00
A project to digitalize high energy physics.
2024-04-21 16:58:14 -04:00
## Aims of this project
2024-04-17 06:38:25 -04:00
2024-05-16 10:26:35 -04:00
- Use Lean to create an exhaustive database of definitions, theorems, proofs, and calculations in high energy physics.
- Make a library that is easy to use by the high energy physics community.
2024-04-17 06:38:25 -04:00
- Keep the database up-to date with developments in MathLib4.
2024-05-16 10:26:35 -04:00
- Create gitHub workflows of relevance to the high energy physics community.
2024-04-16 16:23:49 -04:00
2024-06-13 11:13:32 -04:00
## Areas of high energy physics currently covered
[![](https://img.shields.io/badge/The_CKM_Matrix-blue)](https://heplean.github.io/HepLean/HepLean/FlavorPhysics/CKMMatrix/Basic.html)
[![](https://img.shields.io/badge/Higgs_Field-blue)](https://heplean.github.io/HepLean/HepLean/StandardModel/HiggsBoson/Basic.html)
[![](https://img.shields.io/badge/2HDM-blue)](https://heplean.github.io/HepLean/HepLean/BeyondTheStandardModel/TwoHDM/Basic.html)
[![](https://img.shields.io/badge/Lorentz_Group-blue)](https://heplean.github.io/HepLean/HepLean/SpaceTime/LorentzGroup/Basic.html)
[![](https://img.shields.io/badge/Anomaly_Cancellation-blue)](https://heplean.github.io/HepLean/HepLean/AnomalyCancellation/Basic.html)
2024-04-21 16:58:14 -04:00
## Where to learn more
2024-04-17 08:48:09 -04:00
2024-05-16 10:42:58 -04:00
- Read the associated paper:
https://arxiv.org/abs/2405.08863
2024-04-21 16:58:14 -04:00
- The documentation for this project is at:
2024-04-21 16:59:00 -04:00
2024-04-21 16:58:14 -04:00
https://heplean.github.io/HepLean/
2024-04-22 11:01:25 -04:00
2024-04-23 06:20:36 -04:00
- Watch this overview of HepLean:
2024-04-29 14:03:20 -04:00
https://www.youtube.com/watch?v=W2cObnopqas
2024-04-22 11:01:25 -04:00
- A list of 'Frequently asked questions' can be found on the Wiki for this project:
2024-04-22 11:01:50 -04:00
https://github.com/HEPLean/HepLean/wiki/The-answers-to-some-questions
2024-04-21 16:58:14 -04:00
- Feel free to connect on the Lean Zulip channel:
2024-04-21 16:59:00 -04:00
2024-04-21 16:58:14 -04:00
https://leanprover.zulipchat.com
2024-04-16 16:23:49 -04:00
2024-04-22 09:56:51 -04:00
- A small example script relating to the three fermion anomaly cancellation condition can be found [here](https://live.lean-lang.org/#code=import%20Mathlib.Tactic.Polyrith%20%0A%0Atheorem%20threeFamily%20(a%20b%20c%20%3A%20)%20(h%20%3A%20a%20%2B%20b%20%2B%20c%20%3D%200)%20(h3%20%3A%20a%20%5E%203%20%2B%20b%20%5E%203%20%2B%20c%20%5E%203%20%3D%200)%20%3A%20%0A%20%20%20%20a%20%3D%200%20%20b%20%3D%200%20%20c%20%3D%200%20%20%3A%3D%20by%20%0A%20%20have%20h1%20%3A%20c%20%3D%20-%20(a%20%2B%20b)%20%3A%3D%20by%20%0A%20%20%20%20linear_combination%20h%20%0A%20%20have%20h4%20%3A%20%203%20*%20a%20*%20b%20*%20c%20%3D%200%20%3A%3D%20by%20%0A%20%20%20%20rw%20%5B←%20h3%2C%20h1%5D%0A%20%20%20%20ring%20%0A%20%20simp%20at%20h4%20%0A%20%20exact%20or_assoc.mp%20h4%0A%20%20%0A)
2024-04-16 16:23:49 -04:00
## Contributing
We follow here roughly the same contribution policies as MathLib4 (which can be found [here](https://leanprover-community.github.io/contribute/index.html)).
2024-04-22 10:32:02 -04:00
2024-05-16 10:21:49 -04:00
A guide to contributing can be found [here](https://github.com/HEPLean/HepLean/blob/master/CONTRIBUTING.md).
2024-05-16 10:42:58 -04:00
If you want permission to create a pull-request for this repository contact Joseph Tooby-Smith on the lean Zulip, or email.
2024-04-16 16:23:49 -04:00
## Installation
### Installing Lean 4
2024-05-16 10:42:58 -04:00
The installation instructions for Lean 4 are given here: https://leanprover-community.github.io/get_started.html.
2024-04-16 16:23:49 -04:00
2024-05-16 10:42:58 -04:00
### Installing HepLean
2024-04-16 16:23:49 -04:00
2024-05-16 10:42:58 -04:00
- 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 command `lake` 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).
2024-05-21 08:18:09 -04:00
2024-06-13 08:19:50 -04:00
### Optional extras
2024-05-21 08:18:09 -04:00
2024-06-13 08:19:50 -04:00
- [Lean Copilot](https://github.com/lean-dojo/LeanCopilot) allows the use of large language models in Lean.
- [tryAtEachStep](https://github.com/dwrensha/tryAtEachStep) allows one to apply a tactic, e.g. `exact?` at each step of a each lemma in a file to see if it completes the goal. This is useful for golfing proofs.