Rado Numbers and SAT Computations
1 Introduction
A well-known result in arithmetic Ramsey theory is Schur’s theorem, which states that for any , there is an integer such that every -coloring of induces a monochromatic solution to [24]. The Schur number is the smallest such with this property. It is very difficult to compute and the largest known Schur number is , which was computed in 2018 using SAT solving techniques and created great attention with its massive parallel computation [15]. In this paper we follow this symbolic approach to investigate natural variations of Schur numbers.
The Rado numbers are a generalization of Schur numbers, and are of great importance in arithmetic Ramsey theory (see [12, 17, 19] and the references below). For a given linear equation , the -color Rado number is the smallest number such that every -coloring of induces a monochromatic solution to , or infinity if there is a -coloring of with no monochromatic solution to . Many 2-color Rado numbers for various types of equations have been computed in, for example, [18, 23, 21, 16]. Explicit formulas for the Rado numbers and are given in [17] and [13]. However, no such formula is known for the general case . There are some computations of 3-color Rado numbers scattered throughout the literature [18, 22, 20], but Rado numbers with more than two colors have not been studied as often. We present a systematic study of these numbers.
Another interesting family of numbers is the generalized Schur numbers . In [4] it was shown that , and it was conjectured in [1] and later proved in [8] that . Myers showed in [18] that the numbers give an upper bound for , and several more values of were shown to be equal to , thus giving exact values for more generalized Schur numbers. Myers went on to make the following conjecture in [18].
Conjecture 1.1 (Myers).
for .
In this paper we focus on computing Rado numbers for three variable linear homogeneous equations using SAT-based methods described in Section 2. The main contributions of this paper are exact formulas for several families of 3-color Rado numbers. In particular, we show Conjecture 1.1 is true.
Theorem 1.2.
The values of the following Rado numbers are known:
-
1.
for
-
2.
for .
-
3.
for , , .
As a corollary, we obtain the result in [8], an exact formula for the 3-color generalized Schur numbers.
Corollary 1.2.1.
for .
We also compute exactly several 3-color and 4-color Rado numbers.
Theorem 1.3.
The values of the following Rado numbers are known.
-
1.
for .
-
2.
for .
-
3.
for .
-
4.
for .
-
5.
for .
We collect the 3-color Rado number values we computed in Theorem 1.3 in Tables 1 to 8. We also give the additional values for as well as our values for in the Appendix (Tables 9 and 10). Underlined entries in these tables correspond to equations whose coefficients are not coprime.
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | 14 | 14 | 27 | 64 | 125 | 216 | 343 | 512 | 729 | 1000 | 1331 | 1728 | 2197 | 2744 | 3375 |
2 | 43 | 14 | 31 | 14 | 125 | 27 | 343 | 64 | 729 | 125 | 1331 | 216 | 2197 | 343 | 3375 |
3 | 94 | 61 | 14 | 73 | 125 | 14 | 343 | 512 | 27 | 1000 | 1331 | 64 | 2197 | 2744 | 125 |
4 | 173 | 43 | 109 | 14 | 141 | 31 | 343 | 14 | 729 | 125 | 1331 | 27 | 2197 | 343 | 3375 |
5 | 286 | 181 | 186 | 180 | 14 | 241 | 343 | 512 | 729 | 14 | 1331 | 1728 | 2197 | 2744 | 27 |
6 | 439 | 94 | 43 | 61 | 300 | 14 | 379 | 73 | 31 | 125 | 1331 | 14 | 2197 | 343 | 125 |
7 | 638 | 428 | 442 | 456 | 470 | 462 | 14 | 561 | 729 | 1000 | 1331 | 1728 | 2197 | 14 | 3375 |
8 | 889 | 173 | 633 | 43 | 665 | 109 | 644 | 14 | 793 | 141 | 1331 | 31 | 2197 | 343 | 3375 |
9 | 1198 | 856 | 94 | 892 | 910 | 61 | 896 | 896 | 14 | 1081 | 1331 | 73 | 2197 | 2744 | 125 |
10 | 1571 | 286 | 1171 | 181 | 43 | 186 | 1190 | 180 | 1206 | 14 | 1431 | 241 | 2197 | 343 | 31 |
11 | 2014 | 1508 | 1530 | 1552 | 1574 | 1596 | 1618 | 1584 | 1575 | 1580 | 14 | 1849 | 2197 | 2744 | 3375 |
12 | 2533 | 439 | 173 | 94 | 2005 | 43 | 2053 | 61 | 109 | 300 | 2024 | 14 | 2341 | 379 | 141 |
13 | 3134 | 2432 | 2458 | 2484 | 2510 | 2536 | 2562 | 2588 | 2574 | 2530 | 2541 | 2544 | 14 | 2913 | 3375 |
14 | 3823 | 638 | 3039 | 428 | 3095 | 442 | 43 | 456 | 3207 | 470 | 3113 | 462 | 3146 | 14 | 3571 |
15 | 4606 | 3676 | 286 | 3736 | 94 | 181 | 3826 | 3856 | 186 | 61 | 3795 | 180 | 3835 | 3836 | 14 |
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | |
---|---|---|---|---|---|---|---|---|---|---|
1 | 14 | |||||||||
2 | 1 | 14 | 243 | |||||||
3 | 54 | 54 | 14 | 384 | 2000 | |||||
4 | 1 | 108 | 14 | 875 | 243 | 4459 | ||||
5 | 105 | 135 | 180 | 14 | 864 | 3072 | 12393 | |||
6 | 54 | 1 | 54 | 750 | 14 | 384 | 243 | 2000 | ||
7 | 455 | 336 | 308 | 875 | 14 | 8748 | 7500 | |||
8 | 432 | 1 | 1000 | 108 | 14 | 8019 | 875 | |||
9 | 54 | 585 | 1125 | 54 | 3087 | 1224 | 14 | 6000 | ||
10 | 1125 | 105 | 1 | 135 | 3430 | 180 | 7290 | 14 |
If the number is finite for a fixed , we say that the equation is -regular. If is -regular for all , we say is regular. In its simplest version, Rado’s classical theorem gives necessary and sufficient conditions for when a linear homogeneous equation is regular [19].
Theorem 1.4 (Rado).
A linear equation with is regular if and only if there exists a nonempty subset of the that sums to zero.
Nonregular equations may have finite Rado numbers for small . The largest for which an equation is -regular is the degree of regularity of , denoted . We set if is regular. Rado also proved a theorem that characterized the 2-regular linear homogeneous equations in three or more variables.
Theorem 1.5 (Rado).
Let and Then the equation is 2-regular if and only if there exists and such that and .
For , there is no known characterization of the -regular equations. In [2] it was shown that for every , there exists a linear homogeneous equation in variables that has degree of regularity . However, for a fixed number of variables, the question of what degrees of regularity are possible for homogeneous linear equations remains largely unanswered. Rado made the following conjecture about this question in his Ph.D. thesis [19].
1 | 2 | 3 | 4 | 5 | 6 | |
---|---|---|---|---|---|---|
1 | 14 | 43 | 94 | 173 | 286 | 439 |
2 | 1093 | 2975 | 4422 | |||
3 | ||||||
4 | ||||||
5 | ||||||
6 |
1 | 2 | 3 | 4 | 5 | 6 | |
---|---|---|---|---|---|---|
1 | 1 | 14 | 54 | 70 | 126 | |
2 | 14 | 61 | 43 | 181 | 94 | |
3 | 243 | 395 | 648 | |||
4 | ||||||
5 | ||||||
6 |
1 | 2 | 3 | 4 | 5 | 6 | |
---|---|---|---|---|---|---|
1 | 54 | 1 | 27 | 54 | 89 | 195 |
2 | 54 | 31 | 140 | 108 | ||
3 | 14 | 109 | 186 | 43 | ||
4 | 384 | 220 | ||||
5 | 2000 | 1074 | ||||
6 |
1 | 2 | 3 | 4 | 5 | 6 | |
---|---|---|---|---|---|---|
1 | 1 | 64 | 100 | |||
2 | 1 | 14 | 54 | |||
3 | 108 | 73 | 105 | |||
4 | 14 | 180 | 61 | |||
5 | 141 | |||||
6 | 31 |
1 | 2 | 3 | 4 | 5 | 6 | |
---|---|---|---|---|---|---|
1 | 45 | 60 | 1 | 125 | 150 | |
2 | 105 | 1 | 125 | 70 | ||
3 | 135 | 100 | 125 | 108 | ||
4 | 180 | 141 | ||||
5 | 300 | |||||
6 | 864 |
1 | 2 | 3 | 4 | 5 | 6 | |
---|---|---|---|---|---|---|
1 | 40 | 81 | 1 | 216 | ||
2 | 54 | 81 | 1 | 90 | 27 | |
3 | 1 | 135 | 14 | |||
4 | 54 | 31 | ||||
5 | 750 | 241 | ||||
6 | 14 |
Conjecture 1.6 (Rado’s Boundedness Conjecture).
For all , there is a number such that if a linear equation in variables is -regular, then it is regular.
In [10] it was shown that Rado’s boundedness conjecture is true if it is true for the case of homogeneous equations. Those authors also proved the first nontrivial case of the conjecture by showing that if a linear homogeneous equation in three variables is 24-regular, then it is regular. However, it is not known if 24 is the best possible bound. There are no known examples of a nonregular linear homogeneous equation in three variables that is 4-regular. Moreover, in [10], several coloring lemmas give more precise bounds on the degree of regularity of 3-variable linear homogeneous equations. We contribute further improvements on their results and compute the degree of regularity of all sufficiently small equations .
Theorem 1.7.
The degree of regularity of the equation is known for all .
We also mention a related conjecture of Golowich [11].
Conjecture 1.8.
For each positive integer there is an integer such that for any , any linear homogeneous equation in variables with nonzero integer coefficients not all of the same sign is regular.
We provide counterexamples to the Golowich conjecture. We show that for all there is a linear homogeneous equation in variables that is not -regular.
Theorem 1.9.
For all , there is a linear homogeneous equation in variables that is not -regular. In particular,
is not -regular. Thus Conjecture 1.8 is false.
As a corollary, for there exists a linear homogeneous equation in variables with degree of regularity exactly 2.
Corollary 1.9.1.
For all , there is a linear homogeneous equation in variables with . In particular,
This paper is organized as follows: in Section 2 we give background on SAT solving and the computational methods we used to compute Rado numbers. Section 3 gives several lemmas used to obtain improved bounds on the degree of regularity of certain families of equations. In Section 4 we introduce a new SAT method to compute families of Rado numbers and prove our main results. Section 5 gives additional details on the computational aspects of this project. The Appendix contains additional tables of Rado numbers and experimental data.
2 SAT Solving and Encoding
In this section we explain how to encode the problem of finding Rado numbers as an instance of SAT and describe additional techniques used to increase performance. The code used for our computations can be found at [9].
2.1 Background on Satisfiability
A literal is a Boolean variable or its negation. A clause is a logical disjunction of literals, and a Boolean formula is in conjunctive normal form (CNF) if it is a logical conjunction of clauses.
The Boolean satisfiability problem (SAT) is the problem of determining whether a given Boolean formula is satisfiable, i.e., there is a true/false assignment to the literals that makes the formula true. Any Boolean formula can be expressed in conjunctive normal form, and most SAT solvers take CNF formulas as input.
2.1.1 Encoding of the Problem
The problem of computing Rado numbers can be encoded as an instance of SAT. Given an equation and positive integers , we construct a formula that is satisfiable if and only if there exists a -coloring of that does not contain a monochromatic solution to . Therefore if is satisfiable, then , and otherwise . We use the variables that are assigned the value true if and only if the integer is colored with color . Following the language used in [15], a formula consists of three different types of clauses: positive, negative, and optional.
-
•
Positive clauses encode that every number is assigned at least one color, and are of the form for .
-
•
Negative clauses encode that there are no monochromatic solutions to . If is a solution to , then its corresponding negative clauses are for . Every positive integer solution to with contributes these negative clauses to .
-
•
Optional clauses encode that every number is assigned at most one color, and are of the form for and . These clauses are not strictly necessary since they do not affect the satisfiability of , but they ensure that satisfying assignments are in one-to-one correspondence with -colorings of that avoid monochromatic solutions to .
Example 2.1.
The clauses in the formula are:
Positive clauses:
Negative clauses:
Optional clauses:
If we input into a SAT solver, it will output satisfiable. The coloring , for example, avoids monochromatic solutions. We remark that even though some clauses, such as , contain redundant literals, these literals are removed in a preprocessing step.
3 Degree of regularity coloring lemmas
Working towards the goal of computing the degree of regularity and Rado number for as many equations as possible, in this section we collect several results on colorings that avoid monochromatic solutions. These colorings give upper bounds on the degree of regularity of certain equations, and this allows us to avoid doing unnecessary computations. We are especially interested in cases where we can show that the degree of regularity of an equation is at most three. In these cases a computation of a (finite) 3-color Rado number is a proof that the degree of regularity equals three.
The following result gives two algebraic conditions that guarantee an upper bound on the degree of regularity. A version of the first condition was proved in [10].
Lemma 3.1.
Let be the equation with and for all . Let . Then is not -regular if one of the following conditions holds:
-
(i)
, (ii) .
Proof.
For the first condition, let . Define the coloring . Suppose is a solution to , and let . Let be the unique integer such that . Then . By hypothesis we have . Therefore . We have shown that , so and there are no -monochromatic solutions to .
For the second condition, suppose and that is a solution to . Again let , and let Define a -coloring . Suppose , so . Note since implies . Then . Moreover, . Therefore , so and there are no -monochromatic solutions to . ∎
Recall that for any prime , the -adic valuation is the largest integer such that divides . Many useful colorings come from -adic valuations and studying the divisibility properties of an equation’s coefficients. We will freely use the fact that for all integers and . In [10] the following result was shown:
Lemma 3.2.
Suppose is an equation of the form with all distinct for some prime . Then has degree of regularity at most 3.
If the condition in Lemma 3.2 is strengthened to distinct -adic valuations modulo 3, then we obtain an improved bound on the degree of regularity.
Example 3.3.
Let denote the equation . Consider the 3-coloring . If is a solution to and , then and are all distinct since these values are all different modulo 3. Let . Then reducing each side of modulo gives a contradiction. Therefore induces no monochromatic solutions to .
The following lemma generalizes the proof in the example above.
Lemma 3.4.
Let be the equation . If there is a prime for which for all , then is not -regular.
Proof.
Define a -coloring . Suppose is a monochromatic solution to . Then for since these values are distinct modulo . Let . Then , so , a contradiction. ∎
The following two results are similar to Lemma 5 and Lemma 6 in [10]. Here we show that under additional assumptions on and , respectively, it follows that the degrees of regularity of certain equations are at most six, which is stronger than the corresponding best bounds in [10]. We also show that another hypothesis on the order a particular group element further improves this upper bound to four.
Lemma 3.5.
Let denote the equation . If is not regular and , then . If additionally the element in the multiplicative group has even order, then .
Proof.
Since , let . Since , it follows that is not the identity element of . Let denote the graph with vertex set and edges if (see Figure 1 for an example). Since , it follows that , so is loopless. Then is a union of disjoint cycles, and each cycle has size for some . If is even, then all of the cycles in have even length, and so is 2-colorable (note the conditions imply ). Otherwise, is 3-colorable since each vertex has degree at most 2. Let be a proper vertex coloring of that uses the fewest number of colors. We will construct a (4- or 6-) coloring to show that is not 4- or 6- regular and conclude or , respectively.
Let . For all , write with . Define the coloring to be
Let be the product coloring
We claim that is a coloring with no monochromatic solutions to .
Suppose is a monochromatic solution to . Write with and . Without loss of generality, we may assume that at least one of , and is zero, and in each case we will show a contradiction.
Suppose first that
Case 1: Suppose . Then if , then we may reduce modulo to obtain a contradiction since , but . So we may assume . Now suppose . Then . But this is impossible since and would have different colors by the coloring (recall that is loopless). Therefore , and so , a contradiction.
Case 2: The case is similar to the case .
Case 3: Suppose and . Then , but , and so a contradiction. Therefore or , and the proof follows from one of the previous cases.
If , then in all cases we may divide and by , and the proof follows similarly.
∎
Lemma 3.6.
Let denote the equation . If is not regular and for some prime , then . Write and . If additionally the element in the multiplicative group has even order, then .
Proof.
Since and , and is not the identity element of . Let denote the graph with vertex set and edges if . Then is a union of disjoint cycles, and each cycle has size for some . Note that is not loopless since . If has even order, then is 2-colorable, and otherwise is 3-colorable. Let be a proper vertex coloring of that uses the fewest number of colors. We will construct a (4- or 6-) coloring to show that is not 4- or 6- regular and conclude or , respectively.
Let , and for all , write with . Define the coloring to be
Let be the product coloring
Suppose is a monochromatic solution to with respect to . Write with and . Without loss of generality, we may assume that at least one of , and is zero, and in each case we will show a contradiction.
Suppose Case 1: Suppose . Then . Case 2: Suppose and . Then if , then , so assume . If , then . But by coloring it follows that and have different colors, a contradiction. The case is similar.
Suppose . If , then . The cases are similar to above. ∎

