Skip to content

Chapter 73. Ramsey Theory

Ramsey theory studies unavoidable structure in sufficiently large systems.

Its central principle is simple:

Complete disorder is impossible.

If a graph becomes large enough, then some organized substructure must appear. No matter how edges are arranged, sufficiently large graphs always contain large cliques, large independent sets, long patterns, or other forced configurations.

Ramsey theory belongs to extremal combinatorics, but its influence extends across graph theory, logic, number theory, geometry, probability, and theoretical computer science.

73.1 The Basic Question

Suppose every edge of a complete graph is colored either red or blue.

Can the coloring avoid large monochromatic subgraphs forever?

For small graphs, the answer may be yes. But Ramsey theory shows that eventually this becomes impossible.

For example:

If a complete graph is sufficiently large, then every red-blue edge coloring contains either:

  • a red triangle,
  • or a blue triangle.

The graph cannot avoid both simultaneously.

This is the simplest Ramsey phenomenon.

73.2 Ramsey Numbers

The Ramsey number

R(s,t) R(s,t)

is the smallest integer nn such that every red-blue coloring of the edges of KnK_n contains either:

  • a red clique KsK_s,
  • or a blue clique KtK_t.

Equivalently:

Every graph on nn vertices contains either:

  • a clique of size ss,
  • or an independent set of size tt.

This equivalence comes from interpreting:

  • red edges as edges of a graph,
  • blue edges as nonedges.

Thus Ramsey theory may be viewed either as edge coloring theory or as graph structure theory.

73.3 The Smallest Example

The first nontrivial Ramsey number is:

R(3,3)=6. R(3,3)=6.

R(3,3)=6

This means:

Every red-blue coloring of the edges of K6K_6 contains a monochromatic triangle.

However, K5K_5 does not necessarily contain one.

This classical result is often presented as the “party problem.”

Suppose six people attend a party. Between every pair of people:

  • either they know each other,
  • or they do not.

Then there always exist:

  • three mutual acquaintances,
  • or three mutual strangers.

But with only five people, this conclusion can fail.

This theorem is one of the standard introductory results of Ramsey theory. (en.wikipedia.org)

73.4 Proof that R(3,3)=6R(3,3)=6

Consider any red-blue coloring of the edges of K6K_6.

Choose a vertex vv.

The vertex vv has degree 5, so among the five incident edges, at least three must share the same color by the pigeonhole principle.

Without loss of generality, suppose vv is joined by red edges to vertices:

a,b,c. a,b,c.

Now examine the triangle formed by a,b,ca,b,c.

  • If any edge among them is red, then together with vv it forms a red triangle.
  • Otherwise all edges among a,b,ca,b,c are blue, giving a blue triangle.

Thus every coloring contains a monochromatic triangle.

Therefore:

R(3,3)6. R(3,3)\le 6.

A separate construction shows that K5K_5 can avoid monochromatic triangles, so:

R(3,3)>5. R(3,3)>5.

Hence:

R(3,3)=6. R(3,3)=6.

73.5 Symmetry

Ramsey numbers satisfy:

R(s,t)=R(t,s). R(s,t)=R(t,s).

This follows because exchanging red and blue does not change the problem.

Thus:

R(3,5)=R(5,3). R(3,5)=R(5,3).

The symmetry is immediate but useful.

73.6 General Existence

Ramsey’s Theorem states that all Ramsey numbers exist.

For every positive integers s,ts,t, there exists an integer:

R(s,t). R(s,t).

In other words, sufficiently large complete graphs always force either:

  • a clique of size ss,
  • or an independent set of size tt.

This theorem was proved by Frank P. Ramsey in 1930.

The theorem initiated an entire field of combinatorics.

73.7 Recursive Bound

Ramsey numbers satisfy an important recursive inequality:

R(s,t)R(s1,t)+R(s,t1). R(s,t)\le R(s-1,t)+R(s,t-1).

R(s,t)\le R(s-1,t)+R(s,t-1)

This inequality gives inductive upper bounds.

Proof Idea

Let:

n=R(s1,t)+R(s,t1). n=R(s-1,t)+R(s,t-1).

Consider any red-blue coloring of KnK_n.

Choose a vertex vv.

Partition the remaining vertices into:

  • AA: vertices joined to vv by red edges,
  • BB: vertices joined to vv by blue edges.

Since:

A+B=n1, |A|+|B|=n-1,

either:

AR(s1,t) |A|\ge R(s-1,t)

or:

BR(s,t1). |B|\ge R(s,t-1).

If the first occurs, then:

  • either AA contains a blue KtK_t,
  • or AA contains a red Ks1K_{s-1}, which together with vv forms a red KsK_s.

The second case is symmetric.

Thus the recursion holds.

73.8 Diagonal Ramsey Numbers

The numbers:

R(k,k) R(k,k)

are called diagonal Ramsey numbers.

Their exact values are known only for small kk.

Ramsey numberValue
R(1,1)R(1,1)1
R(2,2)R(2,2)2
R(3,3)R(3,3)6
R(4,4)R(4,4)18
R(5,5)R(5,5)Unknown

Even today, many Ramsey numbers remain unknown.

The difficulty grows extremely rapidly.

73.9 Exponential Growth

Ramsey numbers grow quickly.

Classical bounds show:

2k/2R(k,k)4k. 2^{k/2}\le R(k,k)\le 4^k.

The true growth rate remains one of the major open problems of combinatorics.

This rapid growth reflects the complexity of avoiding large structured subgraphs.

Ramsey theory often produces existence theorems with extremely large bounds.

73.10 Graph-Theoretic Formulation

Ramsey’s Theorem may be expressed purely in graph language.

