Skip to content

Instantly share code, notes, and snippets.

@glimonta
Created March 10, 2015 11:38
Show Gist options
  • Save glimonta/7416223877bb217317e9 to your computer and use it in GitHub Desktop.
Save glimonta/7416223877bb217317e9 to your computer and use it in GitHub Desktop.
What I think eval and eval_l should look like
lemma "eval (Ref e) s = do {
(v, s) ← eval_l e s;
(case v of (A _) ⇒ Some (v, s) | _ ⇒ None)
}"
lemma "eval_l (Derefl e) s = do {
(v, s) ← eval e s;
(case v of (A _) ⇒ Some (v, s) | _ ⇒ None)
}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment