mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-24 03:52:50 -06:00
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 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)
|
||||
-> (x : El c)
|
||||
-> Category ;
|
||||
|
||||
Reference in New Issue
Block a user