diff options
| author | Hugo Herbelin | 2014-09-03 20:39:26 +0200 |
|---|---|---|
| committer | Hugo Herbelin | 2014-09-10 10:58:06 +0200 |
| commit | b3a5450370b64ef59bd08f9ac2dc3862b9a37e6c (patch) | |
| tree | d561d78f04ab53265bf9203ef738737f3cfa4a4b | |
| parent | 47fc0cbd21c954dbed9ee021dbb7c54ac981d2d8 (diff) | |
Example for apply and evars.
| -rw-r--r-- | test-suite/success/apply.v | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test-suite/success/apply.v b/test-suite/success/apply.v index e10f621aa3..6a2012d91d 100644 --- a/test-suite/success/apply.v +++ b/test-suite/success/apply.v @@ -510,3 +510,20 @@ intros. apply H. pose proof I as H0. (* Test that H0 does not exist *) Abort. + +(* The first example below failed at some time in between 18 August + 2014 and 2 September 2014 *) + +Goal forall x, 2=0 -> x+1=2 -> (forall x, S x = 0) -> True. +intros x H H0 H1. +eapply eq_trans in H. 2:apply H0. +rewrite H1 in H. +change (x+0=0) in H. (* Check the result in H1 *) +Abort. + +Goal forall x, 2=x+1 -> (forall x, S x = 0) -> 2 = 0. +intros x H H0. +eapply eq_trans. apply H. +rewrite H0. +change (x+0=0). +Abort. |
