Wiki
Wiki

Research notes on every problem, and a library of the papers behind them. Built from the open erdos repository.

Updated

A proof of the seven-cycle threshold asymptotic


The seven-cycle threshold theorem

Theorem. Let χS(n,e,C7)\chi_S(n,e,C_7) be the least rr for which some simple graph with nn vertices and exactly ee edges has an rr-coloring of its edges under which every seven-cycle, a cycle on seven distinct vertices, has seven distinct edge colors: the function of Problem 809, in the site formulation of 2026-09-18 recorded with the dated assessment on that page. Then

χS(n,⌊n2/4⌋+1,C7)=n28+o(n2).\chi_S(n,\lfloor n^2/4\rfloor+1,C_7) =\frac{n^2}{8}+o(n^2).

Section 4 proves the lower bound for every graph with exactly ⌊n2/4⌋+1\lfloor n^2/4\rfloor+1 edges and every such coloring of it; Section 5 gives the matching construction.

The finite argument is proved in full in joint-clique mass and palette savings. This page combines it with the graph reduction, whose detailed technical proofs are retained in homomorphic cleaning, near-regular graphs, and near-bipartite graphs. None of the unresolved stronger selection assertions in the archived research notes is needed.

1. The finite inequality

Let AA be a finite symmetric zero-one support, with loops allowed, and let positive weights wiw_i sum to one. Write

Q=12wTAw,mij=wiwj (i≠j),mii=wi2/2.Q=\tfrac12w^{\mathsf T}Aw, \qquad m_{ij}=w_iw_j\ (i\ne j),\quad m_{ii}=w_i^2/2.

All powers of AA here test existence of walks. A vertex is triangular if (A3)ii>0(A^3)_{ii}>0. An edge type is active if at least one endpoint is triangular. Two distinct active types conflict if they can be oriented as uv,xyuv,xy with

(A2)ux(A3)vy>0.(A^2)_{ux}(A^3)_{vy}>0.

Let J23J_{23} be this conflict graph, and let C=Φ(J23;m)C=\Phi(J_{23};m) be its fractional coloring cost with demands mm. Inactive edge types have zero cost.

The proved finite theorem is

Q>1/4⟹C≥Q−18+14Q−14>18.(1)\boxed{Q>1/4\quad\Longrightarrow\quad C\ge Q-\frac18+\frac14\sqrt{Q-\frac14}>\frac18.} \tag{1}

Here is the structure of its proof; the two linked pages supply all details, including boundary cases.

The sharp joint-clique theorem supplies a set KK such that all two- and three-walk relations, including the diagonals, hold on KK, and

m=w(K)≥12+Q−14.m=w(K)\ge\frac12+\sqrt{Q-\frac14}.

Put U=V∖KU=V\setminus K, u=1−mu=1-m, and c=e(U)c=e(U). Internal KK-types form a conflict clique completely joined to the cut types. Cut palettes project injectively to independent sets of the ordinary graph HH on UU, where distinct x,yx,y are adjacent when (A2)xy>0(A^2)_{xy}>0 or (A3)xy>0(A^3)_{xy}>0. For gx=w(N(x)∩K)g_x=w(N(x)\cap K), the vector gx/mg_x/m is dual-feasible for HH: an independent set has pairwise disjoint KK-neighborhoods.

The palette lemma says that if vv is a probability vector and α\alpha is a nonnegative fractional-coloring dual vector, then

∑iviαi−Φ(H;(viαi))≤14.\sum_i v_i\alpha_i-\Phi(H;(v_i\alpha_i))\le\frac14.

If HH has a clique of vv-mass p≥1/2p\ge1/2, the right side improves to p(1−p)p(1-p). The proof charges a palette with one clique vertex of dual weight aa and kk other vertices of weights bjb_j by

(1−p)2a+p2∑j1bj≥(1−p+pk)2≥k;\frac{(1-p)^2}{a}+p^2\sum_j\frac1{b_j} \ge(1-p+pk)^2\ge k;

palettes missing the clique obey p2∑j1/bj≥k−1p^2\sum_j1/b_j\ge k-1. Exact coverage converts inverse weights into the vertex masses.

Apply the lemma with vx=wx/uv_x=w_x/u and αx=gx/m\alpha_x=g_x/m. If c≤u2/4c\le u^2/4, the total saving is at most c+mu/4≤u/4c+mu/4\le u/4. Otherwise apply the joint-clique theorem inside UU, obtaining an HH-clique of mass ℓ≥u/2+c−u2/4\ell\ge u/2+\sqrt{c-u^2/4}. The saving is at most

