Tutorials › Graph Theory (Undergraduate) › Finite Ramsey Existence from the Infinite Theorem

Ramsey Theory · Tutorial 578 of 799

Finite Ramsey Existence from the Infinite Theorem

Learn how stabilization on every finite vertex set converts the infinite Ramsey theorem into finiteness of the ordinary two-color Ramsey numbers.

Advanced 9 min read

What You'll Learn

  • Define the two-color Ramsey number and its finite countercolorings.
  • Explain why arbitrarily large counterexamples give an increasing sequence of orders.
  • Stabilize restrictions using a nested sequence of infinite index sets.
  • Verify that the limiting coloring avoids both target cliques.
  • Apply the infinite Ramsey theorem to prove that every finite Ramsey number exists.
  • Recognize why the construction requires counterexamples of unbounded order.

From Infinite to Finite Ramsey Theory

For fixed clique sizes, the finite Ramsey question asks whether a sufficiently large complete graph must contain a monochromatic clique. The infinite Ramsey theorem for pairs gives a route to an answer, but it applies to a coloring of all pairs of an infinite set, not directly to one finite graph. The key step is to pass from arbitrarily large finite counterexamples to a single coloring whose restrictions agree on every finite set of vertices. That limiting coloring would be a counterexample to the infinite theorem.

Throughout, a red-blue coloring of a complete graph assigns exactly one of the two colors to each edge. A red \(K_s\) is a set of \(s\) vertices all of whose pairs are red; a blue \(K_t\) is defined in the same way. Here \(K_s\) denotes the complete graph on \(s\) vertices. We first take \(s,t\ge 2\).

Definition: The Ramsey number \(R(s,t)\) is the least positive integer \(n\) such that every red-blue coloring of the edges of \(K_n\) contains either a red \(K_s\) or a blue \(K_t\). A coloring with neither target is a countercoloring for \((s,t)\).

To prove \(R(s,t)\) exists, it is enough to show that countercolorings cannot have unbounded order. Indeed, if no order had the defining property, then for every positive integer \(n\) there would be a countercoloring of \(K_n\). In particular, we could choose countercolorings on an increasing sequence of orders. The difficulty is that those colorings need not initially agree on their shared vertices. We obtain agreement by repeatedly retaining an infinite set of colorings with the same restriction.

Stabilizing the Finite Restrictions

We use the infinite Ramsey theorem for pairs, established in the earlier material on infinite Ramsey theory: every red-blue coloring of the pairs of a countably infinite set has an infinite subset whose pairs all have the same color. The theorem will apply only after we construct one coloring on all pairs of the natural numbers.

Lemma (nested stabilization): Suppose that for every positive integer \(n\) there is a countercoloring of \(K_n\) for fixed \(s,t\ge2\). Then there is a red-blue coloring of all pairs of the positive integers that contains no red \(K_s\) and no blue \(K_t\).

Proof. For each \(i\ge1\), choose a countercoloring \(c_i\) on the vertex set \([n_i]=\{1,\ldots,n_i\}\), where \(n_1<n_2<\cdots\). Such a sequence can be chosen because countercolorings exist at every order: choose \(n_i\) successively larger than \(n_{i-1}\), and take a countercoloring at that order. Let \(I_0\) be the set of all indices \(i\), which is infinite.

We construct infinite index sets \(I_1\supseteq I_2\supseteq\cdots\). Suppose \(I_{k-1}\) has been chosen. Only finitely many indices have \(n_i<k\), so removing them leaves an infinite set of indices for which \(c_i\) is defined on all pairs in \([k]\). A coloring of those pairs has at most \(2^{\binom{k}{2}}\) possible patterns, since there are \(\binom{k}{2}\) pairs and each has two color choices. Partition the remaining indices by their restriction to \([k]\). At least one class is infinite: if every class were finite, the union of the finitely many classes would be finite. Choose one infinite class as \(I_k\). Thus every \(c_i\), for \(i\in I_k\), has the same restriction to \([k]\), and \(I_k\subseteq I_{k-1}\).

For a pair \(\{u,v\}\) of positive integers, let \(k=\max\{u,v\}\). Define its color to be its color in the common restriction to \([k]\) of the colorings indexed by \(I_k\). This is well-defined. In particular, if a later set \(I_\ell\), with \(\ell\ge k\), is used instead, then \(I_\ell\subseteq I_k\), so its colorings have the same restriction to \([k]\).

Now take any set \(S\) of \(s\) positive integers and let \(k\) be its largest element. Choose \(i\in I_k\). The coloring \(c_i\) is defined on \([k]\), and its restriction to \([k]\) agrees with the coloring just defined. Since \(c_i\) contains no red \(K_s\), the pairs in \(S\) are not all red in the new coloring. The identical argument for any set of \(t\) vertices shows that it contains no blue \(K_t\). This constructs the asserted coloring. \(\square\)

The use of an infinite class at each stage matters: it leaves enough indices to stabilize the next, larger restriction. Merely finding many colorings that agree on one fixed vertex set would not be sufficient to define colors consistently on every pair of the positive integers.

Finite Ramsey Numbers Exist

Theorem: For every pair of positive integers \(s,t\), the Ramsey number \(R(s,t)\) is finite.

Proof. First suppose \(s,t\ge2\). Assume for contradiction that \(R(s,t)\) does not exist. Then for every positive integer \(n\), some red-blue coloring of \(K_n\) contains neither a red \(K_s\) nor a blue \(K_t\). By the lemma, there is a red-blue coloring of all pairs of the positive integers with neither target clique.

Apply the infinite Ramsey theorem for pairs to this coloring. It gives an infinite set \(H\) whose pairs all have the same color. If that color is red, choose any \(s\) distinct elements of \(H\); every pair among them is red, giving a red \(K_s\). If the color is blue, choose any \(t\) distinct elements of \(H\); they give a blue \(K_t\). Both cases contradict the construction. Therefore a finite order has the Ramsey property, so a least such order exists.

If \(s=1\), every coloring of \(K_1\) contains a red \(K_1\), since a one-vertex clique has no edges whose color needs to be specified. Hence \(R(1,t)=1\). Likewise, \(R(s,1)=1\). This handles the boundary cases and completes the proof. \(\square\)

The theorem is an existence result: it proves that some finite threshold works, without identifying the least threshold or giving a useful numerical bound. The argument depends on both parts of the construction. Stabilization gives a coloring on an infinite set, and the infinite theorem supplies an infinite monochromatic set that must contain either finite target.

Worked Examples

Worked Example: A Small Countercoloring

Let the vertices be \(\{1,2,3,4,5\}\). Color the edges of \(K_5\) red if they are in \(\{12,23,34,45,15\}\), and blue if they are in \(\{13,14,24,25,35\}\). This is a countercoloring for \((s,t)=(3,4)\).

The red edges form the cycle \(1,2,3,4,5,1\). A cycle of length \(5\) has no triangle: within this edge set, each vertex has only its two neighbors on the cycle, and those two neighbors are not adjacent by a red edge. The blue edges form the cycle \(1,3,5,2,4,1\), using respectively the edges \(13,35,25,24,14\). This cycle has five vertices, so it has no blue \(K_4\).

Check: there are \(\binom{5}{2}=10\) edges in \(K_5\); the two listed color classes each contain \(5\) edges, and together they list \(10\) distinct edges. Thus every edge has exactly one assigned color. The example shows that a finite countercoloring can exist, but it does not show that countercolorings exist at arbitrarily large orders.

Worked Example: Restricting One Coloring Consistently

On the positive integers, color a pair red when its two vertices have the same parity, and blue when they have different parities. Consider the restriction to \([4]=\{1,2,3,4\}\). The red edges are \(13\) and \(24\); the blue edges are \(12,14,23,34\). There are \(6\) pairs altogether, since \(\binom{4}{2}=4\cdot3/2=6\), and the listed sets contain \(2+4=6\) edges.

On \([5]\), the additional pairs are \(15,25,35,45\). Of these, \(15\) and \(35\) are red, while \(25\) and \(45\) are blue. The restriction to \([5]\) therefore retains every color on \([4]\) and assigns colors to the four new pairs. This is the consistency that the nested construction guarantees, even when there is no initially given coloring of all positive-integer pairs.

Check: the red edges on \([5]\) are \(13,15,24,35\), and the blue edges are \(12,14,23,25,34,45\). These lists contain \(4+6=10=\binom{5}{2}\) edges. In this particular coloring, \(1,3,5\) form a red triangle, so this example illustrates consistent restriction, not a countercoloring for \((3,4)\).

Worked Example: Counting Restriction Patterns

Suppose there are \(1025\) countercolorings, each defined on at least the first four vertices. A restriction to \([4]\) colors \(\binom{4}{2}=4\cdot3/2=6\) edges, so there are at most \(2^6=64\) possible restriction patterns. Consequently, at least \(17\) of the \(1025\) colorings have the same restriction to \([4]\): if each pattern occurred at most \(16\) times, there would be at most \(64\cdot16=1024\) colorings.

This finite calculation illustrates the pigeonhole step, but \(17\) colorings alone are not enough to continue indefinitely. At the next stage, the restriction to \([5]\) has \(\binom{5}{2}=5\cdot4/2=10\) edges and at most \(2^{10}=1024\) patterns. The proof needs an infinite set of indices at each stage, not just a large finite set, so that one restriction pattern still occurs infinitely often. That is why the hypothesis of countercolorings at every order yields an unbounded sequence and why the construction retains infinite classes.

Check: the counts use all pairs: \([4]\) has \(6\) pairs and \([5]\) has \(10\). The bound \(64\cdot16=1024<1025\) verifies that some four-vertex pattern occurs at least \(17\) times.

Why the Argument Works—and a Common Pitfall

The proof turns a hypothetical failure of finite existence into an object to which the infinite theorem applies. It does not take a limit of edge colors in a numerical sense. Instead, at stage \(k\), it chooses infinitely many finite colorings that agree exactly on the finite set \([k]\). Because the chosen index sets are nested, the color assigned to any particular pair cannot change at later stages.

A common mistake is to start with countercolorings of larger and larger orders and simply declare that their colors “converge.” There is no reason for an arbitrarily chosen sequence to agree on even one fixed edge: its colors could alternate red and blue. The correction is to pass to an infinite subsequence with a fixed color on the first pair, then an infinite subsequence of that one with a fixed coloring on the first three vertices, and continue. At each finite stage there are only finitely many restrictions, which is exactly what makes the selection possible.

A second pitfall is to claim that the infinite theorem itself supplies a finite numerical bound. The theorem guarantees an infinite monochromatic set after a coloring of all pairs has been constructed. The contradiction proves that some finite Ramsey threshold exists, but this reasoning does not calculate that threshold. Numerical bounds require additional arguments.

Check Your Understanding

Use the nested-stabilization argument and its hypotheses to answer the following questions.

  1. Why does assuming that \(R(s,t)\) does not exist give countercolorings at arbitrarily large orders?
  2. For a fixed \(k\), why are there exactly \(2^{\binom{k}{2}}\) possible red-blue restrictions to \([k]\)?
  3. Why must the index set retained at stage \(k\) be infinite rather than merely nonempty?
  4. In the lemma, why does agreement on the restriction to \([k]\) rule out a red \(K_s\) whose largest vertex is \(k\)?
  5. Explain separately how an infinite red set and an infinite blue set contradict the assumed absence of the two target cliques.