Defines an endomorphism of an algebraic structure.
The algebraic structure which is both the domain and codomain of the morphism
The function that takes an element from the structure and maps it to another element in the same structure
const Z4 = Chalkboard.abal.group(Chalkboard.abal.Z(4), (a, b) => (a + b) % 4, 0, (a) => (4 - a) % 4);const double = Chalkboard.abal.endomorphism(Z4, (x) => (2 * x) % 4); // Defines x ↦ 2x Copy
const Z4 = Chalkboard.abal.group(Chalkboard.abal.Z(4), (a, b) => (a + b) % 4, 0, (a) => (4 - a) % 4);const double = Chalkboard.abal.endomorphism(Z4, (x) => (2 * x) % 4); // Defines x ↦ 2x
Defines an endomorphism of an algebraic structure.