lean4-htt/tests/lean/run/terminalAsSorry.lean
Leonardo de Moura 96fd2f195c
feat: add debug.terminalTacticsAsSorry (#8012)
This PR adds the option `debug.terminalTacticsAsSorry`. When enabled,
terminal tactics such as `grind` and `omega` are replaced with `sorry`.
Useful for debugging and fixing bootstrapping issues.
2025-04-18 00:10:59 +00:00

17 lines
312 B
Text

set_option debug.terminalTacticsAsSorry true
example (_ : x > 0) : False := by
omega
example (_ : x > 0) : False := by
grind
set_option debug.terminalTacticsAsSorry false
example (_ : x > 0) : False := by
fail_if_success omega
sorry
example (_ : x > 0) : False := by
fail_if_success grind
sorry