diff options
| author | krasimir <krasimir@chalmers.se> | 2010-02-20 16:33:40 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2010-02-20 16:33:40 +0000 |
| commit | 3d8b7f9850bd88c96f0a43c7ebb17554543ee5e1 (patch) | |
| tree | e1c289280195938f4fa89882a50b94beeb508b77 /examples/category-theory/InitialAndTerminal.gf | |
| parent | d09b05ab3f4ff46f851ac043e7d6989f3022aa13 (diff) | |
some more definitions in category theory
Diffstat (limited to 'examples/category-theory/InitialAndTerminal.gf')
| -rw-r--r-- | examples/category-theory/InitialAndTerminal.gf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/category-theory/InitialAndTerminal.gf b/examples/category-theory/InitialAndTerminal.gf index 7ac7b0864..3a033dcd5 100644 --- a/examples/category-theory/InitialAndTerminal.gf +++ b/examples/category-theory/InitialAndTerminal.gf @@ -9,7 +9,7 @@ data initial : ({c} : Category) fun initEl : ({c} : Category)
-> Initial c
-> El c ;
-def initEl (initial x f) = x ;
+def initEl {c} (initial {c} x f) = x ;
fun initials2iso : ({c} : Category)
-> ({x,y} : Initial c)
@@ -25,7 +25,7 @@ data terminal : ({c} : Category) fun termEl : ({c} : Category)
-> Terminal c
-> El c ;
-def termEl (terminal x f) = x ;
+def termEl {c} (terminal {c} x f) = x ;
fun terminals2iso : ({c} : Category)
-> ({x,y} : Terminal c)
|
