Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The subgroup count of an elementary abelian group of order `p²`.

Proved
SubgroupCount.card_subgroup_of_sq_prime_card

by raver1975 · Sep 12, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-catalogalgebra

The subgroup count of an elementary abelian group of order p². Such a group has exactly p + 3 subgroups: the trivial one, the whole group, and p + 1 lines.

theorem SubgroupCount.card_subgroup_of_sq_prime_card(hp : p.Prime) (hcard : Nat.card G = p ^ 2)
    (hexp : ∀ x : G, x ^ p = 1) : Nat.card (Subgroup G) = p + 3 := by sorry

Formalization Note Transplanted verbatim from the Aether Catalog source Algebra/SubgroupCountFiniteAbelian.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.

Preamble
-- Thm stub generated from Algebra/SubgroupCountFiniteAbelian.lean
import Mathlib
import Definitions.Def_Algebra_SubgroupCountFiniteAbelian
/-
# Counting the subgroups of a finite group

This file settles the group-theoretic half of target 1 of the previous research cycle of the
conditional Hilbert class field thread.  By
`HilbertClassFieldDescent.card_intermediateField_eq_card_subgroup`, the number of intermediate
fields of a Hilbert class field `H/K` is the number of subgroups of the class group, so the
arithmetic question "how many intermediate fields?" becomes the group-theoretic question
"how many subgroups?".  The previous cycle answered it for elementary abelian class groups
`(ℤ/p)^r` (the Galois `p`-binomial count).  Here we prove:

* `Subgroup.eq_prod_of_coprime`, `subgroupProdOrderIsoOfCoprime`,
  `card_subgroup_prod_of_coprime` : **multiplicativity**.  If `Nat.card G` and `Nat.card H` are
  coprime then every subgroup of `G × H` is a product of subgroups, the subgroup lattice of
  `G × H` is the product of the two subgroup lattices, and
  `#Subgroup (G × H) = #Subgroup G * #Subgroup H`.  (No commutativity is needed.)
* `card_subgroup_cyclic` : a finite **cyclic** group of order `n` has exactly `d(n)` subgroups,
  `d` the number-of-divisors function.
* `card_subgroup_of_sq_prime_card` : a group of order `p²` of exponent `p` (`p` prime) has
  exactly `p + 3` subgroups: `⊥`, `⊤` and the `p + 1` "lines".
* `card_subgroup_zmod_four`, `card_subgroup_kleinFour`, `card_subgroup_ne_of_order_four` :
  the falsifiable contrast announced in the previous cycle — `ℤ/4` has `3` subgroups while
  `(ℤ/2)²` has `5`, so **the number of intermediate fields of the Hilbert class field is not a
  function of the class number alone**.

Everything is stated for multiplicative groups; the additive models `ZMod n` are reached through
`Multiplicative`.
-/


open Subgroup

open SubgroupCount


/-! ## Multiplicativity over a coprime product -/


variable {G H : Type*} [Group G] [Group H] [Finite G] [Finite H]










/-! ## Cyclic groups: the divisor count -/


variable {G : Type*} [CommGroup G] [Finite G] [IsCyclic G]






/-! ## Elementary abelian groups of rank two -/


variable {G : Type*} [Group G] [Finite G] {p : ℕ}
Formal statement
theorem SubgroupCount.card_subgroup_of_sq_prime_card(hp : p.Prime) (hcard : Nat.card G = p ^ 2)
    (hexp : ∀ x : G, x ^ p = 1) : Nat.card (Subgroup G) = p + 3 := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/Algebra/SubgroupCountFiniteAbelian.lean#L297

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me