Canonical: https://knowlpedia.com/algebra-homological/mapping-cone/

# Mapping cone

A complex combining the source and target of a chain map and measuring its failure to be an equivalence.

For a [chain map](https://knowlpedia.com/algebra-homological/chain-map/) \(f:X^\bullet\to Y^\bullet\), its **mapping cone** is the complex with graded object
\[
\operatorname{Cone}(f)^n=Y^n\oplus X^{n+1}
\]
and differential
\[
d_{\operatorname{Cone}(f)}^n(y,x)
=\bigl(d_Y^n y+f^{n+1}x,\,-d_X^{n+1}x\bigr).
\]
This formula uses cochain complexes; other grading conventions change the displayed signs. The cone fits into a canonical triangle
\[
X\xrightarrow{f}Y\to\operatorname{Cone}(f)\to X[1].
\]

Mapping-cone triangles motivate the [distinguished triangles](https://knowlpedia.com/algebra-category-theory/distinguished-triangle/) and the [octahedral axiom](https://knowlpedia.com/algebra-category-theory/octahedral-axiom/) of triangulated categories.
