Homomorphism
Template:Distinguish In abstract algebra, a homomorphism is a structurepreserving map between two algebraic structures (such as groups, rings, or vector spaces). The word homomorphism comes from the ancient Greek language: ὁμός (homos) meaning "same" and μορφή (morphe) meaning "form". Isomorphisms, automorphisms, and endomorphisms are special types of homomorphisms.
Definition and illustration
Definition
A homomorphism is a map that preserves selected structure between two algebraic structures, with the structure to be preserved being given by the naming of the homomorphism.
Particular definitions of homomorphism include the following:
 A semigroup homomorphism is a map that preserves an associative binary operation.
 A monoid homomorphism is a semigroup homomorphism that maps the identity element to the identity of the codomain.
 A group homomorphism is a homomorphism that preserves the group structure. It may equivalently be defined as a semigroup homomorphism between groups.
 A ring homomorphism is a homomorphism that preserves the ring structure. Whether the multiplicative identity is to be preserved depends upon the definition of ring in use.
 A linear map is a homomorphism that preserves the vector space structure, namely the abelian group structure and scalar multiplication. The scalar type must further be specified to specify the homomorphism, e.g. every Rlinear map is a Zlinear map, but not vice versa.
 An algebra homomorphism is a homomorphism that preserves the algebra structure.
 A functor is a homomorphism between two categories.
Not all structure that an object possesses need be preserved by a homomorphism. For example, one may have a semigroup homomorphism between two monoids, and this will not be a monoid homomorphism if it does not map the identity of the domain to that of the codomain.
For example, a group is an algebraic object consisting of a set together with a single binary operation, satisfying certain axioms. If (G, ∗) and (H, ∗′) are groups, a homomorphism from (G, ∗) to (H, ∗′) is a function f : (G, ∗) → (H, ∗′) such that f(g_{1} ∗ g_{2}) = f(g_{1}) ∗′ f(g_{2}) for all elements g_{1}, g_{2} ∈ G. Since inverses exist in G and H, one can show that the identity of G maps to the identity of H and that inverses are preserved.
The algebraic structure to be preserved may include more than one operation, and a homomorphism is required to preserve each operation. For example, a ring has both addition and multiplication, and a homomorphism from the ring (R, +, ∗, 0, 1) to the ring (R′, +′, ∗′, 0′, 1′) is a function such that f(r + s) = f(r) +′ f(s), f(r ∗ s) = f(r) ∗′ f(s) and f(1) = 1′ for any elements r and s of the domain ring. If rings are not required to be unital, the last condition is omitted. In addition, if defining structures of (e.g. 0 and additive inverses in the case of a ring) were not necessarily preserved by the above, preserving these would be added requirements.
The notion of a homomorphism can be given a formal definition in the context of universal algebra, a field which studies ideas common to all algebraic structures. In this setting, a homomorphism f : A → B is a function between two algebraic structures of the same type such that
 f(μ_{A}(a_{1}, ..., a_{n})) = μ_{B}(f(a_{1}), ..., f(a_{n}))
for each nary operation μ and for all elements a_{1}, ..., a_{n} ∈ A.
Basic examples
The real numbers are a ring, having both addition and multiplication. The set of all 2 × 2 matrices is also a ring, under matrix addition and matrix multiplication. If we define a function between these rings as follows:
where r is a real number, then f is a homomorphism of rings, since f preserves both addition:
and multiplication:
For another example, the nonzero complex numbers form a group under the operation of multiplication, as do the nonzero real numbers. (Zero must be excluded from both groups since it does not have a multiplicative inverse, which is required for elements of a group.) Define a function f from the nonzero complex numbers to the nonzero real numbers by
 f(z) = z.
That is, ƒ(z) is the absolute value (or modulus) of the complex number z. Then f is a homomorphism of groups, since it preserves multiplication:
 f(z_{1} z_{2}) = z_{1} z_{2} = z_{1} z_{2} = f(z_{1}) f(z_{2}).
Note that ƒ cannot be extended to a homomorphism of rings (from the complex numbers to the real numbers), since it does not preserve addition:
 z_{1} + z_{2} ≠ z_{1} + z_{2}.
