diff options
Diffstat (limited to 'src/Soat/FirstOrder/Algebra.idr')
-rw-r--r-- | src/Soat/FirstOrder/Algebra.idr | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Soat/FirstOrder/Algebra.idr b/src/Soat/FirstOrder/Algebra.idr index 7bed448..6e39612 100644 --- a/src/Soat/FirstOrder/Algebra.idr +++ b/src/Soat/FirstOrder/Algebra.idr @@ -63,8 +63,8 @@ record (~>) {0 sig : Signature} (a, b : Algebra sig) -> b.relation t (func t (a.raw.sem op tms)) (b.raw.sem op (map func tms)) public export -idHomo : {a : Algebra sig} -> a ~> a -idHomo = MkHomomorphism +id : {a : Algebra sig} -> a ~> a +id = MkHomomorphism { func = \_ => id , cong = \_ => id , semHomo = \op, tms => @@ -75,8 +75,8 @@ idHomo = MkHomomorphism } public export -compHomo : {a, b, c : Algebra sig} -> b ~> c -> a ~> b -> a ~> c -compHomo f g = MkHomomorphism +(.) : {a, b, c : Algebra sig} -> b ~> c -> a ~> b -> a ~> c +(.) f g = MkHomomorphism { func = \t => f.func t . g.func t , cong = \t => f.cong t . g.cong t , semHomo = \op, tms => |