Commit 8fdeb77f authored by Robbert Krebbers's avatar Robbert Krebbers

Prove `m ∖ m = ∅` for finite maps.

parent 55ed83e2
......@@ -1884,6 +1884,11 @@ Proof.
destruct (m1 !! i) as [x'|], (m2 !! i);
try specialize (Hm1m2 x'); compute; intuition congruence.
Qed.
Lemma map_difference_diag {A} (m : M A) : m m = .
Proof.
apply map_empty; intros i. rewrite lookup_difference_None.
destruct (m !! i); eauto.
Qed.
End theorems.
(** * Tactics *)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment