| 1 |
Fail Fixpoint F (u : unit) : Prop := |
| 2 |
(fun p : {P : Prop & _} => match p with existT _ _ P => P end) |
| 3 |
(existT (fun P => False -> P) (F tt) _). |
| 4 |
(* Anomaly: A universe comparison can only happen between variables. |
| 5 |
Please report. *) |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
Definition g (x : Prop) := x. |
| 10 |
|
| 11 |
Definition h (y : Type) := y. |
| 12 |
|
| 13 |
Definition eq_hf : h = g :> (Prop -> Type) := |
| 14 |
@eq_refl (Prop -> Type) g. |
| 15 |
|
| 16 |
Set Printing All. |
| 17 |
Set Printing Universes. |
| 18 |
Fail Definition eq_hf : h = g :> (Prop -> Type) := |
| 19 |
eq_refl g. |
| 20 |
(* Originally an anomaly, now says |
| 21 |
Toplevel input, characters 48-57: |
| 22 |
Error: |
| 23 |
The term "@eq_refl (forall _ : Prop, Prop) g" has type |
| 24 |
"@eq (forall _ : Prop, Prop) g g" while it is expected to have type |
| 25 |
"@eq (forall _ : Prop, Type (* Top.16 *)) (fun y : Prop => h y) g" |
| 26 |
(Universe inconsistency: Cannot enforce Prop = Top.16)). *) |