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

Add `map_zip_with_proper`.

parent f3982420
No related branches found
No related tags found
No related merge requests found
...@@ -214,6 +214,13 @@ Section setoid. ...@@ -214,6 +214,13 @@ Section setoid.
Proof. Proof.
intros ? m m' ? k; rewrite !lookup_fmap. by apply option_fmap_proper. intros ? m m' ? k; rewrite !lookup_fmap. by apply option_fmap_proper.
Qed. Qed.
Global Instance map_zip_with_proper `{Equiv B, Equiv C} (f : A B C) :
Proper (() ==> () ==> ()) f
Proper (() ==> () ==> ()) (map_zip_with (M:=M) f).
Proof.
intros Hf m1 m1' Hm1 m2 m2' Hm2. apply merge_ext; try done.
destruct 1; destruct 1; repeat f_equiv; constructor || done.
Qed.
End setoid. End setoid.
(** ** General properties *) (** ** General properties *)
......
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