| 1 |
Sort s s' s''. |
| 2 |
|
| 3 |
Constraint s -> s'. |
| 4 |
Constraint s' -> s''. |
| 5 |
|
| 6 |
Polymorphic Axiom ad@{s;u} : forall A : Type@{s;u}, A. |
| 7 |
Polymorphic Definition t@{s s';u v|s -> s'} (A : Type@{s;u}) (B : Type@{s';v}) : A := ad A. |
| 8 |
|
| 9 |
(* This should succeed even though [s -> s''] is not declared *) |
| 10 |
Check t@{s s'';Set Set}. |
| 11 |
|
| 12 |
(* This should fail though as we don't have [s'' -> s'] or [s'' -> s] declared. *) |
| 13 |
Fail Check t@{s'' s';Set Set}. |
| 14 |
Fail Check t@{s'' s;Set Set}. |
| 15 |
|
| 16 |
(* But if we do this, both should work. *) |
| 17 |
Constraint s'' -> s. |
| 18 |
Check t@{s'' s';Set Set}. |
| 19 |
Check t@{s'' s;Set Set}. |