Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Pigeonhole step for triangle Ramsey numbers: Rk(3)≤NR_k(3) \le NRk​(3)≤N implies Rk+1(3)≤(k+1)(N−1)+2R_{k+1}(3) \le (k+1)(N-1) + 2Rk+1​(3)≤(k+1)(N−1)+2

Proved
ClassicalSchur.triangleRamsey_succ

by mysticflounder · Oct 4, 2026 · Mathlib 0df444a (Lean v4.33.1)

additive-combinatoricscombinatoricsramsey-theoryschur-frontier-s6schur-numberssum-free-sets

This is the classical recursive upper bound for the multicolour Ramsey numbers of triangles, in the form of the monochromatic-triangle property.

For k,N∈Nk, N \in \mathbb{N}k,N∈N write TR(k,N)\mathrm{TR}(k, N)TR(k,N) (Lean TriangleRamsey k N) for the statement: for every finite set V⊆NV \subseteq \mathbb{N}V⊆N with ∣V∣≥N|V| \ge N∣V∣≥N, every set K⊆NK \subseteq \mathbb{N}K⊆N of at most kkk colours, and every colouring that gives each pair x<yx < yx<y of elements of VVV a colour c(x,y)∈Kc(x, y) \in Kc(x,y)∈K, there are x<y<zx < y < zx<y<z in VVV with c(x,y)=c(y,z)=c(x,z)c(x, y) = c(y, z) = c(x, z)c(x,y)=c(y,z)=c(x,z). Write Rk(3)R_k(3)Rk​(3) for the least NNN such that every colouring of the edges of the complete graph KNK_NKN​ with kkk colours has a monochromatic triangle. For k≥1k \ge 1k≥1, TR(k,N)\mathrm{TR}(k, N)TR(k,N) holds when N≥Rk(3)N \ge R_k(3)N≥Rk​(3) and fails when N<Rk(3)N < R_k(3)N<Rk​(3); so it states Rk(3)≤NR_k(3) \le NRk​(3)≤N.

Let k,N∈Nk, N \in \mathbb{N}k,N∈N. If TR(k,N)\mathrm{TR}(k, N)TR(k,N) holds, then

TR(k+1, (k+1)(N−1)+2).\mathrm{TR}\bigl(k + 1,\ (k + 1)(N - 1) + 2\bigr).TR(k+1, (k+1)(N−1)+2).

In terms of Ramsey numbers, Rk+1(3)≤(k+1)(Rk(3)−1)+2R_{k+1}(3) \le (k+1)\bigl(R_k(3) - 1\bigr) + 2Rk+1​(3)≤(k+1)(Rk​(3)−1)+2, the bound of Greenwood and Gleason (1955, Theorem 6). In the mission it turns the hypothesis R4(3)≤61R_4(3) \le 61R4​(3)≤61 into R5(3)≤5⋅60+2=302R_5(3) \le 5 \cdot 60 + 2 = 302R5​(3)≤5⋅60+2=302; in general it turns TR(k,u+1)\mathrm{TR}(k, u + 1)TR(k,u+1) with 2t=(k+1)u2t = (k+1)u2t=(k+1)u into TR(k+1,2t+2)\mathrm{TR}(k + 1, 2t + 2)TR(k+1,2t+2), the Ramsey bound with one colour more that the frontier theorems need.

Formalization Note. Colours are natural numbers, and the colouring is a function c:N→N→Nc : \mathbb{N} \to \mathbb{N} \to \mathbb{N}c:N→N→N of which only the values c(x,y)c(x, y)c(x,y) for x<yx < yx<y in VVV are constrained; "at most kkk colours" means a Finset KKK with ∣K∣≤k|K| \le k∣K∣≤k. The subtraction N−1N - 1N−1 is truncated subtraction on N\mathbb{N}N, but no truncation occurs under the hypothesis: TR(k,0)\mathrm{TR}(k, 0)TR(k,0) and TR(k,1)\mathrm{TR}(k, 1)TR(k,1) are false for every kkk, since a set with at most one point has no triangle, so the hypothesis forces N≥2N \ge 2N≥2. The case k=0k = 0k=0 is included: TR(0,N)\mathrm{TR}(0, N)TR(0,N) holds for every N≥2N \ge 2N≥2, because no pair can receive a colour from the empty set.

Preamble
import Definitions.Def_ClassicalSchurRamsey
import Mathlib

open ClassicalSchur

Formal statement
theorem ClassicalSchur.triangleRamsey_succ {k N : ℕ} (hR : TriangleRamsey k N) :
    TriangleRamsey (k + 1) ((k + 1) * (N - 1) + 2) := by sorry
Source
A. McKenna, "S(6) ≤ 1801 if R₄(3) ≤ 61: a centred Schur bound and the structure at the frontier", Zenodo (2026), https://doi.org/10.5281/zenodo.23156099, Lemma 2.5 (the pigeonhole step: if R_k(3) ≤ N, then R_{k+1}(3) ≤ (k + 1)(N − 1) + 2) and Corollary 3.3 (R_5(3) ≤ 5·60 + 2 = 302 from R_4(3) ≤ 61); classical source: R. E. Greenwood and A. M. Gleason, "Combinatorial relations and chromatic graphs", Canad. J. Math. 7 (1955) 1–7, https://doi.org/10.4153/CJM-1955-001-4, Theorem 6 (t_{r+1} ≤ (r + 1)(t_r − 1) + 2). Lean source: https://github.com/mysticflounder/schur-centred-bound/blob/v1.0.1/ClassicalSchur/SchurBound.lean#L37-L69 (release v1.0.1, doi:10.5281/zenodo.23156444).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me