Class Equation

lean4-proofgroup-theoryvisualization
G=Z(G)+non-centralcl(g)|G| = |Z(G)| + \sum_{\text{non-central}} |\mathrm{cl}(g)|

Statement

Let GG be a finite group. Its elements partition into conjugacy classes cl(g)={xgx1xG}\mathrm{cl}(g) = \{xgx^{-1} \mid x \in G\}. Central elements zZ(G)z \in Z(G) form singleton classes {z}\{z\}. Collecting the rest:

G=Z(G)+cl(g)⊈Z(G)cl(g).|G| = |Z(G)| + \sum_{\mathrm{cl}(g) \not\subseteq Z(G)} |\mathrm{cl}(g)|.

By the orbit-stabilizer theorem, cl(g)=[G:CG(g)]|\mathrm{cl}(g)| = [G : C_G(g)], so every summand on the right divides G|G| — a powerful divisibility constraint.

Visualization

The class equation for S4S_4 (cycle type determines conjugacy class):

Cycle typeRepresentativeClass size[S4:CS4(g)][S_4 : C_{S_4}(g)]
141^4ee124/24=124/24 = 1 (central)
222^2(12)(34)(12)(34)324/8=324/8 = 3
2122\,1^2(12)(12)624/4=624/4 = 6
313\,1(123)(123)824/3=824/3 = 8
44(1234)(1234)624/4=624/4 = 6
S4=24=1+3+6+8+6.|S_4| = 24 = 1 + 3 + 6 + 8 + 6.

The center Z(S4)={e}Z(S_4) = \{e\} contributes only the singleton class. Every other class size divides 2424.

Proof Sketch

  1. The group GG acts on itself by conjugation: gx=gxg1g \cdot x = gxg^{-1}. The orbits are exactly the conjugacy classes.
  2. By the orbit-stabilizer theorem, cl(g)=[G:CG(g)]|\mathrm{cl}(g)| = [G : C_G(g)], where CG(g)C_G(g) is the centralizer.
  3. An element gg has cl(g)=1|\mathrm{cl}(g)| = 1 if and only if gZ(G)g \in Z(G).
  4. Partitioning the orbits into the trivial (central) and nontrivial ones and summing their sizes gives G=Z(G)+nontrivial[G:CG(g)]|G| = |Z(G)| + \sum_{\mathrm{nontrivial}} [G : C_G(g)].

Connections

The class equation is the engine behind Cauchy's Theorem (Group) (when pGp \mid |G|, the equation mod pp forces a non-central element of order pp). It also underlies the Sylow counting arguments in Sylow TheoremsSylow TheoremspkG    HG,  H=pkp^k \mid |G| \implies \exists H \leq G,\; |H| = p^kPrime-power subgroups always exist, are conjugate, and their count is constrainedRead more →, bounding Sylow subgroup counts via divisibility.

Lean4 Proof

/-- The class equation: |Z(G)| + sum of nontrivial conjugacy class sizes = |G|.
    Mathlib's `Group.nat_card_center_add_sum_card_noncenter_eq_card` gives this directly. -/
theorem class_equation (G : Type*) [Group G] [Finite G] :
    Nat.card (Subgroup.center G) +
    ∑ᶠ x  ConjClasses.noncenter G, Nat.card x.carrier = Nat.card G :=
  Group.nat_card_center_add_sum_card_noncenter_eq_card G