- Notifications
You must be signed in to change notification settings - Fork0
Solving Hilbert's sixth problem in Lean
License
physicslib/physicslib4
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This repository contains a template for blueprint-driven formalization projects in Lean 4.
Ensure that you have a functioning Lean 4 installation. If you do not, please followtheLean installation guide.
To create a new repository using this template, ensure you are on the correct repository page(LeanProject) and then follow these steps:
- Click theUse this template button located at the top right of the repository page.
- Click theCreate a new repository button.
- Select the account or organization where you want to create it, choose a name for the newrepository, and click theCreate repository button.
To clone this repository to your local machine, please refer to the relevant section of theGitHub documentationhere.
To tailor this template to your specific project, follow these steps:
- If you don't have a Python environment, you can install one by following the instructions in thePython installation guide.
- Verify your Python installation by running:
python3 --version
- Verify your Pip installation by running:
pip3 --version
- Ensure your terminal is in the project directory by running the following command:
cd path/to/your/project - Execute the customization script by running:where
scripts/customize_template.py NewProject
NewProjectmust be replaced by the name of your project.
The scriptcustomize_template.py will automatically rename theproject folder and update the necessary files and configurations to match the new project name.
To set up GitHub Pages for your repository, follow these steps:
- Go to theSettings tab of your repository.
- In the left sidebar, click on thePages section.
- In theSource dropdown, select
GitHub Actions.
The template repository is organized as follows (listing the main folders and files):
.githubcontains GitHub-specific configuration files and workflows.workflowscontains GitHub Actions workflow files.build-project.ymldefines the workflow for buildingthe Lean project on pushes, pull requests, and manual triggers. This is a minimalistic buildworkflow which is not necessary if you decide to generate a blueprint (see instructions below)and can be manually disabled by clicking on theActions tab, selectingBuild Projectin the left sidebar, then clicking the horizontal triple dots (⋯) on the right,and choosingDisable workflow.create-release.yml: defines the workflow for creating a new Git tag and GitHub release when thelean-toolchainfile is updated in themainbranch. Ensure the following settings are configured underSettings > Actions > General > Workflow permissions: "Read and write permissions" and "Allow GitHub Actions to create and approve pull requests".update.ymlis the dependencyupdate workflow to be triggered manually by default. [It's not documented yet, but it will be soon.]
dependabot.ymlis the configuration file to automate CI dependency updates.
.vscodecontains Visual Studio Code configuration filesextensions.jsonrecommends VS Code extensions for the project.settings.jsondefines the project-specific settings for VS Code.
Projectshould contain the Lean code files.Mathlibshould contain.leanfiles with declarations missing from thecurrent version of Mathlib.Example.leanis a sample Lean file.
scriptscontains scripts to update Mathlib ensuring that the latest version isfetched and integrated into the development environment..gitignorespecifies files and folders to be ignored by Git.and environment.CODE_OF_CONDUCT.mdshould contain the code of conduct for the project.CONTRIBUTING.mdshould provide the guidelines for contributing to theproject.lakefile.tomlis the configuration file for the Lake build system used inLean projects.lean-toolchainspecifies the Lean version and toolchain used for the project.
- Fermat's Last Theorem for Exponent 3 by Riccardo Brasca et al.
- Polynomial Freiman-Ruzsa Conjecture by Terence Tao et al.
- Fermat's Last Theorem by Kevin Buzzard et al.
- Carleson Operators on Doubling Metric Measure Spaces by Floris van Doorn et al.
- Bonn Collaborative Formalization Seminar Series in Analysis by Floris van Doorn et al.
- Prime Number Theorem and More by Alex Kontorovich et al.
- Infinity Cosmos by Emily Riehl et al.
- Analytic Number Theory Exponent Database by Terence Tao et al.
- Groupoid Model of Homotopy Type Theory by Sina Hazratpour et al.
- Equational Theories by Terence Tao et al.
- Sphere Packing in 8 Dimensions by Maryna Viazovska et al.
For more examples of completed and ongoing Lean projects and libraries, pleasesee theLean Reservoir.
To install the necessary dependencies, follow the instructions in thePyGraphViz installation guide.
Assuming you have a properly configured Python environment, install LeanBlueprint by running:
pip install leanblueprint
If you have an existing installation of LeanBlueprint, you can upgrade to the latest version byrunning:
pip install -U leanblueprint
To set up the blueprint for your project, run:
leanblueprint new
Then, follow the prompts and answer the questions as you like, except for a few specificquestions which should be answered as indicated below to ensure compatibility with this template.
Respond affirmatively withy to the following prompt:
Proceed with blueprint creation? [y/n]Respond affirmatively withy to the following prompt:
Modify lakefile and lake-manifest to allow checking declarations exist? [y/n] (y)Respond affirmatively withy to the following prompt:
Modify lakefile and lake-manifest to allow building the documentation? [y/n] (y):If you want to generate a Jekyll-based home page for the project, respondaffirmatively withy to the following prompt:
Do you want to create a home page for the project, with links to the blueprint, the API documentation and the repository? [y/n]:Respond affirmatively withy to the following prompt:
Configure continuous integration to compile blueprint? [y/n] (y):For more details about the LeanBlueprint package and its commands, please refer to itsdocumentation.
After configuring the blueprint, please wait for the GitHub Action workflow to finish.You can keep track of the progress in theActions tab of your repository.
If you have used this template to create your own Lean project and would like to share it with the community, please consider opening aPR to add your project to this list:
- Infinity Cosmos by Emily Riehl et al.
- Analytic Number Theory Exponent Database by Terence Tao et al.
- Equational Theories by Terence Tao et al.
- Groupoid Model of Homotopy Type Theory by Sina Hazratpour et al.
- Soundness of FRI by Bolton Bailey et al.
- Weil's Converse Theorem by Chris Birkbeck et al.
- Proofs from THE BOOK by Moritz Firsching et al.
- Automata Theory by Stefan Hetzl et al.
- Dirichlet Nonvanishing by Chris Birkbeck et al.
- Seymour's Decomposition Theorem by Ivan Sergeyev et al.
- Spectral Theorem by Oliver Butterley and Yoh Tanimoto.
- NeuralNetworks by Matteo Cipollina.
- ABC Exceptions by Bhavik Mehta et al.
- Sphere Packing in 8 Dimensions by Maryna Viazovska et al.
About
Solving Hilbert's sixth problem in Lean
Topics
Resources
License
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.