Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | public import Mathlib.RepresentationTheory.Invariants |
| 4 | import Mathlib.GroupTheory.FiniteAbelian.Basic |
| 5 | import Mathlib.GroupTheory.IndexNSmul |
| 6 | import Mathlib.LinearAlgebra.Dimension.Torsion.Basic |
| 7 | import Mathlib.LinearAlgebra.Eigenspace.Zero |
| 8 | import Mathlib.NumberTheory.NumberField.Cyclotomic.Ideal |
| 9 | import Mathlib.RepresentationTheory.Homological.GroupCohomology.Hilbert90 |
| 10 | public import Lib.Speed |
| 11 | import Lib.ClassField.Places.ProfiniteGalois |
| 12 | import TauCeti.Algebra.Module.Torsion.Basic |
| 13 | import TauCeti.Algebra.Module.Torsion.EulerQuotient |
| 14 | import TauCeti.GroupTheory.Index.Exact |
| 15 | |
| 16 | /-! |
| 17 | # Coker/ker indices and Tate's index formula for cyclic actions of prime order |
| 18 | |
| 19 | For a map `f` of abelian groups, `New.cokerKerIndex f` is the rational number `#coker f / #ker f`. |
| 20 | `(l : End ℤ A)` denotes multiplication by the natural number `l` on `A`. The file gives counting |
| 21 | tools for this index and for equivariant maps into finite projective `𝔽_l[Δ]`-modules. |
| 22 | |
| 23 | ## Main definitions and results |
| 24 | |
| 25 | * `New.cokerKerIndex`: the rational number `#coker f / #ker f`; it is `0` if either group is |
| 26 | infinite, so `cokerKerIndex f ≠ 0` says that both are finite. |
| 27 | * `New.cokerKerIndex_natCast_eq_of_ne_zero`: the index of `l` is unchanged under maps with finite |
| 28 | kernel and cokernel. |
| 29 | * `New.card_hom_lattice_eq_card_equivariant`: `A / torsion` and a finite `Δ`-set `Z` have equally |
| 30 | many equivariant maps to a finite projective `𝔽_l[Δ]`-module. This needs `A` finitely generated, |
| 31 | of rank at most `#Z`, and with an equivariant map `A → ℝ^Z` whose image spans `ℝ^Z`. |
| 32 | * `New.Tate.index_formula`: computes the index of the norm group in the fixed points of an |
| 33 | automorphism `σ` with `σ ^ l = 1`, `l` prime, from the indices of multiplication by `l`. It |
| 34 | assumes that the kernel of the norm is the image of `σ - 1`, and it takes the place of the |
| 35 | Herbrand quotient. |
| 36 | * `New.tate_index_formula_norm`: `New.Tate.index_formula` for a Galois-stable subgroup `U` of `Lˣ` |
| 37 | with `H¹(Gal(L/K), U) = 0`, where `L / K` is Galois of prime degree. The hypothesis `hH1` gives |
| 38 | this vanishing through Hilbert's Theorem 90. |
| 39 | |
| 40 | ## Relation to the literature |
| 41 | |
| 42 | Known; see `Lib.ClassField.GreenbergWiles.CocycleCounts` and |
| 43 | `Lib.ClassField.GaloisCohomology.KummerCyclicClasses` for sources. |
| 44 | -/ |
| 45 | |
| 46 | @[expose] public section |
| 47 | |
| 48 | /-! ## The coker/ker index and equivariant maps from lattices to projective modules -/ |
| 49 | |
| 50 | namespace New |
| 51 | |
| 52 | variable {l : ℕ} |
| 53 | {A B C : Type} [AddCommGroup A] [AddCommGroup B] [AddCommGroup C] |
| 54 | (f : A →ₗ[ℤ] B) (g : B →ₗ[ℤ] C) |
| 55 | |
| 56 | open Nat Function LinearMap Submodule Module Matrix AddSubgroup Representation MonoidAlgebra |
| 57 | |
| 58 | attribute [local instance low] Fintype.ofFinite |
| 59 | |
| 60 | /-- For a linear map f : A → B, the rational number #coker f / #ker f; it is 0 if either group |
| 61 | is infinite. -/ |
| 62 | noncomputable def cokerKerIndex : ℚ := Nat.card (B ⧸ f.range) / Nat.card f.ker |
| 63 | |
| 64 | /-- The ratio of two nonempty types’ natural cardinalities is nonzero iff both are finite. -/ |
| 65 | private lemma natCard_div_ne_zero_iff {X Y : Type*} [Nonempty X] [Nonempty Y] : |
| 66 | (Nat.card X : ℚ) / Nat.card Y ≠ 0 ↔ Finite X ∧ Finite Y := by |
| 67 | simp [Nat.card_ne_zero, ‹Nonempty X›, ‹Nonempty Y›] |
| 68 | |
| 69 | /-- (a) The index of `g ∘ f` is `#coker g * ([B : I ⊔ N] / #(I ⊓ N)) / #ker f`, where |
| 70 | `I = f.range` and `N = g.ker`. (b) If one of the indices of `f` and `g` is nonzero, the index |
| 71 | of `g ∘ f` is their product. -/ |
| 72 | lemma cokerKerIndex_comp : |
| 73 | -- (a) |
| 74 | cokerKerIndex (g ∘ₗ f) = |
| 75 | g.range.cardQuot * ((f.range ⊔ g.ker).cardQuot / Nat.card (f.range ⊓ g.ker :)) / |
| 76 | Nat.card f.ker ∧ |
| 77 | -- (b) |
| 78 | (cokerKerIndex f ≠ 0 ∨ cokerKerIndex g ≠ 0 → |
| 79 | cokerKerIndex (g ∘ₗ f) = cokerKerIndex f * cokerKerIndex g) := by |
| 80 | -- Write `I = f.range`, `N = g.ker` and `t = [N : I ⊓ N] = [I ⊔ N : I]`. All four groups are |
| 81 | -- counted by index towers; `t` occurs in `coker f` and in `ker g` and cancels if nonzero. |
| 82 | set t : ℕ := f.range.toAddSubgroup.relIndex g.ker.toAddSubgroup with ht |
| 83 | have ker_g : Nat.card g.ker = Nat.card (f.range ⊓ g.ker :) * t := by |
| 84 | simpa [bot_inf_eq] using (relIndex_inf_mul_relIndex ⊥ f.range.toAddSubgroup |
| 85 | g.ker.toAddSubgroup).symm |
| 86 | have ker_comp : Nat.card (g ∘ₗ f).ker = Nat.card f.ker * Nat.card (f.range ⊓ g.ker :) := by |
| 87 | simpa [relIndex_ker, AddSubgroup.map_comap_eq] using |
| 88 | (relIndex_mul_relIndex ⊥ _ _ bot_le (f.toAddMonoidHom.ker_le_comap g.ker.toAddSubgroup)).symm |
| 89 | have coker_f : f.range.cardQuot = t * (f.range ⊔ g.ker).cardQuot := by |
| 90 | simp [ht, cardQuot, sup_toAddSubgroup, |
| 91 | ← relIndex_mul_index (toAddSubgroup_mono (le_sup_left (b := g.ker)))] |
| 92 | have coker_comp : (g ∘ₗ f).range.cardQuot = (f.range ⊔ g.ker).cardQuot * g.range.cardQuot := by |
| 93 | simp [cardQuot, range_comp, sup_toAddSubgroup, index_map, map_toAddSubgroup] |
| 94 | -- `↑g` and `g.toAddMonoidHom` are the same additive map only by unfolding the coercion. |
| 95 | rfl |
| 96 | simp only [cokerKerIndex, ← cardQuot_apply, ker_g, ker_comp, coker_f, coker_comp, Nat.cast_mul] |
| 97 | constructor |
| 98 | · ring |
| 99 | · intro h_ne |
| 100 | -- If `t = 0`, the formulas for `coker f` and `ker g` make both indices vanish. |
| 101 | have t_ne : (t : ℚ) ≠ 0 := fun ht0 ↦ by simp [ht0] at h_ne |
| 102 | field_simp |
| 103 | |
| 104 | open scoped Pointwise in |
| 105 | /-- The index of multiplication by `l` is the Euler quotient of `l`-torsion. -/ |
| 106 | private lemma cokerKerIndex_natCast (M : Type) [AddCommGroup M] : |
| 107 | cokerKerIndex (l : End ℤ M) = |
| 108 | (Nat.card (QuotSMulTop (l : ℤ) M) : ℚ) / Nat.card (torsionBy ℤ M (l : ℤ)) := by |
| 109 | have h_mul : (l : End ℤ M) = DistribSMul.toLinearMap ℤ M (l : ℤ) := by |
| 110 | ext m |
| 111 | simp [natCast_zsmul] |
| 112 | have h_ker := (TauCeti.exact_subtype_torsionBy (l : ℤ) M).linearMap_ker_eq |
| 113 | have h_range : range (DistribSMul.toLinearMap ℤ M (l : ℤ)) = (l : ℤ) • (⊤ : Submodule ℤ M) := by |
| 114 | rw [Submodule.pointwise_smul_def, Submodule.map_top] |
| 115 | rw [cokerKerIndex, h_mul, h_ker, Submodule.range_subtype, h_range] |
| 116 | |
| 117 | /-- For a short exact sequence `0 → A → B → C → 0` of abelian groups given by `f` and `g`, let |
| 118 | q_X = #(X/lX) / #X[l] be the rational cokernel-over-kernel index of multiplication by `l` on X, |
| 119 | taken to be 0 if either group is infinite. If q_A ≠ 0, meaning A/lA and A[l] are both finite, then |
| 120 | q_B = q_A · q_C. -/ |
| 121 | lemma cokerKerIndex_mul_of_exact (hf : Function.Injective f) (h_exact : Exact f g) |
| 122 | (hg : Surjective g) (hA : cokerKerIndex (l : End ℤ A) ≠ 0) : |
| 123 | cokerKerIndex (l : End ℤ B) = cokerKerIndex (l : End ℤ A) * cokerKerIndex (l : End ℤ C) := by |
| 124 | rw [cokerKerIndex_natCast] at hA |
| 125 | obtain ⟨hA_quot, hA_torsion⟩ : Finite (QuotSMulTop (l : ℤ) A) ∧ Finite (torsionBy ℤ A (l : ℤ)) := |
| 126 | natCard_div_ne_zero_iff.mp hA |
| 127 | simp only [cokerKerIndex_natCast] |
| 128 | by_cases hC : Finite (torsionBy ℤ C (l : ℤ)) |
| 129 | · exact TauCeti.natCard_quotSMulTop_div_natCard_torsionBy_of_exact _ h_exact hf hg |
| 130 | · -- The connecting map to the finite quotient of `A` shows that `B[l]` is infinite too. |
| 131 | have hB : ¬ Finite (torsionBy ℤ B (l : ℤ)) := fun h_fin ↦ |
| 132 | hC (TauCeti.exact_torsionByMap_torsionByδ (r := (l : ℤ)) h_exact hf hg).finite |
| 133 | have : Infinite (torsionBy ℤ B (l : ℤ)) := not_finite_iff_infinite.mp hB |
| 134 | have : Infinite (torsionBy ℤ C (l : ℤ)) := not_finite_iff_infinite.mp hC |
| 135 | simp only [Nat.card_eq_zero_of_infinite, Nat.cast_zero, div_zero, mul_zero] |
| 136 | |
| 137 | /-- If `f : A → B` has finite kernel and cokernel, then `#(A/lA) / #A[l] = #(B/lB) / #B[l]`, each |
| 138 | side read as `0` when one of its groups is infinite. -/ |
| 139 | lemma cokerKerIndex_natCast_eq_of_ne_zero (h : cokerKerIndex f ≠ 0) : |
| 140 | cokerKerIndex (l : End ℤ A) = cokerKerIndex (l : End ℤ B) := by |
| 141 | obtain ⟨h_coker, h_ker⟩ : Finite (B ⧸ range f) ∧ Finite (ker f) := |
| 142 | natCard_div_ne_zero_iff.mp h |
| 143 | simpa only [cokerKerIndex_natCast] using |
| 144 | TauCeti.natCard_quotSMulTop_div_natCard_torsionBy_eq_of_finite_ker_of_finite_coker (l : ℤ) f |
| 145 | |
| 146 | variable [NeZero l] [Module.Finite ℤ A] |
| 147 | |
| 148 | /-- On a finitely generated abelian group `A`, multiplication by `l ≠ 0` has index |
| 149 | `#(A / l A) / #A[l] = l ^ rank A`. -/ |
| 150 | lemma cokerKerIndex_natCast_eq_pow_finrank : cokerKerIndex (l : End ℤ A) = l ^ finrank ℤ A := by |
| 151 | -- The torsion subgroup is finite, so we may pass to the free quotient `A ⧸ torsion ℤ A`, where |
| 152 | -- multiplication by `l` is injective with image of index `l ^ rank`. |
| 153 | have h_finite_torsion : Finite (torsion ℤ A) := finite_of_fg_torsion _ torsion_isTorsion |
| 154 | have idx_ne : cokerKerIndex (torsion ℤ A).mkQ ≠ 0 := by |
| 155 | simpa [cokerKerIndex] using (card_pos (α := torsion ℤ A)).ne' |
| 156 | have ker_eq : ker (l : End ℤ (A ⧸ torsion ℤ A)) = ⊥ := by |
| 157 | simp [ker_eq_bot', NeZero.ne, ← natCast_zsmul] |
| 158 | have coker_card : |
| 159 | Nat.card ((A ⧸ torsion ℤ A) ⧸ range (l : End ℤ (A ⧸ torsion ℤ A))) = l ^ finrank ℤ A := |
| 160 | (index_range_nsmul (M := A ⧸ torsion ℤ A) l).trans |
| 161 | (by simp [finrank_quotient_eq_of_le_torsion]) |
| 162 | rw [cokerKerIndex_natCast_eq_of_ne_zero _ idx_ne, cokerKerIndex, ker_eq, coker_card] |
| 163 | simp |
| 164 | |
| 165 | /-- On a finitely generated abelian group `A`, multiplication by `l ≠ 0` has finite kernel and |
| 166 | cokernel: its index is nonzero. -/ |
| 167 | lemma cokerKerIndex_natCast_ne_zero : cokerKerIndex (l : End ℤ A) ≠ 0 := by |
| 168 | simp [cokerKerIndex_natCast_eq_pow_finrank, NeZero.ne] |
| 169 | |
| 170 | /-- On a finitely generated abelian group `A`, multiplication by `l ≠ 0` has nonzero index |
| 171 | `#(A / l A) / #A[l] = l ^ rank A`: the two clauses are `New.cokerKerIndex_natCast_ne_zero` and |
| 172 | `New.cokerKerIndex_natCast_eq_pow_finrank`. -/ |
| 173 | lemma cokerKerIndex_eq_pow_finrank : |
| 174 | cokerKerIndex (l : End ℤ A) ≠ 0 ∧ cokerKerIndex (l : End ℤ A) = l ^ finrank ℤ A := |
| 175 | ⟨cokerKerIndex_natCast_ne_zero, cokerKerIndex_natCast_eq_pow_finrank⟩ |
| 176 | |
| 177 | variable (l) |
| 178 | {Δ V Z : Type} [Group Δ] [Fintype Δ] [AddCommGroup V] [MulAction Δ Z] [Fact l.Prime] |
| 179 | {σ : Representation ℤ Δ V} {τ : V →+ V} |
| 180 | |
| 181 | omit [NeZero l] in |
| 182 | /-- Let `L` be a free `ℤ`-module of finite rank with basis `b` and `Δ`-action `ρ`, and `V` an |
| 183 | `𝔽_l`-space (`l` prime) with basis `c` and `Δ`-action `σ`. If `τ` satisfies |
| 184 | `∑ g, σ g ∘ τ ∘ σ g⁻¹ = id` (`hτ`), the averaging operator `π f = ∑ g, σ g ∘ τ ∘ f ∘ ρ g⁻¹` projects |
| 185 | `Hom(L, V)` onto the equivariant maps. So their number is `l ^ m`, with `m` the multiplicity of `1` |
| 186 | as a root modulo `l` of the characteristic polynomial of an integral lift of `π`, built from the |
| 187 | transposed matrices of `ρ g⁻¹` and integral lifts `T g` of the matrices of `σ g ∘ τ`. -/ |
| 188 | lemma card_invariants_linHom (hτ : ∀ a : V, ∑ g : Δ, σ g (τ (σ g⁻¹ a)) = a) [Module (ZMod l) V] |
| 189 | {ι κ L : Type} [Fintype ι] [DecidableEq ι] [Fintype κ] [DecidableEq κ] [AddCommGroup L] |
| 190 | (c : Basis κ (ZMod l) V) {T : Δ → Matrix κ κ ℤ} |
| 191 | (hT : ∀ (g : Δ) (i j : κ), T g i j = c.repr (σ g (τ (c j))) i) (b : Basis ι ℤ L) |
| 192 | (ρ : Representation ℤ Δ L) : |
| 193 | Nat.card (linHom ρ σ).invariants = |
| 194 | Nat.card (ZMod l) ^ |
| 195 | ((∑ g : Δ, (toMatrix b b (ρ g⁻¹))ᵀ.kronecker (T g)).charpoly.map |
| 196 | (algebraMap ℤ (ZMod l))).rootMultiplicity 1 := by |
| 197 | -- The matrix of `π` in the basis `e` built from `b` and `c` is the integral lift modulo `l`. |
| 198 | let π : (L →ₗ[ℤ] V) →ₗ[ZMod l] L →ₗ[ℤ] V := |
| 199 | ((∑ g, ρ.linHom σ g) ∘ₗ .compRight ℤ τ.toIntLinearMap).toAddMonoidHom.toZModLinearMap l |
| 200 | let e : Basis (ι × κ) (ZMod l) (L →ₗ[ℤ] V) := |
| 201 | ((Pi.basis fun _ ↦ c).reindex (.sigmaEquivProd ι κ)).map (b.constr (ZMod l)) |
| 202 | have matrix_eq : (∑ g : Δ, (toMatrix b b (ρ g⁻¹))ᵀ.kronecker (T g)).map (algebraMap ℤ (ZMod l)) = |
| 203 | toMatrix e e π := by |
| 204 | aesop (add simp Pi.single_apply) (add simp [Matrix.sum_apply, toMatrix_apply]) |
| 205 | have h_finite_hom : Module.Finite (ZMod l) (L →ₗ[ℤ] V) := Module.Finite.of_basis e |
| 206 | have h_π_fixed (x : L →ₗ[ℤ] V) (hx : x ∈ (linHom ρ σ).invariants) : π x = x := by |
| 207 | ext y |
| 208 | simp_all [π, isIntertwiningMap_iff] |
| 209 | have π_mem (x : L →ₗ[ℤ] V) : π x ∈ (linHom ρ σ).invariants := fun g ↦ self_norm_apply _ g _ |
| 210 | -- If `(π - 1) ^ (k + 1)` kills `x`, then `π x - x` is invariant by induction, hence so is `x`. |
| 211 | have mem_of_pow (k : ℕ) (x : L →ₗ[ℤ] V) |
| 212 | (hx : ((π - (1 : ZMod l) • 1 : End (ZMod l) (L →ₗ[ℤ] V)) ^ k) x = 0) : |
| 213 | x ∈ (linHom ρ σ).invariants := by |
| 214 | induction k generalizing x with |
| 215 | | zero => simp_all |
| 216 | | succ k ih => |
| 217 | simpa using sub_mem (π_mem x) (ih (π x - x) (by simpa [pow_succ] using hx)) |
| 218 | -- So the invariants are the generalised eigenspace of `π` for the eigenvalue `1`. |
| 219 | rw [← charpoly_map, matrix_eq, π.charpoly_toMatrix, ← finrank_maxGenEigenspace_eq, |
| 220 | ← natCard_eq_pow_finrank] |
| 221 | congr! 3 with x |
| 222 | rw [End.mem_maxGenEigenspace] |
| 223 | exact ⟨fun hx ↦ ⟨1, by simp [h_π_fixed x hx]⟩, fun ⟨k, hk⟩ ↦ mem_of_pow k x hk⟩ |
| 224 | |
| 225 | omit [AddCommGroup V] [Fact l.Prime] in |
| 226 | /-- Let `Δ` act on the lattice `L` by `ρ` and suppose that some real basis `γ` of `Hom(L, ℝ)` is |
| 227 | permuted as `Δ` permutes `Z`. For integral matrices `T g`, the sum of the Kronecker products of |
| 228 | the transposed matrices of `ρ g⁻¹` with `T g` then has the same characteristic polynomial as the |
| 229 | same sum for the permutation representation on `ℤ[Z]`. -/ |
| 230 | private lemma charpoly_sum_kronecker_eq_of_perm {ι κ L : Type} [Fintype ι] [DecidableEq ι] |
| 231 | [Fintype κ] [DecidableEq κ] [Fintype Z] [DecidableEq Z] [AddCommGroup L] (b : Basis ι ℤ L) |
| 232 | (ρ : Representation ℤ Δ L) (γ : Basis Z ℝ (L →ₗ[ℤ] ℝ)) |
| 233 | (hγ : ∀ (g : Δ) (z : Z), (ρ g⁻¹).lcomp ℝ ℝ (γ z) = γ (g • z)) (T : Δ → Matrix κ κ ℤ) : |
| 234 | (∑ g : Δ, (toMatrix b b (ρ g⁻¹))ᵀ.kronecker (T g)).charpoly = |
| 235 | (∑ g : Δ, (toMatrix (MonoidAlgebra.basis Z ℤ) (MonoidAlgebra.basis Z ℤ) |
| 236 | (ofMulAction ℤ Δ Z g⁻¹))ᵀ.kronecker (T g)).charpoly := by |
| 237 | -- Both are matrices of one real operator `Φ`, taking on the first tensor factor the basis dual |
| 238 | -- to `b` or the basis `γ`. |
| 239 | let Φ : Module.End ℝ (TensorProduct ℝ (L →ₗ[ℤ] ℝ) (κ → ℝ)) := |
| 240 | ∑ g, TensorProduct.map (lcomp ℝ ℝ (ρ g⁻¹)) (toLin' ((T g).map (algebraMap ℤ ℝ))) |
| 241 | simp_rw [← (Polynomial.map_injective _ (algebraMap ℤ ℝ).injective_int).eq_iff, ← charpoly_map] |
| 242 | let e_b := ((Pi.basisFun ℝ ι).map (b.constr ℝ)).tensorProduct (Pi.basisFun ℝ κ) |
| 243 | let e_γ := γ.tensorProduct (Pi.basisFun ℝ κ) |
| 244 | have h_mat_b : (∑ g, (toMatrix b b (ρ g⁻¹))ᵀ.kronecker (T g)).map (algebraMap ℤ ℝ) = |
| 245 | toMatrix e_b e_b Φ := by |
| 246 | ext ⟨⟩ ⟨⟩ |
| 247 | simp [e_b, Φ, Pi.single_apply, mul_comm, Matrix.sum_apply, toMatrix_apply] |
| 248 | have h_mat_γ : (∑ g, (toMatrix (MonoidAlgebra.basis Z ℤ) (MonoidAlgebra.basis Z ℤ) |
| 249 | (ofMulAction ℤ Δ Z g⁻¹))ᵀ.kronecker (T g)).map (algebraMap ℤ ℝ) = toMatrix e_γ e_γ Φ := by |
| 250 | ext ⟨⟩ ⟨⟩ |
| 251 | simp [e_γ, Φ, mul_comm, hγ, basis, Finsupp.single_apply, eq_inv_smul_iff, eq_comm, |
| 252 | Matrix.sum_apply, toMatrix_apply] |
| 253 | have : Module.Finite ℝ (L →ₗ[ℤ] ℝ) := Module.Finite.of_basis γ |
| 254 | rw [h_mat_b, h_mat_γ, Φ.charpoly_toMatrix, Φ.charpoly_toMatrix] |
| 255 | |
| 256 | omit [NeZero l] in |
| 257 | /-- Let the finite `𝔽_l[Δ]`-module `V` be projective in Higman's sense: some additive `τ` has |
| 258 | `∑ g, g τ g⁻¹ = 1`. Let `A` be a finitely generated `ℤ[Δ]`-module of rank at most `#Z` with real |
| 259 | linear forms `Λ z` that are linearly independent over `ℝ` and permuted by `Δ` as `Z` is. Then there |
| 260 | are as many equivariant maps `A → V` that kill torsion as equivariant maps `Z → V`. The proof lifts |
| 261 | the averaging projector to an integral matrix and reads its characteristic polynomial over `ℝ`. -/ |
| 262 | lemma card_hom_lattice_eq_card_equivariant [Finite V] (hτ : ∀ a : V, ∑ g : Δ, σ g (τ (σ g⁻¹ a)) = a) |
| 263 | [Module (ZMod l) V] {ρ : Representation ℤ Δ A} {Λ : Z → A →ₗ[ℤ] ℝ} |
| 264 | (hΛ : ∀ (g : Δ) (z : Z) (y : A), Λ z (ρ g⁻¹ y) = Λ (g • z) y) (h_indep : LinearIndependent ℝ Λ) |
| 265 | (h_rank : finrank ℤ A ≤ Nat.card Z) : |
| 266 | Nat.card {f : IntertwiningMap ρ σ // torsion ℤ A ≤ ker f.toLinearMap} = |
| 267 | Nat.card {F : Z → V // ∀ (g : Δ) (z : Z), F (g • z) = σ g (F z)} := by |
| 268 | classical |
| 269 | -- Both sides count invariants of `Hom(L, V)`, for `L = A / torsion` and for `L = ℤ[Z]`. The two |
| 270 | -- integral matrices of `card_invariants_linHom` become conjugate over `ℝ`. |
| 271 | let c := finBasis (ZMod l) V |
| 272 | let T (g : Δ) : Matrix (Fin (finrank (ZMod l) V)) (Fin (finrank (ZMod l) V)) ℤ := |
| 273 | of fun i j ↦ (c.repr (σ g (τ (c j))) i).val |
| 274 | have hT (g : Δ) (i j : Fin (finrank (ZMod l) V)) : T g i j = c.repr (σ g (τ (c j))) i := by |
| 275 | simp [T] |
| 276 | -- `ρ` keeps torsion, and the forms `Λ z` kill it, as `ℝ` has no torsion. |
| 277 | have h_torsion_stable (g : Δ) : torsion ℤ A ≤ (torsion ℤ A).comap (ρ g) := |
| 278 | (ρ g).le_comap_torsion |
| 279 | have h_torsion_ker (z : Z) : torsion ℤ A ≤ (Λ z).ker := (Λ z).torsion_le_ker |
| 280 | let ρ' : Representation ℤ Δ (A ⧸ torsion ℤ A) := ρ.quotient (torsion ℤ A) h_torsion_stable |
| 281 | -- So the forms `Λ z` descend to independent forms on `A / torsion`. |
| 282 | let Λ' (z : Z) : A ⧸ torsion ℤ A →ₗ[ℤ] ℝ := liftQ _ (Λ z) (h_torsion_ker z) |
| 283 | have indep : LinearIndependent ℝ Λ' := h_indep.of_comp (lcomp ℝ ℝ (mkQ _)) |
| 284 | have h_finite_Z : Finite Z := indep.finite |
| 285 | -- By `h_rank` they are a basis `γ` of `Hom(A / torsion, ℝ)`, and `Δ` permutes it as it does `Z`. |
| 286 | let γ : Basis Z ℝ (A ⧸ torsion ℤ A →ₗ[ℤ] ℝ) := |
| 287 | basisOfLinearIndependentOfCardEqFinrank' Λ' indep (indep.fintype_card_le_finrank.antisymm |
| 288 | (by simp_all [finrank_linearMap, finrank_quotient_eq_of_le_torsion])) |
| 289 | have γ_perm (g : Δ) (z : Z) : (ρ' g⁻¹).lcomp ℝ ℝ (γ z) = γ (g • z) := by |
| 290 | -- On the class of `y : A` both sides are `Λ z (ρ g⁻¹ y) = Λ (g • z) y`. |
| 291 | ext y |
| 292 | have h_ρ'_mk : ρ' g⁻¹ (Submodule.Quotient.mk y) = Submodule.Quotient.mk (ρ g⁻¹ y) := rfl |
| 293 | simpa [γ, Λ', h_ρ'_mk] using hΛ g z y |
| 294 | let b := finBasis ℤ (A ⧸ torsion ℤ A) |
| 295 | let b₀ := MonoidAlgebra.basis Z ℤ |
| 296 | let ρ₀ : Representation ℤ Δ (MonoidAlgebra ℤ Z) := ofMulAction ℤ Δ Z |
| 297 | -- An equivariant map on `A` that kills the torsion is an equivariant map on `A / torsion`. |
| 298 | let descend : |
| 299 | {f : IntertwiningMap ρ σ // torsion ℤ A ≤ ker f.toLinearMap} ≃ IntertwiningMap ρ' σ := |
| 300 | { toFun f := ⟨liftQ (torsion ℤ A) f.val.toLinearMap f.property, |
| 301 | fun g ↦ linearMap_qext _ (f.val.isIntertwining' g)⟩ |
| 302 | invFun x := ⟨x.comp ⟨mkQ (torsion ℤ A), fun _ ↦ rfl⟩, le_comap_mkQ _ x.toLinearMap.ker⟩ } |
| 303 | calc |
| 304 | _ = Nat.card (linHom ρ' σ).invariants := |
| 305 | card_congr (descend.trans (invariantsEquivIntertwiningMap ρ' σ).symm.toEquiv) |
| 306 | _ = Nat.card (linHom ρ₀ σ).invariants := by |
| 307 | rw [card_invariants_linHom l hτ c hT b, card_invariants_linHom l hτ c hT b₀, |
| 308 | charpoly_sum_kronecker_eq_of_perm b ρ' γ γ_perm T] |
| 309 | -- An equivariant map on `ℤ[Z]` is given by its values on the basis `Z`. |
| 310 | _ = Nat.card {F : Z → V // ∀ (g : Δ) (z : Z), F (g • z) = σ g (F z)} := by |
| 311 | refine card_congr ((b₀.constr ℕ).symm.subtypeEquiv fun F ↦ ?_) |
| 312 | -- Invariance under every `g⁻¹`, read on the basis, is equivariance of the values. |
| 313 | refine inv_surjective.forall.trans ?_ |
| 314 | simp [b₀, ρ₀, MonoidAlgebra.lhom_ext'_iff, LinearMap.ext_ring_iff, inv_apply_eq_iff] |
| 315 | |
| 316 | end New |
| 317 | |
| 318 | /-! ## Tate's index formula for a cyclic action of prime order -/ |
| 319 | |
| 320 | section TateIndex |
| 321 | |
| 322 | open LinearMap Module End Polynomial Function GeneralLinearGroup IsCyclotomicExtension |
| 323 | |
| 324 | /-- Let `l` be prime and let `τ` be an endomorphism of an abelian group `M` with |
| 325 | `1 + τ + ⋯ + τ ^ (l - 1) = 0`. Then `l` is `(τ - 1) ^ (l - 1)` times a unit of `End ℤ M`. -/ |
| 326 | private lemma New.Tate.exists_unit_sub_one_pow_mul_eq_natCast {M : Type} [AddCommGroup M] {l : ℕ} |
| 327 | [Fact l.Prime] {τ : End ℤ M} (hτ : ∑ i ∈ Finset.range l, τ ^ i = 0) : |
| 328 | ∃ u : (End ℤ M)ˣ, (τ - 1) ^ (l - 1) * (u : End ℤ M) = (l : End ℤ M) := by |
| 329 | have : NeZero (l : ℚ) := ⟨Nat.cast_ne_zero.mpr (Nat.Prime.ne_zero Fact.out)⟩ |
| 330 | have : IsCyclotomicExtension {l} ℚ (CyclotomicField l ℚ) := |
| 331 | CyclotomicField.isCyclotomicExtension l ℚ |
| 332 | obtain ⟨ζ, hζ⟩ : ∃ ζ : CyclotomicField l ℚ, IsPrimitiveRoot ζ l := ⟨_, zeta_spec l ℚ _⟩ |
| 333 | -- The sum `1 + X + ⋯ + X ^ (l - 1)` is the minimal polynomial of `ζ`, so `M` is a |
| 334 | -- `ℤ[ζ]`-module with `ζ` acting as `τ`. |
| 335 | have minpoly_eq : cyclotomic l ℤ = minpoly ℤ hζ.toInteger := by |
| 336 | rw [cyclotomic_eq_minpoly hζ Fin.pos', ← hζ.toInteger.minpoly_coe] |
| 337 | exact congrArg (minpoly ℤ) hζ.coe_toInteger.symm |
| 338 | have minpoly_kills : aeval τ (minpoly ℤ hζ.integralPowerBasis.gen) = 0 := by |
| 339 | simpa [← minpoly_eq, cyclotomic_prime] using hτ |
| 340 | -- In `ℤ[ζ]`, `l` is associated to `(ζ - 1) ^ (l - 1)`; transport this to `End ℤ M`. |
| 341 | simpa [Associated, ← IsPrimitiveRoot.integralPowerBasis_gen] using |
| 342 | (Rat.associated_zeta_sub_one_pow_prime _ hζ).map |
| 343 | (hζ.integralPowerBasis.lift τ minpoly_kills) |
| 344 | |
| 345 | /-- Tate's index formula. Let `l` be prime, let `σ ^ l = 1` on `B`, let the sequence |
| 346 | `C → B → B → C` with maps `j`, `σ - 1`, `s` be exact with `j` injective, and let `s ∘ j = l`. So |
| 347 | `C` is the group of fixed points of `σ`, and `s` plays the role of the norm. With |
| 348 | `q_A = #(A/lA) / #A[l]` (`cokerKerIndex` of `l`) and `q_C ≠ 0`, one has |
| 349 | `[C : s B] ^ (l - 1) * q_B = q_C ^ l`. -/ |
| 350 | lemma New.Tate.index_formula {B C : Type} [AddCommGroup B] [AddCommGroup C] (s : B →ₗ[ℤ] C) |
| 351 | (j : C →ₗ[ℤ] B) {l : ℕ} [Fact l.Prime] (σ : End ℤ B) (hC : cokerKerIndex (l : End ℤ C) ≠ 0) |
| 352 | (hσ : σ ^ l = 1) (hj : Function.Injective j) (exact_j : Exact j ⇑(σ - 1)) |
| 353 | (exact_s : Exact ⇑(σ - 1) s) (hsj : s ∘ₗ j = l) : |
| 354 | s.range.cardQuot ^ (l - 1) * cokerKerIndex (l : End ℤ B) = cokerKerIndex (l : End ℤ C) ^ l := by |
| 355 | -- Let `t` be `σ - 1` acting on `N = (σ - 1) B = ker s`. Then `q_C = [C : s B] * cokerKerIndex t`, |
| 356 | -- and `q_N = cokerKerIndex t ^ (l - 1)` since `l` is `t ^ (l - 1)` times a unit on `N`; finally |
| 357 | -- `q_B = q_C * q_N` along `0 → C → B → N → 0`. |
| 358 | let N : Submodule ℤ B := (σ - 1).range |
| 359 | let σN : End ℤ N := σ.restrict (show ∀ x ∈ N, σ x ∈ N by simp [N]) |
| 360 | let t : End ℤ N := (σ - 1).rangeRestrict ∘ₗ N.subtype |
| 361 | -- `1 + σ + ⋯ + σ ^ (l - 1)` kills `N`, as its product with `σ - 1` is `σ ^ l - 1 = 0`; so `l` |
| 362 | -- is `t ^ (l - 1)` times a unit of `End ℤ N`. |
| 363 | obtain ⟨u, hu⟩ : ∃ u : (End ℤ N)ˣ, t ^ (l - 1) * u = l := by |
| 364 | rw [show t = σN - 1 by ext; simp [σN, t]] |
| 365 | refine exists_unit_sub_one_pow_mul_eq_natCast ?_ |
| 366 | ext ⟨_, x, hx⟩ |
| 367 | simpa [σN, hσ, ← hx, pow_restrict _ _] using LinearMap.congr_fun (geom_sum_mul σ l) x |
| 368 | -- Both `cokerKerIndex (s ∘ₗ j)` and `cokerKerIndex t` unfold, by `cokerKerIndex_comp`, to the |
| 369 | -- index of `ker (σ - 1) + N` in `B` over the order of `ker (σ - 1) ∩ N`; the first has the extra |
| 370 | -- factor `[C : s B]`. |
| 371 | have index_C : cokerKerIndex (l : End ℤ C) = s.range.cardQuot * cokerKerIndex t := by |
| 372 | rw [← hsj, (cokerKerIndex_comp j s).left, |
| 373 | (cokerKerIndex_comp N.subtype (σ - 1).rangeRestrict).left] |
| 374 | simp [N, ker_eq_bot.mpr hj, exact_iff.mp exact_j, exact_iff.mp exact_s, sup_comm, inf_comm] |
| 375 | have ht : cokerKerIndex t ≠ 0 := right_ne_zero_of_mul (by rwa [← index_C]) |
| 376 | -- The index is multiplicative once one factor is nonzero, and a unit has index `1`. |
| 377 | have index_pow_mul (m : ℕ) : cokerKerIndex (t ^ m * (u : End ℤ N)) = cokerKerIndex t ^ m := by |
| 378 | induction m with |
| 379 | | zero => |
| 380 | have hu_eq : (u : End ℤ N) = (toLinearEquiv u).toLinearMap := rfl |
| 381 | simp [cokerKerIndex, hu_eq] |
| 382 | | succ m ih => |
| 383 | rw [pow_succ', mul_assoc, Module.End.mul_eq_comp, |
| 384 | (cokerKerIndex_comp (t ^ m * (u : End ℤ N)) t).right (.inr ht), ih, pow_succ] |
| 385 | have index_N : cokerKerIndex (l : End ℤ N) = cokerKerIndex t ^ (l - 1) := by |
| 386 | rw [← hu, index_pow_mul] |
| 387 | have index_B : |
| 388 | cokerKerIndex (l : End ℤ B) = cokerKerIndex (l : End ℤ C) * cokerKerIndex (l : End ℤ N) := |
| 389 | cokerKerIndex_mul_of_exact j _ hj (by simpa [exact_iff] using exact_j) |
| 390 | (σ - 1).surjective_rangeRestrict hC |
| 391 | rw [index_B, index_N, mul_left_comm, ← mul_pow, ← index_C, mul_pow_sub_one NeZero.out] |
| 392 | |
| 393 | end TateIndex |
| 394 | |
| 395 | /-! ## Tate's index formula for the norm in an extension of prime degree -/ |
| 396 | |
| 397 | section TateNormIndex |
| 398 | |
| 399 | open Module Algebra MonoidHom Units Set IsGalois groupCohomology |
| 400 | |
| 401 | /-- The norm of an element of a Galois-stable subgroup `U ≤ Lˣ` is the product of its conjugates, |
| 402 | so it lies in `U ∩ Kˣ`. -/ |
| 403 | private lemma New.norm_range_le_comap {K L : Type} [Field K] [Field L] [Algebra K L] |
| 404 | [FiniteDimensional K L] [IsGalois K L] (U : Subgroup Lˣ) |
| 405 | (hU : ∀ g : Gal(L/K), ∀ y ∈ U, g • y ∈ U) : |
| 406 | ((Units.map (norm K : L →* K)).domRestrict U).range ≤ |
| 407 | U.comap (Units.map (algebraMap K L : K →* L)) := by |
| 408 | rintro _ ⟨y, rfl⟩ |
| 409 | refine Subgroup.mem_comap.mpr <| |
| 410 | mem_of_eq_of_mem ?_ (U.prod_mem (t := .univ) fun g _ ↦ hU g _ y.property) |
| 411 | simp [Units.ext_iff, norm_eq_prod_automorphisms] |
| 412 | |
| 413 | /-- For a Galois-stable subgroup `U ≤ Lˣ` and a generator `g` of `Gal(L/K)`, an element of `U` is |
| 414 | fixed by `g` (hence by the whole Galois group) if and only if it comes from `U ∩ Kˣ`. -/ |
| 415 | private lemma New.exact_subgroupComap_sub_one {K L : Type} [Field K] [Field L] [Algebra K L] |
| 416 | [IsGalois K L] (U : Subgroup Lˣ) |
| 417 | (hU : ∀ g' : Gal(L/K), ∀ y ∈ U, g' • y ∈ U) {g : Gal(L/K)} |
| 418 | (hg : ∀ g' : Gal(L/K), g' ∈ Subgroup.zpowers g) : |
| 419 | Function.Exact |
| 420 | (subgroupComap (Units.map (algebraMap K L : K →* L)) U).toAdditive.toIntLinearMap |
| 421 | ⇑((unitsRep.subrepresentation U.toAddSubgroup.toIntSubmodule hU g : |
| 422 | End ℤ (Additive U)) - 1) := by |
| 423 | let val (v : Additive U) : L := (((Additive.toMul v : U) : Lˣ) : L) |
| 424 | refine fun y ↦ sub_eq_zero.trans ⟨fun hy ↦ ?_, ?_⟩ |
| 425 | · -- `y` is fixed by `g`, hence by the whole group, so it comes from `Kˣ`. |
| 426 | have h_fixed_g : g • val y = val y := congrArg val hy |
| 427 | obtain ⟨x, hx⟩ := (DiscreteUnits.ofBase_bijective (Γ := Gal(L/K)) (K := K)).surjective |
| 428 | ⟨((Additive.toMul y : U) : Lˣ), |
| 429 | fun g' ↦ ext (smul_eq_self_of_mem_zpowers (hg g') h_fixed_g)⟩ |
| 430 | exact (range_restrictPreimage ..).ge ⟨x, Subtype.ext_iff.mp hx⟩ |
| 431 | · rintro ⟨x, rfl⟩ |
| 432 | exact Subtype.ext (ext (g.commutes _)) |
| 433 | |
| 434 | /-- For a Galois-stable subgroup `U ≤ Lˣ` with `H¹(Gal(L/K), U) = 0` and a generator `g` of |
| 435 | `Gal(L/K)`, the kernel of the norm `U → U ∩ Kˣ` consists of the elements `g • w / w` with |
| 436 | `w ∈ U`. -/ |
| 437 | private lemma New.exact_sub_one_norm {K L : Type} [Field K] [Field L] [Algebra K L] |
| 438 | [FiniteDimensional K L] [IsGalois K L] (U : Subgroup Lˣ) |
| 439 | (hU : ∀ g' : Gal(L/K), ∀ y ∈ U, g' • y ∈ U) |
| 440 | (hH1 : ∀ z : Lˣ, (∀ g' : Gal(L/K), g' • z / z ∈ U) → |
| 441 | ∃ x : Kˣ, x.map (algebraMap K L) / z ∈ U) |
| 442 | {g : Gal(L/K)} (hg : ∀ g' : Gal(L/K), g' ∈ Subgroup.zpowers g) : |
| 443 | Function.Exact |
| 444 | ⇑((unitsRep.subrepresentation U.toAddSubgroup.toIntSubmodule hU g : |
| 445 | End ℤ (Additive U)) - 1) |
| 446 | (codRestrict _ (U.comap (Units.map (algebraMap K L : K →* L))) |
| 447 | fun y ↦ norm_range_le_comap U hU ⟨y, rfl⟩).toAdditive.toIntLinearMap := by |
| 448 | have : IsCyclic Gal(L/K) := ⟨⟨g, hg⟩⟩ |
| 449 | let σ : Gal(L/K) →* End ℤ (Additive U) := |
| 450 | unitsRep.subrepresentation U.toAddSubgroup.toIntSubmodule hU |
| 451 | let V : Subgroup Kˣ := U.comap (Units.map (algebraMap K L : K →* L)) |
| 452 | let N : U →* V := codRestrict _ V fun y ↦ norm_range_le_comap U hU ⟨y, rfl⟩ |
| 453 | let val (v : Additive U) : L := (((Additive.toMul v : U) : Lˣ) : L) |
| 454 | change Function.Exact ⇑(σ g - 1) N.toAdditive.toIntLinearMap |
| 455 | refine .of_comp_of_mem_range ?_ fun y hy ↦ ?_ |
| 456 | · -- `g • w` and `w` have the same norm. |
| 457 | ext x |
| 458 | have h_σ_apply : val (σ g x) = g (val x) := rfl |
| 459 | simp only [val] at h_σ_apply |
| 460 | simp [N, field, h_σ_apply, norm_eq_of_algEquiv] |
| 461 | · -- By Hilbert 90, `y = z / g z` with `z ∈ Lˣ`. So the class of `z` in `Lˣ / U` is fixed by |
| 462 | -- `g`, hence by the whole group, and `hH1` gives `x ∈ Kˣ` with `w = x / z ∈ U`; then |
| 463 | -- `g • w / w = z / g z = y`. |
| 464 | have h_norm_one : Algebra.norm K (val y) = 1 := |
| 465 | congrArg (fun v : Additive V ↦ (((Additive.toMul v : V) : Kˣ) : K)) hy |
| 466 | obtain ⟨z, hz⟩ : ∃ z : Lˣ, (z : L) / g z = val y := |
| 467 | exists_div_of_norm_eq_one hg (x := ((Additive.toMul y : U) : Lˣ)) h_norm_one |
| 468 | let ρq : Representation ℤ Gal(L/K) (DiscreteUnits L ⧸ U.toAddSubgroup.toIntSubmodule) := |
| 469 | (unitsRep (Γ := Gal(L/K))).quotient U.toAddSubgroup.toIntSubmodule hU |
| 470 | have fixed_g : ρq g ⟦.ofMul z⟧ = ⟦.ofMul z⟧ := by |
| 471 | refine ((Submodule.Quotient.eq _).mpr (mem_of_eq_of_mem ?_ y.property)).symm |
| 472 | ext |
| 473 | simpa |
| 474 | obtain ⟨x, hx⟩ : ∃ x : Kˣ, x.map (algebraMap K L) / z ∈ U := |
| 475 | hH1 z fun g' ↦ (Submodule.Quotient.eq _).mp |
| 476 | ((ρq.mem_invariants_iff_of_forall_mem_zpowers g hg _).mpr fixed_g g') |
| 477 | refine ⟨.ofMul ⟨_, hx⟩, Subtype.ext (Units.ext ?_)⟩ |
| 478 | -- With `a` the image of `x`, `(σ g - 1) w` is `g • w / w` in `Lˣ` for `w = a / z`. |
| 479 | let w : Lˣ := x.map (algebraMap K L) / z |
| 480 | change ((g • w / w : Lˣ) : L) = val y |
| 481 | rw [← hz] |
| 482 | simp [w, field] |
| 483 | |
| 484 | /-- Tate's index formula for the norm `N` of a Galois extension `L / K` of prime degree `l`. |
| 485 | Let `U ≤ Lˣ` be Galois-stable, `V = U ∩ Kˣ`, and suppose that every Galois-fixed class of |
| 486 | `Lˣ / U` comes from `Kˣ` (by Hilbert 90 this says `H¹(Gal(L/K), U) = 0`). With |
| 487 | `q_A = #(A / A ^ l) / #A[l]` and `q_V ≠ 0`, one has `[V : N U] ^ (l - 1) * q_U = q_V ^ l`. -/ |
| 488 | lemma New.tate_index_formula_norm {K L : Type} [Field K] [Field L] [Algebra K L] |
| 489 | [FiniteDimensional K L] [IsGalois K L] (l : ℕ) (hL : finrank K L = l) [Fact l.Prime] |
| 490 | (U : Subgroup Lˣ) (V : Subgroup Kˣ) (hV : V = U.comap (Units.map (algebraMap K L))) |
| 491 | (hU : ∀ g : Gal(L/K), ∀ y ∈ U, g • y ∈ U) |
| 492 | (hH1 : ∀ z : Lˣ, (∀ g : Gal(L/K), g • z / z ∈ U) → ∃ x : Kˣ, x.map (algebraMap K L) / z ∈ U) |
| 493 | (hqV : cokerKerIndex (l : End ℤ (Additive V)) ≠ 0) : |
| 494 | (U.map (Units.map (Algebra.norm K))).relIndex V ^ (l - 1) * |
| 495 | cokerKerIndex (l : End ℤ (Additive U)) = |
| 496 | cokerKerIndex (l : End ℤ (Additive V)) ^ l := by |
| 497 | -- Apply `Tate.index_formula` to `B = U`, `C = V` (written additively), a generator `g` of the |
| 498 | -- Galois group, the inclusion `j : V → U` and the norm `N : U → V`. |
| 499 | subst hL hV |
| 500 | have cyc : IsCyclic Gal(L/K) := isCyclic_of_prime_card (card_aut_eq_finrank K L) |
| 501 | obtain ⟨g, hg⟩ := IsCyclic.exists_generator (α := Gal(L/K)) |
| 502 | let σ : Gal(L/K) →* End ℤ (Additive U) := |
| 503 | unitsRep.subrepresentation U.toAddSubgroup.toIntSubmodule hU |
| 504 | set V : Subgroup Kˣ := U.comap (map (algebraMap K L : K →* L)) |
| 505 | -- The relative index is the index in `V` of the range of the norm `N : U → V`. |
| 506 | rw [Subgroup.relIndex, ← domRestrict_range, |
| 507 | subgroupOf_range_eq_of_le _ (norm_range_le_comap U hU)] |
| 508 | let N : U →* V := codRestrict _ V fun y ↦ norm_range_le_comap U hU ⟨y, rfl⟩ |
| 509 | let j : V →* U := subgroupComap _ U |
| 510 | have pow_eq_one : σ g ^ finrank K L = 1 := by simp [← card_aut_eq_finrank, ← map_pow] |
| 511 | have j_inj : Function.Injective j.toAdditive.toIntLinearMap := |
| 512 | .restrictPreimage _ (map_injective (algebraMap K L).injective) |
| 513 | have norm_incl : N.toAdditive.toIntLinearMap ∘ₗ j.toAdditive.toIntLinearMap = finrank K L := |
| 514 | LinearMap.ext fun _ ↦ Subtype.ext (Units.ext (Algebra.norm_algebraMap _)) |
| 515 | exact Tate.index_formula N.toAdditive.toIntLinearMap j.toAdditive.toIntLinearMap (σ g) hqV |
| 516 | pow_eq_one j_inj (exact_subgroupComap_sub_one U hU hg) (exact_sub_one_norm U hU hH1 hg) |
| 517 | norm_incl |
| 518 | |
| 519 | end TateNormIndex |