lean4-htt/tests/elab/cbv_max_steps.lean
Wojciech Różowski 5cc6585c9b
chore: disable cbv usage warning (#12986)
This disables `cbv` usage warning and reflects that in the corresponding
unit tests.
2026-03-19 14:12:04 +00:00

10 lines
328 B
Text

-- Default limit works on a normal computation
example : (List.replicate 10 1).length = 10 := by cbv
-- Low limit triggers "maximum number of steps exceeded"
set_option cbv.maxSteps 10 in
/--
error: `simp` failed: maximum number of steps exceeded
-/
#guard_msgs (error) in
example : (List.replicate 10 1).length = 10 := by cbv