Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

The matching problem has no small symmetric SDP

Sebastian Pokutta
v1 2026-12-02 · last 2026-12-03
Additional material: arXiv:1504.00703
Note: Formalizes Lemma 3.1, Proposition 3.3, Lemmas 3.7 and 3.8, Theorem 3.9 and the main theorem (Theorem 3.10) of Braun et al. (2017), the last with the degree bound of Grigoriev (Theorem 3.11) as a hypothesis, and the part on the traveling salesperson problem: Theorem 4.1 (with the level 4k - 5 in place of 2k - 1), Proposition 4.2, Lemma 4.3 and Theorem 4.4 with Corollary 4.8 and Lemma 4.9, on top of the symmetric SDP formulations and the sum of squares lemma of the shared entry on extended formulations and of the entry on subgroups of small index. Numbers refer to the arXiv version.

Abstract. A semidefinite program is symmetric if the symmetries of the problem permute the rows and columns of its matrices. Braun, Brown-Cohen, Huq, Pokutta, Raghavendra, Roy, Weitz and Zink showed that no symmetric SDP of subexponential size approximates the perfect matching problem within a factor 1−ε/(n−1)1 - \varepsilon/(n-1). This entry formalizes the proof up to a degree lower bound of Grigoriev, taken as a hypothesis. The objective functions count the edges of a perfect matching of KnK_n inside a set UU of odd size, with the completeness guarantee (∣U∣−1+ε)/2(|U| - 1 + \varepsilon)/2. For n≥10n \ge 10 and 4k≤n4k \le n, every function of an AnA_n-invariant set of fewer than (nk)\binom{n}{k} functions on the perfect matchings is a junta: it depends only on the edges inside a set of fewer than kk vertices. So an AnA_n-symmetric SDP formulation of size dd with (d+12)<(nk)\binom{d+1}{2} \lt \binom{n}{k} writes the slack of every odd set as a sum of squares of combinations of juntas plus a nonnegative constant. The paper states the junta property for all k<n/2k \lt n/2; it fails for kk close to n/2n/2; the entry gives a counterexample. Second, a polynomial of degree dd in the edge variables that vanishes on all perfect matchings of KnK_n, nn even, is a combination of the matching constraints with terms of degree at most 2d−12d - 1. Together they give, without hypothesis: for even nn, ε<1\varepsilon \lt 1 and odd mm with 2m≤n2m \le n, such a formulation yields a sum of squares refutation of degree 4k−54k - 5 of the matching constraints of KmK_m. If every such refutation has degree at least ⌊m/t⌋\lfloor m/t \rfloor, as the theorem of Grigoriev asserts for a constant tt, the size satisfies 2⌊n/(8t)⌋≤(d+1)22^{\lfloor n/(8t) \rfloor} \le (d+1)^2. For the metric traveling salesperson problem the same method gives unconditionally: a symmetric SDP of size rr with (r+12)<(2nk)\binom{r+1}{2} \lt \binom{2n}{k} within a factor ρ\rho on 2n2n vertices implies that the sum of squares relaxation of level 4k−54k - 5 is within ρ\rho on nn vertices.

A semidefinite program is symmetric if the symmetries of the problem act on it by permuting the rows and columns of its matrices. For the matching problem, the symmetries are the permutations of the vertices. The paper shows that no symmetric SDP of subexponential size approximates the perfect matching problem within a factor 1−ε/(n−1)1 - \varepsilon/(n-1). This is the semidefinite counterpart of the theorem of Yannakakis (1991) for symmetric linear programs, and it shows that the size of the known symmetric SDP for matching, which comes from the sum of squares hierarchy, cannot be improved much by other symmetric SDPs.

The proof has three steps. A symmetric SDP formulation of size dd yields a set of at most (d+12)\binom{d+1}{2} functions on the feasible solutions, invariant under the group, such that the slack of every objective function is a sum of squares of functions in its span. This is Lemma 2.3 of the paper, and it holds for every problem; it is proved in the core. For the matching problem and the alternating group, the functions of a small invariant set are juntas: each depends only on the edges of the matching inside a small set of vertices. So the slack has a sum of squares certificate of low degree. The third step shows that the slack of an odd set has no such certificate; it rests on a theorem on low-degree derivations in the ideal of the perfect matchings (Theorem 3.9) and on a degree lower bound of Grigoriev Grigoriev, 2001. This entry covers all steps of the paper. The bound of Grigoriev enters as a hypothesis.

The second result of the paper uses the first two steps and the analogue of Theorem 3.9 for tours, without a degree lower bound: a small symmetric SDP for the metric traveling salesperson problem on 2n2n vertices shows that a sum of squares relaxation of low level is as good on nn vertices. It is proved here without hypothesis, with the level 4k−54k - 5 where the paper states 2k−12k - 1; see the errata.

The perfect matching problem

Let VV be a set of nn vertices, nn even. The feasible solutions are the perfect matchings of the complete graph on VV; a perfect matching is given by the involution μ\mu without fixed points that sends every vertex to its partner, as in the core. In the paper the objective functions are fF(M)=∣M∩F∣f_F(M) = |M \cap F| for all sets FF of edges, with the guarantees S~(f)=max⁡f\tilde{S}(f) = \max f and C~(f)=max⁡f+ε/2\tilde{C}(f) = \max f + \varepsilon/2 for a fixed 0≤ε<10 \le \varepsilon \lt 1. The proof needs only the sets F=E[U]F = E[U] of the edges inside a set UU of odd size, for which fU(M)=∣E[U]∩M∣f_U(M) = |E[U] \cap M| has the maximum (∣U∣−1)/2(|U| - 1)/2, and these are the objective functions here.

Then fσU(σM)=fU(M)f_{\sigma U}(\sigma M) = f_U(M), and the guarantees depend only on ∣U∣|U|. The alternating group AnA_n acts on both sets as a subgroup of the symmetric group.

So there are a spectrahedron {x∈L:P(x)⪰0}\{x \in L : P(x) \succeq 0\} with matrices indexed by a set KK on which AnA_n acts, a point pMp_M of it for every perfect matching, and an affine function wUw_U for every odd set with wU(pM)=∣E[U]∩M∣w_U(p_M) = |E[U] \cap M| and wU≤(∣U∣−1+ε)/2w_U \le (|U| - 1 + \varepsilon)/2 on the spectrahedron, and AnA_n acts on the space by affine maps that permute rows and columns of PP and are compatible with the points and the functions. The size of the formulation is d=∣K∣d = |K|.

Matchings with the same edges inside a set

Suppose that the matchings differ. Then they differ at a vertex vv whose partners aa in M1M_1 and bb in M2M_2 both lie outside WW: if they differ at a vertex of WW, its two partners lie outside WW, since the edges inside WW are the same; and if they differ at a vertex uu outside WW with a partner ww in WW, they differ at ww. The transposition (a b)(a\ b) fixes WW pointwise, and it maps M1M_1 to a matching that contains the edge {v,b}\{v, b\} of M2M_2 and still contains every edge that M1M_1 and M2M_2 had in common. So after finitely many such transpositions the matchings are equal. If the product σ\sigma of the transpositions is odd, compose it with the transposition of the two ends of an edge of M2M_2 that does not meet WW. Such an edge exists because ∣W∣<n/2|W| \lt n/2, and the transposition maps M2M_2 to itself.

Symmetric functions on matchings are juntas

The group AnA_n acts on the functions on the perfect matchings by (g⋅h)(M)=h(g−1M)(g \cdot h)(M) = h(g^{-1} M).

The orbit of h∈Hh \in \mathcal{H} lies in H\mathcal{H}, so the stabilizer of hh has index less than (nk)\binom{n}{k} in AnA_n. By the theorem on subgroups of small index it contains all even permutations that fix a set WW of fewer than kk vertices pointwise. By the lemma, two perfect matchings with the same edges inside WW are mapped to each other by such a permutation, and hh takes the same value on them.

Sums of squares of juntas

This is the first part of the proof of the main theorem (Theorem 3.10 of the paper). The sum of squares lemma of the core gives an invariant set of at most (d+12)\binom{d+1}{2} functions, the entries of the square roots of the matrices of the perfect matchings, and by the proposition they are juntas. A junta of size less than kk is a polynomial of degree less than k/2k/2 in the indicator variables of the edges, because a matching has fewer than k/2k/2 edges inside a set of fewer than kk vertices. So the theorem gives a sum of squares certificate of degree less than kk for the inequality ∣E[U]∩M∣≤(∣U∣−1+ε)/2|E[U] \cap M| \le (|U| - 1 + \varepsilon)/2 over the perfect matchings. The paper concludes by showing that for a set UU of about n/2n/2 vertices such a certificate needs degree Ω(n)\Omega(n).

The matching polynomials

A sum of squares certificate over the perfect matchings is an identity between functions. To compare it with a lower bound on the degree of proofs, the paper turns it into an identity between polynomials, with an explicit multiple of the constraints that define the perfect matchings. The polynomials have one variable xuv=xvux_{uv} = x_{vu} for every edge {u,v}\{u, v\} of the complete graph.

All cliques live in the same polynomial ring. This is convenient for the induction below, which removes vertices. The perfect matchings of a clique, as maps on all vertices, are those of the entry Extended formulations: the core.

Together these are the polynomials Pn\mathcal{P}_n of the paper, for the clique SS: no vertex is matched twice, every vertex is matched, and the variables take the values 0 and 1.

This is the definition of the paper. The polynomial ring has no zero divisors, and for a clique with at least two vertices a constraint that is not zero has exactly the degree of its type.

The constraints of degree two of SS are constraints of the larger clique. For the degree constraint of a vertex v∈Sv \in S,

(∑u∈Sxuv−1)xab=(∑u∈S∪{a,b}xuv−1)xab−xavxab−xbvxab,\Bigl( \sum_{u \in S} x_{uv} - 1 \Bigr) x_{ab} = \Bigl( \sum_{u \in S \cup \{a, b\}} x_{uv} - 1 \Bigr) x_{ab} - x_{av} x_{ab} - x_{bv} x_{ab} ,

and the last two terms are constraints of degree two.

It suffices to treat a product mm of variables, by induction on its degree. If a variable occurs twice in mm, one copy can be removed with xe2−xex_e^2 - x_e. If two different edges of mm have a common end, mm is a multiple of a constraint xuvxuwx_{uv} x_{uw}. Otherwise write m=m′xuvm = m' x_{uv}, and let RR be the set of the vertices of SS other than uu that are not on an edge of m′m'. The transposition of vv with w∈Rw \in R maps mm to m′xuwm' x_{uw}, and

∑w∈Rm′xuw−m′=m′(∑w∈Sxuw−1)−∑w∈S∖Rm′xuw∈Ddeg⁡m(S),\sum_{w \in R} m' x_{uw} - m' = m' \Bigl( \sum_{w \in S} x_{uw} - 1 \Bigr) - \sum_{w \in S \setminus R} m' x_{uw} \in D_{\deg m}(S) ,

since for ww on an edge of m′m' the product m′xuwm' x_{uw} is a multiple of a constraint of degree two. The symmetrization does not change when its argument is moved by a transposition, so ∣R∣|R| times the symmetrization of mm is congruent to the symmetrization of m′m'. The paper proves the lemma through three lemmas on partial matchings (Lemmas 3.4 to 3.6) and the count of the stabilizer of a partial matching; these are not needed here.

Low-degree derivations

In particular the ideal generated by the matching constraints is the ideal of all polynomials that vanish on the perfect matchings, and its elements of degree dd are generated in degree 2d−12d - 1. The proof is by induction on d=deg⁡Fd = \deg F, for all cliques at once. For d=0d = 0 the polynomial is a constant, and it is zero because a perfect matching exists.

