forked from GitHub/gf-core
the oposites of two equal arrows are equal arrows
This commit is contained in:
@@ -78,6 +78,14 @@ abstract Categories = {
|
|||||||
def id {Op c} (opEl {c} x) = opAr (id x) ;
|
def id {Op c} (opEl {c} x) = opAr (id x) ;
|
||||||
def comp {Op c} {opEl {c} x} {opEl {c} y} {opEl {c} z} (opAr {c} {y} {z} f) (opAr {c} {z} {x} g) = opAr (comp g f) ;
|
def comp {Op c} {opEl {c} x} {opEl {c} y} {opEl {c} z} (opAr {c} {y} {z} f) (opAr {c} {z} {x} g) = opAr (comp g f) ;
|
||||||
|
|
||||||
|
fun eqOp : ({c} : Category)
|
||||||
|
-> ({x,y} : El c)
|
||||||
|
-> ({f} : Arrow x y)
|
||||||
|
-> ({g} : Arrow x y)
|
||||||
|
-> EqAr f g
|
||||||
|
-> EqAr (opAr f) (opAr g) ;
|
||||||
|
def eqOp {c} {x} {y} {f} {f} (eqRefl {c} {x} {y} f) = eqRefl (opAr f) ;
|
||||||
|
|
||||||
data Slash : (c : Category)
|
data Slash : (c : Category)
|
||||||
-> (x : El c)
|
-> (x : El c)
|
||||||
-> Category ;
|
-> Category ;
|
||||||
|
|||||||
Reference in New Issue
Block a user