| 1 |
#[universes(polymorphic)] |
| 2 |
Section foo. |
| 3 |
Polymorphic Universes A B. |
| 4 |
Fail Monomorphic Constraint A <= B. |
| 5 |
End foo. |
| 6 |
(* gives an anomaly Universe undefined *) |
| 7 |
|
| 8 |
Universes X Y. |
| 9 |
#[universes(polymorphic)] |
| 10 |
Section Foo. |
| 11 |
Polymorphic Universes Z W. |
| 12 |
Polymorphic Constraint W < Z. |
| 13 |
|
| 14 |
Fail Monomorphic Definition bla := Type@{W}. |
| 15 |
Polymorphic Definition bla := Type@{W}. |
| 16 |
#[universes(polymorphic)] |
| 17 |
Section Bar. |
| 18 |
Fail Monomorphic Constraint X <= Z. |
| 19 |
End Bar. |
| 20 |
End Foo. |
| 21 |
|
| 22 |
Axiom PreOrder : forall (A : Type) (r : A -> A -> Type), Type. |
| 23 |
|
| 24 |
#[universes(polymorphic)] |
| 25 |
Section qux. |
| 26 |
Polymorphic Universes A. |
| 27 |
#[universes(polymorphic)] |
| 28 |
Section bar. |
| 29 |
Fail Monomorphic Context {A : Type@{A}} {rA : A -> A -> Prop} {PO : PreOrder A rA}. |
| 30 |
End bar. |
| 31 |
End qux. |