Skip to content

Commit 0fd5bb7

Browse files
authored
Add files via upload
1 parent 7d12126 commit 0fd5bb7

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+

0 commit comments

Comments
 (0)