Lean 4 fork for HoTT-compatible kernel extensions (Path types, transport, HITs). Maintained against upstream leanprover/lean4.
This PR adds `checkSystem` calls to the `bv_decide` tactic's main loops to improve IDE cancellation responsiveness. Previously, `bv_decide` had zero `checkSystem` calls in its entire codebase, meaning long-running invocations could not be cancelled promptly. Insertion points: - `fixpointPipeline` (normalization fixpoint loop) - `ReifiedBVExpr.of.go` (recursive BitVec expression reification) - `ReifiedBVLogical.of.go` (recursive boolean expression reification) - `reflectBV` (hypothesis loop) These cover the MetaM-based phases of `bv_decide`. The pure computation phases (bitblasting via `IO.lazyPure`, AIG→CNF conversion) remain without checks and would require restructuring to address. Gap measurements (at 6.0 Ginstr/s, using `LEAN_CHECK_SYSTEM_INTERVAL_INSN` from #13212): - `bv_decide_large_aig.lean`: before ~3.3s max gap (19,899M insn), after: pure bitblast/AIG gaps remain but reification and normalization phases are now interruptible - Other bv_decide bench files: normalization and reification loops are now responsive to cancellation Note: the largest remaining gaps in bv_decide benchmarks are in the kernel type checker (proof term checking, up to 10.5s on `bv_decide_mod.lean`) and in pure bitblasting — both out of scope for this PR. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .claude | ||
| .github | ||
| .vscode | ||
| 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 | ||
| 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.