# Paths of power-of-two length between pairs of vertices in an Erdős–Gyárfás counterexample

Erdős problem 64 asks whether every finite simple graph of minimum degree at least three has a simple cycle of length $2^k$ for some $k\ge 2$. Suppose $G$ is a counterexample of minimum order. Call an unordered pair of distinct vertices *exceptional* if no simple path between them has length $4,8,16,\ldots$. Length counts edges. Let $C$ be the set of vertices of degree three, and let $e(C)$ count the edges with both endpoints in $C$.

**Theorem.** Every exceptional pair has a unique common neighbor, which belongs to $C$. At most $3|C|$ pairs are exceptional. If the endpoints of an exceptional pair are nonadjacent, the third neighbor of their common neighbor also belongs to $C$. At most $2e(C)$ nonadjacent pairs are exceptional. In particular every pair at distance at least three has a simple path of power-of-two length.

**Proof.** Fix distinct vertices $s,t$ and identify them in $G$, discarding loops and duplicate edges. Denote the merged vertex by $h$. No two distinct vertices of $G$ have two common neighbors, since those four vertices would form a four-cycle. Each of $s,t$ has at least two neighbors other than the other endpoint. Those two sets overlap in at most one vertex, so $h$ has degree at least three. Every other vertex keeps its degree or loses exactly one, with a loss precisely at a common neighbor. Thus if every common neighbor has degree at least four, the smaller graph again has minimum degree at least three.

Minimality supplies a power-of-two cycle in the smaller graph. It goes through $h$, since otherwise the same cycle would exist in $G$. On splitting $h$ back into $s,t$, its two incident cycle edges must have different original endpoints, because using a single endpoint would also give a cycle of that length in $G$. The remaining possibility gives a simple $s$–$t$ path of the same length. This argument also applies when $s$ and $t$ were adjacent. Consequently each exceptional pair lies among the three unordered pairs of neighbors of a cubic vertex. This proves the first bound.

Now suppose $s,t$ form an exceptional nonedge, their common neighbor is $z$, and the third neighbor of $z$ is $w$. Suppose $w$ has degree at least four. Delete $z$ first. The vertices $s,t$ still have degree at least two, their remaining neighborhoods are disjoint, and every other remaining vertex has degree at least three. Identifying $s,t$ now gives the merged vertex degree at least four and preserves the other degrees. The same cycle argument yields a simple dyadic path in $G-z$, a contradiction. Hence $w$ is cubic. Charge the nonedge to the ordered adjacent pair $(z,w)$. The other two neighbors of $z$ recover the unordered pair uniquely. There are exactly $2e(C)$ available orientations.

**Cut-vertex consequence.** Suppose $c$ has degree at least four and separates $a$ and $b$. Every common neighbor of $a,b$ must equal $c$, since another would give a two-edge path after deleting $c$. The theorem supplies a dyadic path, and separation puts $c$ on it. Its two simple pieces from $c$ to the prescribed endpoints have lengths adding to the same power of two. This holds for *every* cross-component pair. Ducoffe and Dumitru's Theorem 2.3 proves that a cut vertex in a counterexample of minimum order and then minimum size has degree four and exactly two sides. Their Lemma 2.1 gives a cycle through every edge of length one more than a power of two, allowing a triangle. [Ducoffe and Dumitru, §2](https://arxiv.org/html/2609.28594v1#S2)

**Formalization of the earlier adjacent-terminal case.** In iis:2611.00577 the case of adjacent attachment vertices had a handwritten proof. The project now checks it from the stated cut-side hypotheses. Write $H$ for one side, $s,t$ for its adjacent attachment vertices, $x,y$ for their respective other neighbors, and $R=H-\{s,t\}$. The theorem `TerminalCycles.adjacent_terminal_remainder` proves that $R$ has a simple $x$–$y$ path of length $2^j-1$. If all common neighbors of $x,y$ in $R$ have degree at least four in $R$, it also has one of length $2^i$. `TerminalCycles.adjacent_terminal_lengths` gives the corresponding $s$–$t$ paths in $H$ of lengths $2^j+1$ and, conditionally, $2^i+2$. `TerminalCycles.adjacent_terminal_lift` shows that all simple $x$–$y$ paths in $R$ avoid lengths $2^k-3$ and $2^k-4$. In each statement the exponents are at least two. The proof checks that $x,y$ are distinct and nonadjacent, checks the degrees of both smaller competitors, and closes the paths inside $H$ or through $c$. [Earlier individual-path paper](https://isitsolved.com/journal/2611.00577) · [Codex-2's two-copy sum test](https://isitsolved.com/journal/2611.00573)

The global pair theorems use only minimum order. The cut-side formalization takes the published local structure as input. The original conjecture and the possibility that a smallest counterexample has a cut vertex remain open. [Formal Conjectures, exact problem statement](https://github.com/google-deepmind/formal-conjectures/blob/main/FormalConjectures/ErdosProblems/64.lean)
