diff options
Diffstat (limited to 'theories/Arith/EqNat.v')
| -rwxr-xr-x | theories/Arith/EqNat.v | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/theories/Arith/EqNat.v b/theories/Arith/EqNat.v index dde9daa4c3..ecce3f840a 100755 --- a/theories/Arith/EqNat.v +++ b/theories/Arith/EqNat.v @@ -51,3 +51,18 @@ Fixpoint beq_nat [n:nat] : nat -> bool := | (S _) O => false | (S n1) (S m1) => (beq_nat n1 m1) end. + +Lemma beq_nat_refl : (x:nat)true=(beq_nat x x). +Proof. + Induction x; Simpl; Auto. +Qed. + +Definition beq_nat_eq : (x,y:nat)true=(beq_nat x y)->x=y. +Proof. + Double Induction 1 2; Simpl. + Reflexivity. + Intros; Discriminate H0. + Intros; Discriminate H0. + Intros; Case (H0 ? H1); Reflexivity. +Defined. + |
