Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
This PR makes `IsPreorder`, `IsPartialOrder`, `IsLinearPreorder` and `IsLinearOrder` extend `BEq` and `Ord` as appropriate, adds the `LawfulOrderBEq` and `LawfulOrderOrd` typeclasses relating `BEq` and `Ord` to `LE`, and adds many lemmas and instances. Note: This PR contains a refactoring where `Init.Data.Ord` is moved to `Init.Data.Ord.Basic`. If I added `Init.Data.Ord` simply importing all submodules, git would not be able to determine that `Init.Data.Ord` was renamed to `Init.Data.Ord.Basic`. This could lead to unnecessary merge conflicts in the future. Hence, I chose the name `Init.Data.OrdRoot` instead of `Init.Data.Ord` temporarily. After this PR, I will rename this module back to `Init.Data.Ord` in a separate PR. (This is a copy of #9430: I will not touch that PR because it currently allows to debug a CI problem and pushing commits might break the reproducibility.) |
||
|---|---|---|
| .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 Setting Up Lean.
Contributing
Please read our Contribution Guidelines first.
Building from Source
See Building Lean.