Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
This PR improves how `grind` normalizes dependent implications during introduction. Previously, `grind` would introduce a hypothesis `h : p` for a goal of the form `.. ⊢ (h : p) → q h`, and then normalize and assert a non-dependent copy of `p`. As a result, the local context would contain both `h : p` and a separate `h' : p'`, where `p'` is the normal form of `p`. Moreover, `q` would still depend on the original `h`. After this commit, `grind` avoids creating a copy. The context will now contain only `h : p'`, and the new goal becomes `.. ⊢ q (he.mpr_prop h)`, where `he` is a proof of `p = p'`. |
||
|---|---|---|
| .github | ||
| doc | ||
| images | ||
| nix | ||
| releases | ||
| releases_drafts | ||
| script | ||
| src | ||
| stage0 | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .gitpod.Dockerfile | ||
| .gitpod.yml | ||
| .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
- Documentation Overview
- Language Reference
- 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).