Diagonal morphism

In category theory, a branch of mathematics, for every object $$a$$ in every category $$\mathcal{C}$$ where the product $$a\times a$$ exists, there exists the diagonal morphism


 * $$\delta_a : a \rightarrow a \times a$$

satisfying


 * $$\pi_k \circ \delta_a = \operatorname{id}_a$$ for $$k \in \{ 1,2 \},$$

where $$\pi_k$$ is the canonical projection morphism to the $$k$$-th component. The existence of this morphism is a consequence of the universal property that characterizes the product (up to isomorphism). The restriction to binary products here is for ease of notation; diagonal morphisms exist similarly for arbitrary products. The image of a diagonal morphism in the category of sets, as a subset of the Cartesian product, is a relation on the domain, namely equality.

For concrete categories, the diagonal morphism can be simply described by its action on elements $$x$$ of the object $$a$$. Namely, $$\delta_a(x) = \langle x,x \rangle$$, the ordered pair formed from $$x$$. The reason for the name is that the image of such a diagonal morphism is diagonal (whenever it makes sense), for example the image of the diagonal morphism $$\mathbb{R} \rightarrow \mathbb{R}^2$$ on the real line is given by the line that is the graph of the equation $$y=x$$. The diagonal morphism into the infinite product $$X^\infty$$ may provide an injection into the space of sequences valued in $$X$$; each element maps to the constant sequence at that element. However, most notions of sequence spaces have convergence restrictions that the image of the diagonal map will fail to satisfy.

The dual notion of a diagonal morphism is a co-diagonal morphism. For every object $$b$$ in a category $$\mathcal{C}$$ where the coproducts $$b \sqcup b$$ exists, the co-diagonal is the canonical morphism


 * $$\delta_b \colon b \sqcup b \stackrel{[Id,Id]}  \to b$$

satisfying


 * $$\delta_b \circ \tau_l = \operatorname{id}_b$$ for $$l \in \{ 1,2 \}.$$

where $$\tau_l$$ is the injection morphism to the $$l$$-th component.

Let $$f : X \to Y$$ be a morphism in a category $$\mathcal{C}$$ with the pushout is an epimorphism if and only if the codiagonal is an isomorphism.