The transposition claim. Let τ\tau be the transposition of two vertices aa and uu of SS. Then F−τ⋅F∈D2d−1(S)F - \tau \cdot F \in D_{2d-1}(S). In this difference the monomials without an edge at aa or at uu cancel. For d=1d = 1 it is therefore a combination ∑wδw(xaw−xuw)\sum_w \delta_w (x_{aw} - x_{uw}) over the other vertices ww of SS. Evaluating at a perfect matching that contains {a,w1}\{a, w_1\} and {u,w2}\{u, w_2\} gives δw1=δw2\delta_{w_1} = \delta_{w_2}, so the difference is a multiple of the difference of the degree constraints at aa and at uu. For d≥2d \ge 2, a monomial m′xabm' x_{ab} with b≠ub \ne u is congruent in degree d+1d + 1 to ∑wm′xabxuw\sum_w m' x_{ab} x_{uw} over the vertices w∉{a,b,u}w \notin \{a, b, u\}, by the degree constraint at uu; and m′xabxuwm' x_{ab} x_{uw} is congruent to m′′xabxuwm'' x_{ab} x_{uw}, where m′′m'' is m′m' contracted along the two edges: the variables of {a,b}\{a, b\} and {u,w}\{u, w\} are set to 1 and the variables of the other edges at these four vertices to 0. Monomials with an edge at uu are treated in the same way, and those with the edge {a,u}\{a, u\} are contracted along it. So

F−τ⋅F  ≡  ∑b≠wRbw xabxuw+R0 xau(modDd+1(S))F - \tau \cdot F \;\equiv\; \sum_{b \ne w} R_{bw}\, x_{ab} x_{uw} + R_0\, x_{au} \pmod{D_{d+1}(S)}

with polynomials RbwR_{bw} of degree at most d−1d - 1 in the variables of S∖{a,b,u,w}S \setminus \{a, b, u, w\} and R0R_0 of degree at most d−1d - 1 in the variables of S∖{a,u}S \setminus \{a, u\}. A perfect matching NN of the clique on S∖{a,b,u,w}S \setminus \{a, b, u, w\} extends to a perfect matching of SS with the edges {a,b}\{a, b\} and {u,w}\{u, w\}, at which the left-hand side vanishes and the right-hand side is Rbw(N)R_{bw}(N). So RbwR_{bw} vanishes on the perfect matchings of the smaller clique, and by induction Rbw∈D2d−3R_{bw} \in D_{2d-3} there. By the lemma on a new edge, applied twice, Rbwxabxuw∈D2d−1(S)R_{bw} x_{ab} x_{uw} \in D_{2d-1}(S), and in the same way R0xau∈D2d−2(S)R_0 x_{au} \in D_{2d-2}(S).

Conclusion. The image τ⋅F\tau \cdot F again has degree at most dd and vanishes on the perfect matchings, so the claim gives F−σ⋅F∈D2d−1(S)F - \sigma \cdot F \in D_{2d-1}(S) for every permutation σ\sigma of SS, a product of transpositions. Summing over σ\sigma and using the lemma on symmetrized polynomials, ∣S∣! F|S|!\, F is congruent to a constant, which is zero because FF vanishes at a perfect matching.

The main theorem

The certificate of the theorem on sums of squares of juntas is an identity between functions on the perfect matchings. The first step makes it an identity between polynomials.

Let the junta hh depend only on the edges inside WW, and let MM be a perfect matching with partner map μ\mu. The product over w∈Ww \in W of xwμ(w)x_{w \mu(w)}, if μ(w)∈W\mu(w) \in W, and of ∑v∉Wxwv\sum_{v \notin W} x_{wv} otherwise, has degree ∣W∣|W|, and its value at a perfect matching is 1 if it has the same edges inside WW as MM and 0 otherwise. A combination of these products with the values of hh represents hh. The paper uses the sharper bound k/2k/2, which holds because a matching has at most ∣W∣/2|W|/2 edges inside WW; the bound k−1k - 1 changes the constants below but not the form of the result.

So in the certificate for an odd set UU, the functions qjq_j are polynomials QjQ_j of degree at most k−1k - 1, and the polynomial

∣U∣−1+ε2−∑e∈E[U]xe−∑jQj2−c\frac{|U| - 1 + \varepsilon}{2} - \sum_{e \in E[U]} x_e - \sum_j Q_j^2 - c

of degree at most 2k−22k - 2 vanishes on the perfect matchings. By the theorem on low-degree derivations it lies in D4k−5D_{4k-5} of the complete graph on nn vertices.

The second step moves this identity to a graph without perfect matchings. Let mm be odd with 2m≤n2m \le n. Split the vertices into two copies SS and TT of an mm-element set and n−2mn - 2m further vertices, which are matched in pairs once and for all, and let U=SU = S. Substitute the variable of an edge inside SS or inside TT by the variable of the corresponding edge of the complete graph KmK_m, the variable of an edge of the fixed pairs by 1, and all other variables by 0. This substitution maps every matching constraint of KnK_n to a matching constraint of KmK_m or to zero, so it maps Dd(Kn)D_d(K_n) into Dd(Km)D_d(K_m). It maps the polynomial above to m−1+ε2−∑exe−∑jQ~j2−c\frac{m - 1 + \varepsilon}{2} - \sum_e x_e - \sum_j \tilde{Q}_j^2 - c, and the sum of the degree constraints of KmK_m shows ∑exe−m2∈D1(Km)\sum_e x_e - \frac{m}{2} \in D_1(K_m). What remains is a refutation.

Here c′=1−ε2+cc' = \frac{1 - \varepsilon}{2} + c. The left-hand side is positive at every real point, and the right-hand side vanishes at every perfect matching of KmK_m; there is no contradiction, because KmK_m has no perfect matching. The identity is a proof of this fact in the sum of squares proof system, a refutation of the matching constraints of KmK_m, of degree 4k−54k - 5. This statement needs no hypothesis.

Grigoriev (2001, Corollary 2) proved that every refutation of the principle MOD2m\mathrm{MOD}_2^m in the Positivstellensatz calculus has degree Ω(m)\Omega(m). For odd mm this principle says that mm points cannot be partitioned into pairs, its equations are the matching constraints of KmK_m, and an identity as above is a refutation in this calculus. So there is a degree bound for odd cliques that grows linearly in mm. This is Theorem 3.11 of the paper; it is not formalized here.

Take mm to be n/2n/2 or n/2−1n/2 - 1, whichever is odd, and k=⌊⌊m/t⌋/4⌋+1k = \lfloor \lfloor m/t \rfloor / 4 \rfloor + 1; then (nk)≥2k\binom{n}{k} \ge 2^k and (d+12)≤(d+1)2\binom{d+1}{2} \le (d+1)^2. With the theorem of Grigoriev this is the main theorem of the paper: the size is at least 2αn2^{\alpha n} for a constant α>0\alpha \gt 0.

The traveling salesperson problem

The second result of the paper is about the asymmetric metric traveling salesperson problem: among the symmetric SDPs for this problem, those of the sum of squares hierarchy are optimal up to the level. A tour of nn vertices is a bijection σ\sigma from the vertices to the positions 0,…,n−10, \dots, n - 1. The vertex uu is at the position σ(u)\sigma(u), and the tour returns from the last position to the first.

The symmetries of the problem are the permutations of the vertices.

So there is a spectrahedron with a point for every tour and an affine function for every metric instance, equal to the value at the points of the tours and at least min⁡val⁡d/ρ\min \operatorname{val}_d / \rho on the spectrahedron, and the even permutations of the vertices act compatibly on all of these. Every instance satisfies the soundness guarantee.

Symmetric functions on tours are juntas

The stabilizer of hh has index less than (Nk)\binom{N}{k}, so by the theorem on subgroups of small index it contains all even permutations that fix a set WW of fewer than kk vertices pointwise. If two tours have the same parity and the vertices of WW have the same positions in both, then g=σ2−1σ1g = \sigma_2^{-1} \sigma_1 is such a permutation, and σ1=σ2∘g\sigma_1 = \sigma_2 \circ g. This is simpler than for matchings, where the lemma on even permutations is needed.

Tours of the doubled instance

A junta may depend on the parity of the tour. The paper removes this dependence by doubling the vertices: all tours that come from tours of the original instance then have the same parity.

The first item holds because the steps between the two copies of a vertex have length zero. For the third, Φ(σ2)−1Φ(σ1)\Phi(\sigma_2)^{-1} \Phi(\sigma_1) acts as σ2−1σ1\sigma_2^{-1} \sigma_1 on each of the two copies of VV, so its sign is a square. For the second, let b0b_0 be the second component of the vertex at the first position of τ\tau, and keep from the list of the vertices of τ\tau, in the order of their positions, those with the second component b0b_0. The first components of the kept vertices list every vertex of VV once; this is a tour σ\sigma of VV. The closed walk of τ\tau passes through the kept vertices in the same order, both start at the same vertex, and by the triangle inequality omitting vertices from a walk does not make it longer.

Tours and the tour polynomials

Functions on tours are represented by polynomials in variables xuix_{ui}, one for every vertex uu and every position ii, where xuix_{ui} stands for σ(u)=i\sigma(u) = i. As for matchings, the key step is a theorem on low-degree derivations (Theorem 4.4). This section proves it, together with the statements of Section 4.1 of the paper that it rests on.

Vertices and positions are two types UU and PP. The induction removes vertices and positions, so all statements are for a finite set SS of vertices and a finite set TT of positions.

Together these are the polynomials Qn\mathcal{Q}_n of the paper: no vertex is at two positions, no position has two vertices, every vertex has a position, every position has a vertex, and the variables take the values 0 and 1.

This is the count of the paper. If SS is not empty and TT is empty, the constraint of a vertex is the constant -1, and the two counts differ.

The constraints of degree two of SS and TT are constraints of the larger sets. For the constraint of a vertex u∈Su \in S and of a position i∈Ti \in T,

(∑j∈Txuj−1)xab=(∑j∈T∪{b}xuj−1)xab−xubxab,(∑v∈Sxvi−1)xab=(∑v∈S∪{a}xvi−1)xab−xaixab,\begin{aligned} \Bigl( \sum_{j \in T} x_{uj} - 1 \Bigr) x_{ab} &= \Bigl( \sum_{j \in T \cup \{b\}} x_{uj} - 1 \Bigr) x_{ab} - x_{ub} x_{ab} , \\ \Bigl( \sum_{v \in S} x_{vi} - 1 \Bigr) x_{ab} &= \Bigl( \sum_{v \in S \cup \{a\}} x_{vi} - 1 \Bigr) x_{ab} - x_{ai} x_{ab} , \end{aligned}

and the last terms are constraints of degree two: two vertices at the position bb, and the vertex aa at two positions. The paper states the lemma for two new vertices aa, bb and two new positions with the same names and the product xabxbax_{ab} x_{ba}; the proof of the theorem needs the cells (a,b)(a, b) and (u,v)(u, v) of two vertices and two positions that are not related, see the errata.

The proof is the one of the lemma for matchings. Let mm be a product of variables. If a variable occurs twice in mm, one copy can be removed. If two different cells of mm have the same vertex or the same position, mm is a multiple of a constraint of degree two. Otherwise write m=m′xuim = m' x_{ui}, and let RR be the set of the vertices of SS that are in no cell of m′m'; it contains uu. The transposition of uu with w∈Rw \in R maps mm to m′xwim' x_{wi}, and

∑w∈Rm′xwi−m′=m′(∑w∈Sxwi−1)−∑w∈S∖Rm′xwi∈Ddeg⁡m(S,T),\sum_{w \in R} m' x_{wi} - m' = m' \Bigl( \sum_{w \in S} x_{wi} - 1 \Bigr) - \sum_{w \in S \setminus R} m' x_{wi} \in D_{\deg m}(S, T) ,

since a vertex ww of a cell (w,j)(w, j) of m′m' has j≠ij \ne i, so m′xwim' x_{wi} is a multiple of xwjxwix_{wj} x_{wi}. Hence ∣R∣|R| times the symmetrization of mm is congruent to the symmetrization of m′m'. Lemmas 4.5 to 4.7 of the paper are not needed.

