# Homomorphism

In abstract algebra, a homomorphism is a structure-preserving 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 "shape". Isomorphisms, automorphisms, and endomorphisms are special types of homomorphisms.

## Definition and illustration

### Definition

The definition of homomorphism depends on the type of algebraic structure under consideration. Particular definitions of homomorphism include the following:

The common theme is that a homomorphism is a function between two algebraic objects that respects the algebraic structure.

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 ƒ$(G,*)$ → $(H,*')$ such that $f(g_1 * g_2) = f(g_1) *' f(g_2)\,\!$ for any elements g1g2 ∈ G.

When an algebraic structure includes more than one operation, homomorphisms are required to preserve each operation. For example, a ring possesses 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)\qquad\text{and}\qquad f(r*s) = f(r)*'f(s)$

for any elements r and s of the domain ring.

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 ƒA → B is a function between two algebraic structures of the same type such that

$f(\mu_A(a_1, \ldots, a_n)) = \mu_B(f(a_1), \ldots, f(a_n))\,$

for each n-ary operation μ and for all elements a1,...,an ∈ 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:

$f(r) = \begin{pmatrix} r & 0 \\ 0 & r \end{pmatrix}$

where r is a real number, then ƒ is a homomorphism of rings, since ƒ preserves both addition:

$f(r+s) = \begin{pmatrix} r+s & 0 \\ 0 & r+s \end{pmatrix} = \begin{pmatrix} r & 0 \\ 0 & r \end{pmatrix} + \begin{pmatrix} s & 0 \\ 0 & s \end{pmatrix} = f(r) + f(s)$

and multiplication:

$f(rs) = \begin{pmatrix} rs & 0 \\ 0 & rs \end{pmatrix} = \begin{pmatrix} r & 0 \\ 0 & r \end{pmatrix} \begin{pmatrix} s & 0 \\ 0 & s \end{pmatrix} = f(r)\,f(s).$

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 ƒ 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 ƒ 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| \ne |z_1| + |z_2|.$

## 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, operation-preserving 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) = ex satisfies this condition : 2 + 3 = 5 translates into e2 * e3 = e5.

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 homomorphism, say, in group theory (sets with a single operation) but not in ring theory (sets with two related operations), because it fails to preserve the additional operation that ring theory considers.

## Relation to category theory

Since homomorphisms are morphisms, the following specific kinds of morphisms defined in any category are defined for homomorphisms as well. However, the definitions in category theory are somewhat technical. In the important special case of module homomorphisms, and for some other classes of homomorphisms, there are much simpler descriptions, as follows:

• An endomorphism is a homomorphism from an object to itself.
• An automorphism is an endomorphism which is also an isomorphism, i.e., an isomorphism from an object to itself.

These descriptions may be used in order to derive several interesting properties. For instance, since a function is bijective if and only if it is both injective and surjective, a module homomorphism is an isomorphism if and only if it is both a monomorphism and an epimorphism.

For endomorphisms and automorphisms, the descriptions above coincide with the category theoretic definitions; the first three descriptions do not. For instance, the precise definition for a homomorphism f to be iso is not only that it is bijective, and thus has an inverse f-1, but also that this inverse is a homomorphism, too. This has the important consequence that two objects are completely indistinguishable as far as the structure in question is concerned, if there is an isomorphism between them. Two such objects are said to be isomorphic.

Actually, in the algebraic setting (at least within the context of universal algebra) this extra condition on isomorphisms is automatically satisfied. However, the same is not true for epimorphisms; for instance, the inclusion of Z as a (unitary) subring of Q is not surjective, but an epimorphic ring homomorphism.[1] This inclusion thus also is an example of a ring homomorphism which is both mono and epi, but not iso.

Relationships between different kinds of module homomorphisms.
H = set of Homomorphisms, M = set of Monomorphisms,
P = set of Epimorphisms, S = set of Isomorphisms,
N = set of Endomorphism, A = set of Automorphisms.
Notice that: M ∩ P = S, S ∩ N = A,
(M ∩ N) \ A and (P ∩ N) \ A contain only homomorphisms from some infinite modules to themselves.

## Kernel of a homomorphism

Any homomorphism f : XY 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 object-structure 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 L-structures. Then a homomorphism from A to B is a mapping h from the domain of A to the domain of B such that

• h(FA(a1,…,an)) = FB(h(a1),…,h(an)) for each n-ary function symbol F in L,
• RA(a1,…,an) implies RB(h(a1),…,h(an)) for each n-ary relation symbol R in L.

In the special case with just one binary relation, we obtain the notion of a graph homomorphism.

## Homomorphisms and e-free homomorphisms in formal language theory

Homomorphisms are also used in the study of formal languages[2] (although within this context, often they are briefly referred to as morphisms[3]). Given alphabets $\Sigma_1$ and $\Sigma_2$, a function h : $\Sigma_1^*$$\Sigma_2^*$ such that $h(uv)=h(u)h(v)$ for all u and v in $\Sigma_1^*$ is called a homomorphism (or simply morphism) on $\Sigma_1^*$.[4] Let e denote the empty word. If h is a homomorphism on $\Sigma_1^*$ and $h(x) \ne e$ for all $x \ne e$ in $\Sigma_1^*$, then h is called an e-free homomorphism.

This type of homomorphism can be thought of as (and is equivalent to) a monoid homomorphism where $\Sigma^{*}$ the set of all words over a finite alphabet $\Sigma$ is a monoid (in fact it is the free monoid on $\Sigma$) with operation concatenation and the empty word as the identity.

4. ^ In homomorphisms on formal languages, the * operation is the Kleene star operation. The $\cdot$ and $\circ$ are both concatenation, commonly denoted by juxtaposition.