Polya Enumeration
Statement
Let be a finite group acting on positions via permutations. Each group element decomposes into cycles of length . The cycle index of is the polynomial:
Polya's Enumeration Theorem. If the set of colors has a weight function , then the generating function for colorings up to -equivalence, weighted by total weight, is obtained by substituting into .
For the unweighted count with colors, set each : the number of distinct colorings is .
Visualization
2-color necklaces of length 4 under .
Cycle structures of on 4 positions:
| Element | Cycle type | ||
|---|---|---|---|
| (identity) | |||
| (rotate by 90) | |||
| (rotate by 180) | |||
| (rotate by 270) |
Cycle index: .
Set (two colors) for all :
The 6 distinct 2-color necklaces of length 4:
RRRR RRRB RRBR RRBB RBRB BBBB
Meaning: all-red, one-blue, two-adjacent-blue (= RRRB), two-opposite-blue (= RBRB rotations), three-blue (= RRRB reversed), all-blue.
Expanded list with canonical representative per orbit:
| Orbit | Representative | Size |
|---|---|---|
| RRRR | RRRR | 1 |
| 1 blue bead | BRRR | 4 |
| 2 adjacent blue | BBRR | 4 |
| 2 opposite blue | BRBR | 2 |
| 3 blue beads | BBBR | 4 |
| BBBB | BBBB | 1 |
Total colorings: . Orbits: 6. Check!
Proof Sketch
- Start from Burnside. The number of orbits is .
- Fixed colorings. A coloring is fixed by permutation iff is constant on each cycle of .
- Count fixed colorings. With colors and having cycles, the number of fixed colorings is .
- Substitute. Setting in the cycle index gives exactly where is the total number of cycles.
- Weighted version. Replace each by to track color weights.
Connections
Polya enumeration refines Orbit Counting ApplicationsOrbit Counting ApplicationsNecklace, bracelet, and coloring counting via Burnside's lemma — concrete applications of the orbit-counting formula.Read more → into a generating function. It is related to Catalan NumbersCatalan NumbersThe ubiquitous sequence counting balanced parentheses, binary trees, and Dyck pathsRead more → (necklace-like structures) and ultimately connects to Inclusion-Exclusion PrincipleInclusion-Exclusion PrincipleThe size of a union is the alternating sum of intersection sizesRead more → for orbit-size computations. The cycle index is a character of the symmetric group representation theory.
Lean4 Proof
/-- Direct computation: Polya's formula for 2-color necklaces of length 4
under C_4 gives 6 distinct necklaces.
(1/4)(2^4 + 2^1 + 2^2 + 2^1) = (16 + 2 + 4 + 2) / 4 = 24 / 4 = 6. -/
theorem polya_c4_two_colors :
(16 + 2 + 4 + 2) / 4 = 6 := by decide
/-- The 6 orbits sum back to 2^4 = 16 colorings. -/
theorem polya_orbit_sum :
1 + 4 + 4 + 2 + 4 + 1 = (2 : ℕ) ^ 4 := by decideReferenced by
- Orbit Counting ApplicationsCombinatorics