betaFeedback

WorksMathematics

Lower bounds for Ramsey numbers: R(6,8)≥135\mathrm{R}(6,8)\ge 135 and R(8,10)≥345\mathrm{R}(8,10)\ge 345

Abstract

We prove the lower bounds R(6,8)≥135\mathrm{R}(6,8)\ge 135 and R(8,10)≥345\mathrm{R}(8,10)\ge 345, improving the bounds 134 and 343 listed in the April 2026 revision of Radziszowski's dynamic survey. We give explicit red/blue colorings of K134K_{134} with no red K6K_6 or blue K8K_8, and of K344K_{344} with no red K8K_8 or blue K10K_{10}, and verify them with two independently written exhaustive clique checkers. Starting from published colorings, we find these witnesses by adding vertices and repairing the resulting monochromatic cliques through local search. The search uses exact conflict counts, preparation moves aimed at making remaining cliques cheaper to break, and mutations followed by repair. A loss based on the largest monochromatic clique containing each edge yielded a useful intermediate state for the R(6,8)\mathrm{R}(6,8) construction. Guided by the author, an AI coding agent wrote and ran the search code; we describe the methods and document the ancestry of the resulting colorings.

Introduction

The Ramsey number R(r,s)R(r,s) is the smallest nn such that every coloring of the edges of KnK_n with red and blue contains a red KrK_r or a blue KsK_s. A coloring of KnK_n with neither, an (r,s)(r,s)-coloring, shows R(r,s)≥n+1R(r,s) \ge n+1.

Theorem 1. R(6,8)≥135R(6,8) \ge135 and R(8,10)≥345R(8,10) \ge345.

Revision 18 of Radziszowski’s survey [10], dated 24 April 2026, lists R(6,8)≥134R(6,8) \ge134, due to Exoo and Tatarevic [4], and R(8,10)≥343R(8,10) \ge343, due to Kuznetsov [6]. The corresponding upper bounds listed there are 423 and 4402. We prove the theorem with one (6,8)(6,8)-coloring of K134K_{134} and two (8,10)(8,10)-colorings of K344K_{344}. Four (8,10)(8,10)-colorings of K343K_{343}, found earlier, establish the intermediate bound R(8,10)≥344R(8,10) \ge344; one of them served as the starting point for both colorings of K344K_{344}. § 2 presents and verifies all seven colorings.

Our searches start from published colorings, add a vertex, and repair the resulting monochromatic cliques (§ 3 and § 4). This approach follows a long history of computational constructions [4, 6, 3]. More recently, Nagda, Raghavan and Thakurta improved nine bounds of the form R(3,s)R(3,s) and R(4,s)R(4,s) with AlphaEvolve [7]. Here an AI coding agent, guided by the author, wrote and ran the search code (§ 5).

The colorings

Each coloring of KnK_n is stored as a symmetric n×nn \times n matrix with zero diagonal and vertices 0,…,n−10,\ldots,n-1, where an off-diagonal 1 means red and 0 means blue. The files are in the public repository [2], together with a graph6 copy of each red graph. Appendix A lists the SHA-256 hashes of the matrix files, and Table 1 gives their red edge counts and maximum clique sizes. Here ωR\omega_{\mathrm{R}} and ωB\omega_{\mathrm{B}} denote the sizes of the largest red and blue cliques.

BoundFileRed edgesωR\omega_RωB\omega_B
R(6,8)≥135R(6,8) \ge135R6_8/n134-gpt-6.1-sol.txt391357
R(8,10)≥345R(8,10) \ge345 no. 1R8_10/n344-gpt-6.1-sol-1.txt2585479
no. 2 R8_10/n344-gpt-6.1-sol-2.txt2585579
R(8,10)≥344R(8,10) \ge344 no. 1R8_10/n343-gpt-6.1-sol.txt2577079
no. 2 R8_10/n343-gpt-6-pro-1.txt2580979
no. 3 R8_10/n343-gpt-6-pro-2.txt2579579
no. 4 R8_10/n343-gpt-6-pro-3.txt2579579

Table 1. The colorings. ωR\omega_R and ωB\omega_B were computed with Cliquer.

