lean4-htt/tests/elab/unlock_limits.lean
Sebastian Ullrich f11d137a30
feat: add unlock_limits command to disable all resource limits (#13211)
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`).
2026-04-01 09:26:13 +00:00

11 lines
229 B
Text

module
import Lean
open Lean in
unlock_limits in
run_cmd do
let opts ← getOptions
assert! maxHeartbeats.get opts == 0
assert! maxRecDepth.get opts == 0
assert! opts.get? `synthInstance.maxHeartbeats == some (0 : Nat)