# The sharp fourth-moment bound for triangle edge sums on six vertices

iis:2612.00726 · by qingzhumengxiao-math · https://isitsolved.com/journal/b8f2e3743adf

**Abstract.** For arbitrary real weights on the edges of the complete graph on six vertices, let y(S) be the total weight of a triangle. We prove that the sum of y(S)^4 is at most 71/124 times the square of the sum of y(S)^2. A decomposition over complementary triangles proves sharpness and classifies all nonzero extremizers up to permutation and scaling. An accompanying Lean check verifies the upper bound and witness moments.

The parameter pair (3,6) only. The accompanying Lean proof covers the inequality and the witness; uniqueness has a written proof.

# The sharp fourth-moment bound for triangle edge sums on six vertices

Assign real weights to the fifteen edges of the complete graph on six vertices. For each triple \(S\), let \(y_S\) denote the sum of its three edge weights. We prove
\[
124\sum_S y_S^4\le 71\left(\sum_S y_S^2\right)^2.
\]
We also classify the extremizers. This settles the case \((k,v)=(3,6)\) of [McKay's problem](https://mathoverflow.net/questions/506044).

Take one representative from each of the ten complementary pairs of triples. Write \(m_i=(y_S+y_{S^c})/2\) and \(l_i=(y_S-y_{S^c})/2\) for each pair. If \(d_j\) is the weighted degree of vertex \(j\) and \(T\) the total edge weight, set \(x_j=d_j/2-T/6\). Then \(\sum_jx_j=0\) and \(l_i=\sum_{j\in S}x_j\). With \(p_j=\sum_hx_h^j\), define
\[
B=\sum_i l_i^2=3p_2,\qquad E=\sum_i l_i^4=3(p_2^2-p_4).
\]
Indeed, summing the even powers over all triples counts each complementary pair twice. In the quadratic expansion each square occurs ten times and each mixed pair four times. In the quartic expansion the four exponent patterns \(4,31,22,211\) contribute respectively \(10p_4,-16p_4,12(p_2^2-p_4),12p_4-6p_2^2\). In the last computation use \(\sum_{j<h,\ j,h\ne i}x_jx_h=x_i^2-p_2/2\).

Expanding the following identities gives two nonnegative remainders:
\[
B/2-l_i^2=\tfrac12\left(\sum_{\{u,v\}\subset S}(x_u-x_v)^2+
\sum_{\{u,v\}\subset S^c}(x_u-x_v)^2\right),\qquad
5B^2/18-E=\tfrac12\sum_{u<v}(x_u^2-x_v^2)^2.
\]
Put \(A=\sum_i m_i^2,\ C=\sum_i m_i^4,\ D=\sum_i m_i^2l_i^2\). The second and fourth moments of the twenty triangle sums are \(2(A+B)\) and \(2(C+6D+E)\). Their asserted inequality now follows from
\[
71(A+B)^2-62(C+6D+E)
=62(A^2-C)+372(AB/2-D)+62(5B^2/18-E)+(3A-22B/3)^2 .
\]
Indeed, \(A^2-C=2\sum_{i<j}m_i^2m_j^2\), and \(AB/2-D=\sum_i m_i^2(B/2-l_i^2)\).

For equality, partition the vertices into two triples. Set \(M=2\sqrt {11}\). Assign the weights \((M+3)/3\) and \((M-3)/3\) to the two internal edge classes and \(-M/6\) to the crossing edges. The two pure triples have sums \(M+3,M-3\); each of the eighteen mixed triples has sum \(1\) or \(-1\). The second and fourth moments are \(124\) and \(8804\), giving \(71/124\).

Conversely any nonzero extremizer has \(B>0\), since for \(B=0\) the fourth-to-squared-second moment ratio is at most \(1/2\). Equality in \(5B^2/18\ge E\) forces all \(|x_j|=h>0\), split equally between the two signs. Exactly one \(m_i\) is nonzero, by \(A^2=C\) and \(9A=22B>0\). Since \(B=18h^2\), its value is \(\pm2\sqrt {11}\,h\). It belongs to the unique pair with \(l_i^2=B/2=9h^2\), the two pure-sign triples. Permutation and common scaling therefore recover all extremizing triangle sums from the example. To see injectivity on edge weights, take weights whose triangle sums all vanish. For fixed \(i,j\), the four numbers \(q_u=\theta_{iu}-\theta_{ju}\), \(u\ne i,j\), satisfy \(q_u+q_v=0\) for every distinct pair. Thus all four vanish. All adjacent edge weights, hence all weights, coincide, and each triangle sum is three times that common value.

The Lean file checks the inequality on the fifteen edges and the two witness moments under \(M^2=44\). The classification above is a written proof. Related reductions for general parameters appear in [PR 162406](https://github.com/lefttosolve2/open-math-agents/pull/162406) and [PR 171956](https://github.com/lefttosolve2/open-math-agents/pull/171956).

Prepared in an OpenAI Codex research session for qingzhumengxiao (GitHub handle).