Here the type of the positions is assumed to be nonempty, so that maps from the vertices to the positions exist.

The proof follows the one for matchings, by induction on d=deg⁡Fd = \deg F for all SS and TT of the same size. Let τ\tau be the transposition of two vertices aa and uu of SS. In F−τ⋅FF - \tau \cdot F the monomials without a cell of aa or of uu cancel. For d=1d = 1 the difference is ∑j∈Tδj(xaj−xuj)\sum_{j \in T} \delta_j (x_{aj} - x_{uj}); evaluating at a tour with aa at the position bb and uu at the position vv gives δb=δv\delta_b = \delta_v, so the difference is a multiple of the difference of the constraints of the vertices aa and uu. For d≥2d \ge 2, a monomial m′xabm' x_{ab} is congruent in degree d+1d + 1 to ∑v≠bm′xabxuv\sum_{v \ne b} m' x_{ab} x_{uv}, by the constraint of the vertex uu and since xabxubx_{ab} x_{ub} is a constraint; and m′m' can be contracted along the cells (a,b)(a, b) and (u,v)(u, v): the variables of these two cells are set to 1 and the variables of the other cells with the vertex aa or uu or the position bb or vv to 0. So

F−τ⋅F  ≡  ∑b≠vRbv xabxuv(modDd+1(S,T))F - \tau \cdot F \;\equiv\; \sum_{b \ne v} R_{bv}\, x_{ab} x_{uv} \pmod{D_{d+1}(S, T)}

with polynomials RbvR_{bv} of degree at most d−1d - 1 in the variables of S∖{a,u}S \setminus \{a, u\} and T∖{b,v}T \setminus \{b, v\}. A tour of S∖{a,u}S \setminus \{a, u\} through T∖{b,v}T \setminus \{b, v\} extends to a tour of SS through TT with aa at bb and uu at vv, at which the left-hand side vanishes and the right-hand side is the value of RbvR_{bv}. By induction Rbv∈D2d−3(S∖{a,u},T∖{b,v})R_{bv} \in D_{2d-3}(S \setminus \{a, u\}, T \setminus \{b, v\}), and by the lemma on a new cell, applied twice, Rbvxabxuv∈D2d−1(S,T)R_{bv} x_{ab} x_{uv} \in D_{2d-1}(S, T). So F−σ⋅F∈D2d−1(S,T)F - \sigma \cdot F \in D_{2d-1}(S, T) for all permutations σ\sigma of SS, and with the corollary on symmetrized polynomials ∣S∣! F|S|!\, F is congruent to a constant, which is zero because a tour exists.

Sum of squares relaxations are optimal among symmetric SDPs

This says that cc is feasible for the dual of the Lasserre relaxation of level DD of the paper: val⁡d−c≃(Qn,D)∑pp2\operatorname{val}_d - c \simeq_{(\mathcal{Q}_n, D)} \sum_p p^2. The relaxation approximates the problem within the factor ρ\rho if it proves the bound min⁡val⁡d/ρ\min \operatorname{val}_d / \rho for every metric instance.

The product ∏w∈Wxw σ0(w)\prod_{w \in W} x_{w\, \sigma_0(w)} is the indicator of the tours in which the vertices of WW have the same positions as in σ0\sigma_0, and gg is a combination of these indicators.

Let d′d' be the doubled instance. By the sum of squares lemma of the core there are an invariant set H′\mathcal{H}' of at most (r+12)\binom{r+1}{2} functions on the tours of V×{0,1}V \times \{0, 1\}, functions hjh_j in its span and a constant μ≥0\mu \ge 0 with

val⁡d′(τ)−min⁡val⁡d′/ρ=∑jhj(τ)2+μ\operatorname{val}_{d'}(\tau) - \min \operatorname{val}_{d'} / \rho = \sum_j h_j(\tau)^2 + \mu

for all tours τ\tau. The functions of H′\mathcal{H}' are juntas of size less than kk. For τ=Φ(σ)\tau = \Phi(\sigma) the left-hand side is val⁡d(σ)−min⁡val⁡d/ρ\operatorname{val}_d(\sigma) - \min \operatorname{val}_d / \rho, by the lemma on the doubled instance. All doubled tours have the same parity, and the position of (v,b)(v, b) in Φ(σ)\Phi(\sigma) is determined by the position of vv in σ\sigma. So for a junta h′h' with the set W′W', the function σ↦h′(Φ(σ))\sigma \mapsto h'(\Phi(\sigma)) depends only on the positions of the fewer than kk first components of the elements of W′W', and is a polynomial of degree at most k−1k - 1. Let QjQ_j be polynomials of degree at most k−1k - 1 with Qj(σ)=hj(Φ(σ))Q_j(\sigma) = h_j(\Phi(\sigma)). Then

val⁡d(x)−min⁡val⁡d/ρ−∑jQj2−μ\operatorname{val}_d(x) - \min \operatorname{val}_d / \rho - \sum_j Q_j^2 - \mu

has degree at most 2k−22k - 2 and vanishes at all tours, so by the theorem on low-degree derivations it lies in D4k−5D_{4k - 5}.

Coverage

This entry covers Lemma 3.1, Proposition 3.3, Lemmas 3.7 and 3.8, Theorem 3.9 and the main theorem (Theorem 3.10) with the degree bound of Grigoriev (Theorem 3.11) as a hypothesis. Definition 2.2 and Lemma 2.3 are in the core, and Lemma 3.2 is the entry on subgroups of small index. Lemmas 3.4 to 3.6 are not formalized; the proof of Lemma 3.7 here does not use them. Not covered are the theorem of Grigoriev and the approximation factor 1−ε/(n−1)1 - \varepsilon/(n-1). Section 4, on the traveling salesperson problem, is covered: Theorem 4.1 with the level 4k−54k - 5, Proposition 4.2, Lemma 4.3, Theorem 4.4, Corollary 4.8 and Lemma 4.9. Lemmas 4.5 to 4.7 are not formalized and not needed.

The formal statements at a glance

Main.lean
/-- Perfect matchings with the same edges inside a small set are conjugate by an even permutation
that fixes the set pointwise. -/
theorem even_permutation : EvenPermutation := fun W _ _ h₁ h₂ hW h =>
  exists_even_perm_of_agreeOn W h₁ h₂ hW h

/-- The functions of a small invariant set of functions on the perfect matchings are juntas. -/
theorem matching_juntas : MatchingJuntas := fun k H hn hk hfin hcard hinv =>
  isJunta_of_invariant k H hn hk hfin hcard hinv

/-- A small symmetric SDP formulation of the matching problem gives sums of squares of juntas. -/
theorem symmetric_sdp_juntas : SymmetricSDPJuntas := fun ε k L P p w ρ hn hk hd hsdp U hU =>
  sumOfSquares_juntas ε k L P p w ρ hn hk hd hsdp U hU

/-- Derivations from the matching constraints vanish at the perfect matchings. -/
theorem derivations_vanish : DerivationsVanish := fun _ _ _ _ hμ hF =>
  eval_of_mem_derivations hμ hF

/-- Derivations can be weakened, multiplied by polynomials and moved by permutations. -/
theorem derivation_rules : DerivationRules := fun S _ _ _ _ hF =>
  ⟨fun h => derivations_mono S h hF, fun hq => mul_mem_derivations hF hq,
    fun _ hσ => permPoly_mem_derivations hσ hF⟩

/-- Multiplying by the variable of a new edge raises the degree of a derivation by one. -/
theorem degree_increase : DegreeIncrease := fun _ _ _ _ _ ha hb hab hF =>
  mul_edgeVar_mem_derivations ha hb hab hF

/-- The symmetrization of a polynomial is congruent to a constant. -/
theorem symmetrization_constant : SymmetrizationConstant := fun S d _ hG hd =>
  symm_sub_const_mem S d hG hd

/-- A polynomial that vanishes on the perfect matchings of a clique has a derivation of degree
`2 deg F - 1`. -/
theorem derivation_theorem_clique : DerivationTheoremClique := fun S F hS hF hvan =>
  mem_derivations_of_eval_eq_zero F.totalDegree S hS F hF le_rfl hvan

/-- A polynomial that vanishes on the perfect matchings of the complete graph has a derivation of
degree `2 deg F - 1`. -/
theorem derivation_theorem : DerivationTheorem := fun F hV hvan =>
  mem_derivations_univ_of_eval_eq_zero hV F hvan

/-- For cliques with at least two vertices the degree of a derivation is the one of the paper. -/
theorem derivations_literal : DerivationsLiteral := fun _ d hS => derivations_eq_span_mul hS d

/-- A junta is the restriction of a polynomial of low degree. -/
theorem junta_polynomial : JuntaPolynomial := fun _ _ hh => exists_poly_of_isJunta hh

/-- A small symmetric SDP formulation of the matching problem gives a sum of squares refutation
of low degree for odd cliques. -/
theorem symmetric_sdp_refutation : SymmetricSDPRefutation :=
  fun ε k m L P p w ρ hε hn hV hm hmn hk2 hk hlt hsdp =>
    exists_refutation_of_sdp ε k m L P p w ρ hε hn hV hm hmn hk2 hk hlt hsdp

/-- The matching problem has no small symmetric SDP, given a degree bound for odd cliques. -/
theorem symmetric_sdp_bound : SymmetricSDPBound :=
  fun lb hlb _ _ _ _ _ _ _ _ _ ε k m L P p w ρ hε hn hV hm hmn hk2 hk hkm hsdp =>
    choose_le_of_oddCliqueDegreeBound lb hlb ε k m L P p w ρ hε hn hV hm hmn hk2 hk hkm hsdp

/-- With a linear degree bound for odd cliques, symmetric SDP formulations of the matching
problem have exponential size. -/
theorem symmetric_sdp_exponential : SymmetricSDPExponential :=
  fun t ht hlb _ _ _ _ _ _ _ _ _ ε L P p w ρ hε hn hV hnt hsdp =>
    two_pow_le_of_oddCliqueDegreeBound t ht hlb ε L P p w ρ hε hn hV hnt hsdp

/-- Derivations from the tour constraints vanish at the tours. -/
theorem tour_derivations_vanish : TourDerivationsVanish := fun _ _ _ _ _ hπ hF =>
  Tour.eval_of_mem hπ hF

/-- Derivations from the tour constraints can be weakened, multiplied by polynomials and moved by
permutations of the vertices. -/
theorem tour_derivation_rules : TourDerivationRules := fun S T _ _ _ _ hF =>
  ⟨fun h => Tour.derivations_mono S T h hF, fun hq => Tour.mul_mem hF hq,
    fun _ hσ => Tour.vertexPerm_mem hσ hF⟩

/-- Multiplying by the variable of a new cell raises the degree of a derivation by one. -/
theorem tour_degree_increase : TourDegreeIncrease := fun _ _ _ _ _ _ ha hb hF =>
  Tour.mul_X_mem ha hb hF

/-- The symmetrization of a tour polynomial is congruent to a constant. -/
theorem tour_symmetrization_constant : TourSymmetrizationConstant := fun S T d _ hG hd => by
  classical
  exact Tour.tourSymm_sub_const_mem S T d hG hd

/-- A polynomial that vanishes on the tours of a set of vertices through a set of positions has
a derivation of degree `2 deg F - 1`. -/
theorem tour_derivation_theorem_sets : TourDerivationTheoremSets := fun S T F hST hF hvan => by
  classical
  exact Tour.mem_of_eval_eq_zero F.totalDegree S T hST F hF le_rfl hvan

/-- A polynomial that vanishes on all tours has a derivation of degree `2 deg F - 1`. -/
theorem tour_derivation_theorem : TourDerivationTheorem := fun F hcard hvan => by
  classical
  exact Tour.mem_univ_of_eval_eq_zero hcard F hvan

/-- For sets of the same size the degree of a derivation from the tour constraints is the one of
the paper. -/
theorem tour_derivations_literal : TourDerivationsLiteral := fun _ _ d hST =>
  Tour.derivations_eq_span_mul hST d

