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 be the least for which some simple graph with vertices and exactly edges has an -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
Section 4 proves the lower bound for every graph with exactly 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 be a finite symmetric zero-one support, with loops allowed, and let positive weights sum to one. Write
All powers of here test existence of walks. A vertex is triangular if . An edge type is active if at least one endpoint is triangular. Two distinct active types conflict if they can be oriented as with
Let be this conflict graph, and let be its fractional coloring cost with demands . Inactive edge types have zero cost.
The proved finite theorem is
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 such that all two- and three-walk relations, including the diagonals, hold on , and
Put , , and . Internal -types form a conflict clique completely joined to the cut types. Cut palettes project injectively to independent sets of the ordinary graph on , where distinct are adjacent when or . For , the vector is dual-feasible for : an independent set has pairwise disjoint -neighborhoods.
The palette lemma says that if is a probability vector and is a nonnegative fractional-coloring dual vector, then
If has a clique of -mass , the right side improves to . The proof charges a palette with one clique vertex of dual weight and other vertices of weights by
palettes missing the clique obey . Exact coverage converts inverse weights into the vertex masses.
Apply the lemma with and . If , the total saving is at most . Otherwise apply the joint-clique theorem inside , obtaining an -clique of mass . The saving is at most
The last step uses and . If , every type is internal and . Thus , proving (1).
2. The cleaning lemma
For every , every sufficiently large graph whose seven-cycles are all rainbow has a spanning subgraph , obtained by deleting at most edges, such that:
No closed seven-edge walk in 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 , then a large minimum number of clusters, and . Delete exceptional and intracluster edges, irregular pairs, pairs of density below , and edges in the remaining pairs incident to a vertex atypical toward that pair. The deletion cost is .
For every retained walk of length 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 . Telescoping the internal regular-pair factors gives at least
walk realizations. The coefficient is positive; collisions and the forbidden set discard only choices.
Two disjoint marked edges in a seven-walk have complementary gaps or . 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 , the seven-walk supplies an odd walk from to 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 . 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:
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 of them. Otherwise two almost-half-sized neighborhoods 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 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 internal edges and missing cross edges. Strict excess gives , and both sides have size . For fixed small , put . Let consist of vertices missing more than cross neighbors; . If every internal edge had fewer than common cross neighbors, set
Then , all internal neighbors of a vertex outside lie in , and meets every internal edge. Maximum-cut optimality gives internal degree at most cross degree. Consequently every satisfies . Counting missing edges twice only when both endpoints lie in gives
a contradiction.
Thus some internal edge has at least common cross neighbors. Discarding and , its common neighborhood on one side and the good vertices on the other span 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 proves the lemma and (2).
Now suppose a sequence at the target edge count has normalized degree variance tending to zero. Write
Choose , with and . Repeatedly delete a vertex of current degree less than , where is the current order. Every deletion preserves . Before removals, every removed vertex had original degree at most . There are at most such vertices. Hence only vertices are removed, and (2) applies to the remainder. We conclude that a fixed positive deficit from is impossible when .
4. A counterexample sequence would violate the finite theorem
Suppose the desired lower bound fails. Then for some fixed there is an unbounded sequence with
Pass to a subsequence on which the normalized degree variance converges. By the preceding section its limit is positive, so along a further subsequence.
Clean with fixed , sufficiently small also relative to . In the retained graph , put
Deleting edges changes this variance by at most . Thus , while . Set
These weights are positive and sum to one. Since , expansion gives
Use the actual vertices and edges of as a loopless template; no coarse two-walk approximation is made. Every original color, restricted to active edge types, is independent in . 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 among its edges. This covers all its demands. Therefore
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 , take two disjoint cliques of sizes
Their total number of edges is at least . 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
Together with the lower bound, this proves the theorem.
Checks and scope
Standing. This proof is author-recorded. It is the 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 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 with , 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 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.