module Cat.LocallyGraded.Base where
Locally graded categoriesπ
There is a striking similarity between displayed categories, enriched categories, and actegories. All three of these concepts take the basic algebra of a category and replace the hom sets with some other notion of morphism graded by some base category and then equip those morphisms with an action of
For a displayed category our morphisms are the displayed hom sets over indexed over a The action of is a bit hard to see initially, but becomes painfully clear once youβve gotten your hands dirty: it is given by transport of hom families.
For an enriched category our morphisms are generalized elements for Moreover, acts on graded morphisms via precomposition with a morphism
Finally, for an actegory equipped with an action the appropriate notion of morphism is a sort of sort of β morphismβ where The action of on these morphisms is given by functoriality of and precomposition.
Locally graded categories simultaneously generalize these three related notions by combining the indexing of a displayed category with a sort of βdirected transportβ operation that lets us move between indices. Explicitly, a locally graded category over a prebicategory consists of:
- A family of objects indexed by the objects of
- A family of morphisms indexed by the 1-cells of
- Identity and composite morphisms indexed over the identity 1-cell and composites of 1-cells.
- An action of 2-cells of on morphisms of
module _ (B : Prebicategory ob βbβ βbβ) where private module B = Prebicategory B record Locally-graded-precategory (oe βe : Level) : Type (ob β βbβ β βbβ β lsuc oe β lsuc βe) where no-eta-equality field Ob[_] : B.Ob β Type oe Hom[_] : β {a b} β a B.β¦ b β Ob[ a ] β Ob[ b ] β Type βe Hom[_]-set : β {a b} (u : a B.β¦ b) (a' : Ob[ a ]) (b' : Ob[ b ]) β is-set (Hom[ u ] a' b') id' : β {x x'} β Hom[ B.id {x} ] x' x' _β'_ : β {x y z x' y' z'} β {u : y B.β¦ z} {v : x B.β¦ y} β Hom[ u ] y' z' β Hom[ v ] x' y' β Hom[ u B.β v ] x' z' _[_] : β {x y x' y'} {u v : x B.β¦ y} β Hom[ v ] x' y' β u B.β v β Hom[ u ] x' y' infixr 30 _β'_ infix 35 _[_]
We also require that composition is associative and unital once suitably adjusted by an associator or unitor.
field idlβ : β {x y x' y'} {u : x B.β¦ y} β (f : Hom[ u ] x' y') β (id' β' f) [ B.Ξ»β u ] β‘ f idrβ : β {x y x' y'} {u : x B.β¦ y} β (f : Hom[ u ] x' y') β (f β' id') [ B.Οβ u ] β‘ f assocβ : β {a b c d a' b' c' d'} β {u : c B.β¦ d} {v : b B.β¦ c} {w : a B.β¦ b} β (f : Hom[ u ] c' d') (g : Hom[ v ] b' c') (h : Hom[ w ] a' b') β (f β' (g β' h)) [ B.Ξ±β u v w ] β‘ (f β' g) β' h
Finally, we require that the action of 2-cells is functorial, and that identities and composites are sufficiently natural.
[]-id : β {x y x' y'} {u : x B.β¦ y} β (f : Hom[ u ] x' y') β f [ B.Hom.id ] β‘ f []-β : β {x y x' y'} {u v w : x B.β¦ y} β (Ξ± : v B.β w) (Ξ² : u B.β v) β (f : Hom[ w ] x' y') β f [ Ξ± B.β Ξ² ] β‘ f [ Ξ± ] [ Ξ² ] []-id' : β {x x'} β (Ξ± : B.id B.β B.id) β id' {x} {x'} [ Ξ± ] β‘ id' {x} {x'} []-β' : β {x y z x' y' z'} {t u : y B.β¦ z} {v w : x B.β¦ y} β (Ξ± : t B.β u) (Ξ² : v B.β w) β (f : Hom[ u ] y' z') (g : Hom[ w ] x' y') β (f β' g) [ Ξ± B.β Ξ² ] β‘ f [ Ξ± ] β' g [ Ξ² ]