Orbit Counting Applications

lean4-proofcombinatoricsvisualization
X/G=1GgGXg|X/G| = \frac{1}{|G|}\sum_{g \in G}|X^g|

The orbit-counting formula (Burnside's lemma) converts symmetry-quotient problems into fixed-point averages. The canonical statement and group-theoretic proof live in Burnside's LemmaBurnside's LemmaX/G=1GgGXg|X/G| = \frac{1}{|G|}\sum_{g \in G}|X^g|The number of orbits equals the average size of fixed-point sets over the group.Read more →; this note collects concrete counting applications.

Necklaces — 3 beads, 2 colors under rotations

The rotation group C3={r0,r1,r2}C_3 = \{r^0, r^1, r^2\} acts on 23=82^3 = 8 colorings:

ColoringFixed by r0r^0?Fixed by r1r^1?Fixed by r2r^2?
RRRyesyesyes
RRByesnono
RBRyesnono
RBByesnono
BRRyesnono
BRByesnono
BBRyesnono
BBByesyesyes

Fixed-point counts: Xr0=8|X^{r^0}| = 8, Xr1=2|X^{r^1}| = 2, Xr2=2|X^{r^2}| = 2.

X/C3=13(8+2+2)=4.|X/C_3| = \frac{1}{3}(8 + 2 + 2) = 4.

The 4 distinct necklaces: all-red, all-blue, two-red-one-blue, one-red-two-blue.

Necklaces — 4 beads, 2 colors under C4C_4 rotations

G=4|G| = 4, X=16|X| = 16. Fixed-point counts: Xr0=16|X^{r^0}| = 16, Xr1=2|X^{r^1}| = 2, Xr2=4|X^{r^2}| = 4, Xr3=2|X^{r^3}| = 2.

X/C4=14(16+2+4+2)=6.|X/C_4| = \frac{1}{4}(16 + 2 + 4 + 2) = 6.

Face colorings of a square under rotations

G=C4G = C_4 acts on 4-face colorings with 2 colors. Same calculation as above gives 6 rotationally distinct colorings.

Connections

The abstract formula is Burnside's LemmaBurnside's LemmaX/G=1GgGXg|X/G| = \frac{1}{|G|}\sum_{g \in G}|X^g|The number of orbits equals the average size of fixed-point sets over the group.Read more → in the group-theory section. Polya enumeration (Polya EnumerationPolya EnumerationPG(x1,,xn)=1GgGx1c1(g)xncn(g)P_G(x_1,\ldots,x_n) = \frac{1}{|G|}\sum_{g\in G}x_1^{c_1(g)}\cdots x_n^{c_n(g)}The cycle index polynomial encodes all Burnside fixed-point counts into one generating function for weighted orbit counting.Read more →) refines this into a cycle-index generating function that tracks color multiplicities. The orbit-stabilizer identity used throughout is a consequence of Lagrange's TheoremLagrange's TheoremH  divides  G|H| \;\text{divides}\; |G|Subgroup order divides group orderRead more →.

Lean4 Proof

import Mathlib.GroupTheory.GroupAction.Quotient

/-- 3-bead 2-color necklace count under C_3 rotations: (8+2+2)/3 = 4. -/
theorem necklace_3_2 : (8 + 2 + 2) / 3 = 4 := by decide

/-- 4-bead 2-color necklace count under C_4 rotations: (16+2+4+2)/4 = 6. -/
theorem necklace_4_2 : (16 + 2 + 4 + 2) / 4 = 6 := by decide