| 1 |
Set Universe Polymorphism. |
| 2 |
|
| 3 |
Axiom Ty : Set. |
| 4 |
Axiom Exp : Ty -> Set. |
| 5 |
|
| 6 |
Axiom halts@{u} : forall {τ : Ty} (_ : Exp τ), Type@{u}. |
| 7 |
|
| 8 |
Axiom step_preserves_halting@{u|} : |
| 9 |
forall {τ : Ty} (e e' : Exp τ), (halts@{u} e) -> (halts@{u} e'). |
| 10 |
|
| 11 |
Axiom SN@{u} : forall {τ : Ty} (_ : Exp τ), Type@{u}. |
| 12 |
|
| 13 |
Lemma foo@{u} : forall |
| 14 |
(τ1 τ2 : Ty) |
| 15 |
(e e' e'' : Exp τ2) |
| 16 |
(X : @halts@{u} τ2 e) |
| 17 |
(Y : forall (x : Exp τ1) (_ : @SN@{u} τ1 x), @SN@{u} τ2 e'') |
| 18 |
(IHτ : forall (_ : @SN@{u} τ2 e''), False), |
| 19 |
prod (forall (x : Exp τ1) (_ : @SN@{u} τ1 x), False) (@halts@{u} τ2 e'). |
| 20 |
Proof. |
| 21 |
intros. |
| 22 |
pose proof (step_preserves_halting e e') as H2. |
| 23 |
split. |
| 24 |
+ refine (fun x H => IHτ (Y x H)). |
| 25 |
+ solve[firstorder]. |
| 26 |
Qed. |