summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/category-theory/NaturalTransform.gf7
1 files changed, 6 insertions, 1 deletions
diff --git a/examples/category-theory/NaturalTransform.gf b/examples/category-theory/NaturalTransform.gf
index e7da79b93..60943737c 100644
--- a/examples/category-theory/NaturalTransform.gf
+++ b/examples/category-theory/NaturalTransform.gf
@@ -8,7 +8,12 @@ abstract NaturalTransform = Functor ** {
data nt : ({c1,c2} : Category)
-> (f,g : Functor c1 c2)
- -> ((x : Obj c1) -> Arrow (mapObj f x) (mapObj g x))
+ -> (n : (x : Obj c1) -> Arrow (mapObj f x) (mapObj g x))
+ -> ( ({x,y} : Obj c1)
+ -> (ar : Arrow x y)
+ -> EqAr (comp (n y) (mapAr f ar))
+ (comp (mapAr g ar) (n x))
+ )
-> NT f g ;
}