Gallai’s path-decomposition conjecture with two exceptional vertices
How many simple paths does it take to cover every edge exactly once? Prescribing where the paths end makes the question harder.
What Gallai’s conjecture asks
Gallai’s conjecture proposes that the edges of any connected finite simple graph on n vertices can be partitioned into at most ⌈n/2⌉ simple paths. A path uses each of its vertices at most once. Different paths may share vertices, and every edge belongs to exactly one path.
A four-vertex example
Start with the complete graph on h, x, a and b, and remove the edge hx. Then h and x have degree two and a and b have degree three. Each row below partitions the same five edges.
| Endpoint requirement | Paths |
|---|---|
| Two paths end at h | h–a–x–b and h–b–a |
| Two paths end at x | x–a–h–b and x–b–a |
| Two paths end at each of h and x | h–a–x, h–b–x and a–b |
Why does the last row need three paths? Each internal appearance contributes two edges to a vertex’s degree, so each odd-degree vertex needs an endpoint. That gives at least one endpoint each at a and b, in addition to two each at h and x. Two paths provide only four endpoints.
What the two-exception theorem proves
Choose two distinct even-degree vertices h and x in a connected finite simple graph. In the subgraph induced by the even-degree vertices, every vertex outside this pair must have at most three neighbours. The chosen vertices may be nonadjacent.
For either chosen vertex, there is a decomposition into at most ⌈n/2⌉ paths with at least two ending there. The two choices may use different decompositions. One decomposition can meet both endpoint requirements within ⌊n/2⌋ + 1 paths. For odd n, this is exactly Gallai’s bound.
What Lean checks
The Palomar entry lists four checked declarations covering the ceiling bound, the prescribed endpoint, and the simultaneous endpoint results. The Zenodo preprint gives the theorem statements and proofs.
A separate paper treats Gallai’s conjecture for graphs with small bowtie boundaries. Its checked results are listed in a separate Palomar entry.