Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
We now (try to) postpone `match ... with` elaboration when pattern variables and patterns still contain metavariables before invoking `mkMatcher`. This improvement makes sure we can elaborate an example submitted by Daniel Selsam. Remark: this update may create performance problems since we backtrack `elabMatchTypeAndDiscrs` and `elabMatchAltView`. We hope this is not a problem in practice since we use the "quick-check" `waitExpectedTypeAndDiscrs`. Recall that we could compile Lean without this commit. So, it suggests cases where we need to postpone after `elabMatchAltView` are rare. |
||
|---|---|---|
| .github | ||
| doc | ||
| images | ||
| lean4-mode | ||
| nix | ||
| script | ||
| src | ||
| stage0 | ||
| tests | ||
| tmp | ||
| .gitattributes | ||
| .gitignore | ||
| CMakeLists.txt | ||
| CONTRIBUTING.md | ||
| default.nix | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| README.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
Installation
See Setting Up Lean.
Contributing
Please read our Contribution Guidelines first.
Building from Source
See Building Lean.