Skip to content

Commit e827831

Browse files
committed
[ week9 ] prepp'd
1 parent d9448fb commit e827831

File tree

1 file changed

+36
-5
lines changed

1 file changed

+36
-5
lines changed

lectures/Week9.agda

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,11 @@ import Data.Nat.Properties as ℕ
9292
open import Data.Vec.Base as Vec using (Vec)
9393
import Data.Vec.Properties as Vec
9494

95-
{-
9695
Vec-Functor : (n : ℕ) Functor SET SET
9796
Vec-Functor n .Functor.onObject = λ A Vec A n
98-
Vec-Functor n .Functor.onMorphism = {!!}
99-
Vec-Functor n .Functor.onIdentity = {!!}
100-
Vec-Functor n .Functor.onThen = {!!}
101-
-}
97+
Vec-Functor n .Functor.onMorphism = Vec.map
98+
Vec-Functor n .Functor.onIdentity = funext Vec.map-id
99+
Vec-Functor n .Functor.onThen = λ f g funext (Vec.map-∘ g f)
102100

103101
OP : Category Category
104102
OP cat .Category.Object = Category.Object cat
@@ -118,7 +116,40 @@ Vec≤-Functor A .Functor.onThen =
118116

119117

120118

119+
120+
121+
121122
-- Forget & free
123+
124+
125+
126+
127+
128+
129+
130+
131+
132+
-- CAT
133+
134+
135+
136+
137+
138+
139+
140+
141+
142+
143+
144+
145+
146+
147+
148+
149+
150+
151+
152+
122153

123154

124155
---------------------------------------------------------------------------

0 commit comments

Comments
 (0)