The 4-rank
Let \(n>1\) be odd and squarefree, \(t=|T_n|\), and let \(\chi:\mathrm{Cl}\to\mathbb F_2^{\{q\mid n\}}\) be the genus map, \(c\mapsto(\chi_q(c))_q\). Counting gives $\([\mathrm{Cl}:\mathrm{Cl}^2]=|\mathrm{Cl}[2]|\le2^{t-1}\le|\mathrm{im}\,\chi|=[\mathrm{Cl}:\ker\chi]\le[\mathrm{Cl}:\mathrm{Cl}^2],\)$ so the principal genus theorem \(\mathrm{Cl}^2=\bigcap_q\ker\chi_q\) holds and \(|\mathrm{Cl}[2]|=2^{t-1}\). Since \(g(n)=|\mathrm{Cl}^2|\) is odd exactly when \(\mathrm{Cl}[2]\cap\mathrm{Cl}^2=1\), Rédei's theorem follows: \(g(n)\) is odd if and only if the kernel of the Rédei matrix is \(\{0,e_n\}\), where \(e_n\) is the exponent vector of \((\sqrt{-n})\).
Genus theory
TheoremWhen the subgroup of squares has odd order#✓
Let \(G\) be a finite commutative group, \(G^2=\{x^2:x\in G\}\) its subgroup of squares and \(G[2]=\{x\in G:x^2=1\}\) its 2-torsion. Then \(|G^2|\) is odd if and only if \(G[2]\cap G^2=1\).
Moreover every commutative group \(G\) satisfies \(|G[2]|\cdot|G^2|=|G|\), where an infinite group is given order \(0\).
Proof sketch. If \(|G^2|\) is odd, an element of \(G[2]\cap G^2\) has order dividing \(2\) and, as an element of \(G^2\), dividing \(|G^2|\), so it is trivial. If \(|G^2|\) is even, Cauchy's theorem gives an element of order \(2\) in \(G^2\), and it lies in \(G[2]\cap G^2\). The identity is the first isomorphism theorem for the homomorphism \(x\mapsto x^2\), whose kernel is \(G[2]\) and whose image is \(G^2\).
theorem odd_card_range_sq_iff {G : Type*} [CommGroup G] [Finite G] :
Odd (Nat.card (powMonoidHom 2 : G →* G).range) ↔
(powMonoidHom 2 : G →* G).ker ⊓ (powMonoidHom 2 : G →* G).range = ⊥
theorem card_ker_sq_mul_card_range_sq {G : Type*} [CommGroup G] :
Nat.card (powMonoidHom 2 : G →* G).ker * Nat.card (powMonoidHom 2 : G →* G).range =
Nat.card G
Used by 2
TheoremThere are at least \(2^{t-1}\) genera#✓
For \(n\ge1\) the genus map of \(\mathbb Q(\sqrt{-n})\) is the homomorphism $\(\chi:\mathrm{Cl}\to\mathbb F_2^{\{q\mid n\}},\qquad c\mapsto(\chi_q(c))_q,\)$ indexed by the primes \(q\mid n\). Let \(n>1\) be odd and squarefree and \(t=|T_n|\). Then the image of the genus map has at least \(2^{t-1}\) elements.
Along the way:
- every \(n>1\) has a prime factor;
- for odd \(n\) with \(r\) prime factors, \(t=r\) if \(n\equiv3\pmod4\) and \(t=r+1\) otherwise;
- for a nonempty finite set \(I\), the hyperplane \(\{e\in\mathbb F_2^I:\sum_ie_i=0\}\), the kernel of the sum map \(\mathbb F_2^I\to\mathbb F_2\), has \(2^{|I|-1}\) elements.
Proof sketch. Let \(r\ge1\) be the number of primes of \(n\).
- If \(n\equiv3\pmod4\), then \(t=r\). The genus characters take every value with \(\sum_q\varepsilon_q=0\), so the image of \(\chi\) contains the sum-zero hyperplane, which has \(2^{r-1}\) elements.
- Otherwise \(t=r+1\), since \(2\) is not a prime of \(n\). The genus characters take every value, so the image of \(\chi\) is all of \(\mathbb F_2^r\), which has \(2^r=2^{t-1}\) elements.
theorem pow_le_card_range_genusMap (hn : Odd n) (hsq : Squarefree n) (h1 : 1 < n) :
2 ^ ((ramSet n).card - 1) ≤ Nat.card (genusMap n).range
def genusMap : ClassGroup O →* Multiplicative (n.primeFactors → ZMod 2) where
toFun c := Multiplicative.ofAdd fun q => Multiplicative.toAdd (chi n q c)
map_one' := by
apply Multiplicative.toAdd.injective
funext q
simp
map_mul' a b := by
apply Multiplicative.toAdd.injective
funext q
simp
theorem genusMap_apply (c : ClassGroup O) (q : n.primeFactors) :
Multiplicative.toAdd (genusMap n c) q = Multiplicative.toAdd (chi n q c)
def ramSet : Finset ℕ := if n % 4 = 3 then n.primeFactors else insert 2 n.primeFactors
ZInQKernel/RouteK/Redei/Primes.lean:335
def genusMap : ClassGroup O →* Multiplicative (n.primeFactors → ZMod 2) where
toFun c := Multiplicative.ofAdd fun q => Multiplicative.toAdd (chi n q c)
map_one' := by
apply Multiplicative.toAdd.injective
funext q
simp
map_mul' a b := by
apply Multiplicative.toAdd.injective
funext q
simp
ZInQKernel/RouteK/Redei/FourRank.lean:142
def chi (q : n.primeFactors) : ClassGroup O →* Multiplicative (ZMod 2) :=
if hsq : Squarefree n then
MonoidHom.mk' (fun c => Multiplicative.ofAdd (chiBit n q c)) fun c d => by
rw [chiBit_mul hsq, ofAdd_add]
else 1
ZInQKernel/RouteK/Redei/Genus.lean:191
Uses 3 · Used by 2
TheoremThe principal genus theorem#✓
Let \(n>1\) be odd and squarefree, \(\mathrm{Cl}\) the class group of \(\mathbb Q(\sqrt{-n})\) and \(t=|T_n|\). Then the subgroup of squares is the intersection of the kernels of the genus characters, $\(\mathrm{Cl}^2=\bigcap_{q\mid n}\ker\chi_q,\)$ which is the kernel of the genus map, and \(|\mathrm{Cl}[2]|=2^{t-1}\).
Along the way:
- for every \(n\ge1\), a class lies in the kernel of the genus map exactly when \(\chi_q\) vanishes on it for every prime \(q\mid n\), and \(\mathrm{Cl}^2\) lies in that kernel, since every element of \(\mathbb F_2\) has \(2x=0\);
- natural numbers with \(a\le b\), \(c\le d\), \(b,c>0\) and \(ac=bd\) satisfy \(a=b\) and \(c=d\).
Proof sketch. The genus characters take values in \(\mathbb F_2\), so \(\mathrm{Cl}^2\subseteq\ker\chi\). Count: $\(|\mathrm{Cl}^2|\cdot|\mathrm{Cl}[2]|=|\mathrm{Cl}|=|\ker\chi|\cdot|\mathrm{im}\,\chi|.\)$ Here \(|\mathrm{Cl}^2|\le|\ker\chi|\), and \(|\mathrm{Cl}[2]|\le2^{t-1}\le|\mathrm{im}\,\chi|\) by the bound on the 2-torsion and the number of genera. The arithmetic fact above gives \(|\mathrm{Cl}^2|=|\ker\chi|\), hence \(\mathrm{Cl}^2=\ker\chi\), and \(|\mathrm{Cl}[2]|=|\mathrm{im}\,\chi|\), hence \(|\mathrm{Cl}[2]|=2^{t-1}\). This is the classical count of genera, with the principal genus theorem obtained by counting.
theorem range_sq_eq_ker_chi (hn : Odd n) (hsq : Squarefree n) (h1 : 1 < n) :
(powMonoidHom 2 : ClassGroup O →* ClassGroup O).range = ⨅ q, (chi n q).ker
theorem range_sq_eq_ker_genusMap_and_card (hn : Odd n) (hsq : Squarefree n) (h1 : 1 < n) :
(powMonoidHom 2 : ClassGroup O →* ClassGroup O).range = (genusMap n).ker ∧
Nat.card (powMonoidHom 2 : ClassGroup O →* ClassGroup O).ker =
2 ^ ((ramSet n).card - 1)
theorem range_sq_le_ker_genusMap :
(powMonoidHom 2 : ClassGroup O →* ClassGroup O).range ≤ (genusMap n).ker
def chi (q : n.primeFactors) : ClassGroup O →* Multiplicative (ZMod 2) :=
if hsq : Squarefree n then
MonoidHom.mk' (fun c => Multiplicative.ofAdd (chiBit n q c)) fun c d => by
rw [chiBit_mul hsq, ofAdd_add]
else 1
ZInQKernel/RouteK/Redei/Genus.lean:191
def genusMap : ClassGroup O →* Multiplicative (n.primeFactors → ZMod 2) where
toFun c := Multiplicative.ofAdd fun q => Multiplicative.toAdd (chi n q c)
map_one' := by
apply Multiplicative.toAdd.injective
funext q
simp
map_mul' a b := by
apply Multiplicative.toAdd.injective
funext q
simp
ZInQKernel/RouteK/Redei/FourRank.lean:142
def ramSet : Finset ℕ := if n % 4 = 3 then n.primeFactors else insert 2 n.primeFactors
ZInQKernel/RouteK/Redei/Primes.lean:335
Uses 6 · Used by 2
TheoremThe 2-rank of the class group#✓
Let \(n>1\) be odd and squarefree, \(\mathrm{Cl}\) the class group of \(\mathbb Q(\sqrt{-n})\) and \(t=|T_n|\). Then \(|\mathrm{Cl}[2]|=2^{t-1}\), and the kernel of the ambiguous class map \(\psi:\mathbb F_2^{T_n}\to\mathrm{Cl}\) has exactly two elements.
Proof sketch. The first claim is part of the principal genus theorem. The image of \(\psi\) is \(\mathrm{Cl}[2]\), so \(|\ker\psi|\cdot2^{t-1}=|\mathbb F_2^{T_n}|=2^t\). Since \(n>1\) has a prime factor, which lies in \(T_n\), \(t\ge1\), and \(|\ker\psi|=2\).
theorem card_ker_sq_eq (hn : Odd n) (hsq : Squarefree n) (h1 : 1 < n) :
Nat.card (powMonoidHom 2 : ClassGroup O →* ClassGroup O).ker = 2 ^ ((ramSet n).card - 1)
theorem card_ker_psi (hn : Odd n) (hsq : Squarefree n) (h1 : 1 < n) :
Nat.card (psi n).ker = 2
def ramSet : Finset ℕ := if n % 4 = 3 then n.primeFactors else insert 2 n.primeFactors
ZInQKernel/RouteK/Redei/Primes.lean:335
def psi : Multiplicative (ramSet n → ZMod 2) →* ClassGroup O where
toFun e := ∏ p, ambigClass n p ^ (Multiplicative.toAdd e p).val
map_one' := by
simp only [toAdd_one, Pi.zero_apply, ZMod.val_zero, pow_zero, Finset.prod_const_one]
map_mul' e f := by
rw [← Finset.prod_mul_distrib]
refine Finset.prod_congr rfl fun p _ => ?_
rw [toAdd_mul, Pi.add_apply, ambig_pow_val_add (ambigClass_sq p)]
ZInQKernel/RouteK/Redei/Ambiguous.lean:147
Uses 5 · Used by 1
Rédei's theorem
DefinitionThe 4-rank statement#✓
The 4-rank statement is the following assertion. For every odd squarefree \(n>1\), the genus class number \(g(n)\) is odd if and only if every \(e\in\mathbb F_2^{T_n}\) with $\(\sum_{p\in T_n}R_{qp}\,e_p=0\quad\text{for every prime }q\mid n\)$ is \(0\) or \(e_n\). Here \(R\) is the Rédei matrix of \(n\), and \(e_n\in\mathbb F_2^{T_n}\) is \(1\) at the primes of \(n\) and \(0\) at \(2\); it is the exponent vector of the ideal \((\sqrt{-n})\).
The hypothesis \(n>1\) is needed. For \(n=1\) the class group of \(\mathbb Q(i)\) is trivial (a classical fact), so \(g(1)=1\) is odd. But \(T_1=\{2\}\), the Rédei matrix has no rows and \(e_1=0\), so the nonzero vector at \(2\) is killed by it.
def OddGClStatement : Prop :=
∀ (n : ℕ) [NeZero n], Odd n → Squarefree n → 1 < n →
(Odd (gCl n) ↔ ∀ e : ramSet n → ZMod 2, (∀ q, ∑ p, redeiEntry n q p * e p = 0) →
e = 0 ∨ e = fun p : ramSet n => if (p : ℕ) ∈ n.primeFactors then (1 : ZMod 2) else 0)
def gCl (n : ℕ) [NeZero n] : ℕ :=
Nat.card (powMonoidHom 2 : ClassGroup (𝓞 (QNeg n)) →* ClassGroup (𝓞 (QNeg n))).range
ZInQKernel/RouteK/Rank5b/Sec3/RedeiStatement.lean:49
def ramSet : Finset ℕ := if n % 4 = 3 then n.primeFactors else insert 2 n.primeFactors
ZInQKernel/RouteK/Redei/Primes.lean:335
def redeiEntry (n : ℕ) (q : n.primeFactors) (p : ramSet n) : ZMod 2 :=
if (p : ℕ) = 2 then legBit q 2
else if (p : ℕ) = q then legBit q ((n / q : ℕ) : ℤ) else legBit q (p : ℤ)
ZInQKernel/RouteK/Redei/Entry.lean:19
TheoremRédei's theorem on the 4-rank#✓
The 4-rank statement holds: for every odd squarefree \(n>1\), the genus class number \(g(n)=|\mathrm{Cl}(\mathbb Q(\sqrt{-n}))^2|\) is odd if and only if every vector \(e\in\mathbb F_2^{T_n}\) killed by the Rédei matrix of \(n\) is \(0\) or \(e_n\). Here \(e_n\) is \(1\) at the primes of \(n\) and \(0\) at \(2\), and it is nonzero for \(n>1\).
Proof sketch. By the principal genus theorem and the values of the genus characters on the ambiguous classes, \(\psi(e)\in\mathrm{Cl}^2\) if and only if \(\sum_pR_{qp}e_p=0\) for every prime \(q\mid n\). Also \(\psi(e_n)=1\), the image of \(\psi\) is \(\mathrm{Cl}[2]\), and \(g(n)=|\mathrm{Cl}^2|\) is odd if and only if \(\mathrm{Cl}[2]\cap\mathrm{Cl}^2=1\).
- If \(g(n)\) is odd and \(e\) is killed by \(R\), then \(\psi(e)\in\mathrm{Cl}[2]\cap\mathrm{Cl}^2=1\). So \(e\in\ker\psi\), which has two elements and contains \(0\) and \(e_n\ne0\); hence \(e\in\{0,e_n\}\).
- Conversely, an element of \(\mathrm{Cl}[2]\cap\mathrm{Cl}^2\) is \(\psi(m)\) with \(m\) killed by \(R\). So \(m\in\{0,e_n\}\), and \(\psi(m)=1\).
theorem oddGClStatement : OddGClStatement
theorem odd_gCl_iff (hn : Odd n) (hsq : Squarefree n) (h1 : 1 < n) :
Odd (gCl n) ↔ ∀ e : ramSet n → ZMod 2, (∀ q, ∑ p, redeiEntry n q p * e p = 0) →
e = 0 ∨ e = fun p : ramSet n => if (p : ℕ) ∈ n.primeFactors then (1 : ZMod 2) else 0
def fourRankVec : ramSet n → ZMod 2 := fun p => if (p : ℕ) ∈ n.primeFactors then 1 else 0
def OddGClStatement : Prop :=
∀ (n : ℕ) [NeZero n], Odd n → Squarefree n → 1 < n →
(Odd (gCl n) ↔ ∀ e : ramSet n → ZMod 2, (∀ q, ∑ p, redeiEntry n q p * e p = 0) →
e = 0 ∨ e = fun p : ramSet n => if (p : ℕ) ∈ n.primeFactors then (1 : ZMod 2) else 0)
ZInQKernel/RouteK/Redei/Bridge.lean:39
def gCl (n : ℕ) [NeZero n] : ℕ :=
Nat.card (powMonoidHom 2 : ClassGroup (𝓞 (QNeg n)) →* ClassGroup (𝓞 (QNeg n))).range
ZInQKernel/RouteK/Rank5b/Sec3/RedeiStatement.lean:49
def ramSet : Finset ℕ := if n % 4 = 3 then n.primeFactors else insert 2 n.primeFactors
ZInQKernel/RouteK/Redei/Primes.lean:335
def redeiEntry (n : ℕ) (q : n.primeFactors) (p : ramSet n) : ZMod 2 :=
if (p : ℕ) = 2 then legBit q 2
else if (p : ℕ) = q then legBit q ((n / q : ℕ) : ℤ) else legBit q (p : ℤ)
ZInQKernel/RouteK/Redei/Entry.lean:19
Uses 7 · Used by 2
Loading dependency explorer…
The dependency explorer needs JavaScript and its graph data.