Skip to content

feat: add unlock_limits command to disable all resource limits#13211

Merged
Kha merged 1 commit intoleanprover:masterfrom
Kha:push-wwxqrsqxqmzq
Apr 1, 2026
Merged

feat: add unlock_limits command to disable all resource limits#13211
Kha merged 1 commit intoleanprover:masterfrom
Kha:push-wwxqrsqxqmzq

Conversation

@Kha
Copy link
Copy Markdown
Member

@Kha Kha commented Mar 31, 2026

This PR adds an unlock_limits command that sets maxHeartbeats, maxRecDepth, and synthInstance.maxHeartbeats to 0, disabling all core resource limits. Also makes maxRecDepth 0 mean "no limit" (matching the existing behavior of maxHeartbeats 0).

This adds an `unlock_limits` command that sets `maxHeartbeats`,
`maxRecDepth`, and `synthInstance.maxHeartbeats` to 0, disabling all
core resource limits. It works at command level and with `in`:

  unlock_limits          -- command level
  unlock_limits in ...   -- scoped to a command

Also makes `maxRecDepth 0` mean "no limit" (matching the existing
behavior of `maxHeartbeats 0`).
@Kha Kha requested review from hargoniX and leodemoura as code owners March 31, 2026 12:51
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Mar 31, 2026
@leanprover-bot
Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI can not be attempted yet, as the nightly-testing-2026-03-25 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-manual, reference manual CI should run now. You can force reference manual CI using the force-manual-ci label. (2026-03-31 13:56:11)

mathlib-nightly-testing bot pushed a commit to leanprover-community/batteries that referenced this pull request Mar 31, 2026
@github-actions github-actions bot added the mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN label Mar 31, 2026
mathlib-nightly-testing bot pushed a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Mar 31, 2026
@mathlib-lean-pr-testing mathlib-lean-pr-testing bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Mar 31, 2026
@mathlib-lean-pr-testing
Copy link
Copy Markdown

Mathlib CI status (docs):

@Kha Kha enabled auto-merge April 1, 2026 09:26
@Kha Kha added this pull request to the merge queue Apr 1, 2026
Merged via the queue into leanprover:master with commit f11d137 Apr 1, 2026
30 of 32 checks passed
@Kha Kha deleted the push-wwxqrsqxqmzq branch April 1, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builds-mathlib CI has verified that Mathlib builds against this PR changelog-other mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants