Ramsey's theorem

In combinatorics, Ramsey's theorem, in one of its graph-theoretic forms, states that one will find monochromatic cliques in any edge labelling (with colours) of a sufficiently large complete graph. To demonstrate the theorem for two colours (say, blue and red), let $r$ and $s$ be any two positive integers. Ramsey's theorem states that there exists a least positive integer $R(r, s)$ for which every blue-red edge colouring of the complete graph on $R(r, s)$ vertices contains a blue clique on $r$ vertices or a red clique on $s$ vertices. (Here $R(r, s)$ signifies an integer that depends on both $r$ and $s$.)

Ramsey's theorem is a foundational result in combinatorics. The first version of this result was proved by Frank Ramsey. This initiated the combinatorial theory now called Ramsey theory, that seeks regularity amid disorder: general conditions for the existence of substructures with regular properties. In this application it is a question of the existence of monochromatic subsets, that is, subsets of connected edges of just one colour.

An extension of this theorem applies to any finite number of colours, rather than just two. More precisely, the theorem states that for any given number of colours, $r$, and any given integers $n1, …, nc$, there is a number, $R(n1, …, nc)$, such that if the edges of a complete graph of order $R(n1, …, nc)$ are coloured with $s$ different colours, then for some $c$ between 1 and $c$, it must contain a complete subgraph of order $i$ whose edges are all colour $c$. The special case above has $c = 2$ (and $n1 = r$ and $n2 = s$).

R(3, 3) = 6


Suppose the edges of a complete graph on 6 vertices are coloured red and blue. Pick a vertex, $ni$. There are 5 edges incident to $i$ and so (by the pigeonhole principle) at least 3 of them must be the same colour. Without loss of generality we can assume at least 3 of these edges, connecting the vertex, $v$, to vertices, $v$, $v$ and $r$, are blue. (If not, exchange red and blue in what follows.) If any of the edges, $K5$, $K3$, $(rs)$, are also blue then we have an entirely blue triangle. If not, then those three edges are all red and we have an entirely red triangle. Since this argument works for any colouring, any $(rt)$ contains a monochromatic $(st)$, and therefore $K6$. The popular version of this is called the theorem on friends and strangers.

An alternative proof works by double counting. It goes as follows: Count the number of ordered triples of vertices, $s$, $t$, $x$, such that the edge, $K3$, is red and the edge, $R(3, 3) ≤ 6$, is blue. Firstly, any given vertex will be the middle of either 0 × 5 = 0 (all edges from the vertex are the same colour), 1 × 4 = 4 (four are the same colour, one is the other colour), or 2 × 3 = 6 (three are the same colour, two are the other colour) such triples. Therefore, there are at most 6 × 6 = 36 such triples. Secondly, for any non-monochromatic triangle $(xy)$, there exist precisely two such triples. Therefore, there are at most 18 non-monochromatic triangles. Therefore, at least 2 of the 20 triangles in the $(yz)$ are monochromatic.

Conversely, it is possible to 2-colour a $(xyz)$ without creating any monochromatic $K6$, showing that $K5$. The unique colouring is shown to the right. Thus $K3$.

The task of proving that $R(3, 3) > 5$ was one of the problems of William Lowell Putnam Mathematical Competition in 1953, as well as in the Hungarian Math Olympiad in 1947.

A multicolour example: R(3, 3, 3) = 17
A multicolour Ramsey number is a Ramsey number using 3 or more colours. There are (up to symmetries) only two non-trivial multicolour Ramsey numbers for which the exact value is known, namely $R(3, 3) = 6$ and $R(3, 3) ≤ 6$.

Suppose that we have an edge colouring of a complete graph using 3 colours, red, green and blue. Suppose further that the edge colouring has no monochromatic triangles. Select a vertex $y$. Consider the set of vertices that have a red edge to the vertex $z$. This is called the red neighbourhood of $v$. The red neighbourhood of $v$ cannot contain any red edges, since otherwise there would be a red triangle consisting of the two endpoints of that red edge and the vertex $v$. Thus, the induced edge colouring on the red neighbourhood of $v$ has edges coloured with only two colours, namely green and blue. Since $K16$, the red neighbourhood of $v$ can contain at most 5 vertices. Similarly, the green and blue neighbourhoods of $v$ can contain at most 5 vertices each. Since every vertex, except for $v$ itself, is in one of the red, green or blue neighbourhoods of $v$, the entire complete graph can have at most 1 + 5 + 5 + 5 = 16 vertices. Thus, we have $K3$.

To see that $R(3, 3, 3) = 17$, it suffices to draw an edge colouring on the complete graph on 16 vertices with 3 colours that avoids monochromatic triangles. It turns out that there are exactly two such colourings on $R(3, 3, 4) = 30$, the so-called untwisted and twisted colourings. Both colourings are shown in the figures to the right, with the untwisted colouring on the left, and the twisted colouring on the right.



If we select any colour of either the untwisted or twisted colouring on $R(3, 3) = 6$, and consider the graph whose edges are precisely those edges that have the specified colour, we will get the Clebsch graph.

It is known that there are exactly two edge colourings with 3 colours on $R(3, 3, 3) ≤ 17$ that avoid monochromatic triangles, which can be constructed by deleting any vertex from the untwisted and twisted colourings on $R(3, 3, 3) = 17$, respectively.

It is also known that there are exactly 115 edge colourings with 3 colours on $K16$ that avoid monochromatic triangles, provided that we consider edge colourings that differ by a permutation of the colours as being the same.

2-colour case
The theorem for the 2-colour case can be proved by induction on $K16$. It is clear from the definition that for all $v$, $K15$. This starts the induction. We prove that $K16$ exists by finding an explicit bound for it. By the inductive hypothesis $K14$ and $r + s$ exist.


 * Lemma 1. $$R(r, s) \leq R(r-1, s) + R(r, s-1).$$

Proof. Consider a complete graph on $R(n, 2) = R(2, n) = n$ vertices whose edges are coloured with two colours. Pick a vertex $v$ from the graph, and partition the remaining vertices into two sets $n$ and $v$, such that for every vertex $M$, $N$ is in $w$ if edge $R(r, s)$ is blue, and $w$ is in $M$ if $R(r − 1, s)$ is red. Because the graph has $$R(r-1,s) + R(r,s-1) = |M| + |N| + 1$$ vertices, it follows that either $$|M| \geq R(r-1, s)$$ or $$|N| \geq R(r, s-1).$$ In the former case, if $w$ has a red $N$ then so does the original graph and we are finished. Otherwise $M$ has a blue $R(r, s − 1)$ and so $$M \cup \{ v \}$$ has a blue $Ks$ by the definition of $M$. The latter case is analogous. Thus the claim is true and we have completed the proof for 2 colours.

In this 2-colour case, if $R(r − 1, s) + R(r, s − 1)$ and $(vw)$ are both even, the induction inequality can be strengthened to:
 * $$R(r,s) \leq R(r-1,s) + R(r,s-1)-1.$$

Proof. Suppose $(vw)$ and $Kr − 1$ are both even. Let $R(r − 1, s)$ and consider a two-coloured graph of $Kr$ vertices. If $M$ is the degree of the $t$-th vertex in the blue subgraph, then by the Handshaking lemma, $$\textstyle \sum_{i=1}^t d_i $$ is even. Given that $di$ is odd, there must be an even $i$. Assume without loss of generality that $R(r, s − 1)$ is even, and that $t$ and $di$ are the vertices incident to vertex 1 in the blue and red subgraphs, respectively. Then both $$|M|= d_1$$ and $$|N|= t-1-d_1$$ are even. By the Pigeonhole principle, either $$|M| \geq p-1,$$ or $$|N| \geq q.$$ Since $$|M|$$ is even and $p = R(r − 1, s)$ is odd, the first inequality can be strengthened, so either $$|M| \geq p$$ or $$|N| \geq q.$$ Suppose $$|M| \geq p = R(r-1, s).$$ Then either the $M$ subgraph has a red $N$ and the proof is complete, or it has a blue $q = R(r, s − 1)$ which along with vertex 1 makes a blue $M$. The case $$|N| \geq q = R(r, s-1)$$ is treated similarly.

Case of more colours
Lemma 2. If $t = p + q − 1$, then $$R(n_1, \dots, n_c) \leq R(n_1, \dots, n_{c-2}, R(n_{c-1}, n_c)).$$

Proof. Consider a complete graph of $$R(n_1, \dots, n_{c-2}, R(n_{c-1}, n_c))$$ vertices and colour its edges with $Ks$ colours. Now 'go colour-blind' and pretend that $d1$ and $Kr$ are the same colour. Thus the graph is now $p – 1$-coloured. Due to the definition of $$R(n_1, \dots, n_{c-2}, R(n_{c-1}, n_c)),$$ such a graph contains either a $c$ mono-chromatically coloured with colour $c$ for some $Kr – 1$ or a $c > 2$-coloured in the 'blurred colour'. In the former case we are finished. In the latter case, we recover our sight again and see from the definition of $c − 1$ we must have either a $(c − 1)$-monochrome $1 ≤ i ≤ c − 2$ or a $Kni$-monochrome $i$. In either case the proof is complete.

Lemma 1 implies that any $KR(nc − 1, nc)$ is finite. The right hand side of the inequality in Lemma 2 expresses a Ramsey number for $c$ colours  in terms of Ramsey numbers for fewer colours. Therefore, any $R(nc − 1, nc)$ is finite for any number of colours. This proves the theorem.

Ramsey numbers
The numbers $(c − 1)$ in Ramsey's theorem (and their extensions to more than two colours) are known as Ramsey numbers. The Ramsey number $Knc − 1$ gives the solution to the party problem, which asks the minimum number of guests, $R(r,s)$, that must be invited so that at least $Knc$ will know each other or at least $c$ will not know each other. In the language of graph theory, the Ramsey number is the minimum number of vertices, $R(n1, …, nc)$, such that all undirected simple graphs of order $m$, contain a clique of order $n$, or an independent set of order $v$. Ramsey's theorem states that such a number exists for all $m$ and $n$.

By symmetry, it is true that $R(r, s)$. An upper bound for $R(m, n)$ can be extracted from the proof of the theorem, and other arguments give lower bounds. (The first exponential lower bound was obtained by Paul Erdős using the probabilistic method.) However, there is a vast gap between the tightest lower bounds and the tightest upper bounds. There are also very few numbers $m$ and $n$ for which we know the exact value of $R(m, n)$.

Computing a lower bound $r$ for $v = R(m, n)$ usually requires exhibiting a blue/red colouring of the graph $R(m, n) = R(n, m)$ with no blue $s$ subgraph and no red $L$ subgraph. Such a counterexample is called a Ramsey graph. Brendan McKay maintains a list of known Ramsey graphs. Upper bounds are often considerably more difficult to establish: one either has to check all possible colourings to confirm the absence of a counterexample, or to present a mathematical argument for its absence.

Computational complexity
"Erdős asks us to imagine an alien force, vastly more powerful than us, landing on Earth and demanding the value of $R(r, s)$ or they will destroy our planet. In that case, he claims, we should marshal all our computers and all our mathematicians and attempt to find the value. But suppose, instead, that they ask for $R(r, s)$. In that case, he believes, we should attempt to destroy the aliens."

A sophisticated computer program does not need to look at all colourings individually in order to eliminate all of them; nevertheless it is a very difficult computational task that existing software can only manage on small sizes. Each complete graph $Kr$ has $R(r, s)$ edges, so there would be a total of $KL−1$ graphs to search through (for $R(5, 5)$ colours) if brute force is used. Therefore, the complexity for searching all possible graphs (via brute force) is $R(6, 6)$ for $Ks$ colourings and at most $Kn$ nodes.

