From Zero to QED
An informal introduction to formality in Lean 4.
Read
Try Online
No local setup required. Launch a complete Lean 4 environment in your browser:
- Open in GitHub Codespaces - Free for 120 core-hours/month
- Open in Gitpod - Free tier available
The environment comes pre-configured with Lean 4, the VS Code extension, and all dependencies.
Try Locally
Install Lean 4 with VS Code and the Lean 4 extension, then:
git clone https://github.com/sdiehl/zero-to-qed
cd zero-to-qed
lake exe cache get # Download prebuilt Mathlib
lake build
Alternatively, if you have Docker and VS Code installed, clone the repo and open it in VS Code. You'll be prompted to "Reopen in Container" which builds the same environment on your machine.
Contents
Contributing
See BUILD.md for details on the HTML and PDF build pipeline. Add yourself to CONTRIBUTORS.md and submit a PR.
License
Software (Lean code in src/): MIT License. See LICENSE.
Prose (text in docs/): Public domain. Share it, adapt it, translate it. I just ask that you not sell it. It is meant to be free.