Skip to content
Snippets Groups Projects
Commit 40898af4 authored by Robbert Krebbers's avatar Robbert Krebbers
Browse files

Disambiguate an fmap.

Follow up of e1c5e026
parent 27c78b61
No related branches found
No related tags found
No related merge requests found
......@@ -151,7 +151,7 @@ Module interp_monad.
Proof. by inversion 1. Qed.
Lemma mret_inv {A} (v: A) s v' s' :
mret (M := InterpretM) v s = (inl v', s') v = v' s = s'.
mret (M:=InterpretM) v s = (inl v', s') v = v' s = s'.
Proof. by inversion 1. Qed.
Lemma interp_bind_inv A B (x: InterpretM A) (f: A InterpretM B) r s s' :
......@@ -176,7 +176,7 @@ Module interp_monad.
Qed.
Lemma interp_fmap_inv {A B} (f: A B) x s v s' :
(f <$> x) s = (inl v, s')
(fmap (M:=InterpretM) f x) s = (inl v, s')
v0, v = f v0 x s = (inl v0, s').
Proof.
rewrite /fmap /interp_fmap.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment