Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
This PR removes the `Subarray`-specific `toArray`, `foldlM` and `foldl` methods and instead provides these operations on `Std.Slice`, which are implemented with the `ToIterator` instance of the slice. Calling `subarray.toArray` etc. still works, since `Subarray` is an abbreviation for `Slice _`. Because the benchmarks are not so clear, to be safe, I will merge this only after the release. In contrast to the ranges, the iteration over slices is not quite as efficient as the old `Subarray`-specific implementation, which would require either more optimizations in the iterator library (special `IteratorLoop` and `IteratorCollect` implementations) or better unboxing support by the compiler. |
||
|---|---|---|
| .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.