Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
Note that test for issue #1200 broke. The bug fixed by this commit was allowing the example to be elaborated correctly :( Initially, the type of the discriminant is not available, and `.none (α:=α)` can only be elaborated when the expected type is of the form `C ...`. Lean then tries to elaborate the alternatives, learn that the discriminant should be `Option ?m`, and fails because the patterns still have metavariables after elaboration. Before the bug fix, `resumePostpone` was **not** restoring the metavariable context, and the assingnment would stay there. With this information, Lean can now elaborate `.none (α:=α)`. Although the bug had a positive impact in this case, it produced incorrect behavior in other examples. The fixed example looks reasonable. Thus, we will not reopen issue #1200 |
||
|---|---|---|
| .github | ||
| .vscode | ||
| doc | ||
| images | ||
| nix | ||
| script | ||
| src | ||
| stage0 | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .gitmodules | ||
| .ignore | ||
| CMakeLists.txt | ||
| CONTRIBUTING.md | ||
| default.nix | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| LICENSES | ||
| README.md | ||
| RELEASES.md | ||
| shell.nix | ||
This is the repository for Lean 4, which is currently being released as milestone releases towards a first stable release. Lean 3 is still the latest stable release.
About
- Quickstart
- Walkthrough installation video
- Quick tour video
- Homepage
- Theorem Proving Tutorial
- Functional Programming in Lean first chapter is available!
- Manual
- Release notes starting at v4.0.0-m3
- Examples
- FAQ
Installation
See Setting Up Lean.
Contributing
Please read our Contribution Guidelines first.
Building from Source
See Building Lean.