4 Two parameter 3-color Rado numbers
In [17] the formulas for the 2-color Rado numbers and , are given. However, a formula for the 2-color Rado numbers is unknown. Here we give bounds on some 3-color Rado numbers of the form and and prove our main results.
4.1 Rado Numbers
By Rado’s theorem, the equation is regular. Table 1 gives values of the 3-color Rado numbers for .
The following lemma gives a simple lower bound on the Rado numbers .
Lemma 4.1.
Suppose and . Then .
Proof.
Let denote the highest power of that divides . Then defines a coloring of that has no monochromatic solutions of . To see this, suppose is a monochromatic solution in color . If then there is no that satisfies , so suppose . Then and , where . Since , , a contradiction. ∎
For the case , we have an improved lower bound on
Lemma 4.2.
.
Proof.
We will construct a coloring of that induces no monochromatic solutions to . Define
Let be a positive integer solution to . Suppose . If , then since and are relatively prime, , and . If and , then , so . The case and is similar. Note that since must be positive. If , and , then . Then . Since , it follows that , so . But the only value with is , so . Now if and or , then , so . Then If , then . If , then and , a contradiction.
Now suppose . Then , so .
If , then either , or . In the former case we have . We have since this implies , but this is impossible since , and it follows that . If , then and . Therefore , so .
Therefore there are no monochromatic solutions to . ∎
4.2 3-regularity of
In his thesis [19], Rado proved the following result on the family of equations .
Theorem 4.3 (Rado).
If for all , then .
The following lemma strengthens Rado’s result to include the case when for some integer .
Lemma 4.4.
for , and for . Moreover, unless .
Table 2 gives the 3-color Rado numbers for We also give the values of some additional Rado numbers for the equations with in the Appendix.
4.3 Proofs of Main Results
In this section we prove Theorem 1.2 using an encoding of the Rado number problem similar to that in Section 2. The key difference is that in this new encoding, indices of variables are indexed by symbolic polynomial expressions rather than fixed integers.
Let be a linear equation in variables, and let be a set of polynomials. Let be a set of solutions to . The variable is assigned the value true if and only if the expression is assigned color . Positive and optional clauses are constructed similarly to the method in Section 2. The negative clauses are constructed from the solutions in . For example, if }, and is the equation , then is a solution. If , then we add the negative clause to our formula. The following lemma formalizes this procedure and describes how to use these formulas to compute Rado numbers for families of equations.
Lemma 4.5.
Let be a finite alphabet of parameters. Let be a linear equation in the variables with coefficients in . Let be a set of expressions over , and let be a set of solutions to . We define to be the corresponding formula for the -color Rado number generated by the clauses from as follows.
Let . If for all , and is unsatisfiable, then for all .
In other words, if substituting values for parameters in a formula always gives a valid formula, i.e., one whose variables are bounded between 1 and , then the unsatisfiability of gives an upper bound on the Rado numbers for a family of equations. For each equation in the family, is an unsatisfiable subformula in the corresponding Rado number formula for .
Proof of Theorem 1.2.
For the Rado numbers , in Lemma 4.5 let , and let be the equation . The set is a family of 685 polynomials and the set contains 9468 solutions to . It is straightforward to show that for all and all . The formula was shown to be unsatisfiable in 0.03 seconds by Satch, proving for . By results in [4] and [18], we have for , and so for .
For the Rado numbers , let , and let denote the equation . We constructed a set of 1365 polynomials and a set of 20811 solutions to . It is again straightforward to show that for all and all . The formula was shown to be unsatisfiable in 0.05 seconds by Satch, proving for . By Lemma 4.2 and Theorem 1.3, it follows that for .
For the Rado numbers , let , and let denote the equation . We constructed a set of 40645 polynomials and a set of 490897 solutions to . All polynomials were verified to satisfy for all integers satisfying , and using the software GloptiPoly 3 [14]. Some additional valid inequalities were added to the region specified in GloptiPoly 3 using elementary calculus techniques. The formula was shown to be unsatisfiable in 1.72 seconds by Satch, proving for all satisfying , , and . By Theorem 1.3 and Lemma 4.1, for with .
For each of these formulas, the sets and were constructed using a heuristic search procedure. We give details of this procedure in the Appendix.
∎
The results in Theorem 1.3 were proven by computer.
Proof of Theorem 1.3.
We are now able to prove Theorem 1.7.
Proof of Theorem 1.7.
Let denote the equation . For each triple that satisfies and , we performed the following calculations. If a nonempty subset of sums to zero, then by Theorem 1.4. If , and are all distinct modulo 3 for some prime , or if one of the inequalities or holds, then by Lemma 3.4, Lemma 3.1, and Theorem 1.5.
5 Rado CNF file generation
In this section we discuss some of the computational details from our calculations. The main workflow when computing a Rado number for a given linear equation is the following:
-
•
Generate the CNF file encoding .
-
•
Apply symmetry breaking preprocessing.
-
•
Determine the satisfiability of with SAT solvers.
-
•
Adjust to find the smallest for which is unsatisfiable.
In the following subsections, we explain how to achieve each step of the computation procedure.
5.1 Generating CNF Files
Before we compute a given Rado number with a SAT solver, we must write the formula to a file in DIMACS format (see [7], Chapter 2). For many of our Rado number calculations, this step took far longer than the SAT solving process. The paper [15] uses divide-and-conquer and several CPU years to solve a single difficult SAT formula in five colors; in contrast, we solve many easier problems with only three colors. Generating negative clauses is the most difficult step as it involves enumerating the positive integer solutions to .
5.1.1 Generating all solutions
For efficient solution generation to homogeneous linear equations, we used the built-in function isolve in Maple to parameterize the solutions. We then used SymPy to parse the output of Maple and generate the solutions with values in .
Example 5.1.
If we want to generate all integer solutions in the interval for the equation , we can feed into Maple’s isolve function, which gives the output
Since we want all integer solutions within , we can loop from to and manipulate the inequality
into an inner loop where is looped from to . For , we can simply check whether is satisfied or not inside the loops to determine if is a solution.
5.1.2 Writing Clauses to File
Some of the formulas in our computations contain millions of clauses, and writing these clauses to a file is a time-consuming part of CNF file generation. For example, the CNF file which encodes contains more than 20 million clauses, of which only are positive or optional.
The algorithm to generate all the positive and optional clauses is done though Python. Since the parameterization of the equation is also passed to Python, we also used Python to generate the CNF files. We were able to improve CNF file generation speeds for 3-color Rado numbers by implementing loop unrolling.
5.2 Symmetry Breaking
Symmetry breaking is a SAT solving technique that can lead to drastic speedups by preventing the solver from looking in isomorphic areas of the search space. In our case we want to prevent the solver from searching for different permutations of the same coloring.
We can break this symmetry in the formula , for example, by adding the clauses and . These clauses force number to be red and number to be blue. In general, if is a linear homogeneous equation in three variables and we have a solution where two of and are equal to each other, then we can add clauses that force the two equal variables to be the first color and the remaining variable to be the second color. For Rado numbers with , we can also add clauses that break the symmetries on the other colors (see [15]).
Generating a larger set of symmetry breaking clauses with more sophisticated preprocessing is more difficult and requires far more time than normal file generation. We included only a simple preprocessing step in our solving process. The benefit of this preprocessing becomes more apparent when the number of integers to color or the number of colors grows. Without symmetry breaking, Satch takes nearly 15 minutes to determine that is unsatisfiable, but only a few seconds after adding symmetry breaking clauses.
5.3 SAT Solvers
Most of the SAT solving computations were done with the solver Satch v0.4.17, developed by Biere [5]. We initially used Satch because it is remarkably fast at proving upper bounds for many 3-color Rado numbers and relatively easy to use. For example, Satch is able to prove the upper bounds for the values in the first column and last row of Table 1 in under 10 seconds for each equation. Later, as we moved towards larger CNF files and more colors, Satch started to struggle.
In order to take advantage of the computation hardware that we had, we also experimented with the multithreaded SAT solver Glucose [3]. In general, Satch performed better on smaller instances, but Glucose solved larger instances up to two times as quickly.
5.4 Binary Search
In order to compute the exact value of a Rado number , we often must determine the satisfiability of for many values of . A convenient property of the formulas is that if , then we can obtain the formula simply by deleting all the clauses that contain variables with . Therefore, once we have a formula that is unsatisfiable, we have an upper bound , and we no longer need to do any solution (negative clause) generation. After obtaining a lower bound with a satisfiable formula , we can compute the exact value of the Rado number using binary search to jump between and . Our initial guesses for suitable bounds on were made largely through trial and error. However, even with the poor estimates for , it is possible to compute the exact values for all of these numbers in under two hours.
6 Acknowledgements
This project was supported by National Science Foundation grant DMS-1818969.
References
- [1] T. Ahmed and D. J. Schaal. On generalized Schur numbers. Exp. Math., 25(2):213–218, 2016.
- [2] B. Alexeev and J. Tsimerman. Equations resolving a conjecture of Rado on partition regularity. J. Combin. Theory Ser. A, 117(7):1008–1010, 2010.
- [3] G. Audemard and L. Simon. Predicting learnt clauses quality in modern sat solvers. Twenty-first International Joint Conference on Artificial Intelligence (IJCAI’09), 2009.
- [4] A. Beutelspacher and W. Brestovansky. Generalized Schur numbers. In Combinatorial theory (Schloss Rauischholzhausen, 1982), volume 969 of Lecture Notes in Math., pages 30–38. Springer, Berlin-New York, 1982.
- [5] A. Biere. SAT Solver SATCH (version 0.4.17). https://github.com/arminbiere/satch, 2021.
- [6] A. Biere, K. Fazekas, M. Fleury, and M. Heisinger. CaDiCaL, Kissat, Paracooba, Plingeling and Treengeling entering the SAT Competition 2020. In T. Balyo, N. Froleyks, M. Heule, M. Iser, M. Järvisalo, and M. Suda, editors, Proc. of SAT Competition 2020 – Solver and Benchmark Descriptions, volume B-2020-1 of Department of Computer Science Report Series B, pages 51–53. University of Helsinki, 2020.
- [7] A. Biere, M. Heule, H. van Maaren, and T. Walsh. Handbook of Satisfiability: Volume 185 Frontiers in Artificial Intelligence and Applications. IOS Press, NLD, 2009.
- [8] L. Boza, J. M. Marín, M. P. Revuelta, and M. I. Sanz. 3-color Schur numbers. Discrete Appl. Math., 263:59–68, 2019.
- [9] Y. Chang, J. A. D. Loera, and W. J. Wesley. Ramsey research software. https://github.com/itis2010me/Ramsey_Research, 2021.
- [10] J. Fox and D. J. Kleitman. On Rado’s boundedness conjecture. J. Combin. Theory Ser. A, 113(1):84–100, 2006.
- [11] N. Golowich. Resolving a conjecture on degree of regularity of linear homogeneous equations. Electron. J. Combin., 21(3):Paper 3.28, 8, 2014.
- [12] R. L. Graham, B. L. Rothschild, and J. H. Spencer. Ramsey theory. Wiley Series in Discrete Mathematics and Optimization. John Wiley & Sons, Inc., Hoboken, NJ, 2013.
- [13] H. Harborth and S. Maasberg. All two-color Rado numbers for . volume 197/198, pages 397–407, 1999. 16th British Combinatorial Conference (London, 1997).
- [14] D. Henrion, J.-B. Lasserre, and J. Löfberg. GloptiPoly 3: moments, optimization and semidefinite programming. Optim. Methods Softw., 24(4-5):761–779, 2009.
- [15] M. J. H. Heule. Schur number five. Proceedings of AAAI-18, pages 6598–6606, 2018.
- [16] M. J. H. Heule, O. Kullmann, and V. W. Marek. Solving and verifying the Boolean Pythagorean triples problem via cube-and-conquer. In Theory and applications of satisfiability testing—SAT 2016, volume 9710 of Lecture Notes in Comput. Sci., pages 228–245. Springer, [Cham], 2016.
- [17] B. M. Landman and A. Robertson. Ramsey theory on the integers, volume 73 of Student Mathematical Library. American Mathematical Society, Providence, RI, second edition, 2014.
- [18] K. Myers. Computational advances in Rado numbers. ProQuest LLC, Ann Arbor, MI, 2015. Thesis (Ph.D.)–Rutgers The State University of New Jersey - New Brunswick.
- [19] R. Rado. Studien zur Kombinatorik. Math. Z., 36(1):424–470, 1933.
- [20] K. Rendall Truman and D. Schaal. Three-color Rado numbers for for negative values of . In Proceedings of the Thirty-Seventh Southeastern International Conference on Combinatorics, Graph Theory and Computing, volume 183, pages 5–10, 2006.
- [21] D. Saracino. The 2-color Rado number of . Ars Combin., 129:315–321, 2016.
- [22] D. Schaal. A family of -color Rado numbers. In Proceedings of the Twenty-sixth Southeastern International Conference on Combinatorics, Graph Theory and Computing (Boca Raton, FL, 1995), volume 111, pages 150–160, 1995.
- [23] D. Schaal and M. Zinter. Two-color Rado numbers for the equations and . J. Combin. Math. Combin. Comput., 95:201–214, 2015.
- [24] I. Schur. Über kongruenz . Jahresbericht der Deutschen Mathematiker-Vereinigung, 25:114–116, 1917.
Appendix A Additional Rado Number calculations
In this section we give additional bounds and exact values for various Rado numbers.
A.1 3-color Rado Numbers
Table 9 gives for , .
3 | 4 | 5 | 6 | |
---|---|---|---|---|
11 | 2019 | 847 | 1958 | 1188 |
12 | 54 | 2400 | 1 | |
13 | 1710 | 3445 | 1963 | |
14 | 455 | 3675 | 336 | |
15 | 5408 | 54 | 105 | |
16 | 5725 | 432 | ||
17 | 8330 | 4743 | ||
18 | 12069 | 54 | ||
19 | 16397 | 6726 | ||
20 | 1025 |
A.2 4-color Rado Numbers
Table 10 gives some values for the 4-color Rado numbers . These numbers are considerably more difficult to compute than , and it took the solver CaDiCaL [6] up to 20 hours to prove some of the upper bounds. Notably, for , which implies and by results in [4] and [18].
1 | 2 | 3 | 4 | 5 | |
---|---|---|---|---|---|
1 | 45 | 56 | 81 | 256 | 625 |
2 | 171 | 45 | 103 | 56 | |
3 | 469 | 45 | |||
4 | 1037 |
Appendix B Degree of Regularity Values
1 | 2 | 3 | 4 | 5 | |
---|---|---|---|---|---|
1 | |||||
2 | |||||
3 | |||||
4 | |||||
5 |
1 | 2 | 3 | 4 | 5 | |
---|---|---|---|---|---|
1 | |||||
2 | |||||
3 | |||||
4 | |||||
5 |
1 | 2 | 3 | 4 | 5 | |
---|---|---|---|---|---|
1 | |||||
2 | |||||
3 | |||||
4 | |||||
5 |
1 | 2 | 3 | 4 | 5 | |
---|---|---|---|---|---|
1 | |||||
2 | |||||
3 | |||||
4 | |||||
5 |
1 | 2 | 3 | 4 | 5 | |
---|---|---|---|---|---|
1 | |||||
2 | |||||
3 | |||||
4 | |||||
5 |
Appendix C Heuristic search procedure in proof of Theorem 1.2
Here we detail the method FindPolynomials which we used to find the sets of polynomials in the proof of Theorem 1.2. We give the version of FindPolynomials used for the equation . The procedures for the other two equations were similar, but had minor modifications.
In brief, we initialize to a set of polynomials , and we use an auxiliary set of “gaps” to add more polynomials to . The procedure BoundedIntegerPolynomial returns true if and only if all of its arguments are polynomials that satisfy for all . The FindPolynomials procedure is not guaranteed to produce a set of clauses that yields an unsatisfiable formula, and it took several attempts to come up with suitable choices for the initial sets and . For the equation , we set , , and maxIterations = 3. Files containing the polynomials and clauses used in our formulas can be found in [9].