summaryrefslogtreecommitdiff
path: root/theories/ZArith/Zbool.v
diff options
context:
space:
mode:
Diffstat (limited to 'theories/ZArith/Zbool.v')
-rw-r--r--theories/ZArith/Zbool.v7
1 files changed, 6 insertions, 1 deletions
diff --git a/theories/ZArith/Zbool.v b/theories/ZArith/Zbool.v
index 34771897..8cdd73cc 100644
--- a/theories/ZArith/Zbool.v
+++ b/theories/ZArith/Zbool.v
@@ -6,7 +6,7 @@
(* * GNU Lesser General Public License Version 2.1 *)
(************************************************************************)
-(* $Id: Zbool.v 12271 2009-08-11 10:29:45Z herbelin $ *)
+(* $Id$ *)
Require Import BinInt.
Require Import Zeven.
@@ -228,3 +228,8 @@ Proof.
discriminate.
Qed.
+Lemma Zeq_bool_if : forall x y, if Zeq_bool x y then x=y else x<>y.
+Proof.
+ intros. generalize (Zeq_bool_eq x y)(Zeq_bool_neq x y).
+ destruct Zeq_bool; auto.
+Qed. \ No newline at end of file