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 .
For a nonnegative integer , the chromatic polynomial counts the proper vertex colourings of using a fixed set of colours. In a proper colouring, the endpoints of every edge have different colours. The counting function extends uniquely to a polynomial, as follows either from the recurrence below with the edgeless base case or from inclusion-exclusion.
Let . Every proper colouring of falls into exactly one of two classes. If and have different colours, it is a proper colouring of . If they have the same colour, identifying and gives a proper colouring of the contracted graph , and this correspondence is bijective. Parallel edges produced by contraction impose identical conditions and can be suppressed. Hence, at every nonnegative integer ,
Since polynomials agreeing at infinitely many values agree identically, the deletion-contraction recurrence for the chromatic polynomial is
Throughout, the graphs are finite and simple, as in the usual convention for these statements.
An inclusion-exclusion proof gives the coefficients directly. For an edge set , let be the number of connected components of the spanning graph , including isolated vertices. Requiring the two endpoints of every edge of to have the same colour leaves exactly colourings. Thus the chromatic polynomial inclusion-exclusion formula is
Consider a term with . If contained a cycle, that cycle would have length at least . The component containing it would have at least vertices and hence contribute at least to , a contradiction. Therefore is a forest. For a forest, , so necessarily .
Conversely, every -element edge set with is a forest, since a cycle would require at least edges. Thus exactly edge sets contribute to the coefficient of , and they all have sign . Consequently
This proves girth determines initial chromatic coefficients without requiring the suggested double induction.
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 formula
To 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 , so
This 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. Consequently
Here 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 .