Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
The current commit only detects lambda expressions that should be lifted eagerly. @kha I added a comment describing why this optimization is useful. Right now, we are not writing code that benefits from this optimization, but it seems very useful for implementing combinators that return a tuple containing functions. I think this is a useful idiom, for example, the combinator may have two parts: one that is the actual action, and another that collects "static properties". Last summer, if I remember correctly, you considered building this kind of combinator for the new Lean parser, but gave up because we did not have compiler support for it. In your case, the "static property" would be the set of tokens. It could also contain the left most token for initializing the Pratt parser table, etc. This commit is the first step to make this kind of code efficient. It will also improve the experiment at `tests/playground/parser/` |
||
|---|---|---|
| .github | ||
| bin | ||
| doc | ||
| gen | ||
| images | ||
| lean4-mode | ||
| library | ||
| script | ||
| src | ||
| tests | ||
| .appveyor.yml | ||
| .clang-format | ||
| .codecov.yml | ||
| .gitattributes | ||
| .gitignore | ||
| .travis.yml | ||
| LICENSE | ||
| README.md | ||
| License | Windows | Linux / macOS | Test Coverage | Chat |
|---|---|---|---|---|
![]() |
About
- Homepage
- Theorem Proving in Lean
- Core library
- Change Log
- FAQ
- For HoTT mode, please use Lean2.
Installation
Stable and nightly binary releases of Lean are available on the homepage. For building Lean from source, see the build instructions.
Miscellaneous
- Building Doxygen Documentation:
doxygen src/Doxyfile - Coding Style
- Library Style Conventions
- Git Commit Conventions
- Automatic Builds
- Syntax Highlight Lean Code in LaTeX
- Exporting, and reference type-checkers
