Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
This PR adds infrastructure for parallel execution across Lean's tactic monads. - Add IO.waitAny' to Init/System/IO.lean for waiting on task completion - Add `Lean.Elab.Task` with `asTask` utilities for `CoreM`, `MetaM`, `TermElabM`, `TacticM` - Add `Lean.Elab.Parallel` with parallel execution strategies: * `par`/`par'` - collect results in original order * `parIter`/`parIterGreedy` - iterate over results (original or completion order) (also variants with a cancellation token) * `parFirst` - return first successful result This does *not* attempt to be a monad-polymorphic framework for parallelism. It's intentionally hard-coded to the Lean tactic monads which I need to work with. If there's desire to make this polymorphic, hopefully that can be done separately. |
||
|---|---|---|
| .claude | ||
| .github | ||
| 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 | ||
| 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 Install Lean.
Contributing
Please read our Contribution Guidelines first.
Building from Source
See Building Lean.