diff options
| author | Maxime Dénès | 2017-08-29 14:37:55 +0200 |
|---|---|---|
| committer | Maxime Dénès | 2017-08-29 14:37:55 +0200 |
| commit | 751246d893470b95d3d96ef87fe6dc86950d8d63 (patch) | |
| tree | a4512b9db59c10ed761d124f63f18a30ce1f51aa /test-suite | |
| parent | 7e29b535397c98a46999ecdd827fa5f4cebc8798 (diff) | |
| parent | 4f392bc8114309f388791c1ddc7cc95cc021aa5e (diff) | |
Merge PR #830: Moving assert (the "Cut" rule) to new proof engine
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/success/forward.v | 11 | ||||
| -rw-r--r-- | test-suite/success/ltac.v | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test-suite/success/forward.v b/test-suite/success/forward.v index 0ed5b524f3..4e36dec15b 100644 --- a/test-suite/success/forward.v +++ b/test-suite/success/forward.v @@ -16,3 +16,14 @@ eremember (S (S ?[x])). instantiate (x:=0). reflexivity. Qed. + +(* Don't know if it is good or not but the compatibility tells that + the asserted goal to prove is subject to beta-iota but not the + asserted hypothesis *) + +Goal True. +assert ((fun x => x) False). +Fail match goal with |- (?f ?a) => idtac end. (* should be beta-iota reduced *) +2:match goal with _: (?f ?a) |- _ => idtac end. (* should not be beta-iota reduced *) +Abort. + diff --git a/test-suite/success/ltac.v b/test-suite/success/ltac.v index 1d35f1ef6c..29e373eaa5 100644 --- a/test-suite/success/ltac.v +++ b/test-suite/success/ltac.v @@ -337,3 +337,14 @@ Goal True. evar (0=0). Abort. +(* Test location of hypothesis in "symmetry in H". This was broken in + 8.6 where H, when the oldest hyp, was moved at the place of most + recent hypothesis *) + +Goal 0=1 -> True -> True. +intros H H0. +symmetry in H. +(* H should be the first hypothesis *) +match goal with h:_ |- _ => assert (h=h) end. (* h should be H0 *) +exact (eq_refl H0). +Abort. |
