This commit is contained in:
krasimir
2010-02-22 14:40:28 +00:00
parent bcf4bc7d23
commit 21ad608e2a
2 changed files with 13 additions and 0 deletions

View File

@@ -2,6 +2,7 @@ abstract CategoryTheory
= Categories
, Morphisms
, InitialAndTerminal
, Functor
** {
}

View File

@@ -0,0 +1,12 @@
abstract Functor = Categories ** {
cat Functor (c1, c2 : Category) ;
data functor : ({c1, c2} : Category)
-> (f0 : El c1 -> El c2)
-> (f1 : ({x,y} : El c1) -> Arrow x y -> Arrow (f0 x) (f0 y))
-> ((x : El c1) -> EqAr (f1 (id x)) (id (f0 x)))
-> (({x,y,z} : El c1) -> (f : Arrow x z) -> (g : Arrow z y) -> EqAr (f1 (comp g f)) (comp (f1 g) (f1 f)))
-> Functor c1 c2 ;
}