Skip to content
Snippets Groups Projects
Commit 0a7cb770 authored by Ralf Jung's avatar Ralf Jung Committed by Robbert Krebbers
Browse files

add map_difference_empty

parent d6b32453
No related branches found
No related tags found
1 merge request!234some map lemmas
......@@ -2380,6 +2380,12 @@ Proof.
apply map_empty; intros i. rewrite lookup_difference_None.
destruct (m !! i); eauto.
Qed.
Lemma map_difference_empty {A} (m : M A) : m = m.
Proof.
apply map_eq. intros i. apply option_eq. intros x.
rewrite lookup_difference_Some. rewrite lookup_empty.
naive_solver.
Qed.
End theorems.
(** ** The seq operation *)
......
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