| 1 |
Require Import TestSuite.admit. |
| 2 |
(* Test on definitions referring to section variables that are not any |
| 3 |
longer in the current context *) |
| 4 |
|
| 5 |
Section x. |
| 6 |
|
| 7 |
Hypothesis h : forall(n : nat), n < S n. |
| 8 |
|
| 9 |
Definition f(n m : nat)(less : n < m) : nat := n + m. |
| 10 |
|
| 11 |
Lemma a : forall(n : nat), f n (S n) (h n) = 1 + 2 * n. |
| 12 |
Proof. |
| 13 |
(* XXX *) admit. |
| 14 |
Qed. |
| 15 |
|
| 16 |
Lemma b : forall(n : nat), n < 3 + n. |
| 17 |
Proof. |
| 18 |
clear. |
| 19 |
intros n. |
| 20 |
Fail assert (H := a n). |
| 21 |
Abort. |
| 22 |
|
| 23 |
Let T := True. |
| 24 |
Definition p := I : T. |
| 25 |
|
| 26 |
Lemma paradox : False. |
| 27 |
Proof. |
| 28 |
clear. |
| 29 |
set (T := False). |
| 30 |
Fail pose proof p as H. |
| 31 |
Abort. |
| 32 |
|
| 33 |
End x. |