c+muℓ(u−ℓ)≤c+mu(u22−c)≤u4.c+\frac m u\ell(u-\ell) \le c+\frac m u\left(\frac{u^2}{2}-c\right) \le\frac u4.

The last step uses m≥um\ge u and c≥u2/4c\ge u^2/4. If u=0u=0, every type is internal and C=QC=Q. Thus Q−C≤(1−m)/4Q-C\le(1-m)/4, proving (1).

2. The cleaning lemma

For every η>0\eta>0, every sufficiently large graph GG whose seven-cycles are all rainbow has a spanning subgraph HH, obtained by deleting at most ηn2\eta n^2 edges, such that:

No closed seven-edge walk in HH contains two distinct original edges of the same color.

This does not prohibit repeating the same edge occurrence in a walk. Here the sole general external input is the equitable Szemerédi regularity lemma (Szemerédi 1978; the equitable form as stated by Komlós and Simonovits 1996, Theorem 1.10), in the exact form quoted with its bibliographic identity in the cleaning note.

Choose d>0d>0, then a large minimum number of clusters, and ε≪d5,η\varepsilon\ll d^5,\eta. Delete exceptional and intracluster edges, irregular pairs, pairs of density below dd, and edges in the remaining pairs incident to a vertex atypical toward that pair. The deletion cost is O(d+ε+t0−1)n2O(d+\varepsilon+t_0^{-1})n^2.

For every retained walk of length 3≤l≤53\le l\le5 with distinct endpoints, its cluster pattern can be realized as a simple path in the original graph with the same endpoints, avoiding any prescribed bounded set. To see this even for repeated cluster types, regard all internal occurrences as separate variables. The endpoint-neighbor sets have size at least (d−ε)M(d-\varepsilon)M. Telescoping the l−2l-2 internal regular-pair factors gives at least

((d−ε)2dl−2−(l−2)ε)Ml−1\bigl((d-\varepsilon)^2d^{l-2}-(l-2)\varepsilon\bigr)M^{l-1}

walk realizations. The coefficient is positive; collisions and the forbidden set discard only O(Ml−2)O(M^{l-2}) choices.

Two disjoint marked edges in a seven-walk have complementary gaps 1+41+4 or 2+32+3. In the first case retain the actual one-edge connector and replace the four-walk by such a robust path. In the second, retain the two-path and replace the three-walk. If the two-path's midpoint equals an endpoint of a marked edge, one instead retains the resulting cross-edge and uses a four-path. For adjacent marked edges ab,acab,ac, the seven-walk supplies an odd walk from bb to cc of length at most five: inspect the orientations of the two marked occurrences and the two complementary gaps, whose lengths sum to five. Pad it to length five by backtracks and realize it avoiding aa. Each construction produces an actual seven-cycle containing both marked edges, proving the cleaning lemma. All orientation cases are written out in the cleaning page.

3. The vanishing-variance boundary

The following fact is used only to handle the case where cleaning could lose the strict Turán excess:

e(G)>⌊n2/4⌋,e(G)=n2/4+o(n2),δ(G)≥n/2−o(n)⟹r(G)≥n2/8−o(n2).(2)\begin{gathered} e(G)>\lfloor n^2/4\rfloor,\quad e(G)=n^2/4+o(n^2),\quad \delta(G)\ge n/2-o(n)\\ \Longrightarrow\quad r(G)\ge n^2/8-o(n^2). \end{gathered} \tag{2}

Its elementary proof is in the near-regular page. Briefly, if every vertex pair has a three-path avoiding any fixed set of at most ten vertices, all edges incident to a maximum-degree neighborhood, apart from its anchor, have distinct colors; there are at least n2/8−o(n2)n^2/8-o(n^2) of them. Otherwise two almost-half-sized neighborhoods A,BA,B are anticomplete. If they are disjoint, each is an almost-complete half-sized graph and its edges have distinct colors. If they intersect, minimum degree forces them to agree up to o(n)o(n) vertices, and gives an almost-complete balanced cut. The near-bipartite lemma below then applies.

