diff options
| author | krasimir <krasimir@chalmers.se> | 2010-06-01 06:12:30 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2010-06-01 06:12:30 +0000 |
| commit | 5e0d04d0f59e4ace8df23befcbe8263447611e63 (patch) | |
| tree | 74bc30a8392f81fd587932f4ba54c14b4d0f7888 /examples/category-theory/InitialAndTerminal.gf | |
| parent | 19851031e69d05e802eeabfe5db55e58583e1ba0 (diff) | |
El -> Obj in category theory
Diffstat (limited to 'examples/category-theory/InitialAndTerminal.gf')
| -rw-r--r-- | examples/category-theory/InitialAndTerminal.gf | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/examples/category-theory/InitialAndTerminal.gf b/examples/category-theory/InitialAndTerminal.gf index ac665f856..b8a9f00c9 100644 --- a/examples/category-theory/InitialAndTerminal.gf +++ b/examples/category-theory/InitialAndTerminal.gf @@ -1,20 +1,20 @@ abstract InitialAndTerminal = Morphisms ** {
-cat Initial ({c} : Category) (El c) ;
+cat Initial ({c} : Category) (Obj c) ;
data initial : ({c} : Category)
- -> (x : El c)
- -> ((y : El c) -> Arrow x y)
+ -> (x : Obj c)
+ -> ((y : Obj c) -> Arrow x y)
-> Initial x ;
fun initAr : ({c} : Category)
- -> ({x} : El c)
+ -> ({x} : Obj c)
-> Initial x
- -> (y : El c)
+ -> (y : Obj c)
-> Arrow x y ;
-- def initAr {~c} {~x} (initial {c} x f) y = f y ;
{-
fun initials2iso : ({c} : Category)
- -> ({x,y} : El c)
+ -> ({x,y} : Obj c)
-> (ix : Initial x)
-> (iy : Initial y)
-> Iso (initAr ix y) (initAr iy x) ;
@@ -22,25 +22,25 @@ fun initials2iso : ({c} : Category) -- def initials2iso = .. ;
-cat Terminal ({c} : Category) (El c) ;
+cat Terminal ({c} : Category) (Obj c) ;
data terminal : ({c} : Category)
- -> (y : El c)
- -> ((x : El c) -> Arrow x y)
+ -> (y : Obj c)
+ -> ((x : Obj c) -> Arrow x y)
-> Terminal y ;
fun terminalAr : ({c} : Category)
- -> (x : El c)
- -> ({y} : El c)
+ -> (x : Obj c)
+ -> ({y} : Obj c)
-> Terminal y
-> Arrow x y ;
-- def terminalAr {c} x {~y} (terminal {~c} y f) = f x ;
{-
fun terminals2iso : ({c} : Category)
- -> ({x,y} : El c)
+ -> ({x,y} : Obj c)
-> (tx : Terminal x)
-> (ty : Terminal y)
-> Iso (terminalAr x ty) (terminalAr y tx) ;
-}
-- def terminals2iso = .. ;
-}
\ No newline at end of file +}
|
