Auto magma object

From HandWiki

In mathematics, a magma object, can be defined in any category 𝐂 equipped with a distinguished bifunctor ⊗:𝐂×𝐂→𝐂. Since Mag, the category of magmas, has cartesian products, we can therefore consider magma objects in the category Mag. These are called auto magma objects. There is a more direct definition: an auto magma object is a set X together with a pair of binary operations f,g:X×X→X satisfying g(f(x,y),f(x′,y′))=f(g(x,x′),g(y,y′)) for all x,x′,y,y′ in X. A medial magma is the special case where these operations are equal.