The numbers in Ramsey's theorem (and their extensions to more than two colours) are known as Ramsey numbers. The Ramsey number gives the solution to the party problem, which asks the minimum number of guests, , that must be invited so that at least will know each other or at least will not know each other. In the language of graph theory, the Ramsey number is the minimum number of vertices, , such that all undirected simple graphs of order , contain a clique of order , or an independent set of order . Ramsey's theorem states that such a number exists for all and . By symmetry, it is true that . An upper bound for 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 and for which we know the exact value of . Computing a lower bound for usually requires exhibiting a blue/red colouring of the graph with no blue subgraph and no red 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 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 has edges, so there would be a total of graphs to search through (for colours) if brute force is used. Therefore, the complexity for searching all possible graphs (via
brute force) is for colourings and at most 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 () relative to classical computers, so that the
computation time is still
exponential in the number of nodes.
Known values As described above, . It is easy to prove that , and, more generally, that for all : a graph on nodes with all edges coloured red serves as a counterexample and proves that ; among colourings of a graph on nodes, the colouring with all edges coloured red contains a -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 , and therefore . There are only two graphs (that is, 2-colourings of a complete graph on 16 nodes without 4-node red or blue complete subgraphs) among different 2-colourings of 16-node graphs, and only one graph (the
Paley graph of order 17) among colourings. The exact value of is unknown, although it is known to lie between 43 (Geoffrey Exoo (1989)) and 46 (Angeltveit and McKay (2024)), inclusive. In 1997, McKay, Radziszowski and Exoo employed computer-assisted graph generation methods to conjecture that . They were able to construct exactly 656 graphs, arriving at the same set of graphs through different routes. None of the 656 graphs can be extended to a graph. For with , only weak bounds are available. Lower bounds for and have not been improved since 1965 and 1972, respectively. Where not cited otherwise, entries in the table below are taken from the June 2024 edition. (Note there is a trivial symmetry across the diagonal since .) It is also interesting that Erdos showed R(
P,
K) = (n − 1).(m − 1) + 1, for a path and a complete graph with n and m vertices respectively. Also Chvatal showed R(
T,
K) = (n − 1).(m − 1) + 1, for a tree and a complete graph with n and m vertices respectively. These two theorems are the best examples of formulating Ramsey numbers for some special graphs.
Asymptotics The inequality 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(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 , this gives . Nevertheless, the exponential growth factors of either bound were not improved for a long time, and for the lower bound it still stands at . 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}. In a separate preprint in 2024, Balister, Bollobás, Coampos, Griffiths, Hurley, Morris, Sahasrabudhe, and Tiba showed that there exists \delta>0 such that the r-colour Ramsey number R_r(k) is bounded below by \left(e^{-\delta} r^r\right)^k, and in particular R_r(k)\leq \left(e^{-2^{-160}r^{-12}}r^r\right)^k for sufficiently large k. A 2024 preprint by Gupta, Ndiaye, Norin, and Wei claims an improvement of \delta to -0.14e^{-1} \leq 20^{-1}, and the diagonal Ramsey upper bound to R(s,s) \leq \left(4e^{-0.14e^{-1}}\right)^{s + o(s)} = 3.7792...^{s+o(s)} For the off-diagonal Ramsey numbers , it is known that they are of order ; this may be stated equivalently as saying that the smallest possible
independence number in an -vertex
triangle-free graph is :\Theta \left (\sqrt{n\log n} \right ). The upper bound for 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. In general, studying the more general "-free process" has set the best known asymptotic lower bounds for general off-diagonal Ramsey numbers, :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}}. In particular this gives an upper bound of R(4, t) \leq c_s t^3(\log t)^{-2}. Mattheus and Verstraete (2024) gave a lower bound of R(4, t) \geq c'_s t^3(\log t)^{-4}, determining the asymptotics of R(4, t) up to logarithmic factors, and settling 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}.
Formal verification of Ramsey numbers The Ramsey number R(3,8) and R(3,9) have been formally verified to be 28 and 36. This verification was achieved using a combination of Boolean satisfiability (SAT) solving and computer algebra systems (CAS). The proof was generated automatically using the SAT+CAS approach, marking the first certifiable proof of R(3,8) = 28 and R(3,9)=36. The verification process for R(3,8) and R(3,9) was conducted using the SAT+CAS framework MathCheck, which integrates a SAT solver with a
computer algebra system. The verification for R(3,8) = 28 was completed in approximately 8 hours of wall clock time, producing a total proof size of 5.8 GiB. The verification for R(3,9) = 36 was significantly more computationally intensive, requiring 26 hours of wall clock time and generating 289 GiB of proof data. The correctness of these results was independently verified using a modified version of the DRAT-trim proof checker. The Ramsey number R(4,5) has been formally verified to be 25. The original proof, developed by McKay and Radziszowski in 1995, combined high-level mathematical arguments with computational steps and used multiple independent implementations to reduce the possibility of programming errors. The
formal proof was carried out using the
HOL4 interactive theorem prover, limiting the potential for errors to the HOL4 kernel. Rather than directly verifying the original algorithms, the authors utilized HOL4's interface to the MiniSat SAT solver to formally prove key gluing lemmas. == Induced Ramsey ==