From 9fffb57ec13aea94f64c4d5107c19705181850a0 Mon Sep 17 00:00:00 2001 From: herbelin Date: Tue, 16 Oct 2007 08:22:54 +0000 Subject: Vérification que "rewrite in" se comporte comme "rewrite" et échoue sans bêta-normaliser face à un bêta-rédex dont l'argument ne correspond pas à ce qui est à réécrire. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10224 85f007b7-540e-0410-9357-904b9bb8a0f7 --- test-suite/failure/rewrite_in_hyp2.v | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test-suite/failure/rewrite_in_hyp2.v (limited to 'test-suite/failure') diff --git a/test-suite/failure/rewrite_in_hyp2.v b/test-suite/failure/rewrite_in_hyp2.v new file mode 100644 index 000000000..a32037a21 --- /dev/null +++ b/test-suite/failure/rewrite_in_hyp2.v @@ -0,0 +1,8 @@ +(* Until revision 10221, rewriting in hypotheses of the form + "(fun x => phi(x)) t" with "t" not rewritable used to behave as a + beta-normalization tactic instead of raising the expected message + "nothing to rewrite" *) + +Goal forall b, S b = O -> (fun a => 0 = (S a)) b -> True. + intros b H H0. + rewrite H in H0. -- cgit v1.2.3