diff options
| author | letouzey | 2006-05-31 21:55:30 +0000 |
|---|---|---|
| committer | letouzey | 2006-05-31 21:55:30 +0000 |
| commit | 6ca6bef6e701703ce38b89b81c89a61b2db3cb47 (patch) | |
| tree | 7113a7fb72190f1e240e2998f0f3f824b29cb6cb /theories/FSets/FMapWeakFacts.v | |
| parent | d16e14b9b73876c62e5bd5d8fa5753b43e553acc (diff) | |
petits ajouts
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@8882 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'theories/FSets/FMapWeakFacts.v')
| -rw-r--r-- | theories/FSets/FMapWeakFacts.v | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/theories/FSets/FMapWeakFacts.v b/theories/FSets/FMapWeakFacts.v index f53e1d2b5c..af8dccf536 100644 --- a/theories/FSets/FMapWeakFacts.v +++ b/theories/FSets/FMapWeakFacts.v @@ -326,6 +326,22 @@ rewrite <- H0; rewrite H2; rewrite H1; auto. auto. Qed. +Lemma empty_o : forall x, find x (empty elt) = None. +Proof. +intros. +case_eq (find x (empty elt)); intros; auto. +generalize (find_2 H). +rewrite empty_mapsto_iff; intuition. +Qed. + +Lemma empty_a : forall x, mem x (empty elt) = false. +Proof. +intros. +case_eq (mem x (empty elt)); intros; auto. +generalize (mem_2 H). +rewrite empty_in_iff; intuition. +Qed. + Lemma add_eq_o : forall m x y e, E.eq x y -> find y (add x e m) = Some e. Proof. |