The colorings with the same nn are pairwise non-isomorphic: they differ in the number of red edges or, for K343K_{343} nos. 3 and 4, in their red-degree sequences. All seven red graphs also have nonconstant degrees, so none is circulant. Coloring no. 1 of K343K_{343} was found by the search of § 4; nos. 2 to 4 came from separate ChatGPT sessions (§ 5).

Verification. Each coloring was checked by two independently written exhaustive searches for a red KrK_r and a blue KsK_s, one based on bitset intersection and one on an adjacency matrix, with no code in common. As an external check, Cliquer 1.21 [9, 8] computed ωR\omega_R and ωB\omega_B. Table 2 records these checks; the repository also contains a Python verifier based on NetworkX [5].

Coloringclique_oracle nodesclique_oracle sverify_independent nodesverify_independent sCliquer (s) redCliquer (s) blue
(6,8)(6, 8), n=134n = 134631 9560.03091 7580.0600.0050.018
(8,10)(8, 10), n=344n = 344, no. 150 255 3504.87 030 1806.20.347.8
(8,10)(8, 10), n=344n = 344, no. 250 227 1924.66 690 1145.70.327.9
(8,10)(8, 10), n=343n = 343, no. 148 333 3654.46 982 8435.90.347.3
(8,10)(8, 10), n=343n = 343, no. 248 189 5794.47 218 4466.20.337.2
(8,10)(8, 10), n=343n = 343, no. 348 215 6384.57 180 1246.10.337.2
(8,10)(8, 10), n=343n = 343, no. 447 773 4594.46 886 6985.90.337.4

Table 2. Verification of the public files on 6 October 2026, on an AMD Ryzen 9 5900X with g++ 13.3.0 (-O3 -std=c++17). “Nodes” are search-tree nodes; times are single-run wall-clock seconds. All checks succeeded.

Other pairs. Applying monotonicity and standard lower-bound inequalities from Section 2.3 of the survey, we found no further improved bounds for r,s≤10r, s \le10.

Search methods

The searches allowed every edge to change color and imposed no symmetry or fixed subgraph. We call a red KrK_r or a blue KsK_s a conflict. Flipping an edge ee changes the numbers of red and blue conflicts by Δ(e)=(ΔR(e),ΔB(e))\Delta(e) = (\Delta_R(e), \Delta_B(e)); for example, flipping a red edge uvuv removes every red KrK_r through it and creates one blue KsK_s for each blue Ks−2K_{s-2} among the common blue neighbours of uu and vv. The descriptions below follow the source code of the programs that ran.

Exact conflict repair

The basic engine maintains the complete sets of red and blue conflicts and updates them after each flip, giving exact deltas. Initially wR=s2/r2w_{\mathrm{R}}=s^2/r^2 and wB=1w_{\mathrm{B}}=1 to account for the different clique sizes. Candidate edges are sampled from current conflicts, although a flip may create new conflicts elsewhere. A Metropolis rule permits increases in the weighted conflict count, with a temperature that rises during stalls. Algorithm 1 specifies one iteration with sampling budget mm and stall threshold kk; an ordinary iteration is skipped if all sampled edges are tabu and fail the aspiration rule.

Algorithm 1 One iteration of exact conflict repair.

  1. let tt count iterations since the last improvement or kick

  2. if t>kt>k then

  3. make up to 8 conflict-directed random flips, clear tabu memory, reset tt, and set wR=(s2/r2)eUw_{\mathrm{R}}=(s^2/r^2)e^U with UU uniform on [−0.8,0.8][-0.8,0.8]; end this iteration

  4. end if

  5. choose a color cc with probability proportional to wc∣Kc∣w_c\lvert\mathcal{K}_c\rvert, where Kc\mathcal{K}_c is the set of conflicts of color cc, and a conflict K∈KcK\in\mathcal{K}_c uniformly at random

  6. sample up to mm edges of KK and compute δ(e)=wRΔR(e)+ΔB(e)\delta(e)=w_{\mathrm{R}}\Delta_{\mathrm{R}}(e)+\Delta_{\mathrm{B}}(e) for each, skipping tabu edges unless they beat the best count so far

  7. let e∗e^* minimize δ\delta and set T=0.25+min⁡(2.5,t/100)T=0.25+\min(2.5,t/100)

  8. if δ(e∗)≤0\delta(e^*)\leq0 or a uniform random number is below exp⁡(−δ(e∗)/T)\exp(-\delta(e^*)/T) then

  9. flip e∗e^* and make it tabu for 5 to 19 iterations

  10. end if

