diff options
| author | Hugo Herbelin | 2014-11-02 22:11:54 +0100 |
|---|---|---|
| committer | Hugo Herbelin | 2014-11-02 22:23:20 +0100 |
| commit | 844431761eaaf0c42d7daf3ae21de731aa230eee (patch) | |
| tree | 1ad54331eb08d2b860bfaa1ae95e6a08ecec2771 /test-suite | |
| parent | 4df1ddc6d6bd0707396337869b663b4c8f930f60 (diff) | |
Improving elimination with indices, getting rid of intrusive residual
local definitions...
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/success/destruct.v | 29 |
1 files changed, 5 insertions, 24 deletions
diff --git a/test-suite/success/destruct.v b/test-suite/success/destruct.v index 7c1e09d6d7..cca54bf1c4 100644 --- a/test-suite/success/destruct.v +++ b/test-suite/success/destruct.v @@ -289,41 +289,22 @@ intros. destruct (h 0). Abort. -(* These ones are not satisfactory at the current time +(* Check absence of useless local definitions *) Section S2. Variable H : 1=1. Goal 0=1. destruct H. -(* Should expand the n... *) - n := 1 : nat - H : n = n - ============================ - 0 = n +Fail clear n. (* Check that there is no n as it was in Coq <= 8.4 *) Abort. End S2. -(* Should expand the n... *) -Goal 1=1->0=1. -intro H. -destruct H. -(* - n := 1 : nat - ============================ - 0 = n -*) - -(* Should expand the x0... *) Goal forall x:nat, x=x->x=1. intros x H. destruct H. -(* - x : nat - x0 := x : nat - ============================ - x0=1 -*) -*) +Fail clear n. (* Check that there is no n as it was in Coq <= 8.4 *) +Fail clear H. (* Check that H has been removed *) +Abort. (* Check support for induction arguments which do not expose an inductive type rightaway *) |
