The Schröder–Bernstein theorem
ProvedFamousTheorems.schroeder_bernsteinmathlibset-theory
Mutual injections give a bijection.
If there are injections and , then there is a bijection — that is, and imply .
The result makes cardinal comparison a genuine partial order; without it, antisymmetry would fail and "same cardinality" would be badly behaved. Notably the proof is constructive in the sense of requiring no choice: one partitions according to whether the backwards chain terminates, and uses on one part and on the other.
Proved by Dedekind in 1887 (unpublished), then by Schröder and Bernstein independently in the 1890s.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem schroeder_bernstein : ∀ {α β : Type*} {f : α → β} {g : β → α},
Function.Injective f → Function.Injective g → ∃ h : α → β, Function.Bijective h := by sorry
end FamousTheoremsSource
One of Freek Wiedijk's "100 theorems"; formalized in Mathlib. Proof here reduces to the corresponding Mathlib result.