Preparation

Near a solution, breaking one conflict often creates several others. We call the minimum net change in conflict count, min⁡e(ΔR(e)+ΔB(e))\min_e(\Delta_{\mathrm{R}}(e)+\Delta_{\mathrm{B}}(e)) over edges ee of current conflicts, the breaking cost. The following methods aim to make these conflicts cheaper to break.

Global preparation runs periodically inside Algorithm 1. It samples up to 32 edges of current conflicts and chooses uvuv minimizing the weighted delta δ\delta. If this minimum is positive, the kernel lists the cliques that flipping uvuv would create and tries flips of other edges that meet them. Each preparation flip preserves both conflict sets and is kept if it lowers the minimum δ\delta over the sampled edges; ties are kept with probability 1/41/4. After at most 8 such steps, the cheapest edge in the updated sample is proposed under the acceptance rule of Algorithm 1.

A risk chain has the same goal but uses up to three flips that may temporarily create up to two extra conflicts. It is committed only if the final set of conflicts is exactly the original one and the cost of breaking the target edge has strictly decreased.

Clique weighting with ejection chains, used early in the R(6,8)R(6,8) search, scores flips by individual conflict weights. These weights are periodically increased for surviving conflicts, with a cap and occasional decay, as in breakout methods. An ejection chain first flips an edge of a conflict, then repeatedly flips an edge of a conflict created by the previous flip. The chain is kept only if the number or total weight of conflicts drops.

Mutation followed by repair

When repair stalls, a mutation changes a small region before unrestricted repair resumes. This adapts the section mutation and crossover followed by relaxation in Jeroen Cottaar’s winning solution to the Santa 2025 Kaggle competition [1]; no code from it was used. For section mutations, a set SS of up to 8 vertices is built around a vertex chosen with probability proportional to its number of conflicts. A section crossover copies donor colors from the same lineage on up to a given number of pairs meeting SS, while a patch flips random pairs inside SS. Two further moves act on selected vertices: a rectangle flips red abab, cdcd and blue acac, bdbd together, preserving all red degrees; a block move exchanges the adjacencies of two vertices to a selected subset of other vertices.

The max-clique edge loss

Conflict counts do not directly measure smaller cliques that may grow into new conflicts. We therefore propose a loss in which each edge contributes the size of the largest monochromatic clique containing it,

L=∑uvω(uv),ω(uv)=2+ωc(Nc(u)∩Nc(v)).L = \sum_{uv} \omega(uv), \qquad\omega(uv) = 2 + \omega_c\left(N_c(u) \cap N_c(v)\right).

where the sum is over unordered edges of KnK_n, cc is the color of uvuv, Nc(v)N_c(v) is the set of vertices joined to vv in color cc, and ωc(S)\omega_c(S) is the size of the largest clique of color cc inside SS. The loss does not depend on (r,s)(r,s). It is computed exactly with a branch-and-bound clique routine, rescoring after each flip only the edges whose value can change. In the loss-guided run used in the (6,8)(6,8) construction, conflict edges were sampled with probability 0.8; otherwise, background moves preserving both conflict counts were sampled. Candidates were ranked by their change ΔL\Delta L and accepted with Metropolis probability min⁡(1,e−ΔL/T)\min(1,e^{-\Delta L/T}). Here T=0.5+min⁡(8,t/100)T = 0.5 + \min(8,t/100), with tt as in Algorithm 1; conflict counts still governed tabu aspiration, stall detection and checkpoint selection.

In short controlled comparisons from a seven-conflict (6,8)(6,8) state, neither count-only nor loss-guided search reduced the conflict count. Using the loss as the primary objective made search eight to nine times slower; using it only to break count ties had smaller overhead. In that starting state, almost every edge lay in a near-forbidden clique, so the loss largely tracked edge density. One of these runs supplied the intermediate state used in the (6,8)(6,8) construction described in § 4.2.

How the colorings were found

For each saved search checkpoint, we retained its command, random seed and source code. Figure 1 and Figure 2 trace the resulting colorings back to their published starting points. Each link from a coloring to its successor is recorded by file hash, except for twelve handovers between early search segments, which are identified from the search supervisor’s log. Saved move traces allow some trajectories to be replayed, including the 43-flip loss-guided run. Exact reruns of the whole campaign are not guaranteed: runs were limited by wall-clock time and full internal search states were not checkpointed. The campaigns varied in seeds, duration and parents, so their histories document successful routes without providing a controlled comparison of search methods.

