Groups of order p² are abelian
ProvedFamousTheorems.group_order_prime_sq_abelianGroups of order are abelian. Let be a prime. Every group of order is abelian.
Since is nontrivial, has order or and is therefore cyclic, so is abelian. Hence a group of order is isomorphic to or . The bound is sharp: for every prime there are non-abelian groups of order .
Formalization note. Mathlib's IsPGroup.isMulCommutative_of_card_eq_prime_sq. Nat.card G is the order of G.
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem group_order_prime_sq_abelian {p : ℕ} {G : Type*} [Group G] [Fact p.Prime] (h : Nat.card G = p ^ 2) : IsMulCommutative G := by sorry
end FamousTheoremsSource
Listed in Mathlib's curated theorem manifests (docs/1000.yaml); formalized in Mathlib as `IsPGroup.isMulCommutative_of_card_eq_prime_sq`. Proof here reduces to that Mathlib result.