Semidirect Product

lean4-proofgroup-theoryvisualization
NφG,(n1,g1)(n2,g2)=(n1φ(g1)(n2),g1g2)N \rtimes_{\varphi} G,\quad (n_1,g_1)(n_2,g_2) = (n_1\varphi(g_1)(n_2),\, g_1 g_2)

Statement

Given groups NN and GG and a homomorphism φ:GAut(N)\varphi : G \to \mathrm{Aut}(N), the semidirect product NφGN \rtimes_\varphi G is the Cartesian product N×GN \times G with multiplication

(n1,g1)(n2,g2)=(n1φ(g1)(n2),  g1g2).(n_1, g_1) \cdot (n_2, g_2) = \bigl(n_1 \cdot \varphi(g_1)(n_2),\; g_1 g_2\bigr).

The neutral element is (eN,eG)(e_N, e_G) and (n,g)1=(φ(g1)(n1),g1)(n, g)^{-1} = (\varphi(g^{-1})(n^{-1}), g^{-1}).

When φ\varphi is trivial (φ(g)=id\varphi(g) = \mathrm{id} for all gg), this reduces to the direct product N×GN \times G.

Universal property. NφGN \rtimes_\varphi G is the unique (up to isomorphism) group HH containing NN as a normal subgroup and GG as a subgroup, with H=NGH = NG, NG={e}N \cap G = \{e\}, and conjugation by gg on NN given by φ(g)\varphi(g).

Visualization

Dihedral group D3=Z/3Z/2D_3 = \mathbb{Z}/3 \rtimes \mathbb{Z}/2.

Let N=Z/3={0,1,2}N = \mathbb{Z}/3 = \{0,1,2\} (rotations), G=Z/2={0,1}G = \mathbb{Z}/2 = \{0,1\} (reflections), and φ(1)(k)=k(mod3)\varphi(1)(k) = -k \pmod 3 (the nontrivial automorphism flips the rotation direction).

Elements: (0,0),(1,0),(2,0),(0,1),(1,1),(2,1)(0,0), (1,0), (2,0), (0,1), (1,1), (2,1) — 6 total.

Multiplication table for selected products:

(a,s)(b,t)(a,s) \cdot (b,t)ResultPlain name
(1,0)(1,0)(1,0)\cdot(1,0)(1+1,0)=(2,0)(1+1,0)=(2,0)r2r^2
(1,0)(0,1)(1,0)\cdot(0,1)(1,1)(1,1)rsrs
(0,1)(1,0)(0,1)\cdot(1,0)(0+φ(1)(1),1)=(1,1)=(2,1)(0+\varphi(1)(1),1)=(-1,1)=(2,1)sr1=sr2sr^{-1}=sr^2
(0,1)(0,1)(0,1)\cdot(0,1)(φ(1)(0),0)=(0,0)(\varphi(1)(0),0)=(0,0)ee

The relation srs1=r1srs^{-1} = r^{-1} (i.e., φ(1)(r)=r1\varphi(1)(r) = r^{-1}) is built into the multiplication — this is exactly the dihedral relation.

Proof Sketch

  1. Associativity. Direct calculation: (n1,g1)((n2,g2)(n3,g3))=((n1,g1)(n2,g2))(n3,g3)(n_1,g_1)\bigl((n_2,g_2)(n_3,g_3)\bigr) = \bigl((n_1,g_1)(n_2,g_2)\bigr)(n_3,g_3) using that φ\varphi is a homomorphism.
  2. Inverses. (n,g)1=(φ(g1)(n1),g1)(n,g)^{-1} = (\varphi(g^{-1})(n^{-1}), g^{-1}): check (n,g)(φ(g1)(n1),g1)=(eN,eG)(n,g)\cdot(\varphi(g^{-1})(n^{-1}),g^{-1}) = (e_N, e_G) using φ(g)φ(g1)=id\varphi(g)\circ\varphi(g^{-1}) = \mathrm{id}.
  3. Normal subgroup. N={(n,eG)}N = \{(n, e_G)\} is normal: (eN,g)(n,eG)(eN,g)1=(φ(g)(n),eG)N(e_N,g)(n,e_G)(e_N,g)^{-1} = (\varphi(g)(n), e_G) \in N.
  4. Complement. G={(eN,g)}G = \{(e_N,g)\} is a subgroup isomorphic to GG, NG={(eN,eG)}N \cap G = \{(e_N,e_G)\}, and NG=NGNG = N \rtimes G.

Connections

The semidirect product unifies many familiar constructions: dihedral groups (Z/nZ/2\mathbb{Z}/n \rtimes \mathbb{Z}/2), affine groups, and Frobenius groups. It gives the splitting of short exact sequences 1NHG11 \to N \to H \to G \to 1 when a section GHG \to H exists — a consequence of the First Isomorphism TheoremFirst Isomorphism TheoremG/ker(f)im(f)G / \ker(f) \cong \operatorname{im}(f)The image of a homomorphism is isomorphic to the domain modulo the kernelRead more →. The structure also appears 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 →: when GG has a normal Sylow pp-subgroup PP, any complement QQ makes GPQG \cong P \rtimes Q.

Lean4 Proof

/-- The semidirect product multiplication law.
    Mathlib: `SemidirectProduct` in `Mathlib.GroupTheory.SemidirectProduct`.
    N ⋊[φ] G has carrier N × G with the twisted product. -/
theorem semidirect_mul_law {N G : Type*} [Group N] [Group G]
    (φ : G * MulAut N) (a b : N ⋊[φ] G) :
    a * b = a.left * φ a.right b.left, a.right * b.right :=
  SemidirectProduct.mul_def a b

/-- The natural embedding of N into N ⋊[φ] G is injective. -/
theorem semidirect_inl_injective {N G : Type*} [Group N] [Group G]
    (φ : G * MulAut N) : Function.Injective (SemidirectProduct.inl (φ := φ)) :=
  SemidirectProduct.inl_injective