Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
This PR adds a comprehensive public API for constructing maximally shared expression applications and performing beta reduction in the `Sym` framework. These functions were previously defined locally in the VC generator and cbv tactic, and are needed by downstream `SymM`-based tools. New functions in `Lean.Meta.Sym.Internal` (generic over `MonadShareCommon`): - `mkAppS₆` through `mkAppS₁₁` (higher-arity application builders) - `mkAppRangeS`, `mkAppNS` (forward application over arrays/ranges) - `mkAppRevRangeS`, `mkAppRevS` (reversed application over arrays/ranges) New public functions in `Lean.Meta.Sym` (`SymM`): - `betaRevS` and `betaS` (beta reduction with max sharing) - `mkForallFVarsS` (forall abstraction with max sharing) The `AlphaShareBuilderM`-specific `mkAppRevRangeS` in `InstantiateS.lean` is replaced by the generic version from `Internal`, and the internal `betaRevS` is renamed to `betaRevS'`. The `Cbv.mkAppNS` now delegates to `Internal.mkAppNS`. --------- Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| .github | ||
| .vscode | ||
| doc | ||
| images | ||
| 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 | ||
| 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 Install Lean.
Contributing
Please read our Contribution Guidelines first.
Building from Source
See Building Lean.