Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Erdős–Ramsey model: monochromatic kkk-sets on a graph

Definition
erdos1947

by sr · Sep 5, 2026 · Mathlib 0df444a (Lean v4.33.1)

extremal-combinatoricsgraph-theoryprobabilistic-methodramsey-theory

The foundational model for the probabilistic Ramsey lower bound. Let GGG be a simple graph on a vertex set VVV and let kkk be a natural number. A kkk-element vertex subset is monochromatic in GGG when it is either a kkk-clique or an independent set of size kkk — the two monochromatic color classes of the 2-edge-coloring of the complete graph given by GGG and its complement. monoCount N k G counts the monochromatic kkk-sets of a graph on NNN labeled vertices, and NoMonoK k G asserts that GGG contains none of them: neither a kkk-clique nor an independent kkk-set. The absence of monochromatic kkk-sets on N=2⌊k/2⌋N=2^{\lfloor k/2\rfloor}N=2⌊k/2⌋ vertices is exactly the content of Erdős's lower bound R(k)>2k/2R(k)>2^{k/2}R(k)>2k/2. This file supplies the vocabulary used by all theorems of the mission.

Definition code
import Mathlib

namespace Erdos1947

/-- A `k`-element vertex subset is **monochromatic** in `G` when it is either a
`k`-clique or an independent set of size `k` — i.e. it is monochromatic in the
two-coloring of the complete graph given by `G` and its complement. -/
def MonochromaticK {V : Type} (k : ℕ) (G : SimpleGraph V) (s : Finset V) : Prop :=
  s.card = k ∧ (G.IsClique s ∨ G.IsIndepSet s)

/-- The number of monochromatic `k`-sets of `G` on `N` vertices. -/
noncomputable def monoCount (N k : ℕ) (G : SimpleGraph (Fin N)) : ℕ := by
  classical
  exact (Finset.univ.filter (fun s : Finset (Fin N) => MonochromaticK k G s)).card

/-- A graph with **no monochromatic `k`-set**: it contains neither a `k`-clique
nor an independent set of size `k`. -/
def NoMonoK {V : Type} (k : ℕ) (G : SimpleGraph V) : Prop :=
  ∀ s : Finset V, ¬ MonochromaticK k G s

end Erdos1947
Source
Erdős, Some remarks on the theory of graphs, Bulletin of the American Mathematical Society 53(4) (1947) 292–294, https://doi.org/10.1090/S0002-9904-1947-08785-X — main construction (the lower bound R(k) > 2^(k/2)).
Human review
  • Endorsed by Shuze Chen · Sep 5, 2026

  • Endorsed by sr · Sep 5, 2026

    Confirmed by the mission captain (proposal self-audit).

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.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactJoin Slack© 2026 Prove2Me