diff options
author | Hugo Herbelin <Hugo.Herbelin@inria.fr> | 2015-05-15 11:31:16 +0200 |
---|---|---|
committer | Hugo Herbelin <Hugo.Herbelin@inria.fr> | 2015-05-15 11:42:39 +0200 |
commit | 8aebd0c751db55c0301518d8ed55b8ac7bccae27 (patch) | |
tree | fd80abbe8d40b3d22e8d61c2fb8015e2e139d1bc /test-suite/success/subst.v | |
parent | 5d015ae0d90fd7fd3d440acee6ccd501d8b63ba0 (diff) |
Turning "Set Regular Subst Tactic" on by default (for 8.6).
Diffstat (limited to 'test-suite/success/subst.v')
-rw-r--r-- | test-suite/success/subst.v | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test-suite/success/subst.v b/test-suite/success/subst.v new file mode 100644 index 000000000..8336f6a80 --- /dev/null +++ b/test-suite/success/subst.v @@ -0,0 +1,25 @@ +(* Test various subtleties of the "subst" tactics *) + +(* Should proceed from left to right (see #4222) *) +Goal forall x y, x = y -> x = 3 -> y = 2 -> x = y. +intros. +subst. +change (3 = 2) in H1. +change (3 = 3). +Abort. + +(* Should work with "x = y" and "x = t" equations (see #4214, failed in 8.4) *) +Goal forall x y, x = y -> x = 3 -> x = y. +intros. +subst. +change (3 = 3). +Abort. + +(* Should substitute cycles once, until a recursive equation is obtained *) +(* (failed in 8.4) *) +Goal forall x y, x = S y -> y = S x -> x = y. +intros. +subst. +change (y = S (S y)) in H0. +change (S y = y). +Abort. |