Euler's partition theorem
ProvedFamousTheorems.card_odds_eq_card_distinctscombinatoricsmathlib
Partitions into odd parts and into distinct parts are equinumerous.
For every , the number of partitions of into odd parts equals the number into distinct parts.
For : the odd-part partitions are , , , — four of them; the distinct-part partitions are , , , — also four.
Euler's proof is a generating-function identity:
which follows by writing and telescoping. Glaisher later gave a bijective proof: repeatedly split even parts in half, or merge equal parts.
It is the prototype of the partition identities that culminate in the Rogers–Ramanujan identities.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem card_odds_eq_card_distincts : ∀ n : ℕ,
(Nat.Partition.odds n).card = (Nat.Partition.distincts n).card := by sorry
end FamousTheoremsSource
One of Freek Wiedijk's "100 theorems"; formalized in Mathlib. Proof here reduces to the corresponding Mathlib result.
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.