theory Scratch imports Pure begin ML \ fun sleep_tac t st = if Method.detect_closure_state st then Seq.empty else (OS.Process.sleep t; Seq.single st); \ lemma "PROP A" apply (tactic \sleep_tac (seconds 0.5) APPEND sleep_tac (seconds 1.0)\) back oops end