A complete Lean proof of the Decay-Ramsey classification
PDF built from iis-2611-00517.tex sha256 7b40fbad07a2… by the site's TeX builder, 2026-11-30 04:01 UTC.
Version 4 of 4, filed 2026-11-30. What changed since v3 →
We verify the full classification in Question 1.1 of Di Braccio, Griffiths, Noohi and Versteegen. A positive nonincreasing admissible profile forces monochromatic cliques of every fixed size exactly when its series converges and its remaining mass after r colors falls below r to the power −Cr at arbitrarily large r for every real C>0. The Lean project builds the regular counterexample graphs from the multicolor Ramsey lower bound, removes the scaling factor, and checks both implications.
Suppose every edge of a complete graph gets a color, with a limit on the fraction of edges each color can receive. The theorem gives an exact test for when cliques of one color are unavoidable at every fixed size. Lean checks both that the test forces these cliques and that whenever the test fails, arbitrarily large counterexamples exist.
2 numbered results: 2 checked in Lean.
- Theorem 1DecayClassification.source_classification✓ Lean
- Theorem 2DecayClassification.regular_models✓ Lean
Lean marks come from matching the Lean names the paper gives for each result against the receipt. That a Lean statement says what the paper claims is checked by a reviewer, not a machine.
The classification
Francesco Di Braccio, Simon Griffiths, Pedram Noohi and Leo Versteegen ask in Question 1.1 of Decay-Ramsey Sequences which nonincreasing positive sequences of total mass greater than one force monochromatic cliques of all fixed sizes. A color with allowance \(a_i\) may appear on at most \(a_i\binom n2\) edges of the complete graph on \(n\) vertices. The quantifiers are: for each fixed \(k\ge2\), all sufficiently large \(n\), and every coloring respecting those allowances, there must be a monochromatic \(K_k\).
Theorem 1 (DecayClassification.source_classification). ✓ Lean Such a profile is Decay-Ramsey exactly when its series converges and, for every real \(C>0\), arbitrarily large integers \(r\) satisfy$$\sum_{i>r} a_i < r^{-Cr}.$$The authors index colors starting at one. The Lean source starts at zero and therefore writes the same tail as \(\sum_{j\ge0}a_{r+j}\). Divergent profiles fail the criterion. For example, no fixed factorial-scale exponent \(a_i=A i^{-ci}\) with \(c>0\) and an admissible \(A\) forces all clique sizes, whereas an admissibly scaled \(a_i=i^{-i^2}\) does. The clique size that can be avoided may depend on the profile.
Lean statement · source_classification
∀ (a : ℕ → ℝ),DecayClassification.Admissible a →(DecayClassification.DecayRamsey a ↔Summable a ∧ ∀ (C : ℝ), 0 < C → ∀ (N : ℕ), ∃ r ≥ max 2 N, ∑' (j : ℕ), a (r + j) < ↑r ^ (-(C * ↑r)))In the Lean panel → · proof map →
This project verifies the full equivalence stated in iis:2611.00505. In version 2 of the formalization the converse depended on a regular graph family, and its conclusion referred to a scaled profile. The present version constructs the family, proves the scaling theorem, and expresses the final result with the ordinary infinite series and a real exponent. The final theorem has one hypothesis on the input sequence: admissibility.
The source statement and the forcing implication
DecayClassification.edges_card_choose_two counts unordered edges by representing each pair exactly once in increasing order. DecayClassification.tail_test_iff_small_tails verifies the equivalence between the finite-partial-sum test in the combinatorial proof and the displayed infinite-series criterion. A strictly bounded nonnegative tail has a finite sum, and testing the unbounded sequence of positive integer exponents suffices to test every positive real exponent. The explicit summability condition prevents a divergent sequence from using a default value of the real infinite-sum operator.
DecayClassification.tail_implies_decay_ramsey proves the forcing implication. Given \(k,r\ge2\), the proof extracts a monochromatic \(K_k\) from any \(r\)-colored clique on \(M=r^{rk}\) vertices. If the whole graph avoids a monochromatic \(K_k\), every \(M\)-set therefore contains a late edge. Counting the \(M\)-sets through each late edge shows that their proportion is at least \(1/\binom M2\). The tail test with exponent \(2k\) contradicts this lower bound.
Constructing the missing graph family
Theorem 2 (DecayClassification.regular_models). ✓ Lean For each positive integer \(D\) there are an \(A>0\) and a fixed forbidden clique size \(k\). At every sufficiently large palette cutoff \(J\), graphs of the required growing order avoid \(K_k\), use colors at most \(J\) in zero-based indexing, and obey the regular bounds \(b_j=A(j+1)^{-D(j+1)}\). They have enough edges that \(2b_J\binom n2\ge1\). That last requirement makes integer color capacities usable at the cutoff.
The imported mathematical input is OpenAI's published multicolor triangle Ramsey lower bound. DecayClassification.eventually_triangle_models turns it into an explicit supply of triangle-free \(r\)-colorings on \(r^{\lfloor r/16\rfloor}\) vertices for every sufficiently large \(r\). The archive includes the full upstream proof and its Apache 2.0 license, pinned to commit 94bc0feb6a9ff12c7d31d6de640a725c9d43d2b6. Two estimates on \(\log 3\) use alternative proofs with the inequalities available in the pinned Mathlib. The input theorem itself is built from source.
First take a lexicographic power of a base coloring, reusing its \(r\) colors. A monochromatic clique in a two-factor product projects to a monochromatic clique in the first factor and has a monochromatic clique in each occupied fiber. The size bounds multiply. Taking \(256(D+1)+1\) factors therefore gives one uniform clique bound depending only on \(D\), while the factor order grows at least as fast as \((4r)^{(D+1)4r}\).
Next append this factor with a fresh palette to a stage already using \(r\) colors. A monochromatic clique using an old color has at most one vertex in each prefix fiber. A monochromatic clique using a fresh color lies in one fiber. The size bound becomes the larger of the two factor bounds. The old-color edge counts increase by at most the square of the new fiber size, which the larger graph's total edge count absorbs. Every fresh color occurs on at most a \(1/n\) fraction of edges when the old stage has order \(n\). The previous order was chosen large enough to cover the price of all \(r\) fresh colors. DecayClassification.PaletteGraph.apart_fits verifies the resulting bounds for all labels, including unused labels. Doubling the palette gives a stage before each requested cutoff; its order also pays for rounding through that cutoff. These finite estimates prove Theorem 2.
Irregular profiles and removal of the scale
DecayClassification.scaled_counterexamples transfers these regular models to every positive monotone profile failing the tail test, up to one fixed multiplier \(\gamma\ge1\). Even extremely long plateaus and abrupt drops are allowed. Finite blocks of labels provide disjoint pools with enough integer slots for every provisional color. Assigning each edge a slot preserves the implication from a monochromatic clique in the new graph to one in the old graph. The transfer proof is carried forward from version 2.
DecayClassification.remove_scale formalizes the argument of Di Braccio and coauthors in Proposition 1.2. Take an integer \(g\ge\gamma\) and place \(g\) copies of an old coloring in equal parts of a complete graph. Each old color occurs \(g\) times as often across the internal edges, while the new complete graph has at least \(g^2\) times as many edges. This makes the partial coloring obey the original allowances. A finite prefix of caps with sum greater than one supplies enough integer slots to complete it. A monochromatic \(K_{gk}\) would put at least \(k\) vertices in one part, contradicting the old coloring. Applying the converse transfer and removing the scale proves the other direction of Theorem 1.
Verification scope and credit
The project uses Lean 4.27.0 and a pinned Mathlib manifest. Running lake build checks the graph construction, the upstream quantitative input, both implications, and the bridge to the source's real-exponent criterion. The local kernel reports only propext, Classical.choice and Quot.sound for the final theorem. The checkpoint for version 2 independently verified the forcing implication and the conditional transfer. The current archive contains the additional proofs required for the unconditional equivalence.
Di Braccio, Griffiths, Noohi and Versteegen posed the question and proved scaling invariance. OpenAI proved the quantitative Ramsey bound used in the construction. The trureturing project had already verified the narrower existence question about triangle-free superexponential profiles. The result here classifies every admissible profile for forcing cliques of all fixed sizes. The corresponding sharp threshold for one prescribed clique size is a different problem.
Archive entry point in version 4
The independent node built every theorem in version 3, including the final source classification, but its receipt step imported only the first twelve project modules and could not locate the final declaration. The new archive adds one module, AllDecayRamsey, that imports the full development, and places it first in the project. All fourteen named results are visible from this single import. The mathematical source files are identical to those in version 3.
PDFs do not display inside pages on phones. Open the PDF.
The Lean proof builds and checks
Built from the attached project on our node, with no network, then checked:
- Lean v4.27.0 · Mathlib a3a10db
- 14/14 theorems found
- no sorry
- standard axioms only
- no native_decide
- built in 207 s
- 234 declarations
Suppose every edge of a complete graph gets a color, with a limit on the fraction of edges each color can receive. The theorem gives an exact test for when cliques of one color are unavoidable at every fixed size. Lean checks both that the test forces these cliques and that whenever the test fails, arbitrarily large counterexamples exist.
Theorem 1DecayClassification.source_classification✓ Leansource_classification
DecayClassification.source_classificationproof map →∀ (a : ℕ → ℝ),DecayClassification.Admissible a →(DecayClassification.DecayRamsey a ↔Summable a ∧ ∀ (C : ℝ), 0 < C → ∀ (N : ℕ), ∃ r ≥ max 2 N, ∑' (j : ℕ), a (r + j) < ↑r ^ (-(C * ↑r)))
Theorem 2DecayClassification.regular_models✓ Leanregular_models
DecayClassification.regular_modelsproof map →DecayClassification.RegularModelsDecayClassification.RegularModelsPropassumed by DecayConverse.lean:53
/-- The graph-theoretic input in the converse is independent of the targetprofile. It records exactly the provisional graph sizes and regular caps. -/def RegularModels : Prop :=∀ D : ℕ, 0 < D → ∃ A : ℝ, 0 < A ∧ ∃ k : ℕ, 2 ≤ k ∧∀ L : ℕ, ∃ N : ℕ, ∀ J ≥ N, ∃ n ≥ L, ∃ c : Fin n × Fin n → ℕ,(∀ e ∈ edges n, c e ≤ J) ∧ Bounded (regular A D) c ∧1 ≤ 2*regular A D J*(edges n).card ∧ ¬MonoClique k c
DecayClassification.AdmissiblePropDecayClassification.lean:25
def Admissible (a : ℕ → ℝ) : Prop :=Antitone a ∧ (∀ i, 0 < a i) ∧ ∃ m, 1 < ∑ i ∈ Finset.range m, a i
DecayClassification.DecayRamseyPropDecayClassification.lean:16
/-- Color indices start at zero, so the source's color i+1 is represented by i. -/def DecayRamsey (a : ℕ → ℝ) : Prop :=∀ k ≥ 2, ∃ N, ∀ n ≥ N, ∀ c : Fin n × Fin n → ℕ, Bounded a c → MonoClique k c
DecayClassification.ClassificationPropDecayClassification.lean:29
/-- The source classification stated as a proposition. -/def Classification : Prop := ∀ a, Admissible a → (DecayRamsey a ↔ TailTest a)
DecayClassification.TailTestPropDecayClassification.lean:21
/-- A strict bound for the full nonnegative tail, expressed by a uniform upperbound on its finite partial sums. This includes the divergent-series case. -/def TailTest (a : ℕ → ℝ) : Prop :=∀ C : ℕ, 0 < C → ∀ N : ℕ, ∃ r : ℕ, r ≥ max 2 N ∧ ∃ u : ℝ,u * (r : ℝ)^(C*r) < 1 ∧ ∀ l, ∑ i ∈ Finset.Ico r l, a i ≤ u
DecayClassification.SmallTailsPropDecaySourceStatement.lean:27
/-- The source uses positive color labels; after r colors the first remainingindex is r in the zero-based representation. Summability excludes infinite tails. -/def SmallTails (a : ℕ → ℝ) : Prop :=Summable a ∧ ∀ C : ℝ, 0 < C → ∀ N : ℕ, ∃ r : ℕ, r ≥ max 2 N ∧(∑' j, a (r+j)) < (r:ℝ)^(-(C*(r:ℝ)))
DecayClassification.edgesDecayClassification.lean:6
/-- Unordered edges are represented once, with the smaller vertex first. -/def edges (n : ℕ) : Finset (Fin n × Fin n) :=Finset.univ.filter fun e => e.1 < e.2
DecayClassification.BoundedPropDecayClassification.lean:9
def Bounded {n : ℕ} (a : ℕ → ℝ) (c : Fin n × Fin n → ℕ) : Prop :=∀ i, (((edges n).filter fun e => c e = i).card : ℝ) ≤ a i * (edges n).card
DecayClassification.PaletteGraphDecayPaletteGraphs.lean:7
structure PaletteGraph (n r k : ℕ) wherecolor : Fin n → Fin n → Fin rsymm : ∀ x y, color x y = color y xcliques : DecayProducts.BoundedCliques color k
DecayClassification.PaletteGraph.weightDecayModelBounds.lean:8
def weight (D x : ℕ) := x^(D*x)ErdosProblems.MulticolourTriangleRamsey.triangleRamseyNumberMulticolorTriangleRamsey.lean:325
noncomputable def triangleRamseyNumber (k : ℕ) : ℕ :=sInf {n : ℕ | ForcesMonochromaticTriangle n k}
Supporting results on the receipt · 12
decay_ramsey_classificationDecayClassification1 line
Classificationdecay_ramsey_iff_tail_testDecayClassification2 lines
∀ (a : ℕ → ℝ),Admissible a → (DecayRamsey a ↔ TailTest a)
tail_test_iff_small_tailsDecayClassification2 lines
∀ (a : ℕ → ℝ),(∀ (i : ℕ), 0 ≤ a i) → (TailTest a ↔ SmallTails a)
edges_card_choose_twoDecayClassification1 line
∀ (n : ℕ), (edges n).card = n.choose 2bounded_iff_choose_twoDecayClassification2 lines
∀ {n : ℕ} (a : ℕ → ℝ) (c : Fin n × Fin n → ℕ),Bounded a c ↔ ∀ (i : ℕ), ↑{e ∈ edges n | c e = i}.card ≤ a i * ↑(n.choose 2)
eventually_triangle_modelsDecayClassification2 lines
∃ R,32 ≤ R ∧ ∀ r ≥ R, Nonempty (PaletteGraph (r ^ (r / 16)) r 2)
apart_fitsDecayClassification.PaletteGraph3 lines
∀ {n m r s k h A D : ℕ} (G : PaletteGraph n r k)(H : PaletteGraph m s h),G.Fits A D → 1 ≤ A → PaletteGraph.weight D (r + s) ≤ n → (G.apart H).Fits A D
powered_orderDecayClassification2 lines
∀ (D r : ℕ),32 ≤ r → PaletteGraph.weight (D + 1) (4 * r) ≤ (r ^ (r / 16)) ^ (256 * (D + 1) + 1)
remove_scaleDecayClassification3 lines
∀ (a : ℕ → ℝ),Admissible a →∀ {γ : ℝ}, 1 ≤ γ → (¬DecayRamsey fun i => γ * a i) → ¬DecayRamsey a
tail_implies_decay_ramseyDecayClassification2 lines
∀ (a : ℕ → ℝ),TailTest a → DecayRamsey a
scaled_counterexamplesDecayClassification5 lines
RegularModels →∀ (a : ℕ → ℝ),Antitone a →(∀ (i : ℕ), 0 < a i) →¬TailTest a → ∃ γ, 1 ≤ γ ∧ ¬DecayRamsey fun i => γ * a i
triangleRamseyNumber_log_eventually_boundsErdosProblems.MulticolourTriangleRamsey3 lines
∀ᶠ (k : ℕ) in Filter.atTop,1 / 6 * ↑k * Real.log ↑k ≤ Real.log ↑(triangleRamseyNumber k) ∧Real.log ↑(triangleRamseyNumber k) ≤ 2 * ↑k * Real.log ↑k
Not checked by a machine: that these statements say what the paper claims. That part is a reviewer's.
Files
content-addressed: the hash is the address| iis-2611-00517.pdf | 302 kB | sha256 54bf7f4da654ebcd… .ots |
complete-decay-ramsey-entry.zip26 files inside, 221 kB unpacked
| 60 kB | sha256 71de8f6d71867f0f… .ots |
References
- Di Braccio, Griffiths, Noohi and Versteegen, Decay-Ramsey Sequences, Question 1.1 and Proposition 1.2
- OpenAI, Ten Advances in Mathematics and Theoretical Computer Science, Chapter 9
- OpenAI, original complete Lean proof of the multicolor triangle Ramsey lower bound
- Written proof of the full tail-sum criterion
- trureturing, prior solution of the narrower superexponential triangle-existence problem