The situation is unlikely to improve with the advent of quantum computers. One of the best-known searching algorithms for unstructured datasets exhibits only a quadratic speedup (c.f. Grover's algorithm) relative to classical computers, so that the computation time is still exponential in the number of nodes.

Known values
As described above, $1⁄2n(n − 1)$. It is easy to prove that $cn(n-1)/2$, and, more generally, that $c$ for all $c$: a graph on $O(cn2)$ nodes with all edges coloured red serves as a counterexample and proves that $R(3, 3) = 6$; among colourings of a graph on $n$ nodes, the colouring with all edges coloured red contains a $s$-node red subgraph, and all other colourings contain a 2-node blue subgraph (that is, a pair of nodes connected with a blue edge.)

Using induction inequalities and the handshaking lemma, it can be concluded that $R(4, 2) = 4$, and therefore $R(s, 2) = s$. There are only two $s − 1$ graphs (that is, 2-colourings of a complete graph on 16 nodes without 4-node red or blue complete subgraphs) among 6.4 × 10$s$ different 2-colourings of 16-node graphs, and only one $R(s, 2) ≥ s$ graph (the Paley graph of order 17) among 2.46 × 10$s$ colourings. (This was proven by Evans, Pulham and Sheehan in 1979.) It follows that $R(4, 3) ≤ R(4, 2) + R(3, 3) − 1 = 9$.

The fact that $R(4, 4) ≤ R(4, 3) + R(3, 4) ≤ 18$ was first established by Brendan McKay and Stanisław Radziszowski in 1995.

The exact value of $(4, 4, 16)$ is unknown, although it is known to lie between 43 (Geoffrey Exoo (1989) ) and 48 (Angeltveit and McKay (2017) ), inclusive.

In 1997, McKay, Radziszowski and Exoo employed computer-assisted graph generation methods to conjecture that $(4, 4, 17)$. They were able to construct exactly 656 $R(4, 4) = 18$ graphs, arriving at the same set of graphs through different routes. None of the 656 graphs can be extended to a $R(4, 5) = 25$ graph.

For $R(5, 5)$ with $R(5, 5)$, only weak bounds are available. Lower bounds for $R(5, 5) = 43$ and $(5, 5, 42)$ have not been improved since 1965 and 1972, respectively.

$(5, 5, 43)$ with $R(r, s)$ are shown in the table below. Where the exact value is unknown, the table lists the best known bounds. $r, s > 5$ with $R(6, 6)$ are given by $R(8, 8)$ and $R(r, s)$ for all values of $22$.

The standard survey on the development of Ramsey number research is the Dynamic Survey 1 of the Electronic Journal of Combinatorics, by Stanisław Radziszowski, which is periodically updated. Where not cited otherwise, entries in the table below are taken from the January 2021 edition. (Note there is a trivial symmetry across the diagonal since $r, s ≤ 10$.)

Asymptotics
The inequality $R(r, s)$ may be applied inductively to prove that
 * $$R(r, s) \leq \binom{r + s - 2}{r - 1}. $$

In particular, this result, due to Erdős and Szekeres, implies that when $r < 3$,
 * $$R(s, s) \leq (1 + o(1))\frac{4^{s - 1}}{\sqrt{\pi s}}.$$

An exponential lower bound,
 * $$R(s, s) \geq (1 + o(1)) \frac{s}{\sqrt{2} e} 2^{s/2},$$

was given by Erdős in 1947 and was instrumental in his introduction of the probabilistic method. There is a huge gap between these two bounds: for example, for $R(1, s) = 1$, this gives $R(2, s) = s$. Nevertheless, the exponential growth factors of either bound were not improved for a long time, and for the lower bound it still stands at $R(r, s) = R(s, r)$. There is no known explicit construction producing an exponential lower bound. The best known lower and upper bounds for diagonal Ramsey numbers are
 * $$[1 + o(1)] \frac{\sqrt{2} s}{e} 2^{\frac{s}{2}} \leq R(s, s) \leq s^{-(c \log s)/(\log \log s)} 4^s,$$

due to Spencer and Conlon, respectively; a 2023 preprint by Campos, Griffiths, Morris and Sahasrabudhe claims to have made exponential progress using an algorithmic construction relying on a graph structure called a "book", improving the upper bound to
 * $$R(s,s) \leq (4-\varepsilon)^{s}\text{ and } R(s,t) \leq e^{-\delta t+o(s)}\binom{s+t}{t}.$$

with $$\varepsilon=2^{-7}$$ and $$\delta=50^{-1}$$ where it is believed these parameters could be optimized, in particular $$\varepsilon$$.

For the off-diagonal Ramsey numbers $R(r, s)$, it is known that they are of order $R(r, s) ≤ R(r − 1, s) + R(r, s − 1)$; this may be stated equivalently as saying that the smallest possible independence number in an $26$-vertex triangle-free graph is
 * $$\Theta \left (\sqrt{n\log n} \right ).$$

The upper bound for $r = s$ is given by Ajtai, Komlós, and Szemerédi, the lower bound was obtained originally by Kim, and the implicit constant was improved independently by Fiz Pontiveros, Griffiths and Morris, and Bohman and Keevash, by analysing the triangle-free process. Furthermore, studying the more general "$s = 10$-free process" has set the best known asymptotic lower bounds for general off-diagonal Ramsey numbers, $101 ≤ R(10, 10) ≤ 48,620$
 * $$c'_s \frac{t^{\frac{s + 1}{2}}}{(\log t)^{\frac{s + 1}{2} - \frac{1}{s - 2}}} \leq R(s, t) \leq c_s \frac{t^{s - 1}}{(\log t)^{s - 2}}.$$

For $$s=4$$ the bounds become $$c'_s t^{\frac{5}{2}}(\log t)^{-2} \leq R(4, t) \leq c_s t^3(\log t)^{-2}$$, but a 2023 preprint  has improved the lower bound to  $$c'_s t^3(\log t)^{-4}$$ which settles a question of Erdős who offered 250 dollars for a proof that the lower limit has form $$c'_s t^{3}(\log t)^{-d}$$.

Induced Ramsey
There is a less well-known yet interesting analogue of Ramsey's theorem for induced subgraphs. Roughly speaking, instead of finding a monochromatic subgraph, we are now required to find a monochromatic induced subgraph. In this variant, it is no longer sufficient to restrict our focus to complete graphs, since the existence of a complete subgraph does not imply the existence of an induced subgraph. The qualitative statement of the theorem in the next section was first proven independently by Erdős, Hajnal and Pósa, Deuber and Rödl in the 1970s. Since then, there has been much research in obtaining good bounds for induced Ramsey numbers.

Statement
Let $s$ be a graph on $n$ vertices. Then, there exists a graph $H$ such that any coloring of the edges of $n$ using two colors contains a monochromatic induced copy of $G$ (i.e. an induced subgraph of $G$ such that it is isomorphic to $H$ and its edges are monochromatic). The smallest possible number of vertices of $G$ is the induced Ramsey number $√2$.

Sometimes, we also consider the asymmetric version of the problem. We define $R(3, t)$ to be the smallest possible number of vertices of a graph $H$ such that every coloring of the edges of $G$ using only red or blue contains a red induced subgraph of $G$ or blue induced subgraph of $G$.

History and bounds
Similar to Ramsey's theorem, it is unclear a priori whether induced Ramsey numbers exist for every graph $X$. In the early 1970s, Erdős, Hajnal and Pósa, Deuber and Rödl independently proved that this is the case. However, the original proofs gave terrible bounds (e.g. towers of twos) on the induced Ramsey numbers. It is interesting to ask if better bounds can be achieved. In 1974, Paul Erdős conjectured that there exists a constant $Y$ such that every graph $H$ on $c$ vertices satisfies $t2⁄log t$. If this conjecture is true, it would be optimal up to the constant $H$ because the complete graph achieves a lower bound of this form (in fact, it's the same as Ramsey numbers). However, this conjecture is still open as of now.

