From 6522aa62d832837314dcef54735e6a4e55431571 Mon Sep 17 00:00:00 2001 From: Hugo Herbelin Date: Thu, 8 May 2014 13:24:16 +0200 Subject: Simplification and improvement of "subst x" in such a way that it works in the presence of local definitions referring to x and dependent in other hyps or concl. --- test-suite/success/rewrite.v | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test-suite') diff --git a/test-suite/success/rewrite.v b/test-suite/success/rewrite.v index 08c406be94..0e1e778635 100644 --- a/test-suite/success/rewrite.v +++ b/test-suite/success/rewrite.v @@ -129,3 +129,12 @@ intros. Fail rewrite H in H0. Abort. +(* Test subst in the presence of a dependent let-in *) +(* Was not working prior to May 2014 *) + +Goal forall x y, x=y+0 -> let z := x+1 in x+1=y -> z=z -> z=x. +intros. +subst x. (* was failing *) +rewrite H0. +reflexivity. +Qed. -- cgit v1.2.3