aboutsummaryrefslogtreecommitdiff
path: root/test-suite
diff options
context:
space:
mode:
authorsacerdot2005-05-18 19:30:44 +0000
committersacerdot2005-05-18 19:30:44 +0000
commit4cc1c1b288426ac929b59c4cafeccba532e074c1 (patch)
tree7c57b3c5a0421b24ebfd22efdae717142170d9b3 /test-suite
parent58b4bdc54c24e2f10f96b52bb5c1c673e9782918 (diff)
Implemented autorewrite with ... in hyp [using ...].
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@7034 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'test-suite')
-rw-r--r--test-suite/success/autorewritein.v819
1 files changed, 19 insertions, 0 deletions
diff --git a/test-suite/success/autorewritein.v8 b/test-suite/success/autorewritein.v8
new file mode 100644
index 0000000000..3e218099a0
--- /dev/null
+++ b/test-suite/success/autorewritein.v8
@@ -0,0 +1,19 @@
+Variable Ack : nat -> nat -> nat.
+
+Axiom Ack0 : forall m : nat, Ack 0 m = S m.
+Axiom Ack1 : forall n : nat, Ack (S n) 0 = Ack n 1.
+Axiom Ack2 : forall n m : nat, Ack (S n) (S m) = Ack n (Ack (S n) m).
+
+Hint Rewrite Ack0 Ack1 Ack2 : base0.
+
+Lemma ResAck0 : (Ack 2 2 = 7 -> False) -> False.
+Proof.
+ intros.
+ autorewrite with base0 in H using try (apply H; reflexivity).
+Qed.
+
+Lemma ResAck1 : forall H:(Ack 2 2 = 7 -> False), H=H -> False.
+Proof.
+ intros.
+ autorewrite with base0 in H using try (apply H1; reflexivity).
+Qed.