1 Pancyclic graphs
A graph is a set of vertices (dots) joined by edges (lines). Here graphs are simple: no edge joins a vertex to itself, and no pair of vertices has two edges between them. The geometry of the drawing does not matter. Lines that cross do not create new vertices.
A path follows edges without repeating vertices. A graph is connected if a path joins every pair of vertices. Its connected components are the separate maximal connected pieces.
A cycle follows edges back to its starting vertex without visiting any other vertex twice. Its length is its number of edges, also its number of vertices. A graph on vertices is pancyclic if it contains a cycle of each length .
Start with one cycle through all the vertices. Such a cycle is called Hamiltonian; it ensures the graph is connected. Extra edges between its vertices are called chords. Which chords produce cycles of every shorter length?
Six-vertex graph
Select the chords. Then select a cycle length to show an example. The display identifies each missing length.
Write the smallest possible edge count as . The function measures the excess over the edges of a Hamiltonian cycle. The theorem states:
The notation means an error bounded by a fixed constant, independent of . It does not mean approximately one. It does not describe a relative error. More generally, means a quantity whose absolute size is at most a fixed constant times , for all sufficiently large . All logarithms below are base two unless written , which means the natural logarithm.
A logarithm reverses exponentiation: because . The iterated logarithm counts how many repeated logarithms take down to at most 1. Equivalently, define the towers and ; is the least with .
Iterated logarithms
Although grows slowly, it is unbounded. A cycle count alone cannot prove that the formula requires this term.
2 Binary shortcuts
First, show that the stated number of edges is sufficient. An upper bound comes from constructing one successful graph. A lower bound, the harder direction here, must constrain every successful graph.
On a large cycle, select consecutive arc segments of lengths . Add a one-edge shortcut across each segment. Each shortcut reduces the length by edges, respectively. Every integer from 0 through is a sum of a subset of these powers of two. Thus the graph represents binary notation.
Binary shortcut choices
A closing edge joins the two ends of the arc. Select the long segments that the shortcuts replace. The same graph contains every displayed choice.
The complete construction for all lengths
For , select the largest with . Name the segment endpoints . The original arc has length . Add the segment shortcuts. Add the closing edge .
The arc and its closing edge give all lengths . The arc and the other side of the original -cycle give . The maximal choice of implies . Thus at most one length lies between these intervals. If that length is missing, one chord of the original cycle supplies it.
For example, gives and intervals and . Only length 7 is missing. To supply it, connect vertices at distance 6 around the original cycle. For , gives and . Only length 3 lies below these intervals.
To supply the shorter lengths, start at . While , set . Add .
The first segments give . Because , this interval overlaps the lengths already supplied. Replace by . Repeat the procedure until it supplies triangles. The procedure uses at most further chords.
The ceiling rounds up; the floor rounds down. For , use the original cycle. When , add the chord between vertices 0 and 2. When , also add chord 0–3.
The large case uses at most segment shortcuts and one closing edge. It also uses at most one gap chord and recursive chords. The total is at most . Since and , these constructions give the explicit bound
The recursive procedure for shorter lengths suggests why the log-star term occurs. It does not prove that every construction requires this many edges.
3 Cycle space
The degree of a vertex is the number of incident edges. In a cycle, each used vertex has degree two. More generally, an even edge set selects edges so every vertex has even degree. It can be empty, contain several cycles, or have vertices of degree four. It need not be a single cycle.
Add two edge sets by symmetric difference, or XOR: an edge survives exactly when it occurs in one set but not both. At each vertex, even plus even remains even. Thus all even sets form a binary vector space, called the graph’s cycle space. Its scalars are 0 and 1 with .
Combine cycle-space vectors
Two triangles that share one vertex form a basis. Independent on/off choices generate every even set. The two triangles together form an even set, but not one simple cycle.
A cycle-space word is a binary codeword with one parity check at each vertex. XOR adds valid codewords and preserves every parity check. A basis is a list of independent vectors that generates the space uniquely. A space with binary basis vectors has exactly elements. Here is the cycle rank:
Proof of the dimension formula
A tree is a connected graph without any cycle; a forest is a graph without cycles, possibly disconnected. Choose a spanning forest: within each connected component, keep a tree reaching every vertex. If there are vertices and components, it has edges.
Each remaining edge forms a unique cycle through the forest. These fundamental cycles are independent because each has its own non-forest edge. They generate every even set: XOR removes its non-forest edges and leaves an even set inside a forest. A forest with an edge has a leaf, a vertex of degree one, so the remaining even set must be empty. There are fundamental cycles. This proves the formula.
A pancyclic graph is connected. With edges, its rank is . It requires at least distinct simple cycles, one for each required length. Each cycle is a nonzero cycle-space word. Thus
This is the classical counting lower bound. It gives the term , but not the additional term .
4 Normalized length capacity
Simple cycles use only some available words. Different cycles can have the same length. The proof measures how efficiently cycles supply a consecutive interval of lengths. The number of cycles alone does not measure this efficiency.
Suppose a graph of actual rank contains lengths 3 through . Its normalized length capacity is . Define as the supremum (least upper bound) of this quantity over graphs whose actual rank is at least .
The denominator always uses the graph’s actual rank, not the cutoff . A higher cutoff excludes candidates, so cannot increase. Disconnected realizers can be connected by bridges: a bridge joins components and creates no cycle, preserving both rank and the existing lengths.
The goal is for one fixed constant . Only a slowly decreasing fraction of binary capacity can supply a complete interval of lengths.
5 Witness extraction
Inside a graph that already contains a long consecutive interval, build a witness : a union of selected cycles. Start with the empty set. Find the least length that does not represent. Select a cycle of that length from the host graph. Add its edges. At the first rank , stop.
If the old union contained the new cycle, it would already contain that length. Thus the new cycle is not contained in the old union. Because every old edge lies on a cycle, the added cycle increases the rank by at least one. The increase can exceed one. The proof does not assume equality.
Assign each step to the preceding rank. Assign no step to a skipped rank.
At preceding rank , fewer than lengths are present. Thus the least missing length is at most . Once , the definition of improves this bound to . The sums of these geometric bounds for the same witness give:
Here is the number of witness edges, its rank, and its number of components. Count components only on vertices that the witness uses. Exclude isolated vertices elsewhere in the host.
Check both witness bounds
There are at most selected cycles because every preceding rank is a different integer below . Their union has at most that many components. For sufficiently large , the sum of coarse length bounds over all possible preceding ranks gives:
For , use the coarse bound. For subsequent ranks, use the -bound. With , this gives . Because the stopping rank is at least , division by gives . This bound also requires sufficiently large . A rank increase can skip terms in these sums, which can only improve the bounds.
The restriction map gives a length bound
Let be the edges outside . Restrict each cycle-space word to . This is a linear map. Its kernel, the words that restrict to the empty set, is exactly the cycle space supported inside , of dimension . Thus there are possible outside words, each with exactly preimages. Therefore a uniform ambient word gives a uniform distribution on the image.
A simple cycle that meets both and leaves a forest outside. Removal of at least one edge breaks the simple cycle. For a fixed outside word, the number of inside edges ranges from 0 through . Thus at most total lengths can occur. A cycle entirely outside contributes at most one length per outside word. Cycles entirely inside contribute at most possible lengths.
Let be the probability that a uniform ambient even set restricts to a forest outside. Count these three categories. Divide the count by to obtain
These categories can count some lengths more than once, which preserves an upper bound. The two final terms are small at the scales below. If the host interval is too short to complete the extraction, its normalized capacity is already below the recurrence’s error term.
Removal of some edges from a simple cycle leaves no cycle. Such an edge set is a forest; the empty set counts, but a nonempty path counts too. A fixed outside edge set has a fixed length contribution. The witness can add only 0 through edges. Thus the same outside word gives at most total lengths.
XOR and restriction
These two triangles share a diagonal. XOR removes that shared edge. Mark one triangle as . Examine the edges that remain outside . With both basis cycles selected, the ambient word is a square, but the outside restriction is a nonempty path.
The remaining question is: how large can be?
6 The forest estimate
A forest is any edge set with no cycle, including the empty set. To select a cycle-space word uniformly, generate an independent fair bit for each basis vector. Take the XOR of the basis vectors whose bits are 1. Do not select each edge independently. That usually produces odd degrees.
Do not select a simple cycle uniformly. This probability space includes empty even sets and even sets with multiple cycles.
Random even sets
A bridge joins two triangles. Mark the left triangle as . The bridge is absent from every even word. Exactly two of the four words leave a forest outside .
A restriction need not have even degrees. For a square with diagonal 0–2, let be triangle 0–1–2. The restriction of the square word to the complement is path 2–3–0, a nonempty forest. Thus the event “forest outside” includes more words than the event “empty outside.”
Large-rank bound
For all sufficiently large ranks , let be connected and simple, and a nonempty union of cycles with at most edges and at most components. Then
The hypotheses are essential. The small example explains the definitions and the one-half threshold. It does not test this large-rank theorem. For moderate ranks, the right side can exceed 1, so the estimate gives no useful bound. The proof is asymptotic and requires a uniform sufficiently-large threshold.
Why does the bound approach one half? Parity can connect many distant regions through one shared binary choice. A proof that assumes independent cycle events would omit this dependence. The next four chapters bound the actual dependence.
7 Cut correlations
A region here is the induced graph on a vertex set: retain all edges whose two endpoints lie inside. Its cut consists of edges with just one endpoint inside. A zero-cut event means the random even set selects none of those boundary edges.
For disjoint connected regions and , contract each region to one vertex. Contraction preserves the relevant projected cycle-space law. Define their links to be the direct edges between them plus the components left after deleting them that touch both. If there are links, rank subtraction gives this exact identity:
The notation describes the selected boundary edges. The original graph can still have a nonempty cut. The ratio measures correlation: 1 is independence, above 1 means simultaneous occurrence is more likely than the product predicts. With one link, the ratio is 1; with two links, it is 2; with three links, it is 4. Pairs with at least three links are called exceptional.
Parallel links
Each route has its own middle vertex. Examine every even word. As the number of links increases, observe the dependence between the two boundary events.
A bound on disjoint exceptional partners
Fix a region with cut size . After contraction, append its incident edges as terminal leaves to a spanning forest of the rest. Remove branches that contain no terminal. Three or more links to another contracted region require a branching point in this terminal forest. A forest with only terminal leaves has at most such branching points. Thus a vertex-disjoint family of exceptional partners has size at most .
Take disjoint connected cyclic regions, each with cut size at most . The event “zero cut and nonempty inner even set” guarantees a cycle and has probability at least . When the cuts are zero, inner even sets in distinct regions are independent. Their cuts cause the dependence between the full events. The exceptional-partner bound and the second-moment inequality from chapter 10 give
The proof uses this small-cut estimate twice. First, it removes short cycles. Then it limits cyclic links between retained cycles.
8 Graph reduction
Assume, for contradiction, that the forest probability exceeds . Here , , and . Write for the excess above one half. The following steps contradict this assumption.
- Split high-degree vertices. Replace a high-degree vertex with a small tree whose new vertices have degree at most three. Contraction of the tree reverses this operation and gives a bijection of cycle spaces. Keep the incidences of together. Mark the corresponding connected pieces. The marked set has at most vertices and at most components.
- Remove leaves and degree-two paths. Remove unmarked leaves. Their edge is always absent from an even set. Replace unmarked degree-two paths with single edges. Evenness requires the same bit on every edge of such a path. Do not remove a marked vertex. This can introduce loops or parallel edges; the auxiliary object is a multigraph, even though the original problem concerns simple graphs.
- Check the preserved properties. The resulting connected multigraph has the same rank and degree at most three. Every unmarked vertex has degree exactly three. Such vertices are called cubic. The probability of a forest outside is at least the original outside probability. Thus an upper bound for the transformed event proves the required upper bound for the original event.
Here and count vertices in those graphs; for a cycle , will count its edges. The degree sum gives . Only marked vertices contribute a nonzero term, so .
Set . Suppose there are at least vertex-disjoint cycles outside , each of length at most . Their induced regions have cuts of size at most . The small-cut bound puts the forest probability sufficiently close to one half to contradict the assumption.
Otherwise choose a maximal packing of short cycles: a disjoint collection to which no further disjoint short cycle can be added. “Maximal” does not mean largest possible. Remove its vertex set . Then , and has no cycles of length .
The girth is the length of a shortest cycle. has girth greater than . It is simple because loops and pairs of parallel edges would form cycles of lengths one and two. Vertex removal reduces the degrees of adjacent vertices. Thus need not be cubic or have positive minimum degree. Its degree deficit still obeys
has about vertices and a small total deficit. The next step uses this global bound without a minimum-degree assumption.
9 Nonbacktracking walks
A walk may revisit vertices. It is nonbacktracking if it never immediately reverses the edge it just took. Make each directed edge of a state. The matrix has entry 1 for an allowed next state and 0 otherwise. Matrix multiplication counts successive choices; the trace of , the sum of its diagonal entries, counts closed nonbacktracking walks of length with a distinguished directed starting edge, including the no-backtrack condition at closure.
Walks and cycles
Examine four routes: a simple triangle, a figure-eight, an immediate edge reversal, and a reversal only at closure. The figure-eight repeats its central vertex. At closure, the end of the route meets its start. The illustration has degree four and is not the proof’s retained graph . Only the triangle is a simple cycle. The figure-eight shows why the matrix walk count requires a correction.
Near degree three, each incoming edge permits almost two forward choices. This suggests growth near . The proof establishes this growth despite the degree deficit.
The spectral argument and its definitions
The adjacency matrix has when and are adjacent. The diagonal degree matrix records each vertex’s degree. is the identity matrix. Study the symmetric matrix
An eigenvector is a nonzero vector whose direction a matrix preserves; its multiplying factor is an eigenvalue. The smallest eigenvalue of the real symmetric varies continuously with . At the matrix is positive semidefinite, meaning every quadratic form is nonnegative: .
The matrix is called the graph Laplacian. Its quadratic form is , a sum of squares. Because degrees are at most three, the diagonal entries of are nonnegative. Thus both terms are positive semidefinite. Here means the transpose of a column vector, turning it into a row.
The quadratic form on the all-ones vector is zero at
Thus the smallest eigenvalue is nonpositive there. It reaches zero at some value no greater than 2. A null vector of gives the nonzero -eigenvector
Thus has a real eigenvalue close to 2.
For a nonreal eigenvalue of , the reverse construction gives a nonzero complex vector with . Multiplication by its conjugate transpose gives a quadratic equation with real coefficients:
Its roots are and its complex conjugate. Their product is . Thus nonreal eigenvalues of have magnitude at most . Even powers of real eigenvalues are nonnegative. Therefore even prevents sign cancellation from real eigenvalues and bounds the remaining complex contribution:
Let . Sum the normalized traces through length , with weight . A simple undirected cycle of length occurs times in the trace, once for each start and orientation. This divisor removes the repeated count.
A closed walk can repeat vertices. High girth limits these repetitions. Set . Between fixed endpoints, at most one nonbacktracking path has length . Two such paths would create a cycle of length at most .
Branching-count bounds then limit long returns. If counts nonbacktracking walks of length between fixed endpoints and , the following count applies. There are at most prefixes and at most one length- suffix to . Therefore .
The walk count gives simple cycles
A nonsimple cyclically nonbacktracking walk contains a proper simple cycle. Encode the walk with that cycle, an oriented start, its complementary nonbacktracking walk, and the original root. The complement must be longer than . Girth bounds the number of such complements. Thus
The correction tends to zero. The sum over even lengths from about to gives . The same lower bound holds for . Here means a quantity tending to zero as tends to infinity, uniformly over graphs satisfying the hypotheses.
The trace counts closed routes without a list of every cycle. High girth bounds the routes that revisit vertices. After this error is subtracted, has many simple cycles in the weighted sense . The weight accounts for the lower selection probability of longer cycles. Large total weight alone is insufficient because a small fraction of random words could contain all these cycles. The next chapter bounds this concentration of cycle events.
10 The second moment
For each retained cycle , let be the event that is a connected component of the ambient random even set. Every vertex of has ambient degree three. If both cycle edges at a vertex are selected, the third edge must be absent. Define its weight and selection probability by
alone is an even word, so the constraints have at least one solution. The requirement that its edge coordinates equal 1 imposes at most independent binary equations. Each independent equation halves the number of possible words. Thus
An indicator is 1 when its event happens and 0 otherwise. Normalize the cycle indicator as follows:
Here expectation, written , means the probability-weighted average. Let be the sum of the . is a weighted count of surviving cycles. If is positive, the outside set cannot be a forest. The normalization gives each cycle an average contribution equal to its weight, even if graph-wide constraints increase its actual selection probability. Its mean is .
A forest outside requires . For disjoint cycles, the exact cut law gives
Bound all links, including deleted regions
Classify components outside in the original . Include components outside the retained graph . At most components meet , because has at most connected components. The other components have cuts with total size at most , the available external incidences on the cycles.
Choose . At most components have larger cuts. The small-cut estimate bounds the number of cyclic small-cut components by . This uses the assumption that will give a contradiction.
A remaining forest component is a tree. If it met a deleted packed cycle, it would contain that entire cycle, which a tree cannot contain. Thus it cannot meet . These forest components lie in the high-girth graph . Ambient degree three gives . Each small-cut forest link gives a short joining path between and .
Partition each cycle into blocks of at most consecutive vertices. Two joining paths attached to the same pair of blocks would create a cycle shorter than . There are only block pairs, so
This step requires the bound on the witness’s component count. The number of marked vertices alone gives an insufficient bound.
Nonexceptional disjoint pairs contribute at most . Distinct intersecting cycles cannot both be components of the same even set, so they contribute zero.
Exceptional partners have a disjoint packing of at most members. Its union has at most vertices and meets every exceptional partner. The high-girth return estimate bounds cycle weight through each such vertex. Together with the link bound, this gives total exceptional contribution for a fixed .
The product of and tends to zero, because while . Specifically, cycle weight through one vertex is . Thus the row of exceptional pair contributions is at most . Powers of grow only polynomially in and . The negative exponential has a fixed linear margin in .
Putting diagonal terms and all pairs together yields the second moment, the average of :
The Cauchy–Schwarz inequality, applied to and the indicator of , gives
More generally, if , then
Second-moment bound
Keep fixed. Vary . The display shows the algebraic inequality, not measured graph probabilities. The bound approaches one half rather than zero because pair contributions can be twice their independent value.
The cycle-weight bound gives . Substitution into the second-moment estimate gives
For sufficiently large , this contradicts the assumption in chapter 8. Thus the forest estimate holds.
11 The recurrence
Return to the witness. At host rank , its bounds are and . These bounds satisfy the limits and , respectively. Substitute the forest estimate into the restriction count. Apply the witness’s weighted bound. The result is the proof’s recurrence, a bound at one scale in terms of an earlier scale:
The recurrence does not halve capacity exactly. The coefficient approaches one half, and the additive error approaches zero. The proof must bound these errors over all iterations.
The accumulated errors remain bounded
Choose a sufficiently large fixed . Iterate the recurrence
For ,
These denominators grow sufficiently fast that the sum of their reciprocals converges. After multiplication by the compensating factors , the additive errors also have a finite sum.
Multiply the recurrence by . The resulting sequence has multiplicative factors equal to 1 plus a summable error. Its additive errors are also summable. The products and accumulated contributions remain bounded. Thus .
The tower gains one exponential level each step: . The factor 256 adds only a bounded offset to this relation. It does not introduce a new factor in . The following comparison proves this.
Choose an ordinary tower with and . Set . If , then . Thus . Induction gives .
Conversely, and give . Hence .
For a rank between and , monotonicity gives . Also, . The fixed offset changes only the constant. Thus .
Recurrence model
This idealized model sets the error terms to zero. Each step adds an exponential level and halves capacity. The proof above justifies this pattern when the errors are present.
For a pancyclic graph, and . The capacity bound gives
The elementary cycle count also gives . Hence . Replace by . Replace by . The difference between and is bounded for . One additive constant includes all fixed losses:
The upper construction and the universal lower bound differ by a bounded number of edges. This proves the stated formula.