lean4-htt/tests/lean/run/grind_big_poly.lean
Leonardo de Moura b67fb4fa66
feat: polynomial operations with deep recursion and heartbeat checks (#9146)
This PR adds "safe" polynomial operations to `grind ring`. The use the
usual combinators: `withIncRecDepth` and `checkSystem`.
2025-07-02 00:05:28 +00:00

9 lines
357 B
Text

/--
trace: [grind.issues] maximum recursion depth has been reached
use `set_option maxRecDepth <num>` to increase limit
use `set_option diagnostics true` to get diagnostic information
-/
#guard_msgs (drop error, trace) in
set_option trace.grind.issues true in
example (x y z w : Int) : (x + y + z + w)^5000 - 1 = 0 := by
grind -- should not crash