lean4-htt/tests/lean/interactive/isRflParallel.lean
euprunin 52e0742108
chore: fix spelling mistakes (#8711)
Co-authored-by: euprunin <euprunin@users.noreply.github.com>
2025-06-10 20:24:28 +00:00

42 lines
955 B
Text
Raw 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