For every positive integers s,ts,t, there exists nn such that every graph on nn vertices contains either:

  • a clique of size ss,
  • or an independent set of size tt.

Thus every sufficiently large graph contains large order or large anti-order.

This formulation is often more natural in graph theory.

73.11 Multicolor Ramsey Numbers

Ramsey theory extends naturally to more than two colors.

The multicolor Ramsey number:

R(k1,k2,,kr) R(k_1,k_2,\ldots,k_r)

is the least integer nn such that every rr-coloring of the edges of KnK_n contains a monochromatic clique KkiK_{k_i} in color ii for some ii.

For example:

R(3,3,3) R(3,3,3)

asks for the smallest complete graph whose every 3-color edge coloring contains a monochromatic triangle.

These numbers are even more difficult to compute.

73.12 Infinite Ramsey Theory

Ramsey theory also has infinite versions.

One classical form states:

If the edges of an infinite complete graph are colored with finitely many colors, then there exists an infinite monochromatic complete subgraph.

This theorem is one of the foundational results of infinite combinatorics.

It shows that unavoidable order persists even in infinite settings.

73.13 Ramsey Theory and Randomness

Ramsey theory reveals a surprising relationship between randomness and order.

A random graph may appear disordered locally, but sufficiently large random systems still contain large structured subgraphs.

This principle has philosophical significance:

Large systems inevitably contain patterns.

Even purely random structures cannot avoid combinatorial regularity forever.

73.14 Extremal Constructions

Ramsey theory often asks two complementary questions.

Question typeExample
ExistenceLarge graphs force structure
ConstructionHow long can structure be avoided?

Extremal graph constructions attempt to delay the appearance of forced subgraphs as long as possible.

Probabilistic constructions by Paul Erdős revolutionized this area.

They showed that random methods can produce graphs with surprisingly strong extremal properties.

73.15 Ramsey Theory and Coloring

Ramsey theory is closely connected with graph coloring.

In edge-coloring form:

  • edges receive colors,
  • monochromatic subgraphs are forced.

In vertex-coloring form:

  • independent sets correspond to color classes,
  • large cliques obstruct coloring.

Indeed, every graph satisfies:

χ(G)V(G)α(G), \chi(G)\ge \frac{|V(G)|}{\alpha(G)},

where:

  • χ(G)\chi(G) is the chromatic number,
  • α(G)\alpha(G) is the independence number.

Ramsey theory often bounds one parameter by forcing another.

73.16 Hypergraph Ramsey Theory

Ramsey ideas extend beyond ordinary graphs.

In hypergraph Ramsey theory:

  • subsets of size rr are colored,
  • monochromatic hypergraphs are sought.

These problems become dramatically harder.

Even basic hypergraph Ramsey numbers are poorly understood.

Yet the same philosophical principle persists:

Large enough structures force regularity.

73.17 Geometric Ramsey Theory

Ramsey ideas also appear in geometry.

Examples include:

  • monochromatic configurations among points,
  • unavoidable geometric patterns,
  • Euclidean Ramsey problems.

One asks whether sufficiently large colored geometric systems must contain monochromatic geometric substructures.

This connects Ramsey theory with discrete geometry and combinatorial geometry.

73.18 Applications

Ramsey theory appears in many areas.

AreaRamsey interpretation
LogicUnavoidable structures
Computer scienceCommunication complexity
Number theoryArithmetic regularity
GeometryMonochromatic configurations
Data analysisForced patterns
Social networksCliques and communities

Ramsey-type arguments often prove existence without constructing explicit examples.

73.19 The Ramsey Principle

The central message of Ramsey theory is often summarized informally as:

Complete disorder is impossible.

Sufficiently large systems inevitably contain:

  • symmetry,
  • repetition,
  • regularity,
  • structured subconfigurations.

This principle explains why Ramsey theory appears across so many branches of mathematics.

73.20 Summary

Ramsey theory studies unavoidable structure in large graphs and combinatorial systems.

The central object is the Ramsey number:

R(s,t)

which measures when monochromatic structure becomes inevitable.

The main ideas are:

ConceptMeaning
Ramsey numberThreshold for unavoidable structure
CliqueComplete subgraph
Independent setPairwise nonadjacent vertices
Ramsey’s TheoremLarge systems force order
Recursive boundR(s,t)R(s1,t)+R(s,t1)R(s,t)\le R(s-1,t)+R(s,t-1)
Diagonal Ramsey numbersR(k,k)R(k,k)

Ramsey theory shows that sufficiently large combinatorial systems cannot remain completely irregular. Structure eventually becomes unavoidable.

73.21 Exercises

  1. Prove that R(2,2)=2R(2,2)=2.

  2. Verify that R(3,3)=6R(3,3)=6.

  3. Construct a red-blue coloring of K5K_5 with no monochromatic triangle.

  4. Prove that:

R(s,t)=R(t,s). R(s,t)=R(t,s).
  1. Use the recursive bound to show:
R(3,4)10. R(3,4)\le 10.
  1. Explain why every graph on R(s,t)R(s,t) vertices contains either a clique of size ss or an independent set of size tt.

  2. Define a multicolor Ramsey number.

  3. Explain the relationship between edge colorings and graphs in Ramsey theory.

  4. Describe the party interpretation of R(3,3)R(3,3).

  5. Prove that every sufficiently large graph contains either a large clique or a large independent set.

  6. Explain why odd cycles matter in coloring but not directly in Ramsey definitions.

  7. Define an infinite Ramsey theorem.

  8. Explain why Ramsey numbers are difficult to compute.

  9. Describe the probabilistic method in Ramsey theory.

  10. State the philosophical principle behind Ramsey theory.