| 1 |
Axiom pair : nat -> nat -> nat -> Prop. |
| 2 |
Axiom pl : (nat -> Prop) -> (nat -> Prop) -> (nat -> Prop). |
| 3 |
Axiom plImp : forall k P Q, |
| 4 |
pl P Q k -> forall (P':nat -> Prop), |
| 5 |
(forall k', P k' -> P' k') -> forall (Q':nat -> Prop), |
| 6 |
(forall k', Q k' -> Q' k') -> |
| 7 |
pl P' Q' k. |
| 8 |
|
| 9 |
Definition nexists (P:nat -> nat -> Prop) : nat -> Prop := |
| 10 |
fun k' => exists k, P k k'. |
| 11 |
|
| 12 |
Goal forall s k k' m, |
| 13 |
(pl k' (nexists (fun w => (nexists (fun b => pl (pair w w) |
| 14 |
(pl (pair s b) |
| 15 |
(nexists (fun w0 => (nexists (fun a => pl (pair b w0) |
| 16 |
(nexists (fun w1 => (nexists (fun c => pl |
| 17 |
(pair a w1) (pl (pair a c) k))))))))))))))) m. |
| 18 |
intros. |
| 19 |
eapply plImp; [ | eauto | intros ]. |
| 20 |
2:econstructor. |
| 21 |
2:econstructor. |
| 22 |
2:eapply plImp; [ | eauto | intros ]. |
| 23 |
3:eapply plImp; [ | eauto | intros ]. |
| 24 |
4:econstructor. |
| 25 |
4:econstructor. |
| 26 |
4:eapply plImp; [ | eauto | intros ]. |
| 27 |
5:econstructor. |
| 28 |
5:econstructor. |
| 29 |
5:eauto. |
| 30 |
4:eauto. |
| 31 |
3:eauto. |
| 32 |
2:eauto. |
| 33 |
|
| 34 |
assert (X := 1). |
| 35 |
clear X. (* very slow! *) |
| 36 |
|
| 37 |
simpl. (* exception Not_found *) |
| 38 |
|
| 39 |
Admitted. |