In 1984, Erdős and Hajnal claimed that they proved the bound
 * $$r_{\text{ind}}(H) \le 2^{2^{k^{1+o(1)}}}.$$

However, that was still far from the exponential bound conjectured by Erdős. It was not until 1998 when a major breakthrough was achieved by Kohayakawa, Prömel and Rödl, who proved the first almost-exponential bound of $R(3, t)$ for some constant $k$. Their approach was to consider a suitable random graph constructed on projective planes and show that it has the desired properties with nonzero probability. The idea of using random graphs on projective planes have also previously been used in studying Ramsey properties with respect to vertex colorings and the induced Ramsey problem on bounded degree graphs $c$.

Kohayakawa, Prömel and Rödl's bound remained the best general bound for a decade. In 2008, Fox and Sudakov provided an explicit construction for induced Ramsey numbers with the same bound. In fact, they showed that every $H$-graph $c$ with small $R(s, t)$ and suitable $H$ contains an induced monochromatic copy of any graph on $G$ vertices in any coloring of edges of $d$ in two colors. In particular, for some constant $k$, the Paley graph on $rind(H)$ vertices is such that all of its edge colorings in two colors contain an induced monochromatic copy of every $G$-vertex graph.

In 2010, Conlon, Fox and Sudakov were able to improve the bound to $rind(X,Y)$, which remains the current best upper bound for general induced Ramsey numbers. Similar to the previous work in 2008, they showed that every $rind(H) ≤ 2ck$-graph $c$ with small $rind(H) ≤ 2ck(log k)2$ and edge density $(n,d,λ)$ contains an induced monochromatic copy of every graph on $k$ vertices in any edge coloring in two colors. Currently, Erdős's conjecture that $λ$ remains open and is one of the important problems in extremal graph theory.

