Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
This PR adds a `csimp` lemma for faster runtime evaluation of `Int.pow` in terms of `Nat.pow`. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > Replaces `Int.pow` evaluation with a `@[csimp]` lemma using `Nat.pow` and adds supporting lemmas (`pow_mul`, `neg_pow`, nonneg results). > > - **Performance/runtime**: > - Introduce `powImp` and `@[csimp]` theorem `pow_eq_powImp` to evaluate `Int.pow` via `Nat.pow` with sign handling. > - **Math lemmas (supporting)**: > - `Int.pow_mul`: `a ^ (n * m) = (a ^ n) ^ m`. > - `Int.sq_nonnneg`: nonnegativity of `m ^ 2`. > - `Int.pow_nonneg_of_even`: nonnegativity for even exponents. > - `Int.neg_pow`: `(-m)^n = (-1)^(n % 2) * m^n`. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 66ac236db768c2bbd317792a0792db23da8a4f09. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY --> |
||
|---|---|---|
| .claude | ||
| .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 Install Lean.
Contributing
Please read our Contribution Guidelines first.
Building from Source
See Building Lean.