arXiv:2610.33850math.COOct 2026

Manuscript Offprint

arXiv:2610.33850

Solving Large SDPs from Flag Algebra Problems

Bernard Lidický, Jan Volec

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 fnf_n denote the number of such objects up to isomorphism. In the simplest formulation, there is one coefficient constraint for each of these fnf_n 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.

†^{\dagger}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.

rOEISf0f_0f1f_1f2f_2f3f_3f4f_4f5f_5f6f_6f7f_7f8f_8f9f_9f10f_{10}
2A00008811241134156104412,346274,66812,005,168
3A000665111253421367,013,3201.79×10121.79 \times 10^{12}5.3×10195.3 \times 10^{19}3.66×10293.66 \times 10^{29}

Table 1: Number of non-isomorphic rr-graphs up to 10 vertices, where r∈{2,3}r \in \{2,3\}.

worse ones). For unrestricted rr-uniform hypergraphs with fixed r≥2r \geq 2, colloquially abbreviated as rr-graphs, the elementary bounds

2(nr)n!≤fn≤2(nr)\frac {2 \binom {n} {r}}{n !} \leq f _ {n} \leq 2 \binom {n} {r}

show that fn=2Θ(nr)f_{n} = 2^{\Theta (n^{r})}; in particular, this growth is superexponential in nn. 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 fn≤10,000f_{n} \leq 10,000, the resulting semidefinite program is usually easy to solve on a personal computer. If fn≤200,000f_{n} \leq 200,000, it can typically be solved on a cluster in a reasonable time. Solving instances with fn>500,000f_{n} > 500,000 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 nn can improve on the optimum of the relaxation at order n−1n - 1. 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.

References (52)