- 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)
We follow here roughly the same contribution policies as MathLib4 (which can be found [here](https://leanprover-community.github.io/contribute/index.html)).
[Lean Copilot](https://github.com/lean-dojo/LeanCopilot) allows the use of large language models in Lean. Using Lean Copilot with HepLean can be done in the following way:
Either:
- Run the script `./scripts/add-copilot.sh`
Or:
- Copy the file `./scripts/copilot_lakefile.txt` over to `lakefile.lean`,
- Run `lake update LeanCopilot`,
- Run `lake exe LeanCopilot/download`,
- Run `lake build`.
To use LeanCopilot add `import LeanCopilot` to the top of the lean file you are working in.
The following commands should then become available to you:
-`suggest_tactics`,
-`search_proofs`,
-`select_premises`.
Adding Lean Copilot will modify a number of files. If you have added Lean Copilot, please do not push changes to the following files:
-`lakefile.lean`,
-`.lake/lakefile.olean`,
-`.lake/lakefile.olean.trace`,
-`lake-manifest.json`.
Please also ensure that there are not any `import LeanCopilot` statements in the lean files.