Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
This PR changes the AIG representation of constants from `const (b : Bool)` to a single constructor `false`. Since #7381 `Ref` contains an `invert` flag meaning the constant `true` can be represented as a `Ref` to `false` with `invert` set, so no expressivity is lost. The main advantage to this representation is that it allows pattern matching on constants to match just on the `invert` field rather than on both `invert` and the constant value or having to XOR the two together. This representation is also standard in other AIG frameworks, such as the [Aiger standard](https://fmv.jku.at/aiger/FORMAT.aiger). This PR also generalizes the idempotency rule in `mkGateCached` from `(a /\ b) = a` when `(a = b)` to also cover `(¬a /\ ¬b) = ¬a` when `a = b` as it was not covered. |
||
|---|---|---|
| .github | ||
| doc | ||
| images | ||
| nix | ||
| releases | ||
| 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
- FAQ
Installation
See Setting Up Lean.
Contributing
Please read our Contribution Guidelines first.
Building from Source
See Building Lean (documentation source: doc/make/index.md).