AFTD Auto-Formalizing Theoretical Domains

multicolor_ramsey_number

def

For a simple graph H on vertex type V and a natural number r, the multicolor Ramsey number multicolor_ramsey_number H r is the infimum in ℕ of the set of natural numbers N such that every r-edge-coloring of the complete graph on Fin N contains a monochromatic copy of H.

Statement

noncomputable def multicolor_ramsey_number {V : Type*} (H : SimpleGraph V) (r : ℕ) : ℕ
Defined in
arXiv:2611.19312 Section 1
Verified
22 Nov 2026
Axioms
none listed
Built on 1
  • multicolor_ramsey_propertyFor a simple graph H on vertex type V and natural numbers r and N, multicolor_ramsey_property H r N asserts that every r-edge-coloring of…
Used by 1

Read back from the Lean

The multicolor Ramsey number of a simple graph H (with vertex type V) and number of colors r (a natural number) is defined as the infimum (in ℕ, where sInf ∅ = 0) of the set of all natural numbers N such that for every r-coloring c of the edges of the complete graph on Fin N (c : (⊤ : SimpleGraph (Fin N)).edgeSet → Fin r), there exists a color col : Fin r such that H is contained in (embeds into) the monochromatic subgraph of ⊤ consisting of edges colored col.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- Multicolor Ramsey number: the least N such that every r-edge-coloring of K_N contains a monochromatic copy of H. -/
noncomputable def multicolor_ramsey_number {V : Type*} (H : SimpleGraph V) (r : ℕ) : ℕ :=
  sInf {N : ℕ | multicolor_ramsey_property H r N}
See it in the graphDiscuss this resultChallenge it