diff options
author | filliatr <filliatr@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2003-06-13 12:12:08 +0000 |
---|---|---|
committer | filliatr <filliatr@85f007b7-540e-0410-9357-904b9bb8a0f7> | 2003-06-13 12:12:08 +0000 |
commit | f314c2a91775739f581ab8bacbeb58f57e2d4871 (patch) | |
tree | 8aaf92ed9e400d27cb4d37abca015eb4cf062e4a /theories/Bool | |
parent | fb7e6748d9b02fff8da1335dc3f4dedeb23a8f5d (diff) |
FSets, mais pas compile' par make world
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@4150 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'theories/Bool')
-rwxr-xr-x | theories/Bool/Bool.v | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/theories/Bool/Bool.v b/theories/Bool/Bool.v index d17741295..40e1f4a68 100755 --- a/theories/Bool/Bool.v +++ b/theories/Bool/Bool.v @@ -503,3 +503,38 @@ Lemma absoption_orb : (b1,b2:bool) Proof. NewDestruct b1; NewDestruct b2; Simpl; Reflexivity. Qed. + + +(** Misc. equalities between booleans (to be used by Auto) *) + +Lemma bool_1 : (b1,b2:bool)(b1=true <-> b2=true) -> b1=b2. +Proof. + Intros b1 b2; Case b1; Case b2; Intuition. +Qed. + +Lemma bool_2 : (b1,b2:bool)b1=b2 -> b1=true -> b2=true. +Proof. + Intros b1 b2; Case b1; Case b2; Intuition. +Qed. + +Lemma bool_3 : (b:bool) ~(negb b)=true -> b=true. +Proof. + Induction b; Intuition. +Qed. + +Lemma bool_4 : (b:bool) b=true -> ~(negb b)=true. +Proof. + Induction b; Intuition. +Qed. + +Lemma bool_5 : (b:bool) (negb b)=true -> ~b=true. +Proof. + Induction b; Intuition. +Qed. + +Lemma bool_6 : (b:bool) ~b=true -> (negb b)=true. +Proof. + Induction b; Intuition. +Qed. + +Hints Resolve bool_1 bool_2 bool_3 bool_4 bool_5 bool_6. |