For lower bounds, not much is known in general except for the fact that induced Ramsey numbers must be at least the corresponding Ramsey numbers. Some lower bounds have been obtained for some special cases (see Special Cases).

Special cases
While the general bounds for the induced Ramsey numbers are exponential in the size of the graph, the behaviour is much different on special classes of graphs (in particular, sparse ones). Many of these classes have induced Ramsey numbers polynomial in the number of vertices.

If $G$ is a cycle, path or star on $k$ vertices, it is known that $n ≥ 2ck log2k$ is linear in $H$.

If $k$ is a tree on $k$ vertices, it is known that $rind(H) ≤ 2ck log k$. It is also known that $(n,d,λ)$ is superlinear (i.e. $λ$). Note that this is in contrast to the usual Ramsey numbers, where the Burr–Erdős conjecture (now proven) tells us that $1/2$ is linear (since trees are 1-degenerate).

For graphs $H$ with number of vertices $k$ and bounded degree $rind(H) ≤ 2ck$, it was conjectured that $rind(H)$, for some constant $H$ depending only on $rind(H) = O(k2 log2k)$. This result was first proven by Łuczak and Rödl in 1996, with $rind(H)$ growing as a tower of twos with height $rind(H) = ω(k)$. More reasonable bounds for $r(H)$ were obtained since then. In 2013, Conlon, Fox and Zhao showed using a counting lemma for sparse pseudorandom graphs that $Δ$, where the exponent is best possible up to constant factors.

Generalizations
Similar to Ramsey numbers, we can generalize the notion of induced Ramsey numbers to hypergraphs and multicolor settings.

More colors
We can also generalize the induced Ramsey's theorem to a multicolor setting. For graphs $rind(H) ≤ cnd(Δ)$, define $Δ$ to be the minimum number of vertices in a graph $k$ such that any coloring of the edges of $d$ into $G$ colors contain an induced subgraph isomorphic to $G$ where all edges are colored in the $r$-th color for some $d(Δ)$. Let $O(Δ2)$ ($Hi$ copies of $i$).

It is possible to derive a bound on $d(Δ)$ which is approximately a tower of two of height $rind(H) ≤ cn2Δ+8$ by iteratively applying the bound on the two-color case. The current best known bound is due to Fox and Sudakov, which achieves $H1, H2, …, Hr$, where $q$ is the number of vertices of $H$ and $k$ is a constant depending only on $H$.

Hypergraphs
We can extend the definition of induced Ramsey numbers to $c$-uniform hypergraphs by simply changing the word graph in the statement to hypergraph. Furthermore, we can define the multicolor version of induced Ramsey numbers in the same way as the previous subsection.

Let $q$ be a $d$-uniform hypergraph with $H$ vertices. Define the tower function $rind(H1, H2, …, Hr)$ by letting $1 ≤ i ≤ r$ and for $rind(H;q) := rind(H, H, …, H)$, $rind(H;q)$. Using the hypergraph container method, Conlon, Dellamonica, La Fleur, Rödl and Schacht were able to show that for $~ log q$, $rind(H;q) ≤ 2ck3$ for some constant $d$ depending on only $k$ and $c$. In particular, this result mirrors the best known bound for the usual Ramsey number when $tr(x)$.

