Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
This PR ensure that `bv_decide` can handle the simp normal form of a shift. Consider: ```lean theorem test1 (b s : BitVec 5) (hb : b = 0) (hs : s ≠ 0) : b <<< s = 0 := by bv_decide ``` This works out, however: ```lean theorem test2 (b s : BitVec 5) (hb : b = 0) (hs : s ≠ 0) : b <<< s = 0 := by simp bv_decide ``` this fails because the `simp` normal form adds `toNat` to the right hand argument of the `<<<` and `bv_decide` cannot deal with shifts by non-constant `Nat`. Discovered by @spdskatr |
||
|---|---|---|
| .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
- 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).