For completeness, the near-bipartite lemma needs no minimum degree. Take a maximum cut, with I=o(n2)I=o(n^2) internal edges and MM missing cross edges. Strict excess gives I>MI>M, and both sides have size n/2+o(n)n/2+o(n). For fixed small ϵ>0\epsilon>0, put κ=ϵ/4\kappa=\epsilon/4. Let XX consist of vertices missing more than κn\kappa n cross neighbors; ∣X∣=ρn=o(n)|X|=\rho n=o(n). If every internal edge had fewer than (1/4−ϵ)n(1/4-\epsilon)n common cross neighbors, set

L={v:dcross(v)<(1/4−ϵ+κ)n},Z=L∪{v∉L:dmissing(v)≥n/8}.L=\{v:d_{\rm cross}(v)<(1/4-\epsilon+\kappa)n\},\qquad Z=L\cup\{v\notin L:d_{\rm missing}(v)\ge n/8\}.

Then L⊆XL\subseteq X, all internal neighbors of a vertex outside LL lie in XX, and Z⊆XZ\subseteq X meets every internal edge. Maximum-cut optimality gives internal degree at most cross degree. Consequently every z∈Zz\in Z satisfies dmissing(z)−dinternal(z)≥ϵnd_{\rm missing}(z)-d_{\rm internal}(z)\ge\epsilon n. Counting missing edges twice only when both endpoints lie in ZZ gives

I≤M+∣Z∩A∣∣Z∩B∣−ϵn∣Z∣≤M+(ρ/4−ϵ)n∣Z∣≤M,I\le M+|Z\cap A||Z\cap B|-\epsilon n|Z| \le M+(\rho/4-\epsilon)n|Z|\le M,

a contradiction.

Thus some internal edge uvuv has at least (1/4−ϵ)n(1/4-\epsilon)n common cross neighbors. Discarding XX and u,vu,v, its common neighborhood on one side and the good vertices on the other span (1/8−O(ϵ)−o(1))n2(1/8-O(\epsilon)-o(1))n^2 edges, any two of which belong to a common seven-cycle. The three explicit constructions for disjoint edges and the two shared-endpoint cases are in the near-bipartite page. Letting ϵ→0\epsilon\to0 proves the lemma and (2).

Now suppose a sequence at the target edge count has normalized degree variance tending to zero. Write

qn=e(Gn)/n2,Vn=1n∑v(d(v)/n−2qn)2→0.q_n=e(G_n)/n^2,\qquad V_n=\frac1n\sum_v(d(v)/n-2q_n)^2\to0.

Choose an→0a_n\to0, with ann→∞a_nn\to\infty and Vn=o(an3)V_n=o(a_n^3). Repeatedly delete a vertex of current degree less than N/2−annN/2-a_nn, where NN is the current order. Every deletion preserves e>⌊N2/4⌋e>\lfloor N^2/4\rfloor. Before anna_nn removals, every removed vertex had original degree at most n/2−ann/2n/2-a_nn/2. There are at most 4Vnn/an2=o(ann)4V_nn/a_n^2=o(a_nn) such vertices. Hence only o(n)o(n) vertices are removed, and (2) applies to the remainder. We conclude that a fixed positive deficit from n2/8n^2/8 is impossible when Vn→0V_n\to0.

4. A counterexample sequence would violate the finite theorem

Suppose the desired lower bound fails. Then for some fixed 0<γ<1/80<\gamma<1/8 there is an unbounded sequence with

e(Gn)=⌊n2/4⌋+1,r(Gn)≤(1/8−γ)n2.(3)e(G_n)=\lfloor n^2/4\rfloor+1, \qquad r(G_n)\le(1/8-\gamma)n^2. \tag{3}

Pass to a subsequence on which the normalized degree variance converges. By the preceding section its limit is positive, so Vn≥v>0V_n\ge v>0 along a further subsequence.

Clean with fixed η≪γv\eta\ll\gamma v, sufficiently small also relative to vv. In the retained graph HH, put

Di=dH(i)/n,qH=e(H)/n2,VH=1n∑i(Di−2qH)2.D_i=d_H(i)/n,\qquad q_H=e(H)/n^2,\qquad V_H=\frac1n\sum_i(D_i-2q_H)^2.

Deleting ηn2\eta n^2 edges changes this variance by at most 8η8\eta. Thus VH≥v/2V_H\ge v/2, while qH≥1/4−ηq_H\ge1/4-\eta. Set

zi=(Di−2qH)/n,wi=1/n+γzi.z_i=(D_i-2q_H)/n,\qquad w_i=1/n+\gamma z_i.