Figure 1. Ancestry of the (8,10)(8,10)-colorings: (a) from Kuznetsov’s coloring of K342K_{342} to coloring no. 1 of K343K_{343}; (b) from that coloring plus one vertex to the seven-conflict parent of both colorings of K344K_{344} (step 10), and on to coloring no. 1; the branch to no. 2 is similar and not shown. Each marker is a saved coloring, colored and shaped by the method that produced it; the vertical axis is the exact number of conflicts, linear up to 10 and logarithmic above. A dotted orange line rises from a coloring to the count right after the mutation that preceded it; repair then brought the count down to the marker. Phases that returned their input unchanged are omitted.

Figure 2. Ancestry of the (6, 8)-coloring, with the conventions of Figure 1. Top: number of conflicts. Bottom: breaking cost, where recorded. The max-clique edge loss step (star) left the count at 7 but lowered the breaking cost from 17 to 8.

R(8,10)

Kuznetsov’s (8,10)(8,10)-coloring of K342K_{342} [6] is circulant: {i,j}\{i,j\} is red exactly when min⁡(∣i−j∣,342−∣i−j∣)\min(|i-j|,342-|i-j|) lies in a set of 76 distances. Adding a copy of vertex 0, joined to it by a blue edge, gives 10 146 conflicts. Four consecutive runs of exact repair, about half an hour of search in total, reduced this to 102, 30, 6 and 0 (Figure 1(a)). The result, coloring no. 1 of K343K_{343}, differs from the initial copy on 874 edges.

We extended this coloring by copying vertex 269 and joining the two copies by a blue edge. The resulting coloring of K344K_{344} has 19 271 blue conflicts. Ten 30-minute segments alternating risk chains and global preparation reduced the count to 7 (Figure 1(b)). From this shared parent, two global-preparation runs saved states with 6 and 2 conflicts, respectively. Further mutation and repair led to the two witnesses of K344K_{344}. For no. 1 (Figure 1(b)), three section crossovers with repair, each using the seven-conflict coloring as donor, gave 6→3→1→06 \to3 \to1 \to0; the last crossover copied 26 donor colors and briefly raised the count from 1 to 73 before repair reached zero. For no. 2, two patches with repair gave 2→1→02 \to1 \to0; the last patch flipped four edges and briefly raised the count from 1 to 140.

R(6,8)R(6,8)

The search started from the (6,8)(6,8)-coloring of K133K_{133} by Exoo and Tatarevic [4]. Adding a copy of vertex 117, joined to it by a red edge, gives 281 red conflicts. A 30-minute risk-chain segment reduced the total conflict count to 68, a global-preparation segment to 38, and three segments of clique weighting with ejection chains to 26, 16 and 7 (Figure 2).

From 12 endpoints that still had 7 conflicts, we selected the one with the lowest breaking cost. It came from a run guided by the max-clique edge loss that made 43 flips, keeping the same 7 conflicts while lowering the breaking cost from 17 to 8. Two 300-second risk-chain runs from this state both reached 6 conflicts. Continued preparation then lowered the breaking cost of the six-conflict state from 100 to 7.

The prepared six-conflict coloring seeded a campaign of six parallel lanes, each switching move family every 170 seconds and sharing its best colorings, ranked by conflict count and then by breaking cost. Along the ancestry, risk-chain phases reduced the count from 6 to 5 to 4. A block-exchange repair phase reached 2, followed by a risk-chain phase that reached 1. A final global-preparation phase eliminated the last conflict in 0.46 seconds.

Human and AI contributions

The search code was generated and run by Codex, OpenAI’s coding agent, using the model GPT-6.1 Sol with reasoning effort “Extra High”. The author guided the search, setting the objectives and proposing ideas and strategies, including the transfer of section crossover from the Kaggle solution and the max-clique edge loss. The agent ran on the author’s AMD Ryzen 9 5900X workstation and later on up to 76 CPU cores at a time.

Coloring no. 1 of K343K_{343} was found less than two hours after the agent was first asked to improve a bound, and nos. 2 to 4 were produced by GPT-6 Pro in separate ChatGPT sessions from the single prompt “Improve the Ramsey lower bound for R(8,10)R(8, 10)”.

