blob: 778e4ba7f8547f1d3b6e6ecda0c869d990a4cadd [file]
import Std.Tactic.Do
set_option sym.debug true
open Std.Do
set_option linter.deprecated.syntax false
noncomputable def setZeroHead : StateM (List Nat) Unit := do
modify fun _ => [1, 0, 1, 2, 3, 4, 5]
pure ()
modify fun s => s.tail
pure ()
theorem setZeroHead_spec :
⦃⌜True⌝⦄
setZeroHead
⦃⇓ _ gns => ⌜∃ ns', gns = 0 :: ns'⌝⦄ := by
mvcgen [setZeroHead] -- should mintro through let/have bindings
mleave
rename_i t
exists t.2.tail