Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
There are several things done here: 1. Use the modified `simp_to_model` which already exists in hash maps. This version of `simp_to_model` allows specifying the query operations to use in addition to the modifying operations. This is mostly to improve elaboration time and actually increases olean size. 2. Instead of proving `toListModel_balance` directly, we write `toListModel_balanceₘ` and use that instead (this saves ~3 MB). 3. Use `fun_cases` and `dsimp` instead of `rw [x.eq_def]` more frequently in `Balancing.olean` (this saves a bit over 2 MB). 4. Mark `updateCell` and other functions dependent on it as `noncomputable`. The main problem with `updateCell` is how other functions, in particular `glue`, get recursively inlined, which blows the size of the IR (this saves ~1 MB). 5. Instead of using `simp_to_model` to prove results on `insert!`, `erase!`, etc., `simpa`s are used now, e.g. `simpa only [insert_eq_insert!] using isEmpty_insert h`. This mainly improves elaboration time although the olean size also goes down by ~0.3 MB. |
||
|---|---|---|
| .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).