The five lemma
ProvedFamousTheorems.five_lemmaThe five lemma. In an abelian category, let
be a commutative diagram with exact rows. If is an epimorphism, and are isomorphisms, and is a monomorphism, then is an isomorphism.
This is the sharp form of the five lemma, where the outer maps need only be epi and mono. It is used constantly in algebraic topology and homological algebra to show that a map inducing isomorphisms on neighbouring terms of long exact sequences is itself an isomorphism.
Formalization note. Mathlib's CategoryTheory.Abelian.isIso_of_epi_of_isIso_of_isIso_of_mono. Rows are ComposableArrows C 4 (sequences of four composable arrows, five objects), exactness is .Exact, and ComposableArrows.app' φ i is the -th vertical component of the morphism of rows φ.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem five_lemma {C : Type*} [CategoryTheory.Category C] [CategoryTheory.Abelian C] {R₁ R₂ : CategoryTheory.ComposableArrows C 4}
(hR₁ : R₁.Exact) (hR₂ : R₂.Exact) (φ : R₁ ⟶ R₂)
(h₀ : CategoryTheory.Epi (CategoryTheory.ComposableArrows.app' φ 0))
(h₁ : CategoryTheory.IsIso (CategoryTheory.ComposableArrows.app' φ 1))
(h₃ : CategoryTheory.IsIso (CategoryTheory.ComposableArrows.app' φ 3))
(h₄ : CategoryTheory.Mono (CategoryTheory.ComposableArrows.app' φ 4)) :
CategoryTheory.IsIso (CategoryTheory.ComposableArrows.app' φ 2) := by sorry
end FamousTheoremsSource
Listed in Mathlib's curated theorem manifests (docs/1000.yaml); formalized in Mathlib as `CategoryTheory.Abelian.isIso_of_epi_of_isIso_of_isIso_of_mono`. Proof here reduces to that Mathlib result.