-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathFunctorCategory.v
31 lines (24 loc) · 1018 Bytes
/
FunctorCategory.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Require Export SpecializedCategory Functor NaturalTransformation.
Require Import Common.
Set Implicit Arguments.
Generalizable All Variables.
Set Asymmetric Patterns.
Set Universe Polymorphism.
Section FunctorCategory.
Context `(C : @SpecializedCategory objC).
Context `(D : @SpecializedCategory objD).
(*
There is a category Fun(C, D) of functors from [C] to [D].
*)
Definition FunctorCategory : @SpecializedCategory (SpecializedFunctor C D).
refine (@Build_SpecializedCategory _
(SpecializedNaturalTransformation (C := C) (D := D))
(IdentityNaturalTransformation (C := C) (D := D))
(NTComposeT (C := C) (D := D))
_
_
_);
abstract (nt_eq; auto with morphism).
Defined.
End FunctorCategory.
Notation "C ^ D" := (FunctorCategory D C) : category_scope.