Mathlib theorem · Existing formal mathematics

Existing in Mathlib · Combinatorics

Euler’s Odd–Distinct Partition Theorem

Fix a natural number n. Count the partitions of n made only from odd numbers, allowing repeats. Then count the partitions of n in which no number repeats, allowing both odd and even parts. Euler’s theorem says the two counts are always equal.

Exact theorem

Exact Mathlib statement

theorem Nat.Partition.card_odds_eq_card_distincts (n : ℕ) : #(Nat.Partition.odds n) = #(Nat.Partition.distincts n)

The theorem at a glance

Euler’s Odd–Distinct Partition Theorem at a glance

A visual guide to the theorem's hypotheses, structure, and conclusion; the exact statement gives the formal detail.

The generating functions agree, so every coefficient counts equally many odd-part and distinct-part partitions. Explanatory diagram.
Detailed visual description

The poster defines both finite partition families, gives their cardinality equality for every natural n, and traces the Mathlib proof from restricted-partition power series through Glaisher’s product identity and coefficient comparison to the m = 2 specialization. Its scope footer states that the declaration proves a count equality rather than providing an explicit bijection.

Statement structure

Statement and scope

Statement map for Euler’s Odd–Distinct Partition TheoremFor every natural n, partitions of n into odd parts and partitions of n into distinct parts are equinumerous. Claim boundary: This page indexes Mathlib’s cardinality form of Euler’s partition theorem. For every natural n, odds n is the finite set of partitions of n all of whose parts are odd, while distincts n is the finite set of partitions of n whose parts multiset has no repetitions. The declaration says that these two finite sets have equal cardinality. It does not itself construct an explicit bijection, enumerate either family, or state a broader partition identity. The pinned upstream declaration is Nat.Partition.card_odds_eq_card_distincts. The complete formal statement is available in the Exact Mathlib statement section.Mathematical readingFor every natural n,partitions of n into oddparts and partitions ofn into distinct partsare equinumerous.Claim boundaryThis page indexesMathlib’s cardinalityform of Euler’spartition theorem. Forevery natural n, odds nis the finite set ofpartitions of n all ofwhose parts are odd,while distincts n is thefinite set of partitionsof n whose partsmultiset has norepetitions. Thedeclaration says thatthese two finite setshave equal cardinality.It does not itselfconstruct an explicitbijection, enumerateeither family, or statea broader partitionidentity.Pinned declarationmathlib ·Nat.Partition.card_odds_eq_card_distinctsStatement map for Euler’s Odd–Distinct Partition TheoremFor every natural n, partitions of n into odd parts and partitions of n into distinct parts are equinumerous. Claim boundary: This page indexes Mathlib’s cardinality form of Euler’s partition theorem. For every natural n, odds n is the finite set of partitions of n all of whose parts are odd, while distincts n is the finite set of partitions of n whose parts multiset has no repetitions. The declaration says that these two finite sets have equal cardinality. It does not itself construct an explicit bijection, enumerate either family, or state a broader partition identity. The pinned upstream declaration is Nat.Partition.card_odds_eq_card_distincts. The complete formal statement is available in the Exact Mathlib statement section.Mathematical readingFor every natural n,partitions of n into oddparts and partitions ofn into distinct partsare equinumerous.Claim boundaryThis page indexesMathlib’s cardinalityform of Euler’spartition theorem. Forevery natural n, odds nis the finite set ofpartitions of n all ofwhose parts are odd,while distincts n is thefinite set of partitionsof n whose partsmultiset has norepetitions. Thedeclaration says thatthese two finite setshave equal cardinality.It does not itselfconstruct an explicitbijection, enumerateeither family, or statea broader partitionidentity.Pinned declarationmathlib ·Nat.Partition.card_odds_eq_card_distincts

Read the exact Mathlib declaration

This map summarizes the statement's structure; the exact Mathlib declaration remains authoritative.

For each natural n, the odd-part and distinct-part families have the same number of partitions. Explanatory scientific diagram.
Detailed visual description

This page indexes Mathlib’s cardinality form of Euler’s partition theorem. For every natural n, odds n is the finite set of partitions of n all of whose parts are odd, while distincts n is the finite set of partitions of n whose parts multiset has no repetitions. The declaration says that these two finite sets have equal cardinality. It does not itself construct an explicit bijection, enumerate either family, or state a broader partition identity.

Why it matters

A mathematical landmark

Euler’s odd-versus-distinct partition identity is a foundational equinumerosity theorem in enumerative combinatorics. The Mathlib endpoint is concise, but it rests on a substantial generating-function development proving Glaisher’s more general restriction theorem and then specializing it at two.

ProofAtlas record

What has been checked

Upstream indexedPinned source bytes verified locally
Locally reproducedExact upstream declaration replayed
Reviewed pageCurrent public presentation reviewed
Accepted Atlas resultNot recorded for the preferred artifact

Mathlib is the source of the theorem; the local Lean replay and page review are separate.

Claim boundary

No new theorem is claimed

This page indexes Mathlib’s cardinality form of Euler’s partition theorem. For every natural n, odds n is the finite set of partitions of n all of whose parts are odd, while distincts n is the finite set of partitions of n whose parts multiset has no repetitions. The declaration says that these two finite sets have equal cardinality. It does not itself construct an explicit bijection, enumerate either family, or state a broader partition identity.

Source and local evidence

Where the theorem comes from

Existing declaration
Nat.Partition.card_odds_eq_card_distincts in mathlib
Relationship
The checked artifact is the upstream declaration itself
Local Lean evidence
artifact.library.mathlib.euler-odd-distinct-partitions.v001
Source
Open the pinned upstream reference