Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
This PR adds a `dsimp` cache to `simp`. Previously each `dsimp` call from `simp` started with a fresh cache. For example, when simplifying `a * b` for `a b : A`, the type `A` is now only visited once by `dsimp`, instead of at least 3 times. [ Mathlib bench](https://github.com/leanprover-community/mathlib4/pull/22812#issuecomment-2712043349): ``` Metric Change ============================= instructions -8.1% task-clock -7.4% simp -45.6% instantiate metavars -11.7% share common exprs -8.2% ``` [#lean4 > Enormous speedup from `dsimp` caching in `simp`](https://leanprover.zulipchat.com/#narrow/channel/270676-lean4/topic/Enormous.20speedup.20from.20.60dsimp.60.20caching.20in.20.60simp.60) --------- Co-authored-by: Kim Morrison <kim@tqft.net> |
||
|---|---|---|
| .github | ||
| doc | ||
| images | ||
| nix | ||
| 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
Installation
See Setting Up Lean.
Contributing
Please read our Contribution Guidelines first.
Building from Source
See Building Lean.