aboutsummaryrefslogtreecommitdiffhomepage
path: root/theories/Arith/Peano_dec.v
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2001-08-05 19:04:16 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2001-08-05 19:04:16 +0000
commit83c56744d7e232abeb5f23e6d0f23cd0abc14a9c (patch)
tree6d7d4c2ce3bb159b8f81a4193abde1e3573c28d4 /theories/Arith/Peano_dec.v
parentf7351ff222bad0cc906dbee3c06b20babf920100 (diff)
Expérimentation de NewDestruct et parfois NewInduction
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@1880 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'theories/Arith/Peano_dec.v')
-rwxr-xr-xtheories/Arith/Peano_dec.v10
1 files changed, 5 insertions, 5 deletions
diff --git a/theories/Arith/Peano_dec.v b/theories/Arith/Peano_dec.v
index b02d5a324..d847a060d 100755
--- a/theories/Arith/Peano_dec.v
+++ b/theories/Arith/Peano_dec.v
@@ -12,20 +12,20 @@ Require Decidable.
Theorem O_or_S : (n:nat)({m:nat|(S m)=n})+{O=n}.
Proof.
-Induction n.
+NewInduction n.
Auto.
-Intros p H; Left; Exists p; Auto.
+Left; Exists n; Auto.
Qed.
Theorem eq_nat_dec : (n,m:nat){n=m}+{~(n=m)}.
Proof.
-Induction n; Induction m; Auto.
-Intros q H'; Elim (H q); Auto.
+NewInduction n; NewInduction m; Auto.
+Elim (IHn m); Auto.
Qed.
Hints Resolve O_or_S eq_nat_dec : arith.
Theorem dec_eq_nat:(x,y:nat)(decidable (x=y)).
Intros x y; Unfold decidable; Elim (eq_nat_dec x y); Auto with arith.
-Save.
+Qed.