| 1 |
Set Universe Polymorphism. |
| 2 |
Set Polymorphic Inductive Cumulativity. |
| 3 |
|
| 4 |
Record pType@{u} : Type@{u+1} := { pointed_type : Type@{u} }. |
| 5 |
|
| 6 |
Class IsGraph@{u} (A : Type@{u}) : Set := { }. |
| 7 |
|
| 8 |
Record CatEquiv@{u} {A : Type@{u}} {G : IsGraph@{u} A} (a b : A) : Set := {}. |
| 9 |
|
| 10 |
Declare Instance isgraph_ptype@{u v|u < v} : IsGraph@{v} pType@{u}. |
| 11 |
|
| 12 |
Axiom pfiber@{u} : pType@{u}. |
| 13 |
|
| 14 |
Set Typeclasses Debug. |
| 15 |
|
| 16 |
Axiom pequiv_pfiber : CatEquiv pfiber pfiber. |
| 17 |
(* succeeds on master, on this PR fails with |
| 18 |
Illegal application: |
| 19 |
The term "@CatEquiv@{Top.29}" of type "forall A : Type@{Top.29}, IsGraph@{Top.29} A -> A -> A -> Set" |
| 20 |
cannot be applied to the terms |
| 21 |
"pType@{Top.30}" : "Type@{Top.30+1}" |
| 22 |
"isgraph_ptype@{Top.32 Top.29}" : "IsGraph@{Top.29} pType@{Top.32}" |
| 23 |
"pfiber@{Top.30}" : "pType@{Top.30}" |
| 24 |
"pfiber@{Top.31}" : "pType@{Top.31}" |
| 25 |
The 2nd term has type "IsGraph@{Top.29} pType@{Top.32}" which should be a subtype of |
| 26 |
"IsGraph@{Top.29} pType@{Top.30}". *) |