Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
This only really shows up when the `decreasing_tactic` fails with multiple goals, as in ``` macro_rules | `(tactic|decreasing_tactic) => `(tactic| by_cases (2 > 1)) def foo (n : Nat) : Nat := foo (n - 1) termination_by foo n => n ``` where we now get ``` unsolved goals case inl n: Nat h✝: 2 > 1 ⊢ (invImage (fun a => a) instWellFoundedRelation).1 (n - 1) n case inr n: Nat h✝: ¬2 > 1 ⊢ (invImage (fun a => a) instWellFoundedRelation).1 (n - 1) n ``` rather than ``` LeanProject.lean:3:27 unsolved goals case inl n: Nat h✝: 2 > 1 ⊢ (invImage (fun a => a) instWellFoundedRelation).1 (n - 1) n LeanProject.lean:3:27 unsolved goals case inr n: Nat h✝: ¬2 > 1 ⊢ (invImage (fun a => a) instWellFoundedRelation).1 (n - 1) n ``` The effect is neglectible, but the code is a bit nicer, so why not, before someone looks at it again and wonders whether the goals are reported separately for a reason. |
||
|---|---|---|
| .github | ||
| .vscode | ||
| doc | ||
| images | ||
| nix | ||
| script | ||
| src | ||
| stage0 | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .ignore | ||
| CMakeLists.txt | ||
| CODEOWNERS | ||
| CONTRIBUTING.md | ||
| default.nix | ||
| flake.lock | ||
| flake.nix | ||
| LICENSE | ||
| LICENSES | ||
| README.md | ||
| RELEASES.md | ||
| shell.nix | ||
This is the repository for Lean 4.
We provide nightly releases and have just begun regular stable point releases.
About
- Quickstart
- Walkthrough installation video
- Quick tour video
- 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.