Canonical: https://knowlpedia.com/algebra-category-theory/morphism/

# Morphism

An arrow between objects in a category.

Let \(\mathcal C\) be a [category](https://knowlpedia.com/algebra-category-theory/category/) and \(X,Y \in \mathrm{Ob}(\mathcal C)\).
A **morphism** \(f : X \to Y\) is an element of \(\mathrm{Hom}_{\mathcal C}(X,Y)\).

The **source** (or domain) of \(f\) is \(X\), and its **target** (or codomain) is \(Y\). Morphisms can be [composed](https://knowlpedia.com/algebra-category-theory/composition-category/) when targets and sources match, and each object has an [identity morphism](https://knowlpedia.com/algebra-category-theory/identity-morphism/).

## Special morphisms

- If \(X=Y\), then \(f\) is an [endomorphism](https://knowlpedia.com/algebra-category-theory/endomorphism-category/).
- If \(f\) is invertible (has a two-sided inverse), then \(f\) is an [isomorphism](https://knowlpedia.com/algebra-category-theory/isomorphism-category/).
- If \(f\) is left-cancellative under composition, then \(f\) is a [monomorphism](https://knowlpedia.com/algebra-category-theory/monomorphism-category/) (a “mono”).
- Dually, one has [epimorphisms](https://knowlpedia.com/algebra-category-theory/epimorphism-category/) (“epis”).

## Examples

1. In \(\mathbf{Set}\), morphisms are [functions](https://knowlpedia.com/shared-foundations/function/) between sets.
2. In \(\mathbf{Grp}\), morphisms are group homomorphisms.
3. In \(\mathbf{Top}\), morphisms are continuous maps.
