blob: f97a6a5bf3929ffb48bc4adab6d3a7e542355550 [file]
import Std.Tactic.Do
set_option sym.debug true
open Std.Do
set_option linter.deprecated.syntax false
axiom myfun : Except String Unit
@[spec]
axiom myfun_spec (h : True) :
⦃ ⌜ True ⌝ ⦄
myfun
⦃ ⇓ _ => ⌜ True ⌝ ⦄
@[spec]
def anotherfun : Except String Unit :=
if true then pure () else pure ()
noncomputable def program : Except String Unit := do
anotherfun
myfun
@[spec]
theorem spec :
⦃ ⌜ True ⌝ ⦄
program
⦃ ⇓ _ => ⌜ True ⌝ ⦄ := by
mvcgen [program]