-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Andreas Nuyts <andreas.nuyts@vub.ac.be>
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
-- Product of type-many categories | ||
{-# OPTIONS --safe #-} | ||
|
||
module Cubical.Categories.Constructions.Product where | ||
|
||
open import Cubical.Categories.Category.Base | ||
open import Cubical.Categories.Functor.Base | ||
open import Cubical.Foundations.HLevels | ||
open import Cubical.Foundations.Prelude | ||
|
||
private | ||
variable | ||
ℓA ℓC ℓC' : Level | ||
|
||
open Category | ||
|
||
ΠC : (A : Type ℓA) → (catC : A → Category ℓC ℓC') → Category (ℓ-max ℓA ℓC) (ℓ-max ℓA ℓC') | ||
ob (ΠC A catC) = (a : A) → ob (catC a) | ||
Hom[_,_] (ΠC A catC) c c' = (a : A) → catC a [ c a , c' a ] | ||
id (ΠC A catC) a = id (catC a) | ||
_⋆_ (ΠC A catC) g f a = g a ⋆⟨ catC a ⟩ f a | ||
⋆IdL (ΠC A catC) f = funExt λ a → ⋆IdL (catC a) (f a) | ||
⋆IdR (ΠC A catC) f = funExt λ a → ⋆IdR (catC a) (f a) | ||
⋆Assoc (ΠC A catC) h g f = funExt λ a → ⋆Assoc (catC a) (h a) (g a) (f a) | ||
isSetHom (ΠC A catC) = isSetΠ (λ a → isSetHom (catC a)) |