Debian Codegraph @

test-suite/bugs/HoTT_coq_002.v

raw
1 Set Implicit Arguments.
2
3 Generalizable All Variables.
4
5 Parameter SpecializedCategory : Type -> Type.
6 Parameter Object : forall obj, SpecializedCategory obj -> Type.
7
8 Section SpecializedFunctor.
9 (* Variable objC : Type. *)
10 Context `(C : SpecializedCategory objC).
11
12 Record SpecializedFunctor := {
13 ObjectOf' : objC -> Type;
14 ObjectC : Object C
15 }.
16 End SpecializedFunctor.
17
18 Section FunctorInterface.
19 Variable objC : Type.
20 Variable C : SpecializedCategory objC.
21 Variable F : SpecializedFunctor C.
22
23 Set Printing All.
24 Set Printing Universes.
25 Check @ObjectOf' objC C F. (* Toplevel input, characters 24-25:
26 Error:
27 In environment
28 objC : Type (* Top.515 *)
29 C : SpecializedCategory objC
30 F : @SpecializedFunctor (* Top.516 *) objC C
31 The term "F" has type "@SpecializedFunctor (* Top.516 *) objC C"
32 while it is expected to have type
33 "@SpecializedFunctor (* Top.519 Top.520 *) objC C". *)
34 End FunctorInterface.