| 1 |
Set Universe Polymorphism. |
| 2 |
|
| 3 |
Definition foo@{u v} : Type@{v} := Type@{u}. |
| 4 |
Register Inline foo. |
| 5 |
|
| 6 |
(* if [typ] is inlined (in the source) the checker rejects bar, I guess because it |
| 7 |
doesn't use the Register Inline hint when doing its own compilation |
| 8 |
but does reuse the compilation of [typ] which did the incorrect inlining. *) |
| 9 |
Definition typ@{v u k} := Type@{v} = foo@{u v} :> Type@{k}. |
| 10 |
|
| 11 |
Lemma bar@{v u k|u < v, v < k} : typ@{v u k}. |
| 12 |
Proof. |
| 13 |
vm_cast_no_check (@eq_refl Type@{k} Type@{v}). |
| 14 |
Fail Qed. |
| 15 |
Abort. |
| 16 |
|
| 17 |
Lemma bar@{v u k|u < v, v < k} : typ@{v u k}. |
| 18 |
Proof. |
| 19 |
native_cast_no_check (@eq_refl Type@{k} Type@{v}). |
| 20 |
Fail Qed. |
| 21 |
Abort. |