As another example, the picture shows a monoid homomorphism f from the monoid (N, +, 0) to the monoid (N, ×, 1). Due to the different names of corresponding operations, the structure preservation properties satisfied by f amount to f(x + y) = f(x) × f(y) and f(0) = 1.
Informal discussion
Because abstract algebra studies sets endowed with operations that generate interesting structure or properties on the set, functions which preserve the operations are especially important. These functions are known as homomorphisms.
For example, consider the natural numbers with addition as the operation. A function which preserves addition should have this property: f(a + b) = f(a) + f(b). For example, f(x) = 3x is one such homomorphism, since f(a + b) = 3(a + b) = 3a + 3b = f(a) + f(b). Note that this homomorphism maps the natural numbers back into themselves.
Homomorphisms do not have to map between sets which have the same operations. For example, operationpreserving functions exist between the set of real numbers with addition and the set of positive real numbers with multiplication. A function which preserves operation should have this property: f(a + b) = f(a) · f(b), since addition is the operation in the first set and multiplication is the operation in the second. Given the laws of exponents, f(x) = e^{x} satisfies this condition: 2 + 3 = 5 translates into e^{2} · e^{3} = e^{5}.
If we are considering multiple operations on a set, then all operations must be preserved for a function to be considered as a homomorphism. Even though the set may be the same, the same function might be a group homomorphism, (a single binary operation, an inverse operation, being a unary operation, and identity, being a nullary operation) but not a ring isomorphism (two binary operations, the additive inverse and the identity elements), because it may fail to preserve the additional monoid structure required by the definition of a ring.
Specific kinds of homomorphisms
 
 

In abstract algebra, several specific kinds of homomorphisms are defined as follows:
 An isomorphism is a bijective homomorphism.
 An epimorphism (sometimes called a cover) is a surjective homomorphism. Equivalently, ^{[note 1]} f: A → B is an epimorphism if it has a right inverse g: B → A, i.e. if f(g(b)) = b for all b ∈ B.
 A monomorphism (sometimes called an embedding or extension) is an injective homomorphism. Equivalently, ^{[note 1]} f: A → B is a monomorphism if it has a left inverse g: B → A, i.e. if g(f(a)) = a for all a ∈ A.
 An endomorphism is a homomorphism from an algebraic structure to itself.
 An automorphism is an endomorphism which is also an isomorphism, i.e., an isomorphism from an algebraic structure to itself.^{[1]}
