Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
This PR improves the `grind` diagnostics output so that local hypotheses used as E-matching theorems show up with their user-facing names and instantiation counters, instead of being silently dropped or reported under an anonymous `local.<idx>` identifier. Previously, `mkGlobalDiag` filtered the `E-Matching instances` table down to origins of the form `.decl declName`, discarding every counter coming from a local hypothesis (`.fvar`, `.local`, `.stx`). Even when an origin was kept, the local-theorem path in `addLocalEMatchTheorems` only recognized `eq_true h` for a bare `h : fvar` and fell back to a synthetic `.local <idx>` origin in all other cases, including the common one where the proof has been wrapped by an `Eq.mp` cast. |
||
|---|---|---|
| .claude | ||
| .github | ||
| .vscode | ||
| doc | ||
| images | ||
| releases_drafts | ||
| script | ||
| src | ||
| stage0 | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .gitpod.Dockerfile | ||
| .gitpod.yml | ||
| .ignore | ||
| AGENTS.md | ||
| CMakeLists.txt | ||
| CMakePresets.json | ||
| CODEOWNERS | ||
| CONTRIBUTING.md | ||
| flake.lock | ||
| flake.nix | ||
| lean-toolchain | ||
| LICENSE | ||
| LICENSES | ||
| README.md | ||
| RELEASES.md | ||
This is the repository for Lean 4.
About
- Quickstart
- Homepage
- Theorem Proving Tutorial
- Functional Programming in Lean
- Documentation Overview
- Language Reference
- Release notes starting at v4.0.0-m3
- Examples
- External Contribution Guidelines
Installation
See Install Lean.
Contributing
Please read our Contribution Guidelines first.
Building from Source
See Building Lean.