WorksMathematics
An gluing computation for the Ramsey number
Abstract
Let be the graph consisting of triangles with a common vertex and otherwise disjoint vertices. We prove that using an gluing computation. Neighbourhood matching arguments give degree and clique restrictions that reduce the search on seventeen vertices to ordered seed pairs. The verified main computation excludes pairs. A cross-edge counting argument excludes thirty-four of the forty exceptional pairs, and independently checked finite-domain certificates exclude the remaining six. Together with the construction whose red graph is the complete bipartite graph , these results establish .
Introduction
Let denote the complete graph on vertices. For graphs and , the Ramsey number is the least integer such that every red–blue edge-colouring of contains a red copy of or a blue copy of . Copies are ordinary subgraphs, not necessarily induced. Determining a Ramsey number requires a colouring for the lower bound and an exclusion of all colourings at the proposed upper bound. Computational proofs often combine structural restrictions with a finite search whose coverage can be justified mathematically; see the survey of Radziszowski [11].
For a positive integer , the fan
is formed by joining one vertex to disjoint edges. Here denotes the disjoint union of copies of a graph , and denotes graph join, which adds every edge between the two disjoint constituent graphs. The common vertex is the centre of the fan, and the edges opposite it are its blades. A graph contains an centred at if and only if the subgraph induced by the neighbours of contains a matching of size . Thus the exclusion of fans can be expressed through local matching conditions, which also supply explicit witnesses when a candidate colouring fails.
Lin and Li [7] proved that for and that for . Zhang et al. [12] established
This sufficient range does not cover . The colouring with red graph , the complete bipartite graph with two parts of order eight, and blue graph gives the lower bound seventeen. The preceding general upper bound gives twenty-two. The case is not assigned an exact value in Table X of the April 2026 revision of the small Ramsey number survey [11].
Our approach uses graph gluing, a standard method in computational Ramsey theory. McKay and Radziszowski [10] established by gluing smaller Ramsey graphs and propagating restrictions on their possible extensions. Goedgebeur and Radziszowski (2013) combined neighbourhood extension with degree and edge-count restrictions to obtain further Ramsey upper bounds. The formal verification of by Gauthier and Brown [2] illustrates the additional role of independently checked computational certificates. In the notation used in these works, .
We prove that a colouring of avoiding a red and a blue has red degrees between seven and ten and contains neither a red nor a blue . A partition into eight and nine vertices that maximises the number of red cross-edges satisfies further swap inequalities. Its two induced red graphs belong to finite families that can be generated by canonical augmentation. This construction uses automorphism orbits and a canonical deletion rule in the sense of McKay [9], with canonical labels supplied by BLISS [6 The igraph development team, n.d.].
The resulting seed families have 8,812 and 115,174 representatives. Matching and degree profiles reduce their ordered pairs to a catalogue of 88,294,674 gluing problems, each with seventy-two cross-edge variables. The main search uses Boolean satisfiability, followed by explicit matching checks. Its forty exceptional pairs have additional structure: thirty-four satisfy a common cross-edge counting contradiction, while the remaining six are excluded by finite-domain certificates. The latter certificates have been checked independently by inspecting graph edges and replaying domain deletions and exhaustive branches. Verification of the seed and pair catalogues and the bulk exclusions has also been completed. The resulting proof of and the verification procedures are summarised in § 6.
Notation. All graphs are finite and simple. For a graph , its vertex and edge sets are and , its order is , and its complement is . For , is the induced subgraph on , , and . Write for the open neighbourhood of , for its degree, and and for the minimum and maximum degrees. We use , for the maximum matching size, for the maximum clique size, for the number of odd-order connected components, and for the automorphism group. The path on vertices is ; and denote disjoint union when used for graphs and partitions, respectively. For a finite set , denotes its set of subsets.
In an edge-colouring, and are the red and blue spanning graphs. Their neighbourhoods and degrees are denoted by , , , . For disjoint vertex sets , and count red and blue edges between them. A colouring is admissible if it contains neither a red nor a blue . Complements within a seed are taken on its own vertex set. Vertex, seed, and case indices in the data tables start at zero. Any further symbols are defined where they are introduced.
Structural restrictions and the ordered eight-plus-nine reduction
We first establish the lower bound and the structural restrictions used to cover every possible admissible colouring of order seventeen.
Proposition 2.1. There is an admissible colouring of . Consequently, .
Proof. Partition the vertices into two sets of order eight, colour every edge between the sets red, and colour every edge within a set blue. The red graph is and has no triangle, hence
no . The blue graph is . Every is connected and has nine vertices, so it cannot occur in either blue component.
Fans, matchings, and the first degree bound
Lemma 2.2. A graph contains an with centre if and only if . Consequently, a red–blue colouring is admissible if and only if, for every vertex ,
Proof. The edges opposite the centre in an are pairwise disjoint edges within the centre’s neighbourhood. Conversely, a matching of size in that neighbourhood, together with the edges from its endpoints to the centre, is an . Additional edges between the chosen vertices do not invalidate this subgraph.
We recall the Tutte–Berge formula in the following form [8]:
In particular, if has order and , then some set satisfies
This form will be used to control monochromatic neighbourhoods.
Lemma 2.3. Let be a complete multipartite graph with vertices, and let be the size of its largest part. Then
Proof. The first upper bound counts endpoints. The second holds because every edge has an endpoint outside a largest part. If , match every vertex outside a largest part to a distinct vertex inside it; this attains .
For the other case, it suffices to show that a complete multipartite graph whose largest part has size at most has a matching covering all but at most one vertex. We argue by induction on . The assertion is immediate for . For , choose one vertex from each of two largest nonempty parts and match them. After these vertices are removed, every remaining part has size at most . To check this when , a part of size must be among the chosen largest parts, and there can be at most two such parts. When , a part of size , if present, is unique and loses a vertex; all other parts have size at most . The induction hypothesis supplies the remaining matching edges.
The following matching–fan Ramsey formula is due to Lin and Li [7]; it is also stated as Lemma 2.1 of Zhang et al. [12]. We include a proof from (2) to make explicit the Ramsey input used in the degree bounds.
Theorem 2.4. For positive integers ,
Proof. Put and . Suppose that the blue graph of a colouring of has no matching of size . By (3), there is a set , of size , for which
Since , we also have . Let be an odd component of of smallest order, choose , and put . All vertices in are red neighbours of .
Moreover, the red graph on contains the complete multipartite graph whose parts are the remaining components of .
There are at least such parts. Even after removing a largest part, at least vertices remain. Also : if , then
if , each of the other odd components has at least three vertices, and . Lemma 2.3 therefore gives a red matching of size in . Together with it forms a red , proving the upper bound.
For the lower bound when , take a red graph obtained by joining an independent set of order to a clique of order . This graph has vertices. Its blue complement is and has matching number . At a red centre in the independent set, the red neighbourhood is and has matching number . At a red centre in the clique, every edge within its red neighbourhood meets one of the other clique vertices, so the matching number is at most . Thus no red occurs.
When , take the red graph , on vertices. Its nontrivial component has fewer than vertices, so it contains no . In its blue complement every edge meets the set of vertices corresponding to the red isolated vertices. Hence the blue matching number is at most . Both constructions give the required lower bound.
Lemma 2.5. In every admissible colouring, and for every vertex .
Proof. Theorem 2.4 gives
If has eleven red neighbours, the colouring on any eleven of them has either a red , which gives a red centred at , or a blue . If has eleven blue neighbours, the colouring on eleven of them has either a red or a blue , the latter giving a blue centred at . All alternatives contradict admissibility.
Excluding a blue clique of order eight
Lemma 2.6. A graph on vertices with minimum degree at least has a perfect matching.
Proof. Let be a maximum matching and suppose that distinct vertices are unmatched. Their neighbours are all covered by , since an edge between unmatched vertices would enlarge . For each edge , there are at most two edges from to . Otherwise one can replace by two disjoint edges joining to and enlarge . The degree hypothesis now yields the contradiction
Lemma 2.7. An admissible colouring of order contains no blue .
Proof. If such a clique occurs for , retain the clique and any nine other vertices. Thus it suffices to consider . Suppose that is a blue clique of order eight, and let , so .
Every has at most one blue neighbour in . Indeed, if and are blue, the blue neighbourhood of contains the edge and three disjoint edges on the six vertices of . This is a blue centred at . Consequently,
Put . First, . Otherwise choose a vertex and three distinct red neighbours , , of within . For each , inclusion–exclusion in gives
Choose distinct from these three sets, successively. All six vertices , are red neighbours of , and the edges are a red matching of size three, a contradiction.
Second, . If were isolated in , all eight vertices of would be blue neighbours of . Their blue graph has minimum degree at least , since . By Lemma 2.6 it has a perfect matching, giving a blue centred at .
Every component of is therefore a path of order at least two or a cycle of order at least three. Such a component of order has matching number . If is the number of its odd components, then
because every odd component has at least three vertices and hence .
If , a vertex with at most one blue neighbour in would have a red neighbourhood containing with at most one vertex deleted. Deleting one vertex reduces matching number by at most one, so that neighbourhood would contain a red . Thus every vertex of would have at least two blue neighbours in , giving , contrary to (6). We conclude that .
Equation (7) now forces exactly three odd components. Each has order at least three, and together they already account for all nine vertices. Hence is the disjoint union of three graphs, each equal to or . Among its vertices, those for which are precisely the middle vertices of the components. In particular, there are at most three such vertices.
Every must have at least one blue neighbour in , since otherwise itself supplies a red in its red neighbourhood. Distributing at most nine blue cross-edges among the eight vertices of shows that at least seven of them have exactly one blue neighbour in . If the unique neighbour of is , then lies in the red neighbourhood of , so . These seven vertices must be distinct, since each vertex of has at most one blue neighbour in . This contradicts the upper bound of three just proved.
Ten-vertex neighbourhoods and the final degree interval
Lemma 2.8. Let be a graph on ten vertices with . If contains no , then
Proof. By (3), there is a set , of size , such that . Since , we have . At least one odd component of is a singleton: otherwise its odd components alone would use at least vertices. Let be a singleton component.
Set , of order . Every vertex of is adjacent to in . The complement on contains the complete multipartite graph whose parts are the remaining components of . The largest component of has size at most : if it is odd, the other at least odd components each need a vertex; if it is even, the at least odd components give an even stronger bound. When , the multipartite graph on therefore has
Lemma 2.3 gives a matching of size three in the neighbourhood of in , a contradiction. Hence .
If all components of had order at most six, the same argument on , now of order nine, would again give a -matching in . Thus has a component of order
at least seven. The bound forces , with precisely three other components, all singletons.
The component must be complete. If were nonadjacent in , denote the three singleton vertices by and choose distinct . In , the three edges , , are disjoint and all their endpoints are neighbours of . They give an centred at , a final contradiction.
Corollary 2.9. In an admissible colouring of with ,
In particular, on seventeen vertices,
Proof. Lemma 2.5 leaves only to exclude. If it holds, let . By admissibility, , while its complement contains no red . Lemma 2.8 gives a blue in . Together with it is a blue , contradicting Lemma 2.7. The red bounds follow from and Lemma 2.5.
Lemma 2.10. An admissible colouring of order contains no red .
Proof. Suppose that is a red clique of order six. A vertex has at most one red neighbour in : two such neighbours would give a red centred at , using the edge and two disjoint edges on the four vertices of . It follows that .
On the other hand, each vertex of has total red degree at least by Corollary 2.9, and exactly five red neighbours inside . Therefore
This implies , which is impossible for .
A maximum red cut with parts of orders eight and nine
For the remainder of this section, suppose that an admissible colouring of exists. Choose a partition with and . Set , , and write
For and , let if is red and otherwise. Its row and column sums are the red cross-degrees:
Proposition 2.11. The partition can be chosen so that, for every and ,
Equivalently, the sum of the entries in row and column , excluding their common entry, is at least . For this partition,
Proof. Among all partitions with the prescribed part sizes, choose one with the largest number of red cross-edges. Swapping and preserves both part sizes. The edge remains a cross-edge, while each other edge incident with either swapped vertex changes its internal or cross status. The change in the number of red cross-edges is
This is nonpositive by the choice of the partition, proving (2.10). Since and , that inequality gives
Division by two proves the first inequality in (2.11). Choose vertices of maximum internal degree in the two parts and use to obtain the second.
The existence of such a partition is sufficient for the reduction. The cut inequalities are not asserted for every partition. The eight-vertex and nine-vertex parts remain distinguished throughout: their unequal orders do not permit an interchange that identifies two entries of the ordered seed-pair catalogue.
Corollary 2.12. Suppose that and satisfy . Put
All cross-edges between and are blue. Every vertex in has total red degree ten, and
Proof. For and , (2.11) forces . The preceding proof then gives . Both degrees are at most ten, so each equals ten. Both sets of maximum-degree vertices are nonempty; hence this conclusion holds for every vertex in their union. Subtracting the internal degree proves (2.12).
Proposition 2.13. For a vertex in a part whose red graph is of order ,
Define
Then the common number of red cross-edges satisfies
Proof. Subtract the internal red degree from , and note that at most cross-neighbours are available. This proves (2.13). Summing the weaker lower bounds gives , and summing the upper bounds gives . Each side counts the same cross-edge set, whose size is between zero and .
The summed lower bound remains valid when an internal degree is eight, although the corresponding summand is negative. The individual constraints in (2.13) retain the stronger truncation at zero.
Residual matchings and exact one-vertex extensions
For a red seed and , define
For , let ; define the corresponding red cross-neighbourhood for a vertex of in the same way.
Lemma 2.14. Every admissible gluing satisfies, for every ,
The analogous inequalities hold with the two parts exchanged.
Proof. The matching in the internal red neighbourhood of and a matching in have disjoint endpoint sets. Their union lies in the full red neighbourhood of , so its size is at most two by Lemma 2.2. Apply the same argument in blue, with matching bound three, to obtain the second inequality.
For let contain one representative of each isomorphism class of red graphs of order such that
These are hereditary restrictions: they are preserved by deleting vertices. The upper bounds on red and blue degree are also hereditary and can be imposed during generation; at seed orders eight and nine they impose no additional restriction. Isomorphisms preserve red edges and hence blue edges; exchanging the colours is not an allowed equivalence.
For define to be the subsets for which appending a new vertex , with red neighbourhood precisely , preserves all four exclusions in (17). The extended graph has order , which is nine or ten, so its red and blue degrees are automatically at most ten and nine. Its vertices need not have the minimum degrees of a completed seventeen-vertex colouring.
Define a conflict graph on by declaring to be an edge when and at least one of
holds. Define similarly, replacing by and the threshold two by three.
Lemma 2.15. A subset belongs to if and only if all the following conditions hold, where :
Proof. The first line is precisely the absence of the forbidden fans centred at the new vertex . Consider a new red centred at an old vertex . Because itself has no such fan, must occur in it. It is not the centre, so it is an endpoint of a matching edge in the red neighbourhood of . Consequently , , and the other two matching edges lie inside . Conversely, these conditions produce a red centred at . Taking either orientation of gives exactly the independence condition in . The blue argument is identical, with three old matching edges and both endpoints in .
Any newly created red must contain , and its other five vertices form a red in . The blue counterpart is a blue in . The last line therefore excludes exactly the new forbidden cliques. These observations prove both directions.
The conflict argument also gives explicit binary constraints on a gluing matrix. If , then
If , then
The corresponding constraints hold for columns as well. Indeed, fixing a vertex in the opposite part produces the single-vertex extension to which Lemma 2.15 applies.
Profiles and sound rejection of seed pairs
Use the following set of centre types, each a triple of nonnegative integers:
It has 49 elements. The type of a vertex in a seed is . Every type of either seed order belongs to . For order eight, the actual blue degree is ; using the larger bound puts the possible types for both orders in the same set.
Define the types occurring in and the types allowed in the opposite seed by
Each type is tested separately: it belongs to if at least one suitable subset exists. Subsets chosen for different types need not occur together in a single gluing.
Lemma 2.16. An admissible gluing of and necessarily satisfies
Proof. Fix and its actual red cross-neighbourhood . The induced colouring on has no forbidden fan or clique, so . The total-degree bounds and Lemma 2.14 give the three additional conditions in (2.22) for the type of . This proves the first inclusion; the second follows by exchanging the roles of the two parts, without changing their assigned orders.
For a seed , write and define
Otherwise . In particular .
Lemma 2.17. If a maximum-cut admissible gluing has , then
Proof. Choose with . Corollary 2.12 says that its red cross-neighbourhood has size and avoids . It belongs to by the induced extension, and Lemma 2.14 gives . This is exactly the first flag condition. The second is proved in the other direction.
The eight-component profile is
The pair tests consist of the maximum-degree test in (11), nonempty overlap in (15), the two inclusions in (23), and, only at degree-sum ten, the two flags in (25). The preceding results prove that all these filters are necessary; none is used as a sufficient test for an admissible gluing.
Coverage of the finite reduction
Proposition 2.18. If an admissible colouring of exists, there are representatives and whose ordered pair passes all the profile tests above, and an binary matrix of cross-edges which completes this pair to an admissible colouring. The matrix satisfies all individual degree bounds (13), all swap inequalities (10), all residual matching conditions (16), and all applicable binary conflict constraints (19)–(20). At degree-sum ten it also satisfies Corollary 2.12.
Proof. Choose an partition maximizing the red cut, as in Proposition 2.11. Its two induced red graphs satisfy (17): the fan exclusions are hereditary, and Lemmas 2.7 and 2.10 exclude the two cliques in the whole colouring. Apply separate isomorphisms to replace these graphs by their representatives in and , transporting all cross-edges under the same maps. This gives an binary matrix with the stated properties. All profile conditions follow from the preceding lemmas and are unchanged under either seed relabelling.
The next section describes the finite enumeration to which this coverage result applies.
Canonical seed generation and the gluing catalogue
The computation represents a colouring by its red graph; the blue graph is its complement. The two colours are distinguished throughout. For , let be a set containing one representative of each isomorphism class of red graphs of order satisfying
The degree conditions in (27) impose no further restriction at orders eight and nine, but the generator applies the same conditions at every order. Every induced eight- or nine-vertex subgraph of an admissible colouring of belongs to the corresponding family by the preceding structural results. The lower bound is a condition on a completed seventeen-vertex colouring, and is not imposed on a smaller seed.
Canonical construction paths
The seed generator starts with the unique graph of order zero. Suppose that the representatives at order have been generated. For each parent and each orbit of the action of on , choose one subset . Add a new vertex with red neighbourhood , and reject the resulting graph if it fails a condition in (27). The surviving augmentation is accepted precisely when its new vertex belongs to the child’s canonical deletion orbit. This orbit is defined by the vertex receiving the final canonical label and its orbit under the child’s automorphism group.
Canonical labels and automorphism generators are computed with BLISS through the igraph interface [6 The igraph development team, n.d.]. Subset orbits are obtained by traversing generators of the automorphism group. Thus isomorphic extensions are rejected during generation.
The coverage argument is the usual canonical construction-path induction. For a graph in the hereditary family, delete a vertex in its canonical deletion orbit. The smaller graph is in the same hereditary family and is represented at the previous level. Transporting the deleted vertex’s neighbourhood to this representative yields one of its subset orbits, so the corresponding augmentation is considered and accepted. Conversely, an isomorphism between two accepted children takes their distinguished new vertices into the same canonical deletion orbit. Composing with a child automorphism makes the new vertices correspond; restriction then identifies the parent and its neighbourhood orbit. Induction therefore gives exactly one accepted representative per isomorphism class, provided the canonical-labelling and orbit routines are implemented correctly.
Table 1 gives the enumeration counts. The same hereditary conditions are used at every order, so both seed libraries are covered by the canonical construction-path argument.
| Order | Accepted classes | Augmentations examined |
| 0 | 1 | — |
| 1 | 1 | 1 |
| 2 | 2 | 2 |
| 3 | 4 | 6 |
| 4 | 11 | 20 |
| 5 | 34 | 90 |
| 6 | 155 | 544 |
| 7 | 941 | 5,089 |
| 8 | 8,812 | 72,672 |
| 9 | 115,174 | 1,579,761 |
Table 1. Completed canonical seed levels. The last column counts parent-neighbourhood orbit representatives examined at that augmentation level, before all child tests.
Finite seed profiles and necessary pair tests
We use the seed notation , and the profile definitions from § 2.6. The unknown cross-edges form a binary matrix , with for a red edge. All pair filters are evaluated before assigning any entry of .
For a seed of order and , put . All of these values are computed from and, for any fixed ,
Indeed, a maximum matching either leaves unmatched or matches it to one of its neighbours. Evaluating this recurrence in an order in which proper subsets precede their supersets gives exact matching numbers for all subsets, in both colours.
The legal extension family is obtained by testing every possible red neighbourhood of one added vertex, using Lemma 2.15. The tests account for a fan centred at the new vertex, a fan centred at an old vertex, and each forbidden clique involving the new vertex. The matching tables evaluate the degree and residual-matching conditions in (22) for each of the 49 types in (21), together with the maximum-degree boundary flags in (24). The resulting profile is
as defined in (26). Seeds with equal profiles therefore give the same results in every pair test. The four successive filters are the maximum-degree test (11), overlap of the cross-edge intervals (15), the two joint-type inclusions (23), and the saturated-boundary flags (25). The last test is applied only when the maximum internal degrees sum to ten. Their necessity was proved in the structural reduction; passing the tests does not assert that a pair has an admissible completion.
The 8,812 left seeds yield 6,860 profiles, and the 115,174 right seeds yield 60,041 profiles. Pair counts are computed on the profile groups, with the product of the two group sizes as weight. Table 2 gives the cumulative pair counts.
Table 2. Necessary-condition reduction of the ordered 8 + 9 seed pairs.
Enumeration of the retained pairs
The seed groups are ordered by the first occurrence of each profile in the fixed seed order; seed indices inside a group are increasing. For each left group, compatible right groups are visited in their stored order, and the Cartesian product inside a compatible group pair is enumerated with the right index varying fastest. Prefix sums of these block sizes give a bijection between retained ordered pairs and the zero-based case indices
The unequal part sizes are kept in their specified order; the pair is not identified with its transpose. These indices identify the exceptional pairs in § 5.
Search formulation and computational results
The finite formula for a fixed pair
For a retained pair, the 72 entries of are the primary variables of a Boolean satisfiability (SAT) problem. We use the MiniSat solver (Eén and Sörensson, 2004). The formula is expressed in conjunctive normal form: a conjunction of clauses, each a disjunction of variables or their negations. All edges inside the two seeds are fixed. The program adds the degree constraints
for every vertex in a seed , and all 72 swap inequalities (10). The latter are encoded as lower bounds on the fifteen other cross-edges incident with the two vertices, because the common edge cancels. Sequential threshold variables encode the cardinality constraints; these auxiliary variables do not represent additional graph edges.
Several necessary fan clauses are inserted before calling the solver. If a centre already has an internal matching of size in its neighbourhood, then the opposite block cannot supply a matching of size in red or in blue among its same-colour cross-neighbours. The implementation enumerates the endpoint sets of such matchings. A fixed endpoint set produces one clause, independently of how many matchings it contains. Additional binary clauses cover a centre whose internal neighbourhood already reaches the allowed matching size and has a neighbour that can be left uncovered by such a matching: that neighbour and the centre cannot both have a same-colour edge to the same vertex of the other block.
The remaining fan constraints are added as violations are found. MiniSat is asked for a model of the current formula. This model determines a complete colouring of the 17 vertices. For every centre and both colours, a matching search tests whether its colour-neighbourhood contains a matching of size three or four, respectively. Each detected fan gives a clause forbidding all of its cross-edges from simultaneously having the colour of the detected fan. Fixed internal edges are simplified out of the clause. The same procedure adds clauses for detected red and blue , using their independently proved exclusion. The solver retains the resulting clauses and its learned clauses within the current instance and repeats the search.
Every added clause follows from a necessary property of an admissible colouring. A model with no violation is checked again as a graph and provides a candidate colouring. An unsatisfiable formula excludes the fixed pair under the degree and maximum-cut restrictions. Each new constraint eliminates the current violating cross-edge matrix; there are finitely many such matrices, so the procedure is exhaustive when allowed to finish. The instances are independent and can be processed in parallel.
Symmetry reduction
In the SAT stage, automorphisms of the fixed seeds act on the rows and columns of . For each selected automorphism , the program imposes
using row-major order and . The unequal block sizes prevent a block-transpose symmetry. Every orbit of feasible complete gluings contains a lexicographically smallest element, and that element satisfies all selected inequalities. Hence the restriction preserves at least one feasible member of every orbit. This argument uses the symmetry of the underlying admissible-gluing problem; the formulas obtained after adding individual constraints need not be invariant under the whole group.
Generator inequalities can leave several representatives in one orbit. Accordingly, canonical seed generation and the partial symmetry reduction of completed gluings have different guarantees. The computation does not claim to enumerate each seventeen-vertex colouring exactly once. Its purpose is to retain a complete search space while excluding repeated work where the fixed seeds provide a usable symmetry.
Numerical outcomes
The large-scale search was carried out by the authors on their computing cluster using 32 CPU cores, with a wall-clock running time of at most 24 hours. The verified computation excludes 88,294,634 of the 88,294,674 retained pairs. The seed catalogues, retained pair catalogue and bulk exclusions have been verified. The forty exceptional pairs involve eight distinct left seeds and twenty-four distinct right seeds. Fifteen pairs have left seed 80 and nineteen have left seed 280; the remaining six have six other left seeds. Section 5 excludes the first thirty-four pairs by a counting lemma and the other six by independently checked finite-domain certificates.
The three counts therefore sum to
| Exclusion method | Pairs |
| Main Boolean search | 88,294,634 |
| Cross-edge counting lemma | 34 |
| Independently checked finite-domain certificates | 6 |
| Total | 88,294,674 |
Table 3. Classification of the retained seed pairs by exclusion method. The verification procedures are described in § 6.
The certificate statistics for the six pairs appear in Table 5. Implementation details and execution records are described in Appendix § 7.
| Case | Left seed | Right seed | Nodes | Fan witnesses | Deletions |
| 51996400 | 3477 | 1235 | 911 | 33,134 | 62,671 |
| 64095209 | 4228 | 1235 | 917 | 53,482 | 39,917 |
| 69103064 | 4877 | 68943 | 1 | 31,625 | 1,086 |
| 69257548 | 4893 | 68943 | 1 | 31,766 | 1,126 |
| 71867158 | 5479 | 1235 | 5,668 | 33,730 | 343,586 |
| 82561944 | 6899 | 30887 | 1 | 14,551 | 384 |
| Total | 7,499 | 198,288 | 448,770 |
Table 5. Independently checked finite-domain certificates for the six remaining cases. All certificates were generated without symmetry restrictions.
Exclusion of the forty exceptional seed pairs
The forty exceptional seed pairs are excluded by two arguments: thirty-four by a common counting lemma and six by finite-domain certificates checked independently of their generating program. Throughout this section, and denote the parts of orders eight and nine, respectively; and are internal red degrees, is a red cross-degree, and is the indicator of a red edge between and . The partition is chosen to maximise the number of red cross-edges. In particular,
as established in (10). The degree bounds in Corollary 2.9 give .
The maximum-cut condition is essential to the interpretation of these exclusions. An arbitrary partition of a colouring need not satisfy (30); every colouring has a maximum red cut with part sizes eight and nine that does satisfy it. Thus it suffices to exclude each seed pair when it occurs as such a partition. None of the certificates in this section uses symmetry-breaking constraints.
A counting argument for thirty-four pairs
For a vertex , write for its blue neighbourhood within . All matching statements below concern ordinary matchings, and hence their edges have pairwise disjoint endpoints.
Lemma 5.1. Suppose that an -avoiding colouring has an partition satisfying (5.1) and for every vertex. Assume that , where and , and that the following properties hold.
The red graph on is triangle-free, every has , and the blue graph on contains a two-edge matching for every distinct .
Every seven-vertex subset of induces a red three-edge matching, and for every .
If , then the blue graph on contains a two-edge matching. If , then this graph contains a three-edge matching.
If , then for every the blue graph on contains a three-edge matching.
Let , , and count the vertices of having internal red degree one, two, and at least three, respectively. Then
Consequently, a seed pair satisfying these hypotheses is impossible whenever .
Proof. If a vertex had seven red neighbours in , property 2 would give three disjoint red edges among these neighbours. Together with centre , they would form a red . Therefore for every . For , the total red degree bound is stronger: . Counting red cross-edges from gives
We next count the same edges from . First suppose that and, for a contradiction, that . Then has at least four blue neighbours in . If both vertices of were blue neighbours of , we could choose two further blue neighbours . Property 1 would supply a blue two-edge matching in . Property 3 supplies a second blue two-edge matching inside . Their vertex sets lie in different parts, so the two matchings together have four disjoint edges in the blue neighbourhood of , a forbidden blue . Hence must have a red neighbour . Applying (5.1) to this red edge yields
Since , this implies , contrary to . Thus
Next suppose that . By property 3, the internal blue neighbourhood of already contains three disjoint blue edges. There can be no blue edge between two blue cross-neighbours of , since this edge would be disjoint from the internal three-edge matching and would complete a blue . The blue cross-neighbours of therefore form a red clique in . The red graph on is triangle-free, so this clique has at most two vertices. Consequently,
Finally, let have . Suppose that some is a blue neighbour of . The bound shows that has at least three blue neighbours in . Besides , there are at least two such vertices. Since has only one red neighbour within , at least one of them, say , belongs to . Property 4 gives three disjoint blue edges on . The blue edge is disjoint from these three edges, and all eight endpoints are blue neighbours of . This again produces a blue . It follows that every vertex of is a red neighbour of , and hence
Summing (5.4)–(5.6) over proves the lower bound in (5.2); (5.3) proves the upper bound. □
The lemma uses only the upper total-degree bound; its conclusion is independent of the lower degree bound and of any symmetry restrictions.
The left seeds of the thirty-four cases have catalogue indices 80 and 280, occurring fifteen and nineteen times, respectively. Their structure gives a direct proof of property 1. Use the original seed labels and . Seed 80 is the red graph obtained from with bipartition by deleting edges 47 and 56. Seed 280 is obtained from the same by deleting edges 07 and 56 and adding edge 05. Both graphs are triangle-free, and both vertices in have red degree five. For seed 80, the blue edges 67 and give the required matching for every pair . They also suffice for seed 280, except when ; in that case the blue edges 07 and 56 give the matching instead.
There are twenty-two distinct right seeds among these thirty-four pairs. Table 4 identifies all of them and records the numerical lower bound given by the lemma. The indices identify the representatives in the seed catalogue; their labelled adjacencies are supplied with the accompanying data. The last column counts occurrences among the thirty-four pairs, not distinct graphs.
| Index | Pairs | ||||
| 30580 | 0 | 3 | 6 | 48 | 2 |
| 30592 | 0 | 2 | 7 | 47 | 1 |
| 30727 | 0 | 3 | 6 | 48 | 2 |
| 30740 | 1 | 1 | 7 | 49 | 1 |
| 30744 | 0 | 2 | 7 | 47 | 1 |
| 30885 | 0 | 3 | 6 | 48 | 2 |
| 30887 | 0 | 2 | 7 | 47 | 2 |
| 33151 | 0 | 2 | 7 | 47 | 1 |
| 33154 | 0 | 2 | 7 | 47 | 2 |
| 37913 | 0 | 2 | 7 | 47 | 2 |
| 37999 | 0 | 3 | 6 | 48 | 1 |
| 38012 | 0 | 2 | 7 | 47 | 2 |
| 38219 | 0 | 3 | 6 | 48 | 1 |
| 42513 | 0 | 3 | 6 | 48 | 2 |
| 42846 | 0 | 3 | 6 | 48 | 2 |
| 45740 | 0 | 2 | 7 | 47 | 2 |
| 47671 | 1 | 0 | 8 | 48 | 1 |
| 65954 | 0 | 2 | 7 | 47 | 1 |
| 66025 | 0 | 2 | 7 | 47 | 2 |
| 68352 | 0 | 3 | 6 | 48 | 1 |
| 68564 | 0 | 3 | 6 | 48 | 1 |
| 69502 | 0 | 2 | 7 | 47 | 2 |
Table 4. Right-seed data for the counting argument. In every row, the four finite hypotheses of Lemma 5.1 hold. The lower bound is ; the upper bound is 46 in every case.
All matching conditions in the lemma were checked using explicit matching witnesses. For each right seed, the accompanying certificate specifies three disjoint red edges for every one of seven-vertex subsets. It also specifies the blue matchings required in each internal neighbourhood and, for the two right seeds with red leaves, in every neighbourhood with one blue neighbour deleted. The verifier checks the stated edge colours, endpoint disjointness, and membership in the prescribed vertex sets directly. It also checks the four-vertex blue matchings and triangle-freeness of the left seeds. These explicit matchings allow the hypotheses of the lemma to be checked independently. The right seeds with a red leaf are precisely 30740 and 47671.
For eighteen of the thirty-four pairs, the lower bound in Table 4 is 47; for fifteen it is 48; and for one it is 49. Each contradicts the common upper bound 46. This excludes all thirty-four pairs under the maximum-cut condition.
Finite-domain certificates for the remaining six pairs
For the remaining six pairs, a finite-domain search produces a complete contradiction certificate. Its variables are the eight row masks and the nine column masks of the red cross-adjacency matrix. Masks are used here as binary vectors, and denotes Hamming weight. The entry is . Unlike the main SAT search, the certificate generator uses no Boolean satisfiability library.
A partial coloured graph consists of the two completely coloured seeds and any cross-edges fixed by assigned rows or columns. A cross-edge with no assigned value belongs to neither colour in this partial graph. In particular, an unknown edge must not be treated as blue merely because it is not yet red. Any monochromatic fan whose edges are already known occurs in every completion.
For each , the initial row domain contains every mask with
unless the partial coloured graph obtained by assigning this row, together with the fixed seeds, already contains a red or a blue . Column domains are defined analogously using . A rejection because of a fan is accompanied by that fan’s centre and an explicit matching of three or four edges in its monochromatic neighbourhood. The certificate also accounts for every pattern satisfying the degree bound: it is either retained or rejected with such a witness.
There are two compatibility relations. Two row candidates and , for , are incompatible if their simultaneous assignment already produces a forbidden fan in the partial coloured graph. An incompatible pair used in propagation carries an explicit fan witness. A row candidate and a column candidate are compatible only if
The second requirement is exactly the maximum-cut swap inequality; it is checked by integer arithmetic.
Proposition 5.2. Suppose an -avoiding completion of the two seeds satisfies the degree bounds and (30). Its row and column masks belong to the initial domains. Furthermore, deleting a candidate that has no compatible candidate in some other row or column cannot delete the masks of this completion.
Proof. The degree bounds imply that the completion’s masks pass the initial degree tests. A fan witnessed after assigning only one of its rows or columns would also be present in the completion, so none of these masks can be excluded by an initial fan witness. The same argument shows that any two of its row masks are compatible. Every row and column intersect consistently and satisfy (37). Hence, whenever a candidate from the completion remains in a domain, the corresponding mask in every other domain supplies a compatible support, provided the completion’s other masks have not previously been removed. Induction on the sequence of deletions establishes the assertion.
The generator repeatedly performs these deletions until no further deletion applies. It then either reaches an empty domain, finds a forbidden fan using the rows whose domains have become singletons, or chooses a non-singleton row domain and branches over every one of its remaining masks. Choosing a row with the smallest non-singleton domain is a search heuristic only; the proof relies on exhaustive coverage of that domain. Every branch fixes at least one previously non-singleton row, so a path has at most eight such branch operations. No candidate is discarded because of graph isomorphism or a lexicographic symmetry convention in the recorded certificates.
Proposition 5.3. If the described certificate passes the independent verifier and every leaf is checked for contradiction, then the given seed pair has no -avoiding completion satisfying the degree bounds and (30).
Proof. Assume such a completion exists. By Proposition 5.2, its row and column masks survive every sound deletion along any search path consistent with the completion. At each branch there is a child assigning exactly the completion’s value to the selected row, because the verifier checks that the children contain every remaining value exactly once. Follow this child. The finite tree eventually reaches a leaf. That leaf cannot have an empty domain, since the completion’s masks survive, and cannot contain a witnessed forbidden fan, since all edges of that fan also occur in the completion. Both permitted leaf types therefore give contradictions.
The independent verifier does not solve a matching problem. To check a claimed fan, it verifies that the matching endpoints are distinct from one another and from the centre, that the required spokes and matching edges are all known, and that their colours agree. It then replays each domain deletion using the current domains and the explicit incompatibility witnesses or (37). Finally, it verifies exhaustive branch coverage and each leaf contradiction. Thus an error in the generator’s matching search would not by itself cause an unsupported exclusion to pass verification.
Table 5 gives the six case identities and certificate statistics. The case identifier is the stable index in the original filtered pair enumeration. A node count of one means that propagation alone produced a contradiction at the root, with no branching. The fan-witness count includes the initial pattern rejections, the distinct row-pair rejection witnesses retained in the certificate, and any fan contradictions at leaves. The deletion count records domain deletions in the replayed tree; it does not count the initial degree exclusions.
The counting lemma and these six independently checked certificates therefore exclude all forty exceptional pairs under the degree and maximum-cut conditions of the structural reduction.
Ramsey consequence and verification
Let denote the verified catalogue of retained ordered seed pairs, and let be the forty exceptional pairs excluded in § 5. We now combine the structural reduction and the completed computation.
Theorem 6.1.
Proof. An admissible colouring of would have a maximum red cut with parts of sizes eight and nine. Proposition 2.18 places its internal graphs, after relabelling, in a pair in ; the cross-edge matrix satisfies the degree and swap inequalities. The verified bulk computation excluded every pair outside . Lemma 5.1 excludes thirty-four pairs in , and the independently checked certificates, with soundness supplied by Proposition 5.3, exclude the other six. Hence no admissible colouring of exists, giving . Proposition 2.1 gives the reverse inequality.
Verification of the seed catalogues, retained pair catalogue and bulk exclusions has been completed. The bulk computation is documented by the enumeration and execution records and the implementation validation described in Appendix § 7. The forty exceptional pairs additionally have independently checked graph-based certificates: explicit matching witnesses verify the finite premises of the counting argument for thirty-four pairs, and finite-domain contradiction certificates with exhaustive branch coverage exclude the remaining six. These complementary verification procedures establish the computational conclusion used in Theorem 6.1.
Discussion
Neighbourhood matching conditions are effective at two different scales in this problem. At the catalogue level, they give inexpensive profiles that substantially reduce the number of seed pairs. For the exceptional pairs, the same local restrictions yield a common cross-edge contradiction or incompatibilities between complete neighbourhood patterns. Explicit fan witnesses make the latter incompatibilities easy to verify independently of the search that finds them.
The eight- and nine-vertex parts are small enough for complete canonical catalogues and exact subset matching tables, while their joint restrictions constrain the seventeen-vertex colouring. This suggests a general approach to related fan Ramsey problems: combine canonical seed generation with a mathematically justified gluing reduction, and use local witnesses to certify the remaining exclusions.
Data availability
Detailed reproduction instructions are provided in Appendix § 7. The associated source code, seed catalogues, data, and certificates are archived in Zenodo [5] at https://doi.org/10.5281/zenodo.23119016. The source repository is available at https://github.com/jianghanxin01/fan-F3F4-reproducibility.
AI Disclosure
The research ideas and overall approach were proposed by the authors. Following the authors’ instructions, OpenAI Codex was used to assist with implementing and testing the programs. The authors carried out the main computations on their computing cluster. Codex also assisted with checking the computational results and with editing the manuscript. The authors take responsibility for the mathematical arguments, computational results, and final manuscript.
A Reproducibility guide
Purpose and verification scope
This appendix gives reproduction and verification procedures for the completed computation establishing . It explains how to compile the search program, reproduce the seed catalogues and filtering counts, run the distributed search, and verify the certificates for the forty exceptional seed pairs. Here is the graph formed by triangles with a common vertex and otherwise disjoint vertex sets. A colouring is admissible if it contains neither a red nor a blue . The mathematical justification of the reductions is given in the main text.
The bulk-search results and cumulative solver counts reported in the main text were obtained by running the C++ search program on the authors’ computing cluster using 32 CPU cores. The wall-clock running time of the large-scale search was at most 24 hours. The local certificate checks described below were performed separately after the distributed search. Thus the cluster statistics and the subsequent independent verification results have separate sources.
The completed computation covers all 88 294 674 retained ordered pairs of seeds on eight and nine vertices. The bulk solver phase excludes 88 294 634 pairs. The forty pairs left unresolved by that phase are all excluded separately: thirty-four by the counting argument in the main text, with its finite premises checked from the seed graphs, and six by independently replayable finite-domain certificates. Thus every retained pair is excluded. Verification of the seed and pair catalogues and the bulk exclusions has been completed. The quick verification below checks the forty local exclusions; it does not rerun the bulk search or establish catalogue completeness by itself.
The distribution provides the inputs and source needed for a fresh full computation. It does not include the complete historical cluster checkpoints or a checked propositional proof for each bulk exclusion. The supplied source, the completeness arguments in the main text, and a full rerun therefore have different roles from the local certificate checker. File checksums establish file identity, not mathematical truth.
Files and conventions
Extract fan_F3F4_reproducibility.zip to a writable directory. All commands below are issued from the extracted directory containing README.txt, unless a different working directory is stated. The shell examples use Linux syntax. Section A.5 gives the corresponding Windows build procedure.
| Location | Contents and purpose |
src/ | C++17 search source, build files, and required third-party source and licences. |
data/ | Fixed graph6 seed files, the ordered-pair catalogue, and the dataset identity. |
tools/ | Canonical generation, catalogue preparation, and independent data-validation programs. |
certificates/ | The forty case specifications and final counting and finite-domain certificate data. |
verify40.py | Entry point for independent verification of the forty exceptional pairs. |
combine_results.py | Checks coverage of a fresh full run and combines it with the verified local exclusions. |
docs/ | A standalone version of this reproducibility guide in LaTeX and PDF form. |
Table 6.
A seed index and a case index are zero-based. Machine numbers are one-based. The red graph determines the colouring; all other edges of the complete graph are blue. A graph6 record encodes an undirected graph, using the vertex order fixed by the corresponding seed file. The production dataset identifier is e38c0723b6a3be74; the engine identifier is fan17-cpp-1. The eight-vertex and nine-vertex sides are ordered: there is no transposition identification between them.
The published files should be kept unchanged. Put new checkpoints, timing logs, generated certificates, and validation reports in separate working directories. These outputs are produced by the reader’s run and are not prerequisites for the archived quick check.
Requirements
The forty-case checker requires Python 3.9 or later and only its standard library. The C++ search requires a C++17 compiler and threads. GCC 9 or later, a recent Clang, or the x64 Microsoft Visual C++ toolchain can be used. A CMake build requires CMake 3.15 or later. The included direct build scripts provide an alternative to CMake. MiniSat and the JSON header are supplied in the archive; no separate SAT-solver installation is needed.
Full seed and profile regeneration requires Python 3.11 or later and the pinned Python packages in tools/requirements.txt. Graph isomorphism is handled by the BLISS backend exposed through igraph. Verification of the six finite-domain certificates uses neither BLISS nor a SAT solver. No GPU is required. Select the thread count to match the CPU resources allocated by the cluster scheduler.
A full run writes 176 590 checkpoint files. Use storage with adequate space and support for atomic file replacement. The total runtime depends on the hardware, thread count, time limits and difficult instances; a short pilot is not a reliable prediction of completion time.
Quick verification of the forty exceptional pairs
Run:
python3 verify40.py
On Windows, use python instead of python3 when that is the installed command. The program checks the fixed input identities, the binding of case indices to the seed catalogue, the seed adjacency data, the finite premises for the thirty-four counting exclusions, and all six certificate trees. The required outcome is a successful process exit and a report containing forty excluded cases, with zero unresolved cases in this local set. The default report is results/verified40.json; an alternative path may be selected by --report.
For the six certificates the expected aggregate replay counts are 7499 search nodes, 198288 explicit fan witnesses, and 448770 domain deletions. Each fan witness specifies a centre and three or four disjoint pairs of peripheral vertices. The checker tests the colours of all spokes and matching edges directly. It also checks every domain deletion and every branch of the contradiction tree. An unknown edge in a partial colouring belongs to neither colour.
The thirty-four counting exclusions and six tree certificates partition the same fixed set of forty cases. A passed local check must not be interpreted as a passed full-catalogue check. The full-run combination procedure in Section A.9 checks this coverage separately.
Compiling and checking the search program
CMake build
From the archive root, run:
cmake -S src -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release --parallel 4
With a single-configuration Linux generator, the executable is build/fan_ramsey17. Test it and inspect the fixed catalogue:
./build/fan_ramsey17 self-test
./build/fan_ramsey17 catalog --data data
With the Visual Studio generator on Windows, use build\Release\fan_ramsey17.exe in place of ./build/fan_ramsey17. Run the Windows commands in a developer terminal with the x64 C++ toolchain available.
Direct builds
On Linux, the alternative command
bash src/build_linux.sh
creates src/fan_ramsey17. In the remaining examples replace ./build/fan_ramsey17 by ./src/fan_ramsey17 when using this build.
In the x64 Native Tools Command Prompt for Visual Studio, the equivalent Windows procedure is:
pushd src
call build_windows.bat
popd
src\fan_ramsey17.exe self-test
src\fan_ramsey17.exe catalog --data data
Here the executable for subsequent commands is src\fan_ramsey17.exe. Use ordinary single-line commands in Windows; a backslash used for Linux line continuation is not a Windows line-continuation character.
Expected catalogue dimensions
| Quantity | Expected value |
| Eight-vertex seeds | 8 812 |
| Nine-vertex seeds | 115 174 |
| Eight-vertex profiles | 6 860 |
| Nine-vertex profiles | 60 041 |
| Retained ordered seed pairs | 88 294 674 |
| Cases per full task | 500 |
| Number of tasks | 176 590 |
| Cases in the last task | 174 |
Table 1 (PDF p. 23).
The executable rejects a catalogue or seed file that differs from its fixed dataset. It also checks catalogue dimensions and basic profile fields. These checks are useful consistency tests, not an independent proof of exhaustive generation.
For a small executable test that does not start the full search, run:
./build/fan_ramsey17 run --data data \
--machine 1 --machines 1 --threads 1 \
--task-ids 0 --case-budget 5 --seconds 5 \
--symmetry on --results results/smoke
This deliberately processes at most five cases. Use a different results directory for a new independent full computation.
Running a full computation on one machine
./build/fan_ramsey17 run --data data \
--machine 1 --machines 1 --threads 4 \
--symmetry on --seconds 5 --results results/machine01
The --seconds option is a time limit for each case, not for the whole job. The --threads option controls concurrent workers on this machine. The symmetry option activates the symmetry constraints described in the main text. An independent run with --symmetry off is supported but may be slower. The default task order, spread, is a deterministic permutation of all assigned tasks and is not a sampling rule.
The status fields have the following meanings:
| Field | Interpretation |
| PENDING | Cases not yet processed. |
| UNSAT | Cases for which the SAT solver reports that no permitted completion exists. |
| UNKNOWN | Cases for which the time-limited attempt did not decide satisfiability. These are not exclusions. |
| SAT | Cases with a candidate completion; the program checks and stores its red adjacency data. |
Table 2 (PDF p. 23).
Each task progress line reports counts within that task. Its wall_seconds is elapsed time since the current run began; it is not the duration of that task alone. The final run line reports the number of attempts in the invocation. The runner may finish normally with unresolved cases because every assigned case has received its time-limited attempt.
The flag proof_verified=false is intentional in production solver output: the runner does not emit and independently check a propositional proof for every exclusion. A solver’s negative result, a repeated negative result and a replayed certificate are different forms of evidence. This flag concerns per-instance propositional proof checking; it does not mark an instance as unresolved or indicate that the full computation is incomplete.
Resuming, retrying and merging
Repeating a run command with the same results directory resumes pending work. Already resolved cases are skipped. Previously unresolved cases are attempted again only if --retry-unknown is present. For example, after the first pass has stopped:
./build/fan_ramsey17 run --data data \
--machine 1 --machines 1 --threads 4 \
--symmetry on --seconds 60 --retry-unknown \
--results results/machine01
Further passes may use 600 or 3600 seconds per case. These are example retry settings, not a guarantee that every case will finish. Keep the dataset and seed ordering unchanged between passes.
After a run has stopped, create a summary and a merged checkpoint set:
./build/fan_ramsey17 merge --data data \
--inputs results/machine01 --output results/merged_01
The output directory must be new or contain no checkpoint files. The merge writes summary.json, pending_tasks.json, unknown_tasks.json, and the merged task files. A missing task is counted as pending; duplicate completed entries are reported. The merge rejects inconsistent positive and negative decisions for a case.
The field all_pairs_resolved means that both the pending and unresolved counts are zero. It alone does not mean all cases have been excluded: the positive count must also be checked. The field solver_reported_exclusion records whether the solver has reported a negative decision for every case. It does not assert independent proof verification.
To request an orderly stop, issue this command from another terminal:
./build/fan_ramsey17 stop --results results/machine01
Allow the running process to finish and return to the shell before merging or copying its checkpoints. The next explicit run clears the stop request. Lock directories such as RUN.lock and the individual task locks protect against concurrent writers. If a process was killed, a lock may remain; remove only the stale lock after confirming that its process has terminated. Do not delete checkpoints to recover a stale lock, and do not let two running processes write the same results directory.
Distributed computation on six machines
Use exactly the same code and data on every machine. Select --machines 6 everywhere and a distinct --machine number from 1 through 6. Task , numbered from zero, belongs to machine . Each machine writes to its own directory. For machine 1, run:
./build/fan_ramsey17 run --data data \
--machine 1 --machines 6 --threads 4 \
--symmetry on --seconds 5 --results results/machine01
On machines 2 through 6, change both the machine number and the final directory name accordingly, for example –machine 2 and results/machine02. The six workers need not start together. The number of machines is independent of the number of threads per machine. For scheduled cluster jobs, request the appropriate CPU allocation and run the corresponding command inside the batch job. Scheduler directives depend on the local cluster and are not hard-coded into the distribution.
Retry on each machine with –retry-unknown and a larger time limit, using its existing results directory and machine number. Once all processes have stopped, collect the six directories on one machine, preserving their distinct names, and merge:
./build/fan_ramsey17 merge --data data \
--inputs results/machine01 results/machine02 \
results/machine03 results/machine04 \
results/machine05 results/machine06 \
--output results/merged_six_01
If a shared filesystem is used, the same six distinct directories can be merged in place after the workers stop. Do not merge only the individual summary files: case-level checkpoints are required.
To change the number of machines, first stop all writers and merge their checkpoints. Work may then be redistributed by the new task-modulo rule. Each new worker needs the existing checkpoint files for its assigned tasks in its own results directory. Preserve the original merged copy until the redistributed run has been checked. Reassigning tasks changes the allocation of work, not the case indices or mathematical search.
Combining a full run with the local certificates
After creating a complete merged checkpoint directory, run:
python3 combine_results.py --results results/merged_01 \
--output results/combined.json
Use results/merged_six_01 instead for the six-machine example. This program checks the checkpoint dataset, task ranges, status integrity and case-level coverage, and reruns the forty-case verifier. It requires zero pending cases and zero positive cases. Every unresolved case in the merged run must belong to the fixed set excluded by the local certificates. An unresolved case outside that set causes failure and requires further computation.
The completed computation has the following decomposition:
The combined report records the actual split in the reader’s run; it need not reproduce the same intermediate unresolved counts. It keeps solver decisions and local certificate exclusions distinct. Successful combination establishes complete case-level coverage under these checks; it does not supply an independently checked propositional proof for each bulk UNSAT decision.
The cumulative counts from the bulk-search phase are listed below for comparison. The forty pairs left unresolved after that phase are all excluded by the subsequent counting and certificate checks. These summary counts are not checkpoint data and cannot substitute for the case-level coverage check.
| Pass | Excluded by the solver | Unresolved |
| First | 88 294 434 | 240 |
| Second | 88 294 572 | 102 |
| Third | 88 294 620 | 54 |
| Fourth | 88 294 634 | 40 |
Each of these summaries reported zero pending cases and zero positive cases. Different hardware and timing can change the intermediate unresolved set without changing the underlying instances.
Independent checks and witness verification
The independent Python data validator uses the standard library:
python3 tools/search17_validate.py self-test
python3 tools/search17_validate.py data --data data \
--profile-samples 4 --case-samples 12 \
--output results/data_check.json
It checks every seed record and the basic catalogue fields, with full profile and indexing checks on the selected samples. The sample counts can be increased. This command is not a second exhaustive canonical generation and does not check all negative solver decisions.
If a run reports a positive case, preserve the stored witness and verify it before drawing a conclusion:
python3 tools/search17_validate.py verify \
--input results/machine01/SAT_FOUND.json --order 17 \
--output results/witness_check.json
The program directly checks the proposed colouring for forbidden fans. A valid admissible colouring on seventeen vertices would contradict the nonexistence result proved in the main text, so a positive result must never be discarded because it differs from the reported computation.
For a single seed pair, such as one of the six certified cases, use:
./build/fan_ramsey17 pair --data data \
--left-index 3477 --right-index 1235 \
--seconds 60 --symmetry off --output results/pair.json
The pair command selects indices in the seed files, not a task number. Its time-limited result is separate from replay of the supplied proof certificate for that pair.
Regenerating the seed libraries and catalogue
Carry out regeneration in a working copy. Use an isolated Python environment, for example on Linux:
python3 -m venv .venv
. .venv/bin/activate
python -m pip install -r tools/requirements.txt
mkdir -p regenerated
The requirements fix igraph 1.0.0, NumPy 2.3.5, texttable 1.7.0 and NetworkX 3.7. Do not use Python’s optimisation flag -O: some preparation consistency checks are assertions.
Canonical generation through order nine
python tools/canonical_fans.py --validate
python tools/canonical_fans.py --max-order 9 --target 17 --audit \
--export regenerated/fan9_target17.graph6
The first command tests the unrestricted generator against known small graph counts. The second runs the restricted canonical augmentation used in this search. No finite time limit is imposed here; the program refuses to export an incomplete level as a full seed library. The numbers of retained isomorphism classes at orders 0 through 9 are expected to be
The restrictions are hereditary fan and clique exclusions. A minimum red degree of seven is imposed only on a completed seventeen-vertex colouring, not on a seed during augmentation.
Profiles, filters and stable case indexing
To regenerate the eight-vertex library and construct the profile and pair catalogue using the newly generated nine-vertex library, run:
python tools/search17_prepare.py --data regenerated/data \
--source-nine regenerated/fan9_target17.graph6 \
--canonical-source tools/canonical_fans.py
The source-nine option is checked against the fixed nine-vertex seed identity. As a less expensive separate test of profile preparation, one may instead supply data/fan9_target17.graph6; this reuses the archived nine-vertex library and does not regenerate that library.
Check the regenerated fixed inputs and the bindings of the forty exceptional cases:
python tools/check_data.py --data regenerated/data \
--cases certificates/cases.json
python tools/search17_validate.py data --data regenerated/data \
--profile-samples 6 --case-samples 24 \
--output regenerated/data_check.json
./build/fan_ramsey17 catalog --data regenerated/data
The expected cumulative numbers of ordered pairs are:
| Stage | Ordered pairs retained |
| All eight-by-nine seed pairs | 1 014 913 288 |
| Maximum-degree compatibility | 682 271 903 |
| Cross-edge count intervals | 682 057 873 |
| Joint centre-type compatibility | 165 925 659 |
| Saturated maximum-degree boundary | 88 294 674 |
Table 1 (PDF p. 27).
The preparation writes a new catalogue, identity information and a corresponding C++ identity header in its output tree. It also generates profile caches and run reports for that invocation. These generated caches are not required in the published archive. Check that the regenerated fixed files agree with the archived identities before using existing checkpoints. If the ordering changes, even when the graphs are isomorphic and the counts agree, old case indices no longer identify the same instances. Do not bypass the executable’s identity checks or mix checkpoints from different catalogues.
Replaying and regenerating certificates
For the ordinary verification procedure, use Section A.4; certificate regeneration is optional. Each finite-domain certificate uses the degree interval and the necessary one-for-one swap inequalities for a maximum red 8 + 9 cut. Here is the red degree of vertex . The checker validates these finite constraints using the fixed seed adjacency data. The main text proves why every admissible seventeen-vertex colouring has such a partition.
The six certificate case indices and their seed indices are:
| Case index | Eight-vertex seed | Nine-vertex seed | Search nodes |
| 51 996 400 | 3477 | 1235 | 911 |
| 64 095 209 | 4228 | 1235 | 917 |
| 69 103 064 | 4877 | 68943 | 1 |
| 69 257 548 | 4893 | 68943 | 1 |
| 71 867 158 | 5479 | 1235 | 5668 |
| 82 561 944 | 6899 | 30887 | 1 |
Table A.12.
The CMake build in Section A.5 also builds the certificate generator build/fan_tail_certify. Regenerate all local proof data in a new directory with:
python3 tools/regenerate_certificates.py \
--binary build/fan_tail_certify \
--output generated_certificates --seconds 120
For a Visual Studio build, use build/Release/fan_tail_certify.exe as the binary path. The helper rebuilds the thirty-four-case counting certificate, selects the six remaining cases from the fixed input list, calls the C++ generator without symmetry restrictions, and independently replays all regenerated certificates. The output directory must be empty. The time limit is per case; if a certificate is not produced before the limit, use a larger limit and a new output directory.
The regenerated files can also be checked in a separate invocation:
python3 verify40.py \
--structural generated_certificates/theory_34_certificate.json \
--csp-dir generated_certificates \
--report results/regenerated_verified40.json
Certificate generation must disable the optional twin-row symmetry restriction, because the replay checker verifies a complete branching tree without invoking a symmetry argument. A timeout or incomplete tree is not an exclusion certificate. Store newly generated certificates in a fresh directory and replay them before using them. The helper enforces this symmetry setting. The archived certificates are sufficient to reproduce all six independent exclusions without rebuilding the generator.
Online reproducibility archive
The reproducibility archive contains the final source code, fixed inputs, independent checkers and certificate data; it also includes this guide so that the archive is self-contained. Research notebooks, obsolete executables, intermediate checkpoints, local dependency installations and development logs are not part of that distribution. Required third-party licences are retained.
The reproducibility package is publicly archived in Zenodo at https://zenodo.org/records/23119016. Its persistent identifier is https://doi.org/10.5281/zenodo.23119016. The source repository is available at https://github.com/jianghanxin01/fan-F3F4-reproducibility. For a fixed archived copy, use the Zenodo record. The GitHub repository may contain later updates. When citing the computational materials, use the Zenodo DOI, which identifies the reproducibility package rather than this paper.
References
- [2]T. Gauthier and C. E. Brown, A formal proof of R(4,5) = 25, in Interactive Theorem Proving (ITP 2024), LIPIcs 309 (2024), Article 16. doi:10.4230/LIPIcs.ITP.2024.16.DOI
- [5]H. Jiang and Z. Shao, Reproducibility package for an 8 + 9 gluing computation for the Ramsey number R(F₃, F₄), Zenodo, 2026. doi:10.5281/zenodo.23119016.DOI
- [6]T. Junttila and P. Kaski, Engineering an efficient canonical labeling tool for large and sparse graphs, in Algorithm Engineering and Experiments (ALENEX 2007), SIAM, 2007, 135–149. https://users.aalto.fi/~tjunttil/bliss/.
- [7]Q. Z. Lin and Y. S. Li, On Ramsey numbers of fans, Discrete Appl. Math. 157 (2009), 191–194. doi:10.1016/j.dam.2008.05.004.DOI
- [8]L. Lovász and M. D. Plummer, Matching Theory, North-Holland Mathematics Studies 121, North-Holland, Amsterdam, 1986.
- [9]B. D. McKay, Isomorph-free exhaustive generation, J. Algorithms 26 (1998), 306–324. doi:10.1006/jagm.1997.0898.DOI
- [10]B. D. McKay and S. P. Radziszowski, R(4,5) = 25, J. Graph Theory 19 (1995), 309–322. doi:10.1002/jgt.3190190304.DOI
- [11]S. P. Radziszowski, Small Ramsey numbers, Electron. J. Combin., Dynamic Survey DS1, revision 18 (24 April 2026). doi:10.37236/21.
- [12]Y. Zhang, H. J. Broersma and Y. Chen, A note on Ramsey numbers for fans, Bull. Aust. Math. Soc. 92 (2015), 19–23. doi:10.1017/S0004972715000398.DOI