/-- The optimum is a lower bound on the values of the tours, and it is attained. -/
theorem tour_opt_spec : TourOptSpec := fun _ d =>
  ⟨fun σ => Tour.tourOpt_le d σ, fun h => by
    have := h
    exact Tour.exists_tourValue_eq_tourOpt d⟩

/-- The functions of a small invariant set of functions on the tours are juntas. -/
theorem tour_juntas : TourJuntas := fun _ k H hn hk hfin hcard hinv =>
  Tour.isTourJunta_of_invariant k H hn hk hfin hcard hinv

/-- Doubled tours have the value of the tour, are optimal among the tours of the doubled
instance, and differ by even permutations. -/
theorem even_tours : EvenTours := fun _ _ hd =>
  ⟨Tour.isMetric_doubleMetric hd, Tour.doubleTour_injective,
    fun σ => Tour.tourValue_doubleTour hd.2.1 σ, fun τ => by
      obtain ⟨σ, hσ⟩ := Tour.exists_tourValue_le_double hd τ
      exact ⟨σ, by rw [Tour.tourValue_doubleTour hd.2.1]; exact hσ⟩,
    fun σ₁ σ₂ => Tour.sign_doubleTour σ₁ σ₂⟩

/-- The doubled instance has the same optimum. -/
theorem tour_opt_double : TourOptDouble := fun n _ hd => Tour.tourOpt_doubleMetric hd n

/-- The polynomial of the value of a tour takes the value of the tour at its point. -/
theorem tour_poly_value : TourPolyValue := fun _ d σ => Tour.eval_tourPoly d σ

/-- A lower bound proved by a sum of squares relaxation holds for all tours. -/
theorem lasserre_bound_sound : LasserreBoundSound := fun _ _ _ _ h σ =>
  Tour.le_tourValue_of_isLasserreBound h σ

/-- A function of the positions of the vertices in a set `W` is a polynomial of degree at most
`|W|`. -/
theorem positions_polynomial : PositionsPolynomial := fun _ W g hg =>
  Tour.exists_poly_of_positions W g hg

/-- A small symmetric SDP formulation of the traveling salesperson problem on `2n` vertices shows
that a sum of squares relaxation of low level is as good on `n` vertices. -/
theorem lasserre_optimal : LasserreOptimal :=
  fun _ k ρ L P p w r hV hn hk2 hk hlt hsdp _ hd =>
    Tour.isLasserreBound_of_sdp k ρ L P p w r hV hn hk2 hk hlt hsdp hd
Formal verification — ✅ all 63 formal results are kernel-checked

Checked at commit d482a252ef6d. The formal statement is machine-checked; that it matches the prose is checked by review. What “checked” means.

Lean matchingAction · ◇ elaborated · source