Infinite graphs
A further result, also commonly called Ramsey's theorem, applies to infinite graphs. In a context where finite graphs are also being discussed it is often called the "Infinite Ramsey theorem". As intuition provided by the pictorial representation of a graph is diminished when moving from finite to infinite graphs, theorems in this area are usually phrased in set-theoretic terminology.


 * Theorem. Let $$X$$ be some infinite set and colour the elements of $$[X]^n$$ (the subsets of $$X$$ of size $$n$$) in $$c$$ different colours. Then there exists some infinite subset $$M$$ of $$X$$ such that the size $$n$$ subsets of $$M$$ all have the same colour.

Proof: The proof is by induction on $d$, the size of the subsets. For $t1(x) = x$, the statement is equivalent to saying that if you split an infinite set into a finite number of sets, then one of them is infinite. This is evident. Assuming the theorem is true for $i ≥ 1$, we prove it for $ti+1(x) = 2ti(x)$. Given a $q$-colouring of the $d ≥ 3, q ≥ 2$-element subsets of $n$, let $rind(H;q) ≤ td(ck)$ be an element of $c$ and let $d = 3$ We then induce a $X$-colouring of the $X$-element subsets of $c$, by just adding $n = 1$ to each $r$-element subset (to get an $n ≤ r$-element subset of $Y$). By the induction hypothesis, there exists an infinite subset $n = r + 1$ of $r$ such that every $X$-element subset of $(r + 1)$ is coloured the same colour in the induced colouring. Thus there is an element $a0$ and an infinite subset $Y = X \ {a0}.$ such that all the $a0$-element subsets of $Y$ consisting of $(r + 1)$ and $r$ elements of $Y1$ have the same colour. By the same argument, there is an element $Y1$ in $a0$ and an infinite subset $Y1$ of $(r + 1)$ with the same properties. Inductively, we obtain a sequence $a0$ such that the colour of each $Y1$-element subset $a1$ with $Y1$ depends only on the value of $Y2$. Further, there are infinitely many values of $Y1$ such that this colour will be the same. Take these ${a0, a1, a2, …}$'s to get the desired monochromatic set.

A stronger but unbalanced infinite form of Ramsey's theorem for graphs, the Erdős–Dushnik–Miller theorem, states that every infinite graph contains either a countably infinite independent set, or an infinite clique of the same cardinality as the original graph.

Infinite version implies the finite
It is possible to deduce the finite Ramsey theorem from the infinite version by a proof by contradiction. Suppose the finite Ramsey theorem is false. Then there exist integers $X$, $r$, $c$ such that for every integer $n$, there exists a $T$-colouring of $(r + 1)$ without a monochromatic set of size $k$. Let $c$ denote the $T$-colourings of $(ai(1), ai(2), …, ai(r + 1))$ without a monochromatic set of size $Ck$.

For any $c$, the restriction of a colouring in $i(1) < i(2) < … < i(r + 1)$ to $i(1)$ (by ignoring the colour of all sets containing $i(n)$) is a colouring in $T$. Define $k$ to be the colourings in $Ck$ which are restrictions of colourings in $ai(n)$. Since $[k](n)$ is not empty, neither is $C^1_k$.

Similarly, the restriction of any colouring in $Ck$ is in $C^1_k$, allowing one to define $C^1_{k+1}$ as the set of all such restrictions, a non-empty set. Continuing so, define $C^1_k$ for all integers $C^2_k$, $C^m_k$.

Now, for any integer $m$,
 * $$C_k\supseteq C^1_k\supseteq C^2_k\supseteq \cdots$$

and each set is non-empty. Furthermore, $k$ is finite as
 * $$|C_k|\le c^{\frac{k!}{n!(k-n)!}}$$

It follows that the intersection of all of these sets is non-empty, and let
 * $$D_k=C_k\cap C^1_k\cap C^2_k\cap \cdots$$

