lean4-htt/tests/server_interactive/isRflParallel.lean
Garmelon a3cb39eac9
chore: migrate more tests to new test suite (#12809)
This PR migrates most remaining tests to the new test suite. It also
completes the migration of directories like `tests/lean/run`, meaning
that PRs trying to add tests to those old directories will now fail.
2026-03-06 16:52:01 +00:00

42 lines
955 B
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import Lean.Server.Test.Cancel
open Lean Meta
/-!
The following should not deadlock: The `simp` tactic should be able to use `a_eq_b` even before
that theorem body is evaluated.
TODO: Doesn't work any more with the rfl extension being .async, as that waits for the body to be
evaluated.
-/
-- set_option trace.Elab.block true
set_option debug.skipKernelTC true
set_option backward.dsimp.useDefEqAttr false
set_option debug.tactic.simp.checkDefEqAttr false
axiom testSorry : α
opaque a : Nat
opaque b : Nat
theorem a_eq_b : a = b := by
-- Three possible ways to pretend this theorem takes a long time:
-- wait_for_unblock_async
-- run_tac
-- while true do
-- if (← Server.Test.Cancel.unblockedCancelTk.isSet) then
-- break
-- IO.sleep 30
-- sleep 100000
exact testSorry
theorem bar : 2 * a = 2 * b := by
congr 1
-- apply a_eq_b
simp only [a_eq_b]
run_tac
Server.Test.Cancel.unblockedCancelTk.set