Mathlib theorem · Existing formal mathematics

Existing in Mathlib · Combinatorics

Hales–Jewett Theorem

Fix a finite alphabet and finitely many colors. In some sufficiently large finite word space, no matter how every word is colored, there is a family of words obtained by changing one nonempty set of positions together, all with the same color.

Exact theorem

Exact Mathlib statement

theorem Combinatorics.Line.exists_mono_in_high_dimension (α : Type u) [Finite α] (κ : Type v) [Finite κ] : ∃ (ι : Type) (_ : Fintype ι), ∀ C : (ι → α) → κ, ∃ l : Combinatorics.Line α ι, l.IsMono C

The theorem at a glance

Hales–Jewett Theorem at a glance

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

For every finite alphabet and finite color set, some finite coordinate type makes every coloring contain a monochromatic combinatorial line. Explanatory diagram.
Detailed visual description

The theorem block preserves the finite alphabet and color hypotheses, existential finite coordinate type, universal coloring, and monochromatic-line conclusion. The central example gives the complete line for alphabet {a,b,c} under the pattern (a,x,x,b,x): (a,a,a,b,a), (a,b,b,b,b), and (a,c,c,b,c), all with one whole-word halo. The footer explicitly records the non-effective and one-dimensional boundary.

Statement structure

Statement and scope

Statement map for Hales–Jewett TheoremFor every finite alphabet and finite color set, some finite word dimension makes every coloring contain a monochromatic combinatorial line. Claim boundary: This page indexes Mathlib’s combinatorial-line form of the Hales–Jewett theorem for arbitrary finite types α and κ. It produces some finite coordinate type ι before quantifying over every coloring C : (ι → α) → κ. A line fixes some coordinates and varies one nonempty set of coordinates together through a common letter. The selected declaration supplies no effective or least dimension, canonical choice, coloring-independent line, or algorithm, and it is not the separate multidimensional subspace theorem or the Van der Waerden corollary. The pinned upstream declaration is Combinatorics.Line.exists_mono_in_high_dimension. The complete formal statement is available in the Exact Mathlib statement section.Mathematical readingFor every finitealphabet and finitecolor set, some finiteword dimension makesevery coloring contain amonochromaticcombinatorial line.Claim boundaryThis page indexesMathlib’scombinatorial-line formof the Hales–Jewetttheorem for arbitraryfinite types α and κ. Itproduces some finitecoordinate type ι beforequantifying over everycoloring C : (ι → α) →κ. A line fixes somecoordinates and variesone nonempty set ofcoordinates togetherthrough a common letter.The selected declarationsupplies no effective orleast dimension,canonical choice,coloring-independentline, or algorithm, andit is not the separatemultidimensionalsubspace theorem or theVan der Waerdencorollary.Pinned declarationmathlib ·Combinatorics.Line.exists_mono_in_high_dimensionStatement map for Hales–Jewett TheoremFor every finite alphabet and finite color set, some finite word dimension makes every coloring contain a monochromatic combinatorial line. Claim boundary: This page indexes Mathlib’s combinatorial-line form of the Hales–Jewett theorem for arbitrary finite types α and κ. It produces some finite coordinate type ι before quantifying over every coloring C : (ι → α) → κ. A line fixes some coordinates and varies one nonempty set of coordinates together through a common letter. The selected declaration supplies no effective or least dimension, canonical choice, coloring-independent line, or algorithm, and it is not the separate multidimensional subspace theorem or the Van der Waerden corollary. The pinned upstream declaration is Combinatorics.Line.exists_mono_in_high_dimension. The complete formal statement is available in the Exact Mathlib statement section.Mathematical readingFor every finitealphabet and finitecolor set, some finiteword dimension makesevery coloring contain amonochromaticcombinatorial line.Claim boundaryThis page indexesMathlib’scombinatorial-line formof the Hales–Jewetttheorem for arbitraryfinite types α and κ. Itproduces some finitecoordinate type ι beforequantifying over everycoloring C : (ι → α) →κ. A line fixes somecoordinates and variesone nonempty set ofcoordinates togetherthrough a common letter.The selected declarationsupplies no effective orleast dimension,canonical choice,coloring-independentline, or algorithm, andit is not the separatemultidimensionalsubspace theorem or theVan der Waerdencorollary.Pinned declarationmathlib ·Combinatorics.Line.exists_mono_in_high_dimension

Read the exact Mathlib declaration

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

An illustrative monochromatic combinatorial line over a three-symbol alphabet: two coordinates stay fixed and three coordinates vary synchronously through every alphabet symbol. Explanatory scientific diagram.
Detailed visual description

Three outlined five-tile words appear one above another. The first and fourth columns contain the same cobalt circle and emerald diamond in every row. Columns two, three, and five all show circles in the first row, diamonds in the second, and six-pointed gold stars in the third. These are all three letters of the same alphabet, including both fixed letters. Identical vermilion outlines represent one common whole-word color. The faint background lattice is decorative context. This five-coordinate example illustrates a combinatorial line; it does not claim that dimension five suffices for an arbitrary coloring in the Hales–Jewett theorem.

Why it matters

A mathematical landmark

The Hales–Jewett theorem is a central structural result in Ramsey theory. Mathlib’s source exposes the theorem’s distinctive route through induction on the alphabet, color-focused families, a product argument, and the final impossibility of more distinct focused colors than the finite color type contains.

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 combinatorial-line form of the Hales–Jewett theorem for arbitrary finite types α and κ. It produces some finite coordinate type ι before quantifying over every coloring C : (ι → α) → κ. A line fixes some coordinates and varies one nonempty set of coordinates together through a common letter. The selected declaration supplies no effective or least dimension, canonical choice, coloring-independent line, or algorithm, and it is not the separate multidimensional subspace theorem or the Van der Waerden corollary.

Source and local evidence

Where the theorem comes from

Existing declaration
Combinatorics.Line.exists_mono_in_high_dimension in mathlib
Relationship
The checked artifact is the upstream declaration itself
Local Lean evidence
artifact.library.mathlib.hales-jewett-theorem.v001
Source
Open the pinned upstream reference