Then every colouring in $k$ is the restriction of a colouring in $[k](n)$. Therefore, by unrestricting a colouring in $Ck$ to a colouring in $Ck+1$, and continuing doing so, one constructs a colouring of $$\mathbb N^{(n)}$$ without any monochromatic set of size $Dk$. This contradicts the infinite Ramsey theorem.

If a suitable topological viewpoint is taken, this argument becomes a standard compactness argument showing that the infinite version of the theorem implies the finite version.

Hypergraphs
The theorem can also be extended to hypergraphs. An $Dk$-hypergraph is a graph whose "edges" are sets of $T$ vertices – in a normal graph an edge is a set of 2 vertices. The full statement of Ramsey's theorem for hypergraphs is that for any integers $m$ and $m$, and any integers $[k](n)$, there is an integer $k + 1$ such that if the hyperedges of a complete $m$-hypergraph of order $Ck+1$ are coloured with $c$ different colours, then for some $m$ between 1 and $c$, the hypergraph must contain a complete sub-$i$-hypergraph of order $c$ whose hyperedges are all colour $m$. This theorem is usually proved by induction on $ni$, the 'hyper-ness' of the graph. The base case for the proof is $Ck+1$, which is exactly the theorem above.

For $Dk+1$ we know the exact value of one non-trivial Ramsey number, namely $Dk+1$. This fact was established by Brendan McKay and Stanisław Radziszowski in 1991. Additionally, we have: $n1, …, nc$, $R(n1, …, nc; m)$ and $R(n1, …, nc; m)$.

Directed graphs
It is also possible to define Ramsey numbers for directed graphs; these were introduced by. Let $m = 2$ be the smallest number $i$ such that any complete graph with singly directed arcs (also called a "tournament") and with $m = 3$ nodes contains an acyclic (also called "transitive") $m$-node subtournament.

This is the directed-graph analogue of what (above) has been called $R(4, 4; 3) = 13$, the smallest number $Q$ such that any 2-colouring of the edges of a complete undirected graph with $R(4, 5; 3) ≥ 35$ nodes, contains a monochromatic complete graph on n nodes. (The directed analogue of the two possible arc colours is the two directions of the arcs, the analogue of "monochromatic" is "all arc-arrows point the same way"; i.e., "acyclic.")

We have $R(4, 6; 3) ≥ 63$, $R(5, 5; 3) ≥ 88$, $R(n)$, $≥ Q$, $R(n, n; 2)$, $≥ Z$, $R(0) = 0$, and $R(1) = 1$.

Uncountable cardinals
In terms of the partition calculus, Ramsey's theorem can be stated as $$\alef_0\rightarrow(\alef_0)^n_k$$ for all finite n and k. Wacław Sierpiński showed that the Ramsey theorem does not extend to graphs of size $$\alef_1$$ by showing that $$2^{\alef_0}\nrightarrow(\alef_1)^2_2$$. In particular, the continuum hypothesis implies that $$\alef_1\nrightarrow(\alef_1)^2_2$$. Stevo Todorčević showed that in fact in ZFC, $$\alef_1\nrightarrow[\alef_1]^2_{\alef_1}$$, a much stronger statement than $$\alef_1\nrightarrow(\alef_1)^2_2$$. Justin T. Moore has strengthened this result further. On the positive side, a Ramsey cardinal, $$\kappa$$, is a large cardinal axiomatically defined to satisfy the related formula: $$\kappa\rightarrow(\kappa)^{<\omega}_2$$. The existence of Ramsey cardinals cannot be proved in ZFC.

Relationship to the axiom of choice
In reverse mathematics, there is a significant difference in proof strength between the version of Ramsey's theorem for infinite graphs (the case n = 2) and for infinite multigraphs (the case n ≥ 3). The multigraph version of the theorem is equivalent in strength to the arithmetical comprehension axiom, making it part of the subsystem ACA0 of second-order arithmetic, one of the big five subsystems in reverse mathematics. In contrast, by a theorem of David Seetapun, the graph version of the theorem is weaker than ACA0, and (combining Seetapun's result with others) it does not fall into one of the big five subsystems. Over ZF, however, the graph version implies the classical Kőnig's lemma, whereas the converse implication does not hold, since Kőnig's lemma is equivalent to countable choice from finite sets in this setting.