File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed
Cubical/Categories/Dagger/Instances Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 1+ {-# OPTIONS --cubical --safe #-}
2+
3+ module Dagger.Instances.Functors where
4+
5+ open import Cubical.Foundations.Prelude
6+ open import Cubical.Data.Sigma
7+
8+ open import Cubical.Categories.Category
9+ open import Cubical.Categories.Functor
10+ open import Cubical.Categories.NaturalTransformation
11+ open import Cubical.Categories.Constructions.FullSubcategory
12+ open import Cubical.Categories.Instances.Functors
13+
14+ open import Dagger.Base
15+ open import Dagger.Properties
16+ open import Dagger.Functor
17+
18+ private variable
19+ ℓC ℓC' ℓD ℓD' ℓE ℓE' : Level
20+
21+ module _ (C : DagCat ℓC ℓC') (D : DagCat ℓD ℓD') where
22+
23+ open Category
24+ open DagCat
25+ open DaggerStr
26+ open IsDagger
27+ open NatTrans
28+
29+ †FUNCTOR : DagCat (ℓ-max (ℓ-max ℓC ℓC') (ℓ-max ℓD ℓD')) (ℓ-max (ℓ-max ℓC ℓC') ℓD')
30+ †FUNCTOR .cat = FullSubcategory (FUNCTOR (C .cat) (D .cat)) (IsDagFunctor C D)
31+ †FUNCTOR .dagstr ._† {x = F} {y = G} = NT† F G
32+ †FUNCTOR .dagstr .is-dag .†-invol n = makeNatTransPath (funExt λ x → D .†-invol (n ⟦ x ⟧))
33+ †FUNCTOR .dagstr .is-dag .†-id = makeNatTransPath (funExt λ x → D .†-id)
34+ †FUNCTOR .dagstr .is-dag .†-seq m n = makeNatTransPath (funExt λ x → D .†-seq (m ⟦ x ⟧) (n ⟦ x ⟧))
35+
36+
You can’t perform that action at this time.
0 commit comments