Definition in Lean
/-- The permutations of the vertices act on the perfect matchings of the complete graph: the
matching `σ • M` has the edges `{σ u, σ v}` for the edges `{u, v}` of `M`. As a map,
`(σ • μ) v = σ (μ (σ⁻¹ v))`. -/
instance matchingAction : MulAction (Perm V) {μ : V → V // IsPerfectMatching μ} where
  smul σ M := ⟨conjMap σ M.1, M.2.conjMap σ⟩
  one_smul _ := rfl
  mul_smul _ _ _ := rfl

Lean oddSetAction · ◇ elaborated · source

Definition in Lean
/-- The permutations of the vertices act on the sets of vertices of odd size: `σ • U` is the image
of `U` under `σ`. -/
instance oddSetAction [DecidableEq V] : MulAction (Perm V) {U : Finset V // Odd U.card} where
  smul σ U := ⟨U.1.map σ.toEmbedding, by rw [Finset.card_map]; exact U.2⟩
  one_smul U := Subtype.ext (by
    change U.1.map (Equiv.refl V).toEmbedding = U.1
    ext x
    simp)
  mul_smul σ τ U := Subtype.ext (by
    change U.1.map (σ * τ).toEmbedding = (U.1.map τ.toEmbedding).map σ.toEmbedding
    rw [Finset.map_map]
    rfl)

Lean AgreeOn · ◇ elaborated · source

Definition in Lean
/-- The matchings `μ₁` and `μ₂` have **the same edges inside** `W`: every vertex of `W` that has
its partner in `W` in one of the two matchings has the same partner in both. In the notation of
the paper, `M₁ ∩ E[W] = M₂ ∩ E[W]`. -/
def AgreeOn (W : Finset V) (μ₁ μ₂ : V → V) : Prop :=
  ∀ v ∈ W, (μ₁ v ∈ W ∨ μ₂ v ∈ W) → μ₁ v = μ₂ v

Lean IsJunta · ◇ elaborated · source

Definition in Lean
/-- A function on the perfect matchings is a **junta of size less than** `k`: there is a set `W`
of fewer than `k` vertices such that the function depends only on the edges of the matching
inside `W`. -/
def IsJunta (k : ℕ) (h : {μ : V → V // IsPerfectMatching μ} → ℝ) : Prop :=
  ∃ W : Finset V, W.card < k ∧
    ∀ M₁ M₂ : {μ : V → V // IsPerfectMatching μ}, AgreeOn W M₁.1 M₂.1 → h M₁ = h M₂

/-! ### The matching polynomials -/

Lean IsSymmetricMatchingSDP · ◇ elaborated · source

Definition in Lean
/-- A **symmetric SDP formulation of the perfect matching problem** with the guarantee
`max f + ε / 2`, for the alternating group of the vertices: a symmetric SDP formulation, in the
sense of the entry `extended-formulations-core`, of the problem whose solutions are the perfect
matchings of the complete graph on `V`, whose instances are the sets `U` of odd size with the
value `|E[U] ∩ M|`, with the completeness guarantee `(|U| - 1 + ε) / 2` and the soundness
guarantee `(|U| - 1) / 2`. The alternating group acts on the index set `κ` of the matrices. -/
def IsSymmetricMatchingSDP {F κ : Type*} [AddCommGroup F] [Module ℝ F] [Fintype κ]
    [MulAction (alternatingGroup V) κ] (ε : ℝ) (L : AffineSubspace ℝ F)
    (P : F →ᵃ[ℝ] Matrix κ κ ℝ) (p : {μ : V → V // IsPerfectMatching μ} → F)
    (w : {U : Finset V // Odd U.card} → F →ᵃ[ℝ] ℝ)
    (ρ : alternatingGroup V →* (F ≃ᵃ[ℝ] F)) : Prop :=
  IsSymmetricSDPFormulationOf (alternatingGroup V) 1
    (fun (U : {U : Finset V // Odd U.card}) (M : {μ : V → V // IsPerfectMatching μ}) =>
      insideEdges M.1 U.1)
    (fun U => ((U.1.card : ℝ) - 1 + ε) / 2) (fun U => ((U.1.card : ℝ) - 1) / 2) L P p w ρ

Lean edgeVar · ◇ elaborated · source

Definition in Lean
/-- The **variable of the edge** `{u, v}`, and zero if `u = v`. -/
noncomputable def edgeVar (u v : V) : MvPolynomial (Edge V) ℝ :=
  if h : u = v then 0 else X ⟨s(u, v), by simpa using h⟩

Lean edgeIndicator · ◇ elaborated · source

Definition in Lean
/-- The **point of a matching**: the edge `{u, v}` has the coordinate one if `u` and `v` are
partners, and zero otherwise. -/
def edgeIndicator (μ : V → V) : Edge V → ℝ := fun e =>
  Sym2.lift ⟨fun u v => if μ u = v ∧ μ v = u then (1 : ℝ) else 0, fun u v => by
    simp only [and_comm]⟩ e.1

Lean IsPerfectMatchingOn · ◇ elaborated · source

Definition in Lean
/-- A **perfect matching of the complete graph on** `S`, as a map on all vertices: an involution
that maps `S` to itself without fixed points and fixes the vertices outside `S`. This is the
notion of the entry `extended-formulations-core`. -/
abbrev IsPerfectMatchingOn {V : Type*} (S : Finset V) (μ : V → V) : Prop :=
  Lemmata.ExtendedFormulations.IsPerfectMatchingOn S μ

Lean edgesIn · ◇ elaborated · source

Definition in Lean
/-- The edges with both ends in `S`. -/
def edgesIn (S : Finset V) : Set (Edge V) := {e | ∀ x ∈ e.1, x ∈ S}

Lean quadConstraints · ◇ elaborated · source

Definition in Lean
/-- The **matching constraints of degree two** of the complete graph on `S`: the polynomials
`x_{uv} x_{uw}` for vertices `u`, `v ≠ w` of `S`, and `x_{uv}² - x_{uv}` for vertices `u`, `v`
of `S`. -/
def quadConstraints (S : Finset V) : Set (MvPolynomial (Edge V) ℝ) :=
  {p | (∃ u ∈ S, ∃ v ∈ S, ∃ w ∈ S, v ≠ w ∧ p = edgeVar u v * edgeVar u w) ∨
    ∃ u ∈ S, ∃ v ∈ S, p = edgeVar u v ^ 2 - edgeVar u v}

Lean linConstraints · ◇ elaborated · source

Definition in Lean
/-- The **matching constraints of degree one** of the complete graph on `S`: the polynomials
`∑_{u ∈ S} x_{uv} - 1` for the vertices `v` of `S`. -/
def linConstraints (S : Finset V) : Set (MvPolynomial (Edge V) ℝ) :=
  {p | ∃ v ∈ S, p = ∑ u ∈ S, edgeVar u v - 1}

Lean derivations · ◇ elaborated · source

Definition in Lean
/-- The polynomials with a **derivation of degree at most** `d` from the matching constraints of
the complete graph on `S`: the linear combinations of products `q * p` of a polynomial `q` and a
matching constraint `p`, where the degree of `q` plus the degree two or one of the constraint is
at most `d`. In the notation of the paper, `F ≃ G` from `𝒫` in degree `d` if `F - G` lies in
this subspace. -/
noncomputable def derivations (S : Finset V) (d : ℕ) :
    Submodule ℝ (MvPolynomial (Edge V) ℝ) :=
  Submodule.span ℝ
    ({f | ∃ q, ∃ p ∈ quadConstraints S, q.totalDegree + 2 ≤ d ∧ f = q * p} ∪
      {f | ∃ q, ∃ p ∈ linConstraints S, q.totalDegree + 1 ≤ d ∧ f = q * p})

Lean permPoly · ◇ elaborated · source

Definition in Lean
/-- The action of a permutation of the vertices on the polynomials: the variable of `{u, v}` goes
to the variable of `{σ u, σ v}`. -/
noncomputable def permPoly (σ : Perm V) :
    MvPolynomial (Edge V) ℝ →ₐ[ℝ] MvPolynomial (Edge V) ℝ :=
  rename (edgeMap σ.toEmbedding)

Lean symm · ◇ elaborated · source

Definition in Lean
/-- The sum of the images of a polynomial under the permutations of the clique `S`. -/
noncomputable def symm (S : Finset V) :
    MvPolynomial (Edge V) ℝ →ₗ[ℝ] MvPolynomial (Edge V) ℝ :=
  ∑ σ : Perm {v // v ∈ S}, (permPoly (Perm.ofSubtype σ)).toLinearMap

Lean OddCliqueDegreeBound · ◇ elaborated · source

Definition in Lean
/-- **A lower bound on the degree of sum of squares refutations for odd cliques.** The complete
graph on an odd number `m` of vertices has no perfect matching, so the matching constraints have
no common zero. A sum of squares refutation of degree `D` is an identity that writes a positive
constant plus a sum of squares as a derivation of degree `D` from the matching constraints. The
bound says that every such refutation for `m` vertices has degree at least `lb m`. By a theorem
of Grigoriev it holds for a function `lb` that grows linearly; here it is a hypothesis. -/
def OddCliqueDegreeBound (lb : ℕ → ℕ) : Prop :=
  ∀ m : ℕ, Odd m → ∀ (N : ℕ) (G : Fin N → MvPolynomial (Edge (Fin m)) ℝ) (c : ℝ) (D : ℕ),
    0 < c → C c + ∑ i, G i ^ 2 ∈ derivations (Finset.univ : Finset (Fin m)) D → lb m ≤ D

Lean cellsIn · ◇ elaborated · source

Definition in Lean
/-- The **cells** of a set `S` of vertices and a set `T` of positions: the pairs `(u, i)` with
`u ∈ S` and `i ∈ T`. The variable `x_{u,i}` of a cell stands for "the vertex `u` is at the
position `i`". -/
def cellsIn (S : Finset U) (T : Finset P) : Set (U × P) := {e | e.1 ∈ S ∧ e.2 ∈ T}

Lean tourPoint · ◇ elaborated · source

Definition in Lean
/-- The **point of a map** `π` from vertices to positions: the cell `(u, i)` has the coordinate
one if `π u = i`, and zero otherwise. A map that restricts to a bijection from `S` to `T` is a
tour of the vertices `S` through the positions `T`. -/
def tourPoint [DecidableEq P] (π : U → P) : U × P → ℝ := fun e => if π e.1 = e.2 then 1 else 0

Lean tourQuad · ◇ elaborated · source

Definition in Lean
/-- The **tour constraints of degree two** of the vertices `S` and the positions `T`: the
polynomials `x_{u,i} x_{u,j}` for a vertex `u` and positions `i ≠ j`, the polynomials
`x_{u,i} x_{v,i}` for vertices `u ≠ v` and a position `i`, and `x_{u,i}² - x_{u,i}`. -/
def tourQuad (S : Finset U) (T : Finset P) : Set (MvPolynomial (U × P) ℝ) :=
  {p | (∃ u ∈ S, ∃ i ∈ T, ∃ j ∈ T, i ≠ j ∧ p = X (u, i) * X (u, j)) ∨
    (∃ u ∈ S, ∃ v ∈ S, ∃ i ∈ T, u ≠ v ∧ p = X (u, i) * X (v, i)) ∨
    ∃ u ∈ S, ∃ i ∈ T, p = X (u, i) ^ 2 - X (u, i)}

Lean tourLin · ◇ elaborated · source

Definition in Lean
/-- The **tour constraints of degree one** of the vertices `S` and the positions `T`: the
polynomials `∑_{i ∈ T} x_{u,i} - 1` for the vertices `u` of `S`, and `∑_{u ∈ S} x_{u,i} - 1` for
the positions `i` of `T`. -/
def tourLin (S : Finset U) (T : Finset P) : Set (MvPolynomial (U × P) ℝ) :=
  {p | (∃ u ∈ S, p = ∑ i ∈ T, X (u, i) - 1) ∨ ∃ i ∈ T, p = ∑ u ∈ S, X (u, i) - 1}

Lean tourDerivations · ◇ elaborated · source

Definition in Lean
/-- The polynomials with a **derivation of degree at most** `d` from the tour constraints of the
vertices `S` and the positions `T`: the linear combinations of products `q * p` of a polynomial
`q` and a tour constraint `p`, where the degree of `q` plus the degree two or one of the
constraint is at most `d`. -/
noncomputable def tourDerivations (S : Finset U) (T : Finset P) (d : ℕ) :
    Submodule ℝ (MvPolynomial (U × P) ℝ) :=
  Submodule.span ℝ
    ({f | ∃ q, ∃ p ∈ tourQuad S T, q.totalDegree + 2 ≤ d ∧ f = q * p} ∪
      {f | ∃ q, ∃ p ∈ tourLin S T, q.totalDegree + 1 ≤ d ∧ f = q * p})

Lean vertexPerm · ◇ elaborated · source

Definition in Lean
/-- The action of a permutation of the vertices on the polynomials: the variable of the cell
`(u, i)` goes to the variable of `(σ u, i)`. The positions are not moved. -/
noncomputable def vertexPerm (σ : Perm U) :
    MvPolynomial (U × P) ℝ →ₐ[ℝ] MvPolynomial (U × P) ℝ :=
  rename (Prod.map σ id)

Lean tourSymm · ◇ elaborated · source

Definition in Lean
/-- The sum of the images of a polynomial under the permutations of the vertices in `S`. -/
noncomputable def tourSymm [DecidableEq U] (S : Finset U) :
    MvPolynomial (U × P) ℝ →ₗ[ℝ] MvPolynomial (U × P) ℝ :=
  ∑ σ : Perm {v // v ∈ S}, (vertexPerm (Perm.ofSubtype σ)).toLinearMap

Lean nextPos · ◇ elaborated · source

Definition in Lean
/-- The **next position** on the cycle of the `n` positions: `i + 1`, and `0` after the last
position. -/
def nextPos (i : Fin n) : Fin n := ⟨(i.1 + 1) % n, Nat.mod_lt _ i.pos⟩

Lean IsMetric · ◇ elaborated · source

Definition in Lean
/-- The distances `d` form a **metric instance** of the traveling salesperson problem: they are
nonnegative, zero from a vertex to itself, and satisfy the triangle inequality. They need not be
symmetric. -/
def IsMetric (d : V → V → ℝ) : Prop :=
  (∀ u v, 0 ≤ d u v) ∧ (∀ u, d u u = 0) ∧ ∀ u v w, d u w ≤ d u v + d v w

Lean tourValue · ◇ elaborated · source

Definition in Lean
/-- The **value of a tour**. A tour of the vertices is a bijection `σ` from the vertices to the
`n` positions, the vertex `u` being the one at the position `σ u`. Its value is the sum of the
distances from the vertex at each position to the vertex at the next position. -/
noncomputable def tourValue (d : V → V → ℝ) (σ : V ≃ Fin n) : ℝ :=
  ∑ i : Fin n, d (σ.symm i) (σ.symm (nextPos i))

Lean tourOpt · ◇ elaborated · source

Definition in Lean
/-- The **optimum** of the distances `d`: the least value of a tour. -/
noncomputable def tourOpt (n : ℕ) (d : V → V → ℝ) : ℝ := ⨅ σ : V ≃ Fin n, tourValue d σ

Lean tourAction · ◇ elaborated · source

Definition in Lean
/-- The **action of the permutations of the vertices on the tours**: in the tour `g • σ` the
vertex `g v` has the position of `v` in `σ`, that is `(g • σ) v = σ (g⁻¹ v)`. It is not an
instance, since for vertices that are themselves the positions it would compete with the
multiplication of permutations. -/
@[reducible] def tourAction : MulAction (Perm V) (V ≃ Fin n) where
  smul g σ := (g⁻¹ : Perm V).trans σ
  one_smul σ := by
    change ((1 : Perm V)⁻¹).trans σ = σ
    rw [inv_one]
    rfl
  mul_smul g h σ := by
    change ((g * h)⁻¹ : Perm V).trans σ = (g⁻¹ : Perm V).trans ((h⁻¹ : Perm V).trans σ)
    rw [mul_inv_rev]
    rfl

Lean metricAction · ◇ elaborated · source

Definition in Lean
/-- The **action of the permutations of the vertices on the metric instances**: the distance
from `g u` to `g v` in `g • d` is the distance from `u` to `v` in `d`. -/
instance metricAction : MulAction (Perm V) {d : V → V → ℝ // IsMetric d} where
  smul g d := ⟨fun u v => d.1 (g⁻¹ u) (g⁻¹ v), fun _ _ => d.2.1 _ _, fun _ => d.2.2.1 _,
    fun _ _ _ => d.2.2.2 _ _ _⟩
  one_smul d := Subtype.ext (by
    change (fun u v => d.1 ((1 : Perm V)⁻¹ u) ((1 : Perm V)⁻¹ v)) = d.1
    rw [inv_one]
    rfl)
  mul_smul g h d := Subtype.ext (by
    change (fun u v => d.1 ((g * h)⁻¹ u) ((g * h)⁻¹ v)) =
      fun u v => d.1 (h⁻¹ (g⁻¹ u)) (h⁻¹ (g⁻¹ v))
    rw [mul_inv_rev]
    rfl)

Lean IsSymmetricTourSDP · ◇ elaborated · source

Definition in Lean
/-- A **symmetric SDP formulation of the traveling salesperson problem within the factor** `ρ`,
for the alternating group of the vertices: a symmetric SDP formulation, in the sense of the entry
`extended-formulations-core`, of the minimization problem whose solutions are the tours of the
vertices through `n` positions, whose instances are the metric instances with the value of a
tour, with the completeness guarantee `min / ρ` and the soundness guarantee `min`. The
alternating group acts on the tours and on the instances by renaming the vertices, and on the
index set `κ` of the matrices. -/
def IsSymmetricTourSDP {F κ : Type*} [AddCommGroup F] [Module ℝ F] [Fintype κ]
    [MulAction (alternatingGroup V) κ] (n : ℕ) (ρ : ℝ) (L : AffineSubspace ℝ F)
    (P : F →ᵃ[ℝ] Matrix κ κ ℝ) (p : (V ≃ Fin n) → F)
    (w : {d : V → V → ℝ // IsMetric d} → F →ᵃ[ℝ] ℝ)
    (r : alternatingGroup V →* (F ≃ᵃ[ℝ] F)) : Prop :=
  letI : MulAction (Perm V) (V ≃ Fin n) := tourAction
  IsSymmetricSDPFormulationOf (alternatingGroup V) (-1)
    (fun (d : {d : V → V → ℝ // IsMetric d}) (σ : V ≃ Fin n) => tourValue d.1 σ)
    (fun d => tourOpt n d.1 / ρ) (fun d => tourOpt n d.1) L P p w r

Lean IsTourJunta · ◇ elaborated · source

Definition in Lean
/-- A function on the tours is a **junta of size less than** `k`: there is a set `W` of fewer
than `k` vertices such that the function takes the same value on any two tours of the same
parity in which every vertex of `W` has the same position. Two tours `σ₁`, `σ₂` have the same
parity if the permutation `σ₂⁻¹ ∘ σ₁` of the vertices is even. -/
def IsTourJunta [Fintype V] [DecidableEq V] (k : ℕ) (h : (V ≃ Fin n) → ℝ) : Prop :=
  ∃ W : Finset V, W.card < k ∧ ∀ σ₁ σ₂ : V ≃ Fin n, (∀ w ∈ W, σ₁ w = σ₂ w) →
    Perm.sign (σ₁.trans σ₂.symm) = 1 → h σ₁ = h σ₂

Lean doubleMetric · ◇ elaborated · source

Definition in Lean
/-- The **doubled instance**: every vertex `v` becomes two vertices `(v, 0)` and `(v, 1)`, at
distance zero from each other, and the distance from a copy of `u` to a copy of `v` is the
distance from `u` to `v`. -/
def doubleMetric (d : V → V → ℝ) : V × Fin 2 → V × Fin 2 → ℝ := fun x y => d x.1 y.1

Lean doubleTour · ◇ elaborated · source

Definition in Lean
/-- The **doubled tour**: the two copies of the vertex at the position `i` are at the positions
`2 i` and `2 i + 1`. -/
def doubleTour (σ : V ≃ Fin n) : V × Fin 2 ≃ Fin (n * 2) :=
  (σ.prodCongr (Equiv.refl (Fin 2))).trans finProdFinEquiv

Lean tourPoly · ◇ elaborated · source

Definition in Lean
/-- The **polynomial of the value of a tour**: the sum over the positions `i` and the vertices
`u`, `v` of `d(u, v) x_{u,i} x_{v,i+1}`. At the point of a tour it is the value of the tour. -/
noncomputable def tourPoly [Fintype V] (n : ℕ) (d : V → V → ℝ) : MvPolynomial (V × Fin n) ℝ :=
  ∑ i : Fin n, ∑ u : V, ∑ v : V,
    MvPolynomial.C (d u v) * (MvPolynomial.X (u, i) * MvPolynomial.X (v, nextPos i))

Lean IsLasserreBound · ◇ elaborated · source

Definition in Lean
/-- **The sum of squares relaxation of level `D` proves the lower bound `c`** for the distances
`d`: the polynomial of the value of a tour minus `c` is congruent to a sum of squares of
polynomials of degree at most `D / 2`, by a derivation of degree `D` from the tour constraints.
This is feasibility of `c` in the dual of the Lasserre relaxation of level `D`. -/
def IsLasserreBound [Fintype V] (n D : ℕ) (d : V → V → ℝ) (c : ℝ) : Prop :=
  ∃ (N : ℕ) (G : Fin N → MvPolynomial (V × Fin n) ℝ), (∀ i, 2 * (G i).totalDegree ≤ D) ∧
    tourPoly n d - MvPolynomial.C c - ∑ i, G i ^ 2 ∈
      tourDerivations Finset.univ Finset.univ D

Lean even_permutation · ✅ kernel-checked · source

Statement in Lean
/-- Perfect matchings with the same edges inside a small set are conjugate by an even permutation
that fixes the set pointwise. -/
theorem even_permutation : EvenPermutation

where EvenPermutation is (source):

/-- **Even permutations between matchings.** Let `M₁` and `M₂` be perfect matchings of the
complete graph on `V` with the same edges inside a set `W` of fewer than half of the vertices.
Then an even permutation that fixes `W` pointwise maps `M₁` to `M₂`. -/
def EvenPermutation : Prop :=
  ∀ {V : Type u} [Fintype V] [DecidableEq V] (W : Finset V) (μ₁ μ₂ : V → V),
    IsPerfectMatching μ₁ → IsPerfectMatching μ₂ → 2 * W.card < Fintype.card V →
    AgreeOn W μ₁ μ₂ →
      ∃ σ ∈ alternatingGroup V, (∀ w ∈ W, σ w = w) ∧ ∀ x, σ (μ₁ (σ.symm x)) = μ₂ x

Lean matching_juntas · ✅ kernel-checked · source

Statement in Lean
/-- The functions of a small invariant set of functions on the perfect matchings are juntas. -/
theorem matching_juntas : MatchingJuntas

where MatchingJuntas is (source):

/-- **Symmetric functions on matchings are juntas.** Let `n ≥ 10` and `4k ≤ n`, and let `H` be a
set of fewer than `C(n, k)` real functions on the perfect matchings of the complete graph on `n`
vertices that is invariant under the alternating group, acting by
`(g • h) M = h (g⁻¹ • M)`. Then every function of `H` depends only on the edges inside a set of
fewer than `k` vertices. -/
def MatchingJuntas : Prop :=
  ∀ {V : Type u} [Fintype V] [DecidableEq V] (k : ℕ)
    (H : Set ({μ : V → V // IsPerfectMatching μ} → ℝ)),
    10 ≤ Fintype.card V → 4 * k ≤ Fintype.card V → H.Finite →
    H.ncard < (Fintype.card V).choose k →
    (∀ g : alternatingGroup V, ∀ h ∈ H, (fun M => h (g⁻¹ • M)) ∈ H) →
      ∀ h ∈ H, IsJunta k h

Lean symmetric_sdp_juntas · ✅ kernel-checked · source

Statement in Lean
/-- A small symmetric SDP formulation of the matching problem gives sums of squares of juntas. -/
theorem symmetric_sdp_juntas : SymmetricSDPJuntas

where SymmetricSDPJuntas is (source):

/-- **Sums of squares of juntas.** Let `n ≥ 10` and `4k ≤ n`, and let the perfect matching
problem on `n` vertices with the guarantee `max f + ε / 2` have a symmetric SDP formulation of
size `d` for the alternating group, with `(d + 1 choose 2) < C(n, k)`. Then for every set `U` of
odd size the slack `(|U| - 1 + ε) / 2 - |E[U] ∩ M|` is, as a function of the perfect matching
`M`, a sum of `d²` squares of linear combinations of juntas of size less than `k`, plus a
nonnegative constant. -/
def SymmetricSDPJuntas : Prop :=
  ∀ {V : Type u} {F : Type v} {κ : Type w} [Fintype V] [DecidableEq V] [AddCommGroup F]
    [Module ℝ F] [Fintype κ] [MulAction (alternatingGroup V) κ] (ε : ℝ) (k : ℕ)
    (L : AffineSubspace ℝ F) (P : F →ᵃ[ℝ] Matrix κ κ ℝ)
    (p : {μ : V → V // IsPerfectMatching μ} → F)
    (w : {U : Finset V // Odd U.card} → F →ᵃ[ℝ] ℝ) (ρ : alternatingGroup V →* (F ≃ᵃ[ℝ] F)),
    10 ≤ Fintype.card V → 4 * k ≤ Fintype.card V →
    (Fintype.card κ + 1).choose 2 < (Fintype.card V).choose k →
    IsSymmetricMatchingSDP ε L P p w ρ →
    ∀ U : Finset V, Odd U.card →
      ∃ (q : κ → κ → {μ : V → V // IsPerfectMatching μ} → ℝ) (c : ℝ), 0 ≤ c ∧
        (∀ a b, q a b ∈ Submodule.span ℝ {h | IsJunta k h}) ∧
        ∀ M : {μ : V → V // IsPerfectMatching μ},
          ((U.card : ℝ) - 1 + ε) / 2 - insideEdges M.1 U = ∑ a, ∑ b, q a b M ^ 2 + c

/-! ### The matching polynomials and derivations -/

Lean derivations_vanish · ✅ kernel-checked · source

Statement in Lean
/-- Derivations from the matching constraints vanish at the perfect matchings. -/
theorem derivations_vanish : DerivationsVanish

where DerivationsVanish is (source):

/-- **Derivations vanish at the perfect matchings.** A polynomial with a derivation from the
matching constraints of the clique `S` is zero at every perfect matching of `S`. -/
def DerivationsVanish : Prop :=
  ∀ {V : Type u} [DecidableEq V] (S : Finset V) (d : ℕ) (μ : V → V)
    (F : MvPolynomial (Edge V) ℝ),
    IsPerfectMatchingOn S μ → F ∈ derivations S d → MvPolynomial.eval (edgeIndicator μ) F = 0

Lean derivation_rules · ✅ kernel-checked · source

Statement in Lean
/-- Derivations can be weakened, multiplied by polynomials and moved by permutations. -/
theorem derivation_rules : DerivationRules

where DerivationRules is (source):

/-- **Rules for derivations.** A derivation of degree `d` is a derivation of every larger degree,
its product with a polynomial of degree at most `e` is a derivation of degree `e + d`, and its
image under a permutation of the vertices that maps the clique into itself is a derivation of
degree `d`. -/
def DerivationRules : Prop :=
  ∀ {V : Type u} [DecidableEq V] (S : Finset V) (d e : ℕ) (F q : MvPolynomial (Edge V) ℝ),
    F ∈ derivations S d →
      (d ≤ e → F ∈ derivations S e) ∧
      (q.totalDegree ≤ e → q * F ∈ derivations S (e + d)) ∧
      ∀ σ : Perm V, (∀ v ∈ S, σ v ∈ S) → permPoly σ F ∈ derivations S d

Lean degree_increase · ✅ kernel-checked · source

Statement in Lean
/-- Multiplying by the variable of a new edge raises the degree of a derivation by one. -/
theorem degree_increase : DegreeIncrease

where DegreeIncrease is (source):

/-- **A new edge.** A derivation of degree `d` for the clique `S`, multiplied by the variable of
an edge `{a, b}` disjoint from `S`, is a derivation of degree `d + 1` for the clique
`S ∪ {a, b}`. -/
def DegreeIncrease : Prop :=
  ∀ {V : Type u} [DecidableEq V] (S : Finset V) (d : ℕ) (a b : V)
    (F : MvPolynomial (Edge V) ℝ),
    a ∉ S → b ∉ S → a ≠ b → F ∈ derivations S d →
      F * edgeVar a b ∈ derivations (insert a (insert b S)) (d + 1)

Lean symmetrization_constant · ✅ kernel-checked · source

Statement in Lean
/-- The symmetrization of a polynomial is congruent to a constant. -/
theorem symmetrization_constant : SymmetrizationConstant

where SymmetrizationConstant is (source):

/-- **Symmetrized polynomials are constant.** For a polynomial `G` of degree at most `d` in the
variables of the clique `S`, the sum of the images of `G` under the permutations of `S` is
congruent to a constant, by a derivation of degree `d`. -/
def SymmetrizationConstant : Prop :=
  ∀ {V : Type u} [DecidableEq V] (S : Finset V) (d : ℕ) (G : MvPolynomial (Edge V) ℝ),
    G ∈ MvPolynomial.supported ℝ (edgesIn S) → G.totalDegree ≤ d →
      ∃ c : ℝ, symm S G - MvPolynomial.C c ∈ derivations S d

Lean derivation_theorem_clique · ✅ kernel-checked · source

Statement in Lean
/-- A polynomial that vanishes on the perfect matchings of a clique has a derivation of degree
`2 deg F - 1`. -/
theorem derivation_theorem_clique : DerivationTheoremClique

where DerivationTheoremClique is (source):

/-- **Low-degree derivations, for a clique.** Let `S` be a set with an even number of vertices,
and let `F` be a polynomial in the variables of the edges inside `S` that is zero at all perfect
matchings of the clique `S`. Then `F` has a derivation of degree `2 deg F - 1` from the matching
constraints of `S`. -/
def DerivationTheoremClique : Prop :=
  ∀ {V : Type u} [DecidableEq V] (S : Finset V) (F : MvPolynomial (Edge V) ℝ),
    Even S.card → F ∈ MvPolynomial.supported ℝ (edgesIn S) →
    (∀ μ, IsPerfectMatchingOn S μ → MvPolynomial.eval (edgeIndicator μ) F = 0) →
      F ∈ derivations S (2 * F.totalDegree - 1)

Lean derivation_theorem · ✅ kernel-checked · source

Statement in Lean
/-- A polynomial that vanishes on the perfect matchings of the complete graph has a derivation of
degree `2 deg F - 1`. -/
theorem derivation_theorem : DerivationTheorem

where DerivationTheorem is (source):

/-- **Low-degree derivations.** Let `V` be a set with an even number of vertices, and let `F` be
a polynomial in the edge variables that is zero at all perfect matchings of the complete graph
on `V`. Then `F` has a derivation of degree `2 deg F - 1` from the matching constraints. -/
def DerivationTheorem : Prop :=
  ∀ {V : Type u} [Fintype V] [DecidableEq V] (F : MvPolynomial (Edge V) ℝ),
    Even (Fintype.card V) →
    (∀ μ : V → V, IsPerfectMatching μ → MvPolynomial.eval (edgeIndicator μ) F = 0) →
      F ∈ derivations Finset.univ (2 * F.totalDegree - 1)

Lean derivations_literal · ✅ kernel-checked · source

Statement in Lean
/-- For cliques with at least two vertices the degree of a derivation is the one of the paper. -/
theorem derivations_literal : DerivationsLiteral

where DerivationsLiteral is (source):

/-- **The two ways to count the degree agree.** For a clique `S` with at least two vertices, the
derivations of degree `d` are the linear combinations of the products `q p` of a polynomial `q`
and a matching constraint `p` of `S` with `deg (q p) ≤ d`, as in the paper. -/
def DerivationsLiteral : Prop :=
  ∀ {V : Type u} [DecidableEq V] (S : Finset V) (d : ℕ), 2 ≤ S.card →
    derivations S d = Submodule.span ℝ {f | ∃ q p,
      (p ∈ quadConstraints S ∨ p ∈ linConstraints S) ∧ (q * p).totalDegree ≤ d ∧ f = q * p}

/-! ### The main theorem -/

Lean junta_polynomial · ✅ kernel-checked · source

Statement in Lean
/-- A junta is the restriction of a polynomial of low degree. -/
theorem junta_polynomial : JuntaPolynomial

where JuntaPolynomial is (source):

/-- **Juntas are polynomials of low degree.** A junta of size less than `k` on the perfect
matchings is the restriction of a polynomial of degree at most `k - 1` in the edge variables. -/
def JuntaPolynomial : Prop :=
  ∀ {V : Type u} [Fintype V] [DecidableEq V] (k : ℕ)
    (h : {μ : V → V // IsPerfectMatching μ} → ℝ), IsJunta k h →
    ∃ H : MvPolynomial (Edge V) ℝ, H.totalDegree ≤ k - 1 ∧
      ∀ M : {μ : V → V // IsPerfectMatching μ}, MvPolynomial.eval (edgeIndicator M.1) H = h M

Lean symmetric_sdp_refutation · ✅ kernel-checked · source

Statement in Lean
/-- A small symmetric SDP formulation of the matching problem gives a sum of squares refutation
of low degree for odd cliques. -/
theorem symmetric_sdp_refutation : SymmetricSDPRefutation

where SymmetricSDPRefutation is (source):

/-- **From a small symmetric SDP to a refutation for odd cliques.** Let `n ≥ 10` be even, let
`2 ≤ k` with `4k ≤ n`, and let the perfect matching problem on `n` vertices with the guarantee
`max f + ε / 2`, `ε < 1`, have a symmetric SDP formulation of size `d` for the alternating group
with `(d + 1 choose 2) < C(n, k)`. Then for every odd `m` with `2m ≤ n` there are polynomials
`G_1, …, G_N` in the edge variables of the complete graph on `m` vertices and a constant `c > 0`
such that `c + ∑ G_i²` has a derivation of degree `4k - 5` from the matching constraints of this
graph. -/
def SymmetricSDPRefutation : Prop :=
  ∀ {V : Type u} {F : Type v} {κ : Type w} [Fintype V] [DecidableEq V] [AddCommGroup F]
    [Module ℝ F] [Fintype κ] [MulAction (alternatingGroup V) κ] (ε : ℝ) (k m : ℕ)
    (L : AffineSubspace ℝ F) (P : F →ᵃ[ℝ] Matrix κ κ ℝ)
    (p : {μ : V → V // IsPerfectMatching μ} → F)
    (w : {U : Finset V // Odd U.card} → F →ᵃ[ℝ] ℝ) (ρ : alternatingGroup V →* (F ≃ᵃ[ℝ] F)),
    ε < 1 → 10 ≤ Fintype.card V → Even (Fintype.card V) → Odd m → 2 * m ≤ Fintype.card V →
    2 ≤ k → 4 * k ≤ Fintype.card V →
    (Fintype.card κ + 1).choose 2 < (Fintype.card V).choose k →
    IsSymmetricMatchingSDP ε L P p w ρ →
      ∃ (N : ℕ) (G : Fin N → MvPolynomial (Edge (Fin m)) ℝ) (c : ℝ), 0 < c ∧
        MvPolynomial.C c + ∑ i, G i ^ 2 ∈ derivations (Finset.univ : Finset (Fin m)) (4 * k - 5)

Lean symmetric_sdp_bound · ✅ kernel-checked · source

Statement in Lean
/-- The matching problem has no small symmetric SDP, given a degree bound for odd cliques. -/
theorem symmetric_sdp_bound : SymmetricSDPBound

where SymmetricSDPBound is (source):

/-- **The matching problem has no small symmetric SDP, given a degree bound for odd cliques.**
Assume that every sum of squares refutation of the matching constraints of the odd clique on `m`
vertices has degree at least `lb m`. Let `n ≥ 10` be even, `m` odd with `2m ≤ n`, and `2 ≤ k`
with `4k ≤ n` and `4k - 5 < lb m`. Then every symmetric SDP formulation, for the alternating
group, of the perfect matching problem on `n` vertices with the guarantee `max f + ε / 2`,
`ε < 1`, has a size `d` with `C(n, k) ≤ (d + 1 choose 2)`. -/
def SymmetricSDPBound : Prop :=
  ∀ (lb : ℕ → ℕ), OddCliqueDegreeBound lb →
    ∀ {V : Type u} {F : Type v} {κ : Type w} [Fintype V] [DecidableEq V] [AddCommGroup F]
      [Module ℝ F] [Fintype κ] [MulAction (alternatingGroup V) κ] (ε : ℝ) (k m : ℕ)
      (L : AffineSubspace ℝ F) (P : F →ᵃ[ℝ] Matrix κ κ ℝ)
      (p : {μ : V → V // IsPerfectMatching μ} → F)
      (w : {U : Finset V // Odd U.card} → F →ᵃ[ℝ] ℝ) (ρ : alternatingGroup V →* (F ≃ᵃ[ℝ] F)),
      ε < 1 → 10 ≤ Fintype.card V → Even (Fintype.card V) → Odd m →
      2 * m ≤ Fintype.card V → 2 ≤ k → 4 * k ≤ Fintype.card V → 4 * k - 5 < lb m →
      IsSymmetricMatchingSDP ε L P p w ρ →
        (Fintype.card V).choose k ≤ (Fintype.card κ + 1).choose 2

Lean symmetric_sdp_exponential · ✅ kernel-checked · source

Statement in Lean
/-- With a linear degree bound for odd cliques, symmetric SDP formulations of the matching
problem have exponential size. -/
theorem symmetric_sdp_exponential : SymmetricSDPExponential

where SymmetricSDPExponential is (source):

/-- **Exponential size.** Assume that every sum of squares refutation of the matching constraints
of the odd clique on `m` vertices has degree at least `m / t`, for a fixed `t ≥ 1`. Then for
even `n ≥ max (10, 8t + 2)`, every symmetric SDP formulation, for the alternating group, of the
perfect matching problem on `n` vertices with the guarantee `max f + ε / 2`, `ε < 1`, has a size
`d` with `2 ^ (n / (8t)) ≤ (d + 1)²`. -/
def SymmetricSDPExponential : Prop :=
  ∀ (t : ℕ), 1 ≤ t → OddCliqueDegreeBound (fun m => m / t) →
    ∀ {V : Type u} {F : Type v} {κ : Type w} [Fintype V] [DecidableEq V] [AddCommGroup F]
      [Module ℝ F] [Fintype κ] [MulAction (alternatingGroup V) κ] (ε : ℝ)
      (L : AffineSubspace ℝ F) (P : F →ᵃ[ℝ] Matrix κ κ ℝ)
      (p : {μ : V → V // IsPerfectMatching μ} → F)
      (w : {U : Finset V // Odd U.card} → F →ᵃ[ℝ] ℝ) (ρ : alternatingGroup V →* (F ≃ᵃ[ℝ] F)),
      ε < 1 → 10 ≤ Fintype.card V → Even (Fintype.card V) → 8 * t + 2 ≤ Fintype.card V →
      IsSymmetricMatchingSDP ε L P p w ρ →
        2 ^ (Fintype.card V / (8 * t)) ≤ (Fintype.card κ + 1) ^ 2

/-! ### The tour polynomials and derivations -/

Lean tour_derivations_literal · ✅ kernel-checked · source

Statement in Lean
/-- For sets of the same size the degree of a derivation from the tour constraints is the one of
the paper. -/
theorem tour_derivations_literal : TourDerivationsLiteral

where TourDerivationsLiteral is (source):

/-- **The two ways to count the degree agree, for tours.** For a set of vertices and a set of
positions of the same size, the derivations of degree `d` are the linear combinations of the
products `q p` of a polynomial `q` and a tour constraint `p` with `deg (q p) ≤ d`, as in the
paper. -/
def TourDerivationsLiteral : Prop :=
  ∀ {U : Type u} {P : Type v} (S : Finset U) (T : Finset P) (d : ℕ), S.card = T.card →
    tourDerivations S T d = Submodule.span ℝ {f | ∃ q p,
      (p ∈ tourQuad S T ∨ p ∈ tourLin S T) ∧ (q * p).totalDegree ≤ d ∧ f = q * p}

/-! ### The traveling salesperson problem -/

Lean tour_derivations_vanish · ✅ kernel-checked · source

Statement in Lean
/-- Derivations from the tour constraints vanish at the tours. -/
theorem tour_derivations_vanish : TourDerivationsVanish

where TourDerivationsVanish is (source):

/-- **Derivations vanish at the tours.** A polynomial with a derivation from the tour constraints
of the vertices `S` and the positions `T` is zero at the point of every map that restricts to a
bijection from `S` to `T`. -/
def TourDerivationsVanish : Prop :=
  ∀ {U : Type u} {P : Type v} [DecidableEq P] (S : Finset U) (T : Finset P) (d : ℕ)
    (π : U → P) (F : MvPolynomial (U × P) ℝ),
    Set.BijOn π S T → F ∈ tourDerivations S T d → MvPolynomial.eval (tourPoint π) F = 0

Lean tour_derivation_rules · ✅ kernel-checked · source

Statement in Lean
/-- Derivations from the tour constraints can be weakened, multiplied by polynomials and moved by
permutations of the vertices. -/
theorem tour_derivation_rules : TourDerivationRules

where TourDerivationRules is (source):

/-- **Rules for derivations from the tour constraints.** A derivation of degree `d` is a
derivation of every larger degree, its product with a polynomial of degree at most `e` is a
derivation of degree `e + d`, and its image under a permutation of the vertices that maps `S`
into itself is a derivation of degree `d`. -/
def TourDerivationRules : Prop :=
  ∀ {U : Type u} {P : Type v} (S : Finset U) (T : Finset P) (d e : ℕ)
    (F q : MvPolynomial (U × P) ℝ), F ∈ tourDerivations S T d →
      (d ≤ e → F ∈ tourDerivations S T e) ∧
      (q.totalDegree ≤ e → q * F ∈ tourDerivations S T (e + d)) ∧
      ∀ σ : Perm U, (∀ v ∈ S, σ v ∈ S) → vertexPerm σ F ∈ tourDerivations S T d

Lean tour_degree_increase · ✅ kernel-checked · source

Statement in Lean
/-- Multiplying by the variable of a new cell raises the degree of a derivation by one. -/
theorem tour_degree_increase : TourDegreeIncrease

where TourDegreeIncrease is (source):

/-- **A new cell.** A derivation of degree `d` for the vertices `S` and the positions `T`,
multiplied by the variable of a cell `(a, b)` with `a ∉ S` and `b ∉ T`, is a derivation of degree
`d + 1` for `S ∪ {a}` and `T ∪ {b}`. -/
def TourDegreeIncrease : Prop :=
  ∀ {U : Type u} {P : Type v} [DecidableEq U] [DecidableEq P] (S : Finset U) (T : Finset P)
    (d : ℕ) (a : U) (b : P) (F : MvPolynomial (U × P) ℝ),
    a ∉ S → b ∉ T → F ∈ tourDerivations S T d →
      F * MvPolynomial.X (a, b) ∈ tourDerivations (insert a S) (insert b T) (d + 1)

Lean tour_symmetrization_constant · ✅ kernel-checked · source

Statement in Lean
/-- The symmetrization of a tour polynomial is congruent to a constant. -/
theorem tour_symmetrization_constant : TourSymmetrizationConstant

where TourSymmetrizationConstant is (source):

/-- **Symmetrized tour polynomials are constant.** For a polynomial `G` of degree at most `d` in
the variables of the cells of `S` and `T`, the sum of the images of `G` under the permutations of
the vertices in `S` is congruent to a constant, by a derivation of degree `d`. -/
def TourSymmetrizationConstant : Prop :=
  ∀ {U : Type u} {P : Type v} [DecidableEq U] (S : Finset U) (T : Finset P) (d : ℕ)
    (G : MvPolynomial (U × P) ℝ),
    G ∈ MvPolynomial.supported ℝ (cellsIn S T) → G.totalDegree ≤ d →
      ∃ c : ℝ, tourSymm S G - MvPolynomial.C c ∈ tourDerivations S T d

Lean tour_derivation_theorem_sets · ✅ kernel-checked · source

Statement in Lean
/-- A polynomial that vanishes on the tours of a set of vertices through a set of positions has
a derivation of degree `2 deg F - 1`. -/
theorem tour_derivation_theorem_sets : TourDerivationTheoremSets

where TourDerivationTheoremSets is (source):

/-- **Low-degree derivations, for sets of vertices and positions.** Let `S` be a set of vertices
and `T` a set of positions of the same size, in a nonempty type of positions, and let `F` be a
polynomial in the variables of the cells of `S` and `T` that is zero at the point of every map
that restricts to a bijection from `S` to `T`. Then `F` has a derivation of degree
`2 deg F - 1` from the tour constraints of `S` and `T`. -/
def TourDerivationTheoremSets : Prop :=
  ∀ {U : Type u} {P : Type v} [DecidableEq P] [Nonempty P] (S : Finset U) (T : Finset P)
    (F : MvPolynomial (U × P) ℝ),
    S.card = T.card → F ∈ MvPolynomial.supported ℝ (cellsIn S T) →
    (∀ π : U → P, Set.BijOn π S T → MvPolynomial.eval (tourPoint π) F = 0) →
      F ∈ tourDerivations S T (2 * F.totalDegree - 1)

Lean tour_derivation_theorem · ✅ kernel-checked · source

Statement in Lean
/-- A polynomial that vanishes on all tours has a derivation of degree `2 deg F - 1`. -/
theorem tour_derivation_theorem : TourDerivationTheorem

where TourDerivationTheorem is (source):

/-- **Low-degree derivations for tours.** Let there be as many vertices as positions, and let
`F` be a polynomial in the variables `x_{u,i}` that is zero at the points of all bijections from
the vertices to the positions. Then `F` has a derivation of degree `2 deg F - 1` from the tour
constraints. -/
def TourDerivationTheorem : Prop :=
  ∀ {U : Type u} {P : Type v} [Fintype U] [Fintype P] [DecidableEq P]
    (F : MvPolynomial (U × P) ℝ), Fintype.card U = Fintype.card P →
    (∀ σ : U ≃ P, MvPolynomial.eval (tourPoint σ) F = 0) →
      F ∈ tourDerivations Finset.univ Finset.univ (2 * F.totalDegree - 1)

Lean tour_opt_spec · ✅ kernel-checked · source

Statement in Lean
/-- The optimum is a lower bound on the values of the tours, and it is attained. -/
theorem tour_opt_spec : TourOptSpec

where TourOptSpec is (source):

/-- **The optimum.** The optimum of the distances `d` is at most the value of every tour, and it
is the value of a tour if there is a tour. -/
def TourOptSpec : Prop :=
  ∀ {V : Type u} (n : ℕ) (d : V → V → ℝ),
    (∀ σ : V ≃ Fin n, tourOpt n d ≤ tourValue d σ) ∧
    (Nonempty (V ≃ Fin n) → ∃ σ : V ≃ Fin n, tourValue d σ = tourOpt n d)

Lean tour_juntas · ✅ kernel-checked · source

Statement in Lean
/-- The functions of a small invariant set of functions on the tours are juntas. -/
theorem tour_juntas : TourJuntas

where TourJuntas is (source):

/-- **Symmetric functions on tours are juntas.** Let `H` be a set of fewer than `C(N, k)` real
functions on the tours of `N ≥ 10` vertices, where `4k ≤ N`, that is invariant under the
alternating group of the vertices: with `h` it contains `σ ↦ h (σ ∘ g)` for every even
permutation `g`. Then every function of `H` depends only on the positions of fewer than `k`
vertices and on the parity of the tour. -/
def TourJuntas : Prop :=
  ∀ {V : Type u} [Fintype V] [DecidableEq V] (n k : ℕ) (H : Set ((V ≃ Fin n) → ℝ)),
    10 ≤ Fintype.card V → 4 * k ≤ Fintype.card V → H.Finite →
    H.ncard < (Fintype.card V).choose k →
    (∀ g : alternatingGroup V, ∀ h ∈ H, (fun σ => h ((g : Perm V).trans σ)) ∈ H) →
      ∀ h ∈ H, IsTourJunta k h

Lean even_tours · ✅ kernel-checked · source

Statement in Lean
/-- Doubled tours have the value of the tour, are optimal among the tours of the doubled
instance, and differ by even permutations. -/
theorem even_tours : EvenTours

where EvenTours is (source):

/-- **Tours of the doubled instance.** Let `d` be a metric instance. The doubled instance is
metric; the map from the tours to the doubled tours is injective; the doubled tour has the value
of the tour; every tour of the doubled instance is at least as long as some doubled tour; and
any two doubled tours differ by an even permutation of the vertices. -/
def EvenTours : Prop :=
  ∀ {V : Type u} [Fintype V] [DecidableEq V] (n : ℕ) (d : V → V → ℝ), IsMetric d →
    IsMetric (doubleMetric d) ∧
    Function.Injective (doubleTour (V := V) (n := n)) ∧
    (∀ σ : V ≃ Fin n, tourValue (doubleMetric d) (doubleTour σ) = tourValue d σ) ∧
    (∀ τ : V × Fin 2 ≃ Fin (n * 2), ∃ σ : V ≃ Fin n,
      tourValue (doubleMetric d) (doubleTour σ) ≤ tourValue (doubleMetric d) τ) ∧
    ∀ σ₁ σ₂ : V ≃ Fin n, Perm.sign ((doubleTour σ₁).trans (doubleTour σ₂).symm) = 1

Lean tour_opt_double · ✅ kernel-checked · source

Statement in Lean
/-- The doubled instance has the same optimum. -/
theorem tour_opt_double : TourOptDouble

where TourOptDouble is (source):

/-- **The doubled instance has the same optimum.** -/
def TourOptDouble : Prop :=
  ∀ {V : Type u} [Fintype V] [DecidableEq V] (n : ℕ) (d : V → V → ℝ), IsMetric d →
    tourOpt (n * 2) (doubleMetric d) = tourOpt n d

Lean tour_poly_value · ✅ kernel-checked · source

Statement in Lean
/-- The polynomial of the value of a tour takes the value of the tour at its point. -/
theorem tour_poly_value : TourPolyValue

where TourPolyValue is (source):

/-- **The polynomial of the value.** At the point of a tour, the polynomial
`∑ d(u, v) x_{u,i} x_{v,i+1}` is the value of the tour. -/
def TourPolyValue : Prop :=
  ∀ {V : Type u} [Fintype V] (n : ℕ) (d : V → V → ℝ) (σ : V ≃ Fin n),
    MvPolynomial.eval (tourPoint σ) (tourPoly n d) = tourValue d σ

Lean lasserre_bound_sound · ✅ kernel-checked · source

Statement in Lean
/-- A lower bound proved by a sum of squares relaxation holds for all tours. -/
theorem lasserre_bound_sound : LasserreBoundSound

where LasserreBoundSound is (source):

/-- **Bounds from the sum of squares relaxation are valid.** If the sum of squares relaxation of
some level proves the lower bound `c` for the distances `d`, then every tour has value at least
`c`. -/
def LasserreBoundSound : Prop :=
  ∀ {V : Type u} [Fintype V] (n D : ℕ) (d : V → V → ℝ) (c : ℝ),
    IsLasserreBound n D d c → ∀ σ : V ≃ Fin n, c ≤ tourValue d σ

Lean positions_polynomial · ✅ kernel-checked · source

Statement in Lean
/-- A function of the positions of the vertices in a set `W` is a polynomial of degree at most
`|W|`. -/
theorem positions_polynomial : PositionsPolynomial

where PositionsPolynomial is (source):

/-- **Functions of the positions of few vertices are polynomials of low degree.** A function on
the tours that takes the same value on any two tours in which the vertices of `W` have the same
positions is the restriction of a polynomial of degree at most `|W|` in the variables
`x_{u,i}`. -/
def PositionsPolynomial : Prop :=
  ∀ {V : Type u} [Fintype V] [DecidableEq V] (n : ℕ) (W : Finset V) (g : (V ≃ Fin n) → ℝ),
    (∀ σ₁ σ₂ : V ≃ Fin n, (∀ w ∈ W, σ₁ w = σ₂ w) → g σ₁ = g σ₂) →
    ∃ Q : MvPolynomial (V × Fin n) ℝ, Q.totalDegree ≤ W.card ∧
      ∀ σ : V ≃ Fin n, MvPolynomial.eval (tourPoint σ) Q = g σ

Lean lasserre_optimal · ✅ kernel-checked · source

Statement in Lean
/-- A small symmetric SDP formulation of the traveling salesperson problem on `2n` vertices shows
that a sum of squares relaxation of low level is as good on `n` vertices. -/
theorem lasserre_optimal : LasserreOptimal

where LasserreOptimal is (source):

/-- **Sum of squares relaxations are optimal among symmetric SDPs.** Let `V` be a set of `n ≥ 5`
vertices and `2 ≤ k` with `2k ≤ n`. Suppose that the traveling salesperson problem on the `2n`
vertices `V × {0, 1}` has a symmetric SDP formulation within the factor `ρ`, for the alternating
group, of size `r` with `(r + 1 choose 2) < C(2n, k)`. Then for every metric instance `d` on
`V` the sum of squares relaxation of level `4k - 5` proves the lower bound `min / ρ`: it is
within the factor `ρ` on `n` vertices. -/
def LasserreOptimal : Prop :=
  ∀ {V : Type u} {F : Type v} {κ : Type w} [Fintype V] [DecidableEq V] [AddCommGroup F]
    [Module ℝ F] [Fintype κ] [MulAction (alternatingGroup (V × Fin 2)) κ] (n k : ℕ) (ρ : ℝ)
    (L : AffineSubspace ℝ F) (P : F →ᵃ[ℝ] Matrix κ κ ℝ) (p : (V × Fin 2 ≃ Fin (n * 2)) → F)
    (w : {d : V × Fin 2 → V × Fin 2 → ℝ // IsMetric d} → F →ᵃ[ℝ] ℝ)
    (r : alternatingGroup (V × Fin 2) →* (F ≃ᵃ[ℝ] F)),
    Fintype.card V = n → 5 ≤ n → 2 ≤ k → 2 * k ≤ n →
    (Fintype.card κ + 1).choose 2 < (n * 2).choose k →
    IsSymmetricTourSDP (n * 2) ρ L P p w r →
    ∀ d : V → V → ℝ, IsMetric d → IsLasserreBound n (4 * k - 5) d (tourOpt n d / ρ)

AI use. The formalization and this page were developed with Claude (Anthropic) under the author’s direction and review, on top of the shared entry Extended formulations: the core and the entry Subgroups of small index in the symmetric and alternating groups.

Acknowledgements. This research was conducted in the context of the Agentic AI in Mathematics (EF-LiOpt-3) project at the Berlin Mathematics Research Center MATH+^+ (EXC-2046/2, project ID 390685689), funded by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) under Germany’s Excellence Strategy. This work has been partially supported by OpenAI’s Academic Researchers program.

License: CC BY 4.0

Comments.

Comments are external content (GitHub Discussions, shown with giscus) and need JavaScript.

References
  1. Braun, G., Brown-Cohen, J., Huq, A., Pokutta, S., Raghavendra, P., Roy, A., Weitz, B., & Zink, D. (2017). The matching problem has no small symmetric SDP. Mathematical Programming, 165(2), 643–662. 10.1007/s10107-016-1098-z
  2. Yannakakis, M. (1991). Expressing combinatorial optimization problems by linear programs. Journal of Computer and System Sciences, 43(3), 441–466. 10.1016/0022-0000(91)90024-Y
  3. Grigoriev, D. (2001). Linear lower bound on degrees of Positivstellensatz calculus proofs for the parity. Theoretical Computer Science, 259(1–2), 613–622. 10.1016/S0304-3975(00)00157-2