| 1 |
|
| 2 |
Set Universe Polymorphism. |
| 3 |
Set Printing Universes. |
| 4 |
|
| 5 |
(* Fully explicit definition: we would like to spare the annotation u *) |
| 6 |
Definition id@{s;u|} (A : Type@{s;u}) (a : A) : A := a. |
| 7 |
|
| 8 |
|
| 9 |
(* Some kind of typical ambiguity can be simulated by rebinding Type to an auxilliary definition T*) |
| 10 |
Definition T@{s;u|} := Type@{s;u}. |
| 11 |
Definition idT@{s;+|} (A : T@{s;_}) (a : A) : A := a. |
| 12 |
|
| 13 |
(* The actual problem *) |
| 14 |
Definition id0@{s;+|} (A : Type@{s;_}) (a : A) : A := a. |
| 15 |
(* |
| 16 |
Error: |
| 17 |
Syntax error: [universe] expected after '|' (in [sort]). |
| 18 |
*) |
| 19 |
|
| 20 |
(* check that we didn't forget the quality annotation *) |
| 21 |
Check fun (A:SProp) (x:A) => id0 A x. |