Manuscript Offprint
arXiv:2610.33850Solving Large SDPs from Flag Algebra Problems
Abstract
The flag algebra method is a general tool in extremal combinatorics, which has been useful in tackling open problems concerning graphs, hypergraphs, permutations, point sets, and other structures. The method establishes combinatorial inequalities via sums of squares, which are usually obtained by a semidefinite relaxation of the original combinatorial problem.
A typical application of the method in graph theory starts with fixing a parameter n followed by constructing a semidefinite program based on the (subgraph) structure of all n-vertex graphs. In the standard formulation before symmetry reductions, there is a coefficient constraint for every admissible n-vertex graph up to isomorphism. For 3-uniform hypergraphs, there are 2,136 of them on 6 vertices and 7,013,320 on 7 vertices. While solving the resulting program for n = 6 is an easy task on any modern computer, the programs for n = 7 seems out of reach, mainly because the SDP solvers need too much RAM. Yet solving such programs for as large n as possible is desirable because they typically yield better bounds for the original combinatorial problems.
We bypass the aforementioned memory requirements by linear programming with cutting planes. Although we do not guarantee that this cutting-plane procedure reaches an optimum in finitely many iterations, in many flag algebra instances it uses much less memory and yields improved bounds for well-known hypergraph Turán problems.
We use this method to obtain numerical bounds for Turán densities and codegree squared densities of several 3-uniform hypergraphs including the tetrahedron, where we obtained the upper bound 0.55753 and tetrahedron without one edge with a new upper bound 0.2865. It also allows to tackle bounds on Turán densities of 7-vertex 3-graphs using flag algebras, which was not possible before.
1 Introduction
In 2007, Razborov [52] introduced the method of flag algebras for extremal combinatorics. It allows to search for non-negative asymptotic inequalities expressible as sums of squares of small induced subgraph densities. This is done via a semidefinite relaxation of the original (discrete) problem. The method is quite general and can be applied to graphs [26, 31], oriented graphs [19, 15], Ramsey numbers [38, 41, 43], hypergraphs [17, 27], permutations [21, 56, 18], hypercubes [12, 10], crossing number [7, 11], SAT functions [9], infinite trees [16], vector spaces [54], or phylogenetic trees [2] to name a few.
A typical application of flag algebras fixes an order n and constructs a semidefinite relaxation using induced densities of all admissible n-vertex graphs or hypergraphs. Let denote the number of such objects up to isomorphism. In the simplest formulation, there is one coefficient constraint for each of these objects, rather than one for each vertex. Larger values of n typically give stronger bounds (and never
*Department of Mathematics, Iowa State University, Ames, IA. E-mail: lidicky@iastate.edu. Research of this author is supported in part by NSF FRG DMS-2152490 and DMS-2554129, the Simons Foundation TSM-00013439 and Scott Hanna Professorship.
Department of Theoretical Computer Science, Faculty of Information Technology, Czech Technical University in Prague, Thákurova 9, Prague, 160 00, Czech Republic. E-mail: jan@ucw.cz Research of this author was supported by the grant 23-06815M of the Grant Agency of the Czech Republic.
| r | OEIS | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2 | A000088 | 1 | 1 | 2 | 4 | 11 | 34 | 156 | 1044 | 12,346 | 274,668 | 12,005,168 |
| 3 | A000665 | 1 | 1 | 1 | 2 | 5 | 34 | 2136 | 7,013,320 |
Table 1: Number of non-isomorphic -graphs up to 10 vertices, where .
worse ones). For unrestricted -uniform hypergraphs with fixed , colloquially abbreviated as -graphs, the elementary bounds
show that ; in particular, this growth is superexponential in . The first ten values are given in Table 1. We note that forbidden-subgraph restrictions can substantially reduce these counts.
We often use the CSDP solver [14] to solve the semidefinite programs. If , the resulting semidefinite program is usually easy to solve on a personal computer. If , it can typically be solved on a cluster in a reasonable time. Solving instances with is an exceptional challenge, although it can be done with substantial computational resources [30]. The main limitation is the memory used by CSDP. In some of our work, we use MOSEK [3] as well, which is often significantly faster than CSDP but requires even more memory. This limits its usability for large instances.
In this paper, we describe a method for obtaining approximate SDP solutions that we applied to instances with almost 10,000,000 coefficient constraints. Even a partially solved relaxation at order can improve on the optimum of the relaxation at order . The cutting-plane method we use is already known [39], even in the context of flag algebras [34]. Nevertheless, this old method seems to work particularly well in our case. There may be even better ways of iteratively approaching SDP solutions via LPs [1], but we have not explored these avenues.
We present our newly obtained bounds in Section 2. Some numerical bounds were close to the conjectured exact values, so it was possible to obtain certificates for exactly “rounded” tight bounds. In Section 4, we describe the method along with a toy example. Section 3 is dedicated to the description of flag algebras.
We test our implementation on the Turán densities of the following 3-graphs.
Note that [4] denotes by the 3-graph that we denote here by . We estimate two quantities: the Turán density and its variant.
Given a 3-graph , the extremal number is the maximum number of triples in an -free -vertex 3-graph. The Turán density of is
Let be an -vertex 3-graph. The codegree of a pair of vertices is the number of triples in containing . Denote this number by . We are interested in the -norm of the vector of the codegrees of all pairs of vertices. Let
and denote by the maximum of over all -vertex 3-graphs that are -free. Finally, we define the normalized asymptotic maximum of , which always has a limit [5, Proposition 1.8], as
It seems that determining is slightly more approachable than , since the former tend to have more often unique maximizers.
We summarize the bounds we obtained together with the best known bounds at the time of writing the paper in Table 2. For up-to-date bounds and constructions, see [8]. The sizes of the corresponding semidefinite programs, as well as the resources required to solve them, are summarized in Table 3.
3 Introduction to Flag Algebras
The purpose of this section is to present a brief introduction to flag algebras in order to make this paper self-contained. This is not intended to be a comprehensive introduction to the method. The method is applicable to a variety of combinatorial structures, however, we discuss it only in the setting of graphs to make it more accessible.
For a graph G, denote the vertex set of G by and the number of vertices of G by . For a set of vertices X, we denote by the subgraph of G induced by X.
Let be a graph on , where ; in the trivial case it holds that and is the null graph. Such (canonically labeled) graphs are called types. For a fixed type , a -flag
Our definition of is consistent with the definition of 3-graphs in [46, Definition 1.1] with and .
| F | π(F) ≥ | prior π(F) ≤ | our π(F) ≤ | πℓ2(F) ≥ | prior πℓ2(F) ≤ | our πℓ2(F) ≤ |
|---|---|---|---|---|---|---|
| K4- | 0.285714 [29] | 0.28689 [60] | 0.286504 | 0.093023 [8] | 0.09307 [8] | 0.093058 |
| K4 | 0.555555 [59] | 0.55733* [30] | 0.557522 | 0.333333 [5] | 0.333333 [5] | 0.333334† |
| K5 | 0.75 [55, 59] | 0.7696 [60] | 0.757017 | 0.625 [5] | 0.625 [5] | 0.625001† |
| K6 | 0.84 [55, 59] | 0.8584 [60] | 0.849270 | 0.7348 [5] | 0.7536 [8] | 0.735792 |
| K7 | 0.888888 | 0.933333 | 0.897843 | 0.814814 [5] | — | 0.815237 |
| K5- | 0.602673 [44] | 0.64209 [8] | 0.632498 | 0.35794 [8] | 0.41962 [8] | 0.406864 |
| K5= | 0.58656 [8] | 0.60962 [8] | 0.602768 | 0.35794 [8] | 0.38873 [8] | 0.382048 |
| K5< | 0.555555 [8] | 0.57705 [8] | 0.571371 | 0.333333 [8] | 0.34022 [8] | 0.333719 |
| C5 | 0.464101 [46] | 0.46829 [60] | 0.46503‡ | 0.25194 [8] | 0.25311 [8] | 0.252451 |
| J4 | 0.5 [13] | 0.50409 [60] | 0.502135 | 0.280701 [8] | 0.2808 [8] | 0.280704 |
| J5 | 0.642857 | 0.64475 [8] | 0.652485 | 0.442622 | 0.44275 [8] | 0.442663 |
| F4-,2 | 0.491428 | 0.493108 | 0.493024 | 0.288744 | 0.28888876 | 0.288932 |
| F4,2 | 0.618782 | 0.620512 | 0.619154 | 0.4240915 | 0.42544754 | 0.424094 |
| F | 0.75 [57] | 0.75 [23] | 0.750001† | 0.625 [8] | 0.625 [35] | 0.625001† |
Table 2: Reported bounds, with prior values and citations transcribed from the supplied local citation table where available. A dagger denotes an unrounded numerical result where the exact rounding matching the lower bound is possible. A dash denotes an unreported value. The double dagger denotes the CSDP result; our method gives 0.46507. The construction in Section 5 gives both lower bounds for , and . * A LEAN verified bound [36] is . The lower bounds typically have exact expressions coming from constructions. We opted to write numerical approximations to make it easier to see the gap between the upper and lower bounds.
| F | l | |Fℓ| | wc -1 | dat-s | #B | Max |B| | ∑ |B| | our RAM | csdp RAM |
|---|---|---|---|---|---|---|---|---|---|
| K4- | 8 | 9,895,719 | 63,438M | 1,400 GB | 202 | 5751 | 135,347 | 1,100 GB | 730,590 GB |
| K4 | 7 | 1,295,600 | 1,427M | 26 GB | 52 | 990 | 15,527 | 174 GB | 12,531 GB |
| K5 | 7 | 6,870,284 | 7,694M | 146 GB | 72 | 990 | 34,160 | 350 GB | 351,806 GB |
| K6 | 7 | 7,013,164 | 7,869M | 149 GB | 74 | 990 | 35,399 | 378 GB | 366,588 GB |
| K7 | 7 | 7,013,319 | 7,869M | 149 GB | 74 | 990 | 35,400 | 280 GB | 366,604 GB |
| K5- | 7 | 5,868,713 | 6,624M | 125 GB | 70 | 990 | 31,743 | 440 GB | 256,725 GB |
| K5= | 7 | 4,696,659 | 5,298M | 100 GB | 68 | 990 | 29,217 | 347 GB | 164,440 GB |
| K5< | 7 | 4,129,214 | 4,644M | 87 GB | 68 | 990 | 27,778 | 386 GB | 127,115 GB |
| C5 | 7 | 497,783 | 503M | 9.1 GB | 58 | 990 | 13,598 | 60 GB | 1,855 GB |
| J4 | 7 | 2,982,280 | 3,368M | 63 GB | 64 | 929 | 24,082 | 160 GB | 66,323 GB |
| J5 | 7 | 6,761,835 | 7,606M | 144 GB | 74 | 990 | 34,803 | 168 GB | 340,789 GB |
| F4-,2 | 7 | 2,652,406 | 2,955M | 55 GB | 74 | 990 | 28,028 | 326 GB | 52,468 GB |
| F4,2 | 7 | 5,285,756 | 5,964M | 112 GB | 74 | 990 | 32,960 | 145 GB | 208,266 GB |
| F | 7 | 5,801,780 | 6,512M | 123 GB | 74 | 990 | 35,400 | 131 GB | 250,904 GB |
Table 3: is the number of constraints in ; wc -1 is the number of lines in dat-s file; dat-s is the size of the file; is the number of blocks; Max is the size of the maximum block; is the sum of sizes of the blocks; RAM is the memory needed by our solver when calculating . Since the memory increases with number of iterations, it may be that smaller programs need more memory since we let them run for longer; CSDP RAM is the memory CSDP attempts to allocate to solve the dat-s file.
is a pair consisting of a graph and an injective map that is an isomorphism from to . Intuitively, is a graph together with a fixed labeled copy of . For a flag , we write v(F) to denote v(G), and, for every im(θ) ⊆ X ⊆ V(G), we write F[X] to denote the σ-flag (G[X], θ).
Two -flags and are isomorphic if there exists an isomorphism from to such that for all . In other words, is an isomorphism from to that maps the labeled copy of in to the labeled copy of in , and the induced automorphism of is the identity. Denote the family of all non-isomorphic -flags with vertices by , and let .
Given two -flags and , let be the probability that is a -flag isomorphic to , where is a uniformly random -vertex subset of such that . Clearly, , and also note that in case .
For three -flags , and such that , we define the pair density to be the probability that and , where is a uniformly random subset of of size . Note that and, analogously to the previous paragraph, it holds that .
Given a type , let be the set of all formal finite linear combinations of -flags with real coefficients. The addition on as well as the multiplication of the elements of by a real number are defined naturally.
Consider the set that is equal to the span of all linear combinations of the form
and observe that an easy double-counting argument reveals that for two -flags and with , it holds that
Let be the corresponding quotient vector space. To finish the definition of the algebra , we linearly extend the following definition of the product of any two -flags and :
Razborov proved that the extended product × on is compatible with the factorization, and thus is indeed an algebra. For brevity, in case is the null graph, we identify the -flag with the underlying graph, and we also write instead of .
Given a -flag , let be the probability that a uniformly random injective map satisfies . As in Razborov, for every type , we define the operator as the unique linear extension of the following map from to :
For brevity, we drop in the subscript of whenever the type is clear from the context.
The algebras connect to graphs using convergent sequences and homomorphisms. A sequence of graphs of increasing orders is called convergent if for every finite graph
exists. Observe that by compactness, every sequence of graphs has a convergent subsequence. The limit object of a convergent sequence can be naturally represented by a map . Razborov proved that the map extends to a unital algebra homomorphism that is positive, i.e., it satisfies for every . On the other hand, a sampling argument reveals that every such homomorphism arises from at least one convergent sequence of graphs of increasing orders.
Let be the set of all unital algebra homomorphisms from to . A key feature of the flag algebra framework is that for every and for every , it holds that
This allows us to generate many subgraph-counting inequalities that are valid for all convergent sequences of graphs simply using squares of linear combinations of -flags.
3.1 The Turán densities and in Flag Algebras
Given a question on the Turán density of a fixed hypergraph , it is straightforward to design a hierarchy of its flag-algebraic semidefinite relaxations. Indeed, given an integer , consider all inequalities of the form that can be rewritten as a linear combination of -vertex subgraph densities.
A moment of thought reveals that bounding is as easy task as bounding , since the objective can be expressed as a linear combination of densities of 4-vertex 3-graphs. Indeed, consider any convergent sequence of 3-graphs whose orders tend to infinity, and let be the corresponding limit homomorphism. The scaled limit of can be rewritten using as follows:
4 Solving large Flag Algebra relaxations
The method we describe below is known in the extremal combinatorics community. It was used in the early days of flag algebras by Hladký, Král' and Norin [34] before the community switched to semidefinite programming solvers such as CSDP [14] and SDPA [62, 63, 48, 61]. When looking for references, we have also found that the method we use is described on a GUROBI [33] support webpage [32]. A similar method is occasionally used by LLMs when producing flag algebra programs, and, in particular, it was used recently by Jeong, Park, Im, Lee, and Yang [36] on Turán's tetrahedron problem.
We use the following equality-form of a semidefinite program and its dual. All matrices are real and symmetric, and is the trace inner product. The constraints are indexed by .
(D)
Typically, is a block diagonal matrix. We attempt to solve by forgetting all blocks that are not trivial, i.e., of size . Let and be the submatrices of and , respectively, whose entries correspond only to trivial blocks in , i.e., and are diagonal matrices.
The relaxation is a linear program. Assuming that it has a finite attained optimum, let be an optimal solution. If
then is feasible and optimal for , since is its relaxation. Otherwise, for each block that is not positive-semidefinite, choose a unit eigenvector for its smallest (negative) eigenvalue, and add to the linear inequality
Here v is fixed while y remains a variable. Equivalently, extend v by zeros outside that block and impose . Resolve the new linear program and repeat. Each cut excludes the current solution while preserving every feasible solution of . The relaxation's minimum is nondecreasing, but neither strict objective improvement nor finite termination are guaranteed. The initial relaxation can also be unbounded for a general SDP; in our density applications, however, the normalization and the nonnegativity constraints yield a compact feasible region.
4.1 Application to flag algebras
In the application to flag algebras, in can be thought as subgraph densities for of some . This naturally gives linear constraints and for all . We use the density maximization formulation below, whose objective has the opposite direction from the general minimization formulation . The nontrivial matrix blocks are homogeneous in , i.e., in the notation above, their corresponding blocks in are all zero. Equality constraints such as the normalization are retained explicitly.
Each non-trivial block corresponds to a type and a vector of labeled flags . If does not hold, then we have a negative eigenvalue in the block. Choose an eigenvector corresponding to the smallest eigenvalue. Consider the flag algebra inequality
which holds for every , and corresponds to the following additional linear constraint to :
We now illustrate the method by establishing the flag algebra form of Mantel's theorem.
Theorem 4.1 (Mantel [45]). Every triangle-free graph on vertices has at most edges. Consequently, the density of triangle-free graphs is at most .
We calculate with 3-vertex subgraph densities, thus the graphs we consider are . We work in the triangle-free flag algebra, so any flag containing a triangle is omitted. Let be any limit homomorphism of a (convergent) sequence of triangle-free graphs. Clearly,
Consider the flag vector , and a positive semidefinite matrix with entries . In what follows, writing for an algebra element means that for every admissible homomorphism .
Adding the nonnegative evaluation of (4) to (3) and multiplying by 3 gives
since the three 3-vertex induced subgraph densities are nonnegative and sum to one.
The best upper bound obtainable in this way can be written as a semidefinite program.
(P)
(D)
Here is unrestricted, so its dual constraint is ; the primal inequalities give . The objective is three times the edge density.
First we ignore the positive semidefinite constraint and solve
The obvious solution is . The positive semidefinite constraint claims . However,
has numerical eigenvalues 1.618 and -0.618, where the second one is negative with eigenvector , or, numerically, with .
Since v is (numerically) a negative eigenvector,
Therefore, adding
to yields another linear program. In the flag algebra language, it corresponds to the following inequality:
Plugging in the values of yields a new constraint , and in turn we obtain the following new linear program:
This time, the optimal solution of is , , with value 1.556, and
The eigenvalue -0.058 of has an eigenvector , hence we establish a new (useful) constraint .
After adding the last constraint, the objective drops to 1.501. Applying the method one more time yields a constraint (via an eigenvector ). The resulting program is below.
The solution of is 1.500002283054241 with , and eigenvalues are 1.5000000000034748 and -0.000002283057. It is quite close to the optimum value 1.5 (with the densities , and , which, indeed, corresponds to the combinatorial solution in Mantel's theorem).
4.2 Certificate of correctness
The method described in this section generates simple certificates of the established bounds by inspecting the duals of the linear programs. Here we show and example for the solution of . In the dual solution of , out of the three variables corresponding to the inequalities in , only the last one is positive. Specifically, it is 0.997536. This produces the following proof written in flag algebras as
Notice we obtained an upper bound 1.50001, which is not equal 1.5, to the optimal value of .
In general, the certificate from our solution procedure can be written as a linear combination of sum of squares, where the coefficients in the squares come from eigenvectors corresponding to negative eigenvalues and the coefficients in the linear combination come from the dual of the linear programs. In particular, the certificate itself does not need the semidefinite program , which makes the certificate quite compact.
4.3 Implementation
We have two independent implementations of the above method in C and C++ (each author has implemented one of them). We also have a mock implementation in Python, however, as we apply the method to large semidefinite programs, it was useful to implement the actual solver in C/C++ in order to reduce the memory footprint. Solutions to all the linear programs were obtained using MOSEK or GUROBI. Our implementation supports both solvers.
The method seems to perform very well on instances where only a few coefficients in the objective function are large. This seems to often be the case for Turán type problems.
Unlike CSDP, the memory needed during the calculation and the time per iteration increase as more constraints are generated and added to the linear program. Therefore, it would be useful to keep only constraints that are needed. In our experiments, not all linear constraints are typically needed when solving the linear program. However, experiments showed that a constraint that is not needed in one iteration may be useful in a later iteration. Our implementation adds constraints during a run and saves a checkpoint containing the constraints retained from the last iteration. When a run has stopped because of a time limit or insufficient memory, we have restarted from the smaller checkpoint. The implementation in C++ also produces certificates described in Section 4.2.
Our implementation of the solver is available at https://github.com/BLL4/lpsdp, and the certificates are available at https://lidicky.name/pub/lpsdp/ or https://honza.ucw.cz/proj/lpsdp/.
4.4 Software for verification
In order to verify the claimed flag algebra upper bounds, it is enough to evaluate respective feasible dual solutions, which in this case are stored as certificates described in Section 4.2. To do so, we have implemented a C program that generates all the flag algebra coefficients in parallel using OpenMP [22], and then it uses MPFI [53] and MPFR [28] libraries for floating-point interval arithmetic in order to compute the corresponding upper bounds on and .
5 Constructions
This section presents three respective constructions of -free 3-graphs for . Their visualizations are in Figure 1. These give explicit lower bounds for and .
Figure 1: 3-graphs , and .
All three constructions were discovered by ChatGPT-Astra.
5.1 A construction for and
Let be a 3-graph on vertices, which are partitioned into five parts of equal sizes. Include every triple meeting three distinct parts, no triple meeting exactly two parts, and add the -free 3-graph of density 2/7 described in the next paragraph inside each part; See the left image in Figure 2 for an illustration.
Recall that and are conjectured to be 2/7 and 4/43, respectively. In fact, it is conjectured that both variants have the same unique maximizer, namely the sequence of iterated blow-ups of the so-called -design
For more details, see [4, 8]. Consequently, the limit of the triple density of is equal to
and analogously the limit of the normalized is
It remains to prove that is -free. Suppose, for the sake of contradiction, that there are six vertices in forming a copy of . If 5 and 6 were from the same part of , then the four triples force all of 1, 2, 3 and 4 into one part (in fact, the same one), contradicting the -freeness of the parts. Thus 5 and 6 must be in distinct parts, say and . This time, each triple forces to avoid . By the pigeonhole principle, at least two of the four vertices must be in the same part. However, the presence of the triples 123, 124 and 134 again yields that all the vertices 1, 2, 3 and 4 must be in the same part, which contradicts the -freeness of the parts one more time.


Figure 2: 3-graphs and .
5.2 A construction for and
This time, we construct -vertex 3-graphs with their vertex-sets partitioned into three parts , and . contains all the triples that has exactly one vertex in , all the triples with two vertices in and one in , and finally induces the 3-graph that is asymptotically extremal for , which is known to have density 5/9. An illustration is depicted on the right in Figure 2.
It is routine to check that are -free. Moreover, optimizing the sizes of the parts in the above construction yields that . Note that the respective relative sizes of the , and are equal to .
On the other hand, setting the relative sizes of , and to be (0.543709, 0.246074, 0.210217), which corresponds to a numerical solution of a degree-6 polynomial related to the -optimization of , yields that .
We note that Claude claimed it is possible to further improve the construction for Turán density by splitting A into more classes. However, we opted to present an inferior but nicer construction, as we do not expect the aforementioned improvement to yield the best possible construction.
5.3 A construction for and
Recall that is a projective plane with 13 points, 13 lines, every line contains 4 points, every point lies on 4 lines, and every pair of points lies on a unique line. Let P be the 13-vertex 3-graph defined on the points of the , where the triples of P are exactly the triples of points of that are not collinear. Note that P has
triples.
We claim is -free. Indeed, the link of every vertex of is isomorphic to , which is -free. However, the link graph of the first vertex in is . A moment of thought reveals that the link graph of any vertex of the iterated blow-up of is a disjoint union of complete 4-partite graphs. In particular, its vertices also have -free links, which in turn yields that and .
6 New results using CSDP
While tackling different extremal problems using the method described in Section 4, we have noticed that, compared to a decade ago, CSDP can now handle higher levels of the flag algebra hierarchy for several important open problems. The one is the Turán density of a 3-graph . The reported CSDP allocation is 1,855 GB, allowing this instance to run on a machine with approximately 2 TB of RAM, subject to additional memory overhead. We obtained using CSDP that . Note that our method gave a slightly worse upper bound .
In the rest of this section, we discuss our new results for undirected graphs. Let us recall that the inducibility of a fixed graph H is defined as
This notion was introduced by Pippenger and Golumbic [51], who also observed that the limit always exist. The inducibility of every graph on 4 vertices is known [25] with the sole exception of , the path on 4 vertices. Even-Zohar and Linial [25] gave a construction showing . The best known upper bound on was by Vaughan [60] who used flag algebras on 8 vertices. Recall that in the setting of graphs, it holds that and . However, since is self-complementary, we can exploit the symmetry and the space to 137,352 in a well-known fashion (see, e.g., Kiem, Pokutta and Spiegel [37]). Calculating with 9-vertex subgraph densities yields the following improved bound.
Theorem 6.1. .
The solutions for and are available together with the other calculations.
7 Graph drawing and other applications
Given a graph G, recall that the crossing number of G is the minimum number of pairwise crossings of edges in a drawing of G in the plane. Zarankiewicz conjectured that the crossing number of the complete bipartite graph with the parts of respective sizes m and n is equal to
A closely related conjecture is the one of Hill that states that the crossing number of the complete graph is
for all . Both conjectures were shown to be true by OpenAI [49, 50]. Before these proofs, the best lower bounds were and using flag algebras [7, 11]. By utilizing the solver and the method from this paper, Balogh, Layman, Lidicky, Pfender, Salazar, Spiro and Volec [6] showed and .
Balogh, Clemen and Lidicky [4] conjectured that , where is the complete 4-graph with 5 vertices. In a follow-up paper with Pfender and Sankar [42] we tackle Turán densities of various 4-graphs, and, in particular, prove this conjecture. We were notified by Corrêa [47] that he also resolved the conjecture.
Erdős [24] was interested in the Turán density of in hypercubes denoted by . He offered 100 for the question if . The upper bound was obtained by Chung [20]. It was improved by Thomason and Wagner [58] by a computer assisted proof to 0.62256. Balogh, Hu, Lidicky and Liu [10] used flag algebras to obtain . Solving a flag algebra relaxation via the method from this paper Layman and Lidicky [40] claimed the upper bound can be pushed further below 0.59143.
8 Conclusion
We demonstrated a systematic approach to solve flag algebras problems using semidefinite relaxations that works for larger instances than the previous methods. We note that the bounds presented in this paper could be improved by giving the solver more time as well as by including so-called regularity constraints, which correspond to a flag algebra translation of Zykov's symmetrization argument [64].
We expect that solving general relaxations with the 7-vertex subgraph densities is as far as flag algebras can be pushed on 3-graphs with the current methods, given the growth of the number of non-isomorphic configurations (recall Table 1). Indeed, makes approaching 8-vertex densities in a nearby future simply by waiting for stronger computers very unlikely. In the setting of undirected graphs, however, it looks promising that calculations on 10-vertex densities might be within reach.
9 Use of AI
The idea of tackling hypergraph Turán problems with this method, our implementation of the solver, the bound verificators, as well as the particular applications were all done solely by the authors. ChatGPT-6 was used to find the constructions presented in Sections 5.1-5.3. The entries with a dagger † in Table 2 had exact rounding obtained using ChatGPT-6 and the result was verified by a program written by the authors of this paper. It was also used to correct English and look for mathematical errors in the manuscript. The authors have checked the correctness of all the content in this paper.
10 Acknowledgment
This material is based upon work supported by the National Science Foundation under Grant No. DMS-1928930, while the authors were in residence at the Simons Laufer Mathematical Sciences Institute in Berkeley, California, during the spring of 2025. The calculations were performed mainly on the Alderaan cluster. The Alderaan cluster was funded by the National Science Foundation Campus Computing program grant OAC-2019089 and a contribution from the Simons Foundation. It is operated by the Center for Computational Mathematics, Department of Mathematical and Statistical Sciences, College of Liberal Arts and Sciences at University of Colorado, Denver. The work of both authors was also partially supported by the MEYS of the Czech Republic under the INTER-EXCELLENCE II program (project No. LUAUS26294).
We thank Corrêa for pointing out a mistake in calculation of lower bound in the survey paper [4].
References
[1] Amir Ali Ahmadi, Sanjeeb Dash, and Georgina Hall. Optimization over structured subsets of positive semidefinite matrices via column generation. Discrete Optim., 24:129–151, May 2017. doi:10.1016/j.disopt.2016.04.004.
[2] Noga Alon, Humberto Naves, and Benny Sudakov. On the maximum quartet distance between phylogenetic trees. SIAM J. Discrete Math., 30(2):718–735, January 2016. doi:10.1137/15m1041754.
[3] MOSEK ApS. The MOSEK optimization toolbox for MATLAB manual. Version 10.1., 2024. URL: http://docs.mosek.com/latest/toolbox/index.html.
[4] József Balogh, Felix Christian Clemen, and Bernard Lidický. Hypergraph Turán problems in -norm. In Surveys in combinatorics 2022, volume 481 of London Math. Soc. Lecture Note Ser., pages 21–63. Cambridge Univ. Press, Cambridge, 2022.
[5] József Balogh, Felix Christian Clemen, and Bernard Lidický. Solving Turán’s tetrahedron problem for the -norm. J. London Math. Soc., pages 60–84, 2022.
[6] József Balogh, Nicholas Layman, Bernard Lidický, Florian Pfender, Gelasio Salazar, Sam Spiro, and Jan Volec. Crossing numbers of complete bipartite graphs, 2026. arXiv:2610.25204.
[7] József Balogh, Bernard Lidický, and Gelasio Salazar. Closing in on Hill's conjecture. SIAM J. Discrete Math., 33(3):1261–1276, 2019. doi:10.1137/17M1158859.
[8] József Balogh, Felix Christian Clemen, and Bernard Lidický. Hypergraph Turán problems in -norm, 2025. arXiv:2108.10406.
[9] József Balogh, Dingding Dong, Bernard Lidický, Nitya Mani, and Yufei Zhao. Nearly all k-SAT functions are unate. In Proceedings of the 55th Annual ACM Symposium on Theory of Computing, STOC '23, page 958–962. ACM, 2023. doi:10.1145/3564246.3585123.
[10] József Balogh, Ping Hu, Bernard Lidický, and Hong Liu. Upper bounds on the size of 4- and 6-cycle-free subgraphs of the hypercube. European Journal of Combinatorics, 35:75–85, 2014. doi:10.1016/j.ejc.2013.06.003.
[11] József Balogh, Bernard Lidický, Sergey Norin, Florian Pfender, Gelasio Salazar, and Sam Spiro. Crossing numbers of complete bipartite graphs. Procedia Computer Science, 223:78–87, 2023. doi:10.1016/j.procs.2023.08.216.
[12] Levente Bodnár and Oleg Pikhurko. Some exact values of the inducibility and statistics constants for hypercubes, 2025. arXiv:2503.03408.
[13] Béla Bollobás, Imre Leader, and Claudia Malvenuto. Daisies and other Turán problems. Combin. Probab. Comput., 20(5):743–747, 2011. doi:10.1017/S0963548311000319.
[14] Brian Borchers. CSDP, a C library for semidefinite programming. Optim. Methods Softw., 11(1–4):613–623, January 1999. doi:10.1080/10556789908805765.
[15] Łukasz Bożyk, Andrzej Grzesik, and Bartłomiej Kielak. On the inducibility of oriented graphs on four vertices. Discrete Math., 345(7):Paper No. 112874, 20, 2022. doi:10.1016/j.disc.2022.112874.
[16] Daniel Brosch and Diane Puges. Getting to the root of the problem: Sums of squares for infinite trees, 2024. arXiv:2404.12838.
[17] Matija Bucić, Jacob W. Cooper, Daniel Král', Samuel Mohr, and David Munhá Correia. Uniform Turán density of cycles. Trans. Amer. Math. Soc., 376(7):4765–4809, 2023. doi:10.1090/tran/8873.
[18] Timothy F. N. Chan, Daniel Král', Jonathan A. Noel, Yanitsa Pehova, Maryam Sharifzadeh, and Jan Volec. Characterization of quasirandom permutations by a pattern sum. Random Structures Algorithms, 57(4):920–939, August 2020. doi:10.1002/rsa.20956.
[19] Ilkyoo Choi, Bernard Lidicky, and Florian Pfender. Inducibility of directed paths. Discrete Math., 343(10):112015, 11, 2020. doi:10.1016/j.disc.2020.112015.
[20] Fan R. K. Chung. Subgraphs of a hypercube containing no small even cycles. J. Graph Theory, 16(3):273–286, 1992. doi:10.1002/jgt.3190160311.
[21] Gabriel Crudele, Peter Dukes, and Jonathan A. Noel. Six permutation patterns force quasirandomness. Discrete Anal., pages Paper No. 8, 26, 2024.
[22] L. Dagum and R. Menon. Openmp: an industry standard api for shared-memory programming. IEEE Comput. Sci. Eng., 5(1):46–55, 1998. doi:10.1109/99.660313.
[23] Dominique de Caen and Zoltán Füredi. The maximum size of 3-uniform hypergraphs not containing a Fano plane. J. Combin. Theory Ser. B, 78(2):274–276, 2000. doi:10.1006/jctb.1999.1938.
[24] Paul Erdős. On some problems in graph theory, combinatorial analysis and combinatorial number theory. In Graph theory and combinatorics (Cambridge, 1983), pages 1–17. Academic Press, London, 1984.
[25] Chaim Even-Zohar and Nati Linial. A note on the inducibility of 4-vertex graphs. Graphs Combin., 31(5):1367–1380, September 2014. doi:10.1007/s00373-014-1475-4.
[26] Victor Falgas-Ravry, Oleg Pikhurko, Emil Vaughan, and Jan Volec. The codegree threshold of . J. Lond. Math. Soc. (2), 107(5):1660–1691, 2023. doi:10.1112/jlms.12722.
[27] Victor Falgas-Ravry and Emil R. Vaughan. Applications of the semi-definite method to the turán density problem for 3-graphs. Combinatorics, Probability and Computing, 22(1):21–54, 2012. doi:10.1017/s0963548312000508.
[28] Laurent Fousse, Guillaume Hanrot, Vincent Lefèvre, Patrick Pélissier, and Paul Zimmermann. MPFR: A multiple-precision binary floating-point library with correct rounding. ACM Trans. Math. Softw., 33(2), June 2007. doi:10.1145/1236463.1236468.
[29] P. Frankl and Z. Füredi. An exact result for 3-graphs. Discrete Math., 50(2-3):323–328, 1984. doi:10.1016/0012-365X(84)90058-X.
[30] Katsuki Fujisawa, Aldo Kiem, Sebastian Pokutta, and Christoph Spiegel. Private communication, 2025.
[31] Andrzej Grzesik, Joonkyung Lee, Bernard Lidický, and Jan Volec. On tripartite common graphs. Combin. Probab. Comput., 31(5):907–923, 2022. doi:10.1017/s0963548322000074.
[32] Gurobi support. URL: https://support.gurobi.com/hc/en-us/community/posts/23875679008913-Semidefinite-programming.
[33] Gurobi Optimization, LLC. Gurobi Optimizer Reference Manual, 2024. URL: https://www.gurobi.com.
[34] Jan Hladký, Daniel Král', and Sergey Norin. Counting flags in triangle-free digraphs. Combinatorica, 37(1):49–76, 2017. doi:10.1007/s00493-015-2662-5.
[35] Jianfeng Hou, Xizhi Liu, and Yixiao Zhang. Exact Turán number of the F ano plane in the -norm, 2025. arXiv:2507.12354.
[36] Gyeongwon Jeong, Seonghun Park, Seonghyuk Im, Joonkyung Lee, and Hongseok Yang. A new upper bound for the Turán density of the tetrahedron, 2026. arXiv:2609.27495.
[37] Aldo Kiem, Sebastian Pokutta, and Christoph Spiegel. The four-color Ramsey multiplicity of triangles, 2023. arXiv:2312.08049.
[38] Aldo Kiem, Sebastian Pokutta, and Christoph Spiegel. The four-color Ramsey multiplicity of triangles. In Proceedings of the Discrete Mathematics Days, 2024. arXiv:2312.08049.
[39] Kartik Krishnan and John E. Mitchell. A unifying framework for several cutting plane methods for semidefinite programming. Optim. Methods Softw., 21(1):57–74, February 2006. doi:10.1080/10556780500065283.
[40] Nicholas Layman and Bernard Lidický. Private communication, 2026.
[41] Bernard Lidický and Florian Pfender. Semidefinite programming and Ramsey numbers. SIAM J. Discrete Math., 35(4):2328–2344, 2021. doi:10.1137/18M1169473.
[42] Bernard Lidický, Florian Pfender, Maya Sankar, and Jan Volec. On Turán densities of 4-uniform hypergraphs, 2026+.
[43] Bernard Lidický, Gwen McKinley, Florian Pfender, and Steven Van Overberghe. Small Ramsey numbers for books, wheels, and generalizations, 2024. arXiv:2407.07285.
[44] Hong Liu, Bjarne Schülke, Shuaichao Wang, Haotian Yang, and Yixiao Zhang. Separating hypergraph Turán densities, 2024. arXiv:2410.08921.
[45] W. Mantel. Vraagstuk XXVIII. Wiskundige Opgaven, 10:60–61, 1907.
[46] Dhruv Mubayi and Vojtěch Rödl. On the Turán number of triple systems. J. Combin. Theory Ser. A, 100(1):136–152, 2002. doi:10.1006/jcta.2002.3284.
[47] Bruno Mérola Corrêa. Turán densities of complete 4-graphs: certificates, checkers and preprint, 2026. doi:10.5281/ZENODO.23245169.
[48] Maho Nakata. A numerical evaluation of highly accurate multiple-precision arithmetic version of semidefinite programming solver: SDPA-GMP, -QD and -DD. In 2010 IEEE International Symposium on Computer-Aided Control System Design, pages 29–34, 2010. doi:10.1109/CACSD.2010.5612693.
[49] OpenAI. The crossing number of complete bipartite graphs. OpenAI Math Release preprint OAI:The-crossing-number-of-complete-bipartite-graphs-September-23-2026, 2026.
[50] OpenAI. The crossing number of complete graphs. OpenAI Math Release preprint OAI:The-crossing-number-of-complete-graphs-September-23-2026, 2026.
[51] Nicholas Pippenger and Martin Charles Golumbic. The inducibility of graphs. J. Combinatorial Theory Ser. B, 19(3):189–203, 1975. doi:10.1016/0095-8956(75)90084-2.
[52] Alexander A. Razborov. Flag algebras. J. Symbolic Logic, 72(4):1239–1282, 2007. doi:10.2178/js1/1203350785.
[53] Nathalie Revol and Fabrice Rouillier. Motivations for an arbitrary precision interval arithmetic and the mpfi library. Reliab. Comput., 11:275–290, 2005. doi:10.1007/s11155-005-6891-y.
[54] Juan José Rué and Christoph Spiegel. The Rado multiplicity problem in vector spaces over finite fields. In Proceedings of the European Conference on Combinatorics, Graph Theory and Applications, 2023. arXiv:2304.00400, doi:10.5817/CZ.MUNI.EUROCOMB23-108.
[55] A. Sidorenko. Systems of sets that have the T-property. Moscow Univ. Math. Bull., 36:22–26, 1981.
[56] Jakub Sliačan and Walter Stromquist. Improving bounds on packing densities of 4-point permutations. Discrete Math. Theor. Comput. Sci., 19(2):Paper No. 3, 18, 2017. doi:10.1109/mcse.2017.21.
[57] Vera T. Sós. Remarks on the connection of graph theory, finite geometry and block designs. Colloquio Internazionale sulle Teorie Combinatorie (Roma, 1973), Tomo II, pages 223–233. Atti dei Convegni Lincei, No. 17, 1976.
[58] Andrew Thomason and Peter Wagner. Bounding the size of square-free subgraphs of the hypercube. Discrete Math., 309(6):1730–1735, 2009. doi:10.1016/j.disc.2008.02.015.
[59] Paul Turán. Research problems. Magyar Tud. Akad. Mat. Kutató Int. Közl., 6:417–423, 1961. doi:10.1007/BF02017934.
[60] Emil Vaughan. Flagmatic 2.0, 2013.
[61] Makoto Yamashita, Katsuki Fujisawa, Mituhiro Fukuda, Kazuhiro Kobayashi, Kazuhide Nakata, and Maho Nakata. Latest Developments in the SDPA Family for Solving Large-Scale SDPs, pages 687–713. Springer US, Boston, MA, 2012. doi:10.1007/978-1-4614-0769-0_24.
[62] Makoto Yamashita, Katsuki Fujisawa, and Masakazu Kojima. Implementation and evaluation of SDPA 6.0 (semidefinite programming algorithm 6.0). Optimization Methods and Software, 18(4):491–505, 2003. arXiv:https://doi.org/10.1080/1055678031000118482, doi:10.1080/1055678031000118482.
[63] Makoto Yamashita, Katsuki Fujisawa, Kazuhide Nakata, Maho Nakata, Mituhiro Fukuda, Kazuhiro Kobayashi, and Kazushige Goto. A high-performance software package for semidefinite programs: SDPA 7, 2010.
[64] Alexander A. Zykov. On some properties of linear complexes. Mat. Sb. (N.S.), 24(66):163–188, 1949.