| 1 |
Set Universe Polymorphism. |
| 2 |
|
| 3 |
Section S. |
| 4 |
Sort s. |
| 5 |
|
| 6 |
Inductive foo@{s1 s2;u} (A:Type@{s2;u}) : Type@{s1;u} := X (_:A). |
| 7 |
|
| 8 |
Inductive bar (A:Type@{s;Set}) : Prop := Y (_:A). |
| 9 |
End S. |
| 10 |
|
| 11 |
Fail Definition bla (A:Type) (x:foo@{SProp Prop Type;_} A) : A := match x with X _ v => v end. |
| 12 |
|
| 13 |
(* From Stdlib Require Import Hurkens. *) |
| 14 |
|
| 15 |
(* Lemma bad : False. *) |
| 16 |
(* Proof. *) |
| 17 |
(* unshelve eapply NoRetractFromSmallPropositionToProp.paradox. *) |
| 18 |
(* - exact (foo Prop). *) |
| 19 |
(* - apply X. *) |
| 20 |
(* - apply bla. *) |
| 21 |
(* - simpl. trivial. *) |
| 22 |
(* - simpl. trivial. *) |
| 23 |
(* Qed. *) |
| 24 |
|
| 25 |
|
| 26 |
Definition bla (A:Prop) (x:bar A) : A := match x with Y _ v => v end. |
| 27 |
(* Anomaly "Quality γfoo.s undefined." *) |