diff options
| author | delahaye | 2000-05-03 17:31:07 +0000 |
|---|---|---|
| committer | delahaye | 2000-05-03 17:31:07 +0000 |
| commit | fc38a7d8f3d2a47aa8eee570747568335f3ffa19 (patch) | |
| tree | 9ddc595a02cf1baaab3e9595d77b0103c80d66bf /theories/Bool | |
| parent | 5b0f516e7e1f6d2ea8ca0485ffe347a613b01a5c (diff) | |
Ajout du langage de tactiques
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@401 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'theories/Bool')
| -rwxr-xr-x | theories/Bool/Bool.v | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/theories/Bool/Bool.v b/theories/Bool/Bool.v index ab1a4b9e04..7737c48378 100755 --- a/theories/Bool/Bool.v +++ b/theories/Bool/Bool.v @@ -38,7 +38,7 @@ Hints Resolve diff_true_false : bool v62. Lemma diff_false_true : ~false=true. Goal. -(Red; Intros H; Apply diff_true_false). +Red; Intros H; Apply diff_true_false. Symmetry. Assumption. Save. @@ -52,7 +52,7 @@ Hints Resolve eq_true_false_abs : bool. Lemma not_true_is_false : (b:bool)~b=true->b=false. Destruct b. Intros. -(Red in H; Elim H). +Red in H; Elim H. Reflexivity. Intros abs. Reflexivity. @@ -185,13 +185,13 @@ Save. Lemma negb_orb : (b1,b2:bool) (negb (orb b1 b2)) = (andb (negb b1) (negb b2)). Proof. - (Destruct b1; Destruct b2; Simpl; Reflexivity). + Destruct b1; Destruct b2; Simpl; Reflexivity. Qed. Lemma negb_andb : (b1,b2:bool) (negb (andb b1 b2)) = (orb (negb b1) (negb b2)). Proof. - (Destruct b1; Destruct b2; Simpl; Reflexivity). + Destruct b1; Destruct b2; Simpl; Reflexivity. Qed. Lemma negb_sym : (b,b':bool)(b'=(negb b))->(b=(negb b')). @@ -223,12 +223,12 @@ Save. Lemma orb_prop : (a,b:bool)(orb a b)=true -> (a = true)\/(b = true). -Induction a; Induction b; Simpl; Try (Intro H;Discriminate H); Auto with bool. +Induction a; Induction b; Simpl; Try '(Intro H;Discriminate H); Auto with bool. Save. Lemma orb_prop2 : (a,b:bool)(Is_true (orb a b)) -> (Is_true a)\/(Is_true b). -Induction a; Induction b; Simpl; Try (Intro H;Discriminate H); Auto with bool. +Induction a; Induction b; Simpl; Try '(Intro H;Discriminate H); Auto with bool. Save. Lemma orb_true_intro @@ -306,14 +306,16 @@ Lemma andb_prop : (a,b:bool)(andb a b) = true -> (a = true)/\(b = true). Proof. - Induction a; Induction b; Simpl; Try (Intro H;Discriminate H);Auto with bool. + Induction a; Induction b; Simpl; Try '(Intro H;Discriminate H); + Auto with bool. Save. Hints Resolve andb_prop : bool v62. Lemma andb_prop2 : (a,b:bool)(Is_true (andb a b)) -> (Is_true a)/\(Is_true b). Proof. - Induction a; Induction b; Simpl; Try (Intro H;Discriminate H); Auto with bool. + Induction a; Induction b; Simpl; Try '(Intro H;Discriminate H); + Auto with bool. Save. Hints Resolve andb_prop2 : bool v62. |
