diff options
Diffstat (limited to 'test-suite/success/autorewritein.v8')
-rw-r--r-- | test-suite/success/autorewritein.v8 | 19 |
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 000000000..3e218099a --- /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. |