summaryrefslogtreecommitdiff
path: root/examples/category-theory/Adjoints.gf
diff options
context:
space:
mode:
authorkrasimir <krasimir@chalmers.se>2010-06-01 06:56:34 +0000
committerkrasimir <krasimir@chalmers.se>2010-06-01 06:56:34 +0000
commitd73ed8ba2e8483b41740b7f8b612c64b93d53d3b (patch)
tree19a185167c1f1acbf0c13b1bd9e395829c594ec1 /examples/category-theory/Adjoints.gf
parent5e0d04d0f59e4ace8df23befcbe8263447611e63 (diff)
some comments in the code for category theory
Diffstat (limited to 'examples/category-theory/Adjoints.gf')
-rw-r--r--examples/category-theory/Adjoints.gf19
1 files changed, 12 insertions, 7 deletions
diff --git a/examples/category-theory/Adjoints.gf b/examples/category-theory/Adjoints.gf
index cb4c8c6c0..b4987228d 100644
--- a/examples/category-theory/Adjoints.gf
+++ b/examples/category-theory/Adjoints.gf
@@ -1,11 +1,16 @@
abstract Adjoints = NaturalTransform ** {
-cat Adjoints ({c1,c2} : Category) (Functor c1 c2) (Functor c2 c1) ;
+ ----------------------------------------------------------
+ -- Adjoint functors - pair of functors such that
+ -- there is a natural transformation from the identity
+ -- functor to the composition of the functors.
-data adjoints : ({c1,c2} : Category)
- -> (f : Functor c1 c2)
- -> (g : Functor c2 c1)
- -> NT (idF c1) (compF g f)
- -> Adjoints f g ;
+ cat Adjoints ({c1,c2} : Category) (Functor c1 c2) (Functor c2 c1) ;
-} \ No newline at end of file
+ data adjoints : ({c1,c2} : Category)
+ -> (f : Functor c1 c2)
+ -> (g : Functor c2 c1)
+ -> NT (idF c1) (compF g f)
+ -> Adjoints f g ;
+
+}