aboutsummaryrefslogtreecommitdiffhomepage
path: root/test-suite/failure
diff options
context:
space:
mode:
authorGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2007-10-16 08:22:54 +0000
committerGravatar herbelin <herbelin@85f007b7-540e-0410-9357-904b9bb8a0f7>2007-10-16 08:22:54 +0000
commit9fffb57ec13aea94f64c4d5107c19705181850a0 (patch)
tree72bea72abc262389765ba0c3948f3a4db80618a7 /test-suite/failure
parentfbee9ccc05924b187f00f9a6f5c54ba05e6ab645 (diff)
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. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/coq/trunk@10224 85f007b7-540e-0410-9357-904b9bb8a0f7
Diffstat (limited to 'test-suite/failure')
-rw-r--r--test-suite/failure/rewrite_in_hyp2.v8
1 files changed, 8 insertions, 0 deletions
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.