AI tools were used as writing and editing aids during preparation of the manuscript.

Data availability

The colorings, as matrices and in graph6 format, and a Python verifier are in the repository https://github.com/fritzcremer/ramsey-lower-bounds, release v1.1.0 [2].

File hashes

The SHA-256 hashes of the matrix files in release v1.1.0 of the repository [2] are as follows.

FileSHA-256
n134-gpt-6.1-sol.txt8ef378ad4d66478c33939e438d3a64572ec2cf7d1647ae29d3568817fedfc982
n344-gpt-6.1-sol-1.txt17881b78e3d8b55372995f4e53ac068ca22560cf30b291c1e649eacaef21c21d
n344-gpt-6.1-sol-2.txtfd3c5a55434179a596dacd9f94a1208211e3ce0da7eee9502c640a3b1860ad89
n343-gpt-6.1-sol.txtf53fa7d45f427f16a159660194cf2de5b875fa0153660eb0fe348984e450095b
n343-gpt-6-pro-1.txtb913b14121c880a55f957947451cb42bcf1cf02ee3bc4fb40a6eb44d7661e0e1
n343-gpt-6-pro-2.txt4c0c0b7b4df4cd4040e20bca7c724a790e9ed35ae05aafdc30f2192806e840ec
n343-gpt-6-pro-3.txta762539bb9d8543fb1313139c9b87e3e5ee04530aaa2faffa84aa5b9ed6c4263

Table 3.

References

  1. [1]Jeroen Cottaar. 1st place: genetic algorithm and GPU relaxation. Kaggle writeup, Santa 2025 Christmas Tree Packing Challenge. https://www.kaggle.com/competitions/santa-2025/writeups/1st-place-genetic-algorithm-and-gpu-relaxation, and code at https://github.com/jcottaar/packing, 8 February 2026. Accessed 6 October 2026.
  2. [2]Fritz Cremer. Ramsey lower bounds. GitHub repository, https://github.com/fritzcremer/ramsey-lower-bounds, release v1.1.0 (6 October 2026); release v1.0.0 (4 October 2026) contains the 343-vertex witnesses, 2026.DOI
  3. [3]Geoffrey Exoo. A lower bound for R(5, 6). Preprint, arXiv:2310.17099 [math.CO], 2023.arxiv.org/abs/2310.17099
  4. [4]Geoffrey Exoo and Milos Tatarevic. New lower bounds for 28 classical Ramsey numbers. Electronic Journal of Combinatorics, 22(3):Paper P3.11, 12 pp., 2015. arXiv:1504.02403.arxiv.org/abs/1504.02403
  5. [5]Aric A. Hagberg, Daniel A. Schult, and Pieter J. Swart. Exploring network structure, dynamics, and function using NetworkX. In Gaël Varoquaux, Travis Vaught, and Jarrod Millman, editors, Proceedings of the 7th Python in Science Conference (SciPy 2008), pages 11–15, Pasadena, CA, USA, 2008.
  6. [6]Eugene Kuznetsov. Computational lower limits on small Ramsey numbers. Preprint, arXiv:1505.07186v5 [cs.DM] (1 March 2016), 2016.arxiv.org/abs/1505.07186
  7. [7]Ansh Nagda, Prabhakar Raghavan, and Abhradeep Thakurta. Reinforced generation of combinatorial structures: Ramsey numbers. Preprint, arXiv:2603.09172v5 [math.CO] (21 April 2026), 2026.arxiv.org/abs/2603.09172
  8. [8]Sampo Niskanen and Patric R. J. Östergård. Cliquer user’s guide, version 1.0. Technical Report T48, Communications Laboratory, Helsinki University of Technology, Espoo, Finland, 2003.
  9. [9]Patric R. J. Östergård. A fast algorithm for the maximum clique problem. Discrete Applied Mathematics, 120(1–3):197–207, 2002.DOI
  10. [10]Stanislaw P. Radziszowski. Small Ramsey numbers. Electronic Journal of Combinatorics, 2026. Dynamic Survey DS1, revision 18 (24 April 2026), 149 pp.

Paper details

vlnc:W_d9eusv7k
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 8

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

an AI coding agent

View statement
Looking for related papers…
Contents