| 1 |
Require Import TestSuite.admit. |
| 2 |
Set Implicit Arguments. |
| 3 |
Set Universe Polymorphism. |
| 4 |
Generalizable All Variables. |
| 5 |
|
| 6 |
Record Category (obj : Type) := { Morphism : obj -> obj -> Type }. |
| 7 |
|
| 8 |
Definition SetCat : @Category Set := @Build_Category Set (fun s d => s -> d). |
| 9 |
|
| 10 |
Record Foo := { foo : forall A (f : Morphism SetCat A A), True }. |
| 11 |
|
| 12 |
Local Notation PartialBuild_Foo pf := (@Build_Foo (fun A f => pf A f)). |
| 13 |
|
| 14 |
Set Printing Universes. |
| 15 |
#[local] Definition SetCatFoo' : Foo. |
| 16 |
let pf := fresh in |
| 17 |
let pfT := fresh in |
| 18 |
evar (pfT : Prop); |
| 19 |
cut pfT; |
| 20 |
[ subst pfT; intro pf; |
| 21 |
let t := constr:(PartialBuild_Foo pf) in |
| 22 |
let t' := (eval simpl in t) in |
| 23 |
exact t' |
| 24 |
| ]. |
| 25 |
admit. |
| 26 |
(* Toplevel input, characters 15-20: |
| 27 |
Error: Universe inconsistency (cannot enforce Set <= Prop). |
| 28 |
*) |
| 29 |
Abort. |