Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
The subst notation substitues in the expected type, if present, or in the type of the argument, if no expected type is known. If there is an expected type it already fails if it cannot find the equations' left hand side or right hand side. But if the expected type is not known and the equation's lhs is not present in the second argument's type, it will happily do a no-op-substitution. This is inconsistent and unlikely what the user intended to do, so we now print an error message now. This still only looks for the lhs; search for the rhs as well seems prudent, but I’ll leave that for a separate PR, to better diagnose the impact on mathlib. This triggers a small number of pointless uses of subst in mathlib, see https://github.com/leanprover-community/mathlib4/pull/12451 |
||
|---|---|---|
| .github | ||
| doc | ||
| images | ||
| nix | ||
| script | ||
| src | ||
| stage0 | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .ignore | ||
| CMakeLists.txt | ||
| 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.