These descriptions may be used in order to derive several interesting{{ safesubst:#invoke:Unsubstdate=__DATE__ $B= {{#invoke:Category handlermain}}{{#invoke:Category handlermain}}^{[citation needed]} }} properties. For instance, since a function is bijective if and only if it is both injective and surjective, in abstract algebra a homomorphism is an isomorphism if and only if it is both a monomorphism and an epimorphism. An isomorphism always has an inverse f^{−1}, which is a homomorphism, too (cf. Proof 1). If there is an isomorphism between two algebraic structures, they are completely indistinguishable as far as the structure in question is concerned; in this case, they are said to be isomorphic.
Relation to category theory
Since homomorphisms are morphisms in an appropriate category, we may consider the analogous specific kinds of morphisms defined in any category. However, the definitions in category theory are somewhat different. For endomorphisms and automorphisms, the descriptions above coincide with the category theoretic definitions; the first three descriptions do not. In category theory, a morphism f : A → B is called:
 monomorphism if f ∘ g_{1} = f ∘ g_{2} implies g_{1} = g_{2} for all morphisms g_{1}, g_{2}: X → A, where "∘" denotes function composition corresponding to e.g. (f ∘ g_{1})(x) = f(g_{1}(x)) in abstract algebra. (A sufficient condition for this is f having a left inverse, cf. Proof 2.)
 epimorphism if g_{1} ∘ f = g_{2} ∘ f implies g_{1} = g_{2} for all morphisms g_{1}, g_{2}: B → X. (A sufficient condition for this is f having a right inverse, cf. Proof 3.)
 isomorphism if there exists a morphism g: B → A such that f ∘ g = 1_{B} and g ∘ f = 1_{A}, where "1_{X}" denotes the identity morphism on the object X.^{[note 2]}
For instance, the inclusion ring homomorphism of Z as a (unitary) subring of Q is not surjective (i.e. not epi in the settheoretic sense), but an epimorphic in the sense of category theory.^{[2]}^{[3]} This inclusion thus also is an example of a ring homomorphism which is (in the sense of category theory) both mono and epi, but not iso.
Kernel of a homomorphism
{{#invoke:mainmain}}
Any homomorphism f : X → Y defines an equivalence relation ~ on X by a ~ b if and only if f(a) = f(b). The relation ~ is called the kernel of f. It is a congruence relation on X. The quotient set X / ~ can then be given an objectstructure in a natural way, i.e. [x] ∗ [y] = [x ∗ y]. In that case the image of X in Y under the homomorphism f is necessarily isomorphic to X / ~; this fact is one of the isomorphism theorems. Note in some cases (e.g. groups or rings), a single equivalence class K suffices to specify the structure of the quotient; so we can write it X/K. (X/K is usually read as "X mod K".) Also in these cases, it is K, rather than ~, that is called the kernel of f (cf. normal subgroup).
Homomorphisms of relational structures
In model theory, the notion of an algebraic structure is generalized to structures involving both operations and relations. Let L be a signature consisting of function and relation symbols, and A, B be two Lstructures. Then a homomorphism from A to B is a mapping h from the domain of A to the domain of B such that
 h(F^{A}(a_{1},…,a_{n})) = F^{B}(h(a_{1}),…,h(a_{n})) for each nary function symbol F in L,
 R^{A}(a_{1},…,a_{n}) implies R^{B}(h(a_{1}),…,h(a_{n})) for each nary relation symbol R in L.
In the special case with just one binary relation, we obtain the notion of a graph homomorphism. For a detailed discussion of relational homomorphisms and isomorphisms see.^{[4]}
Homomorphisms and efree homomorphisms in formal language theory
Homomorphisms are also used in the study of formal languages^{[5]} (although within this context, often they are briefly referred to as morphisms^{[6]}). Given alphabets Σ_{1} and Σ_{2}, a function h : Σ_{1}^{∗} → Σ_{2}^{∗} such that h(uv) = h(u) h(v) for all u and v in Σ_{1}^{∗} is called a homomorphism (or simply morphism) on Σ_{1}^{∗}.^{[note 3]} Let e denote the empty word. If h is a homomorphism on Σ_{1}^{∗} and h(x) ≠ e for all x ≠ e in Σ_{1}^{∗}, then h is called an efree homomorphism.
This type of homomorphism can be thought of as (and is equivalent to) a monoid homomorphism where Σ^{∗} the set of all words over a finite alphabet Σ is a monoid (in fact it is the free monoid on Σ) with operation concatenation and the empty word as the identity.
See also
 continuous function
 diffeomorphism
 homomorphic encryption
 homomorphic secret sharing – a simplistic decentralized voting protocol
 morphism
Notes
 ↑ ^{1.0} ^{1.1} tacitly assuming the axiom of choice and a nonconstructive setting
 ↑ The notion of "object" and "morphism" in category theory generalizes the notion of "algebraic structure" and "homomorphism", respectively.
 ↑ In homomorphisms on formal languages, the ∗ operation is the Kleene star operation. The ⋅ and ∘ are both concatenation, commonly denoted by juxtaposition.
References
 ↑ {{#invoke:citation/CS1citation CitationClass=citation }} Here: Sect.VI.3, p.134
 ↑ {{#invoke:citation/CS1citation CitationClass=book }}
 ↑ {{#invoke:citation/CS1citation CitationClass=book }}
 ↑ Section 17.4, in Gunther Schmidt, 2010. Relational Mathematics. Cambridge University Press, ISBN 9780521762687
 ↑ Seymour Ginsburg, Algebraic and automata theoretic properties of formal languages, NorthHolland, 1975, ISBN 0720425069.
 ↑ T. Harju, J. Karhumӓki, Morphisms in Handbook of Formal Languages, Volume I, edited by G. Rozenberg, A. Salomaa, Springer, 1997, ISBN 3540614869.
Template:Refbegin A monograph available free online:
 Burris, Stanley N., and H.P. Sankappanavar, H. P., 1981. A Course in Universal Algebra. SpringerVerlag. ISBN 3540905782.