These weights are positive and sum to one. Since ∥z∥12≤VH\|z\|_1^2\le V_H, expansion gives

Q(w)=qH+γVH+12γ2zTAHz≥qH+(γ−γ2/2)VH>1/4.(4)\begin{aligned} Q(w) &=q_H+\gamma V_H+\tfrac12\gamma^2z^{\mathsf T}A_Hz\\ &\ge q_H+(\gamma-\gamma^2/2)V_H>1/4. \tag{4} \end{aligned}

Use the actual vertices and edges of HH as a loopless template; no coarse two-walk approximation is made. Every original color, restricted to active edge types, is independent in J23J_{23}. Indeed a two-plus-three conflict would concatenate with the two marked edges to give a forbidden closed seven-walk. Give that palette allocation equal to the maximum wiwjw_iw_j among its edges. This covers all its demands. Therefore

Φ(J23;m(w))≤∑colors cmax⁡ij of color cwiwj≤(1+γ)2r(Gn)n2≤(1+γ)2(1/8−γ)<1/8.(5)\begin{aligned} \Phi(J_{23};m(w)) &\le\sum_{\text{colors }c}\max_{ij\text{ of color }c}w_iw_j\\ &\le (1+\gamma)^2\frac{r(G_n)}{n^2}\\ &\le(1+\gamma)^2(1/8-\gamma)<1/8. \tag{5} \end{aligned}

Equations (4) and (5) contradict (1). Thus every fixed positive deficit in (3) is impossible. This proves the required asymptotic lower bound. Neither the random-blow-up construction nor the singleton-allocation equivalence is needed for this implication.

5. Matching upper bound at the exact edge count

This is the two-clique coloring of Burr, Erdős, Graham and Sós (p. 270), adjusted to the exact edge count.

For large nn, take two disjoint cliques of sizes

a=⌈n/2⌉+⌈n⌉,b=n−a.a=\lceil n/2\rceil+\lceil\sqrt n\rceil, \qquad b=n-a.

Their total number of edges is at least ⌊n2/4⌋+1\lfloor n^2/4\rfloor+1. Color the larger clique injectively and the smaller clique injectively using a subset of the same palette. Every cycle lies in one clique, so every seven-cycle is rainbow. Delete edges to leave exactly the required number. The number of colors is at most

(a2)=n28+O(n3/2)=n28+o(n2).\binom a2=\frac{n^2}{8}+O(n^{3/2}) =\frac{n^2}{8}+o(n^2).

Together with the lower bound, this proves the theorem.

Checks and scope

Standing. This proof is author-recorded. It is the k=3k=3 branch of native claim L17, whose Lean statement is accepted at tier 2 (on 2026-09-25, for the Lean sources and the statement as they stood on 2026-09-25T03:40:15Z, first carried by the default branch on 2026-09-28) after its independent whole-statement fidelity audit; no independent whole-conclusion review of this prose argument has been commissioned or filed. Its one external premise is the equitable Szemerédi regularity lemma cited in Section 2, used only in the cleaning lemma; everything else is proved in the six notes. The k≥4k\ge4 branch of L17 rests on the theorem of Bucić, Chen and Ma, formalized separately, and is not part of this argument. Limitations: the tier belongs to the Lean claim, whose English statement (the claim card's statement together with the Problem 809 statement block) was audited, not the theorem above, so this prose proof carries no tier of its own. This paragraph is the one current record of the prose proof's standing and is edited in place.

Priority. Asad Shahab's independent proof claim (the site's proof claim 358, filed before the project's 367 on 27 September 2026; preprint arXiv:2609.38286, 29 September 2026), a proof of the seven-cycle case with a Lean development whose headline theorem covers every odd cycle C2k+1C_{2k+1} with k≥3k\ge3, precedes this one; this corpus built that development at its pinned commit and audited its statement on 2026-10-08. The argument here is the project's own in authorship and is not claimed as first. The problem page records the dated check.

The formalization guide names the Lean modules assembling the seven-cycle branch. The transfer retains original endpoints and original colors; it never replaces the requirement that every cycle is rainbow by the existence of one rainbow cycle. All statements are asymptotic along arbitrary unbounded sequences; no bounded search is used in the proof.

The stronger all-edge formula of Bucić, Chen and Ma, Theorem 1.2 (BCM) for C7C_7 remains false, as shown in the dense-curve obstruction. The present theorem does not assert that formula. Conlon–Lee's reflection method was considered in the reflection-norm note but is not an input to this proof.