Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
This refactoring PR changes the structure of the `FunInd` module, with the main purpose to make it easier to support mutual structural recursion. In particular the recursive calls are now longer recognized by their terms (simple for well-founded recursion, `.app oldIH [arg, proof]`, but tedious for structural recursion and even more so for mutual structural recursion), but the type after replacing `oldIH` with `newIH`, where the type will be simply and plainly `mkAppN motive args`). We also no longer try to guess whether we deal with well-founded or structural recursion but instead rely on the `EqnInfo` environment extensions. The previous code tried to handle both variants, but they differ too much, so having separate top-level functions is easier. This also fuses the `foldCalls` and `collectIHs` traversals and introduces a suitable monad for collecting the inductive hypotheses. |
||
|---|---|---|
| .github | ||
| doc | ||
| images | ||
| nix | ||
| releases_drafts | ||
| script | ||
| src | ||
| stage0 | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .ignore | ||
| CMakeLists.txt | ||
| CMakePresets.json | ||
| CODEOWNERS | ||
| CONTRIBUTING.md | ||
| flake.lock | ||
| flake.nix | ||
| lean-toolchain | ||
| lean.code-workspace | ||
| LICENSE | ||
| LICENSES | ||
| README.md | ||
| RELEASES.md | ||
This is the repository for Lean 4.
About
- Quickstart
- Homepage
- Theorem Proving Tutorial
- Functional Programming in Lean
- Manual
- Release notes starting at v4.0.0-m3
- Examples
- External Contribution Guidelines
- FAQ
Installation
See Setting Up Lean.
Contributing
Please read our Contribution Guidelines first.
Building from Source
See Building Lean (documentation source: doc/make/index.md).