For a finite simple graph on vertices with edges and no graph cycle shorter than , the coefficient of in its chromatic polynomial is for . In the chromatic polynomial inclusion-exclusion formula, an edge subset containing a graph cycle of length at least has . Thus every contribution to in this range is a forest, with exactly edges. Conversely, all -edge subsets are forests, so precisely terms contribute, each with sign .
Write and . For , let denote the number of connected components of a graph of the spanning subgraph , including isolated vertices. The inclusion-exclusion principle, applied to the unwanted events that the two endpoints of an edge receive the same colour, gives the chromatic polynomial inclusion-exclusion formulaTo justify the exponent, imposing equal colours across all edges in forces a single colour on each connected component of a graph of , with independent choices between its connected components of a graph. Thus the corresponding count at colours is . Equality for all positive integers proves the polynomial identity.
Fix an index in the stated range. A subset contributes to the coefficient of exactly when . If contains a graph cycle of length , the hypothesis gives . All its vertices lie in one connected component of a graph. For any connected component of a graph , its contribution to is , soThis contradicts . Therefore every contributing is a forest. The forest identity then gives .
Conversely, every -edge subset is a forest, since a graph cycle in it would have at most edges. It therefore has and contributes exactly . There are such subsets, by the definition of a binomial coefficient. ConsequentlyHere the coefficient notation is understood within the defined indices ; if the displayed range is extended past , the coefficients beyond the constant term can be set to zero. For a forest, , so the binomial coefficients there are also zero. The key reason girth determines initial chromatic coefficients is that a graph cycle can affect only exponents whose loss of connected components of a graph is at least .