Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Category of categories #642

Merged
merged 3 commits into from
Dec 15, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions Cubical/Categories/Instances/Categories.agda
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
-- The (pre)category of (small) categories
{-# OPTIONS --safe #-}

module Cubical.Categories.Instances.Categories where

open import Cubical.Categories.Category.Base
open import Cubical.Categories.Category.Precategory
open import Cubical.Categories.Functor.Base
open import Cubical.Categories.Functor.Properties
open import Cubical.Foundations.Prelude


module _ (ℓ ℓ' : Level) where
open Precategory

CatPrecategory : Precategory (ℓ-suc (ℓ-max ℓ ℓ')) (ℓ-max ℓ ℓ')
CatPrecategory .ob = Category ℓ ℓ'
CatPrecategory .Hom[_,_] = Functor
CatPrecategory .id = 𝟙⟨ _ ⟩
CatPrecategory ._⋆_ G H = H ∘F G
CatPrecategory .⋆IdL _ = F-lUnit
CatPrecategory .⋆IdR _ = F-rUnit
CatPrecategory .⋆Assoc _ _ _ = F-assoc

-- TODO: what is required for Functor C D to be a set?