An Attempt to formalize physics in Lean4.
Find a file
2024-06-07 11:21:00 -04:00
.github/workflows fix: File name case error 2024-05-22 16:50:53 -04:00
.lake Feat: Upgrade versions 2024-05-06 14:55:22 -04:00
HepLean chore: Update to Lean 4.9-rc1 2024-06-07 08:41:49 -04:00
scripts docs: update ReadMe file. 2024-05-21 08:18:09 -04:00
.DS_Store Initial 2024-04-16 15:31:25 -04:00
.gitignore feat: Add copilot add script 2024-05-21 07:48:06 -04:00
CONTRIBUTING.md docs: Update Contributing file. 2024-05-16 10:17:31 -04:00
HepLean.lean refactor: Lint 2024-05-29 16:43:41 -04:00
lake-manifest.json chore: Update to Lean 4.9-rc1 2024-06-07 08:41:49 -04:00
lakefile.lean.bak feat: update to lakefile.toml 2024-05-31 14:58:07 -04:00
lakefile.toml feat: update to lakefile.toml 2024-05-31 14:58:07 -04:00
lean-toolchain chore: Update to Lean 4.9-rc1 2024-06-07 08:41:49 -04:00
LICENSE Create LICENSE 2024-05-31 16:18:33 -04:00
README.md Update README.md 2024-06-07 10:12:10 -04:00

High Energy Physics in Lean

A project to digitalize high energy physics.

Aims of this project

  • 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.
  • Keep the database up-to date with developments in MathLib4.
  • Create gitHub workflows of relevance to the high energy physics community.

Where to learn more

Contributing

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.

Installation

Installing Lean 4

The installation instructions for Lean 4 are given here: https://leanprover-community.github.io/get_started.html.

Installing HepLean

  • 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).

Adding Lean Copilot (optional)

Lean Copilot 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.