Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
This PR adds `simp` lemmas for `toInt_*` and `toNat_*` with arithmetic operation given the hypothesis of no-overflow (`toNat_add_of_not_uaddOverflow`, `toInt_add_of_not_saddOverflow`, `toNat_sub_of_not_usubOverflow`, `toInt_sub_of_not_ssubOverflow`, `toInt_neg_of_not_negOverflow`, `toNat_mul_of_not_umulOverflow`, `toInt_mul_of_not_smulOverflow`). In particular, these are `simp` since (1) the `rhs` is strictly simpler than the `lhs` and (2) this version is also simpler than the standard operation when the hypothesis is available. co-authored by @tobiasgrosser --------- Co-authored-by: Henrik Böving <hargonix@gmail.com> |
||
|---|---|---|
| .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.