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 | import Mathlib.Algebra.Algebra.Subalgebra.Matrix |
| 4 | import Mathlib.Algebra.Module.StablyFree.Basic |
| 5 | import Mathlib.LinearAlgebra.Matrix.FiniteDimensional |
| 6 | public import Mathlib.LinearAlgebra.Matrix.Rank |
| 7 | import Mathlib.RingTheory.Coalgebra.CoassocSimps |
| 8 | import Mathlib.RingTheory.Coalgebra.IsFrobenius |
| 9 | import Mathlib.RingTheory.Etale.Weakly |
| 10 | import Mathlib.RingTheory.SimpleModule.IsAlgClosed |
| 11 | import Mathlib.RingTheory.TotallySplit |
| 12 | import Mathlib.Topology.Algebra.Group.Matrix |
| 13 | import Mathlib.Topology.Baire.LocallyCompactRegular |
| 14 | import Mathlib.Topology.Connected.Separation |
| 15 | import Mathlib.Topology.MetricSpace.Ultra.TotallySeparated |
| 16 | import TauCeti.LinearAlgebra.Trace.Idempotent |
| 17 | public import Lib.General.NumberTheory.CoefficientRings |
| 18 | public import Lib.General.LinearAlgebra.MatrixPolynomials |
| 19 | import Lib.ClassField.Places.DecompositionCompletion |
| 20 | import Lib.General.LinearAlgebra.MatrixNormBounds |
| 21 | import Lib.PadicComparison.Descent.TestCategory |
| 22 | |
| 23 | /-! |
| 24 | # Semisimple representations: conjugacy, continuity, cancellation and stable lattices |
| 25 | |
| 26 | This file studies representations `r : G →* GL n k` over an algebraically closed field `k` of |
| 27 | characteristic zero, with semisimplicity expressed by `New.IsTraceNondeg r`. It proves the |
| 28 | Wedderburn–Artin decomposition for maps with semiprime span and Clifford's theorem for |
| 29 | restriction to a normal subgroup. It then shows that equal traces give conjugate |
| 30 | representations, and that continuity follows from the trace. It treats twists by characters |
| 31 | and the cancellation of characters. For continuous ℓ-adic representations of compact groups it |
| 32 | constructs stable lattices over rings of integers `O`. |
| 33 | |
| 34 | ## Main definitions and results |
| 35 | |
| 36 | * `New.IsTraceNondeg.exists_conj_of_trace_eq`: equal traces give conjugate representations. |
| 37 | * `New.IsTraceNondeg.continuous_of_trace`: continuity from the trace. |
| 38 | * `New.IsTraceNondeg.exists_cancel_chars`: if two representations have the same trace after |
| 39 | subtracting two families of characters with no common member, this common function is the trace |
| 40 | of a representation. |
| 41 | * `New.eventually_exists_isLatticeIn`: a continuous representation r of a compact group has a |
| 42 | lattice over every large enough O. |
| 43 | |
| 44 | Notions from other files: |
| 45 | * `New.IsTraceNondeg`: Non-degeneracy of the trace form on the span of r(G): any x in that span with |
| 46 | tr(x r(g)) = 0 for all g is zero. |
| 47 | * `New.CoeffRing`: Rings of integers of finite Galois extensions of `ℚ_ℓ` inside `ℚ̄_ℓ`, where the |
| 48 | class `ThePrime ℓ` records that ℓ is the fixed prime. |
| 49 | |
| 50 | ## Relation to the literature |
| 51 | |
| 52 | Known; see `Lib.GaloisRep.Pseudocharacter.Pseudorepresentations` for sources. |
| 53 | -/ |
| 54 | |
| 55 | @[expose] public section |
| 56 | |
| 57 | noncomputable section |
| 58 | |
| 59 | /-! |
| 60 | ## Wedderburn–Artin, Clifford's theorem and conjugacy from traces |
| 61 | |
| 62 | For a map `ρ : G →* B` into a finite-dimensional algebra, semisimplicity is used in the form |
| 63 | `New.HasSemiprimeSpan k ρ`. The Wedderburn–Artin theorem writes the restriction of `ρ` to a normal |
| 64 | subgroup as an algebra map out of a product `New.PiMatrix` of matrix algebras. Maps out of such a |
| 65 | product are compared through the matrix units `New.piMatrixUnit`. |
| 66 | |
| 67 | * `New.exists_rep_of_trace`: a tracial form with natural values at the matrix units is a character. |
| 68 | * `New.IsTraceNondeg.comp`: restriction to a normal subgroup stays semisimple (Clifford). |
| 69 | -/ |
| 70 | |
| 71 | section SemisimpleReps |
| 72 | |
| 73 | open Matrix Submodule Fintype ConjAct IsArtinianRing Set Algebra Pi Units LinearMap |
| 74 | |
| 75 | namespace New |
| 76 | |
| 77 | variable {k G H n N B : Type} [Field k] [Group G] [Fintype n] [DecidableEq n] [Fintype N] |
| 78 | [DecidableEq N] {m : ℕ} {d : Fin m → ℕ} |
| 79 | {r : G →* GL n k} [∀ i, NeZero (d i)] |
| 80 | |
| 81 | /-! ### Products of matrix algebras and idempotents -/ |
| 82 | |
| 83 | /-- The product over i of the matrix algebras M_{d_i}(k). -/ |
| 84 | abbrev PiMatrix (k : Type*) (d : Fin m → ℕ) : Type _ := ∀ i : Fin m, |
| 85 | Matrix (Fin (d i)) (Fin (d i)) k |
| 86 | |
| 87 | /-- The R-algebra homomorphism from ∏_i M_{m_i}(R) to matrices indexed by the disjoint union of |
| 88 | the m_i, sending a family of square matrices to the block diagonal matrix. -/ |
| 89 | @[simps!] |
| 90 | def blockDiagonalAlgHom {R o : Type*} {m : o → Type} [CommRing R] [DecidableEq o] [Fintype o] |
| 91 | [∀ i, Fintype (m i)] [∀ i, DecidableEq (m i)] : |
| 92 | (∀ i : o, Matrix (m i) (m i) R) →ₐ[R] Matrix (Σ i : o, m i) (Σ i : o, m i) R := |
| 93 | AlgHom.mk' (blockDiagonal'RingHom m R) (by simp) |
| 94 | |
| 95 | /-- The element of the product of matrix algebras M_{d_i}(k) that is the matrix unit E_ab in |
| 96 | factor i and zero elsewhere; a, b default to 0. -/ |
| 97 | abbrev piMatrixUnit (i : Fin m) (a b : Fin (d i) := 0) : PiMatrix k d := |
| 98 | Pi.single i (Matrix.single a b 1) |
| 99 | |
| 100 | lemma sum_piMatrixUnit : ∑ i : Fin m, ∑ a : Fin (d i), (piMatrixUnit i a a : PiMatrix k d) = 1 := by |
| 101 | -- in the block `i` only the terms of index `i` are left, and they add up to the identity matrix |
| 102 | funext i |
| 103 | simp_all [sum_eq_single i, sum_single_one] |
| 104 | |
| 105 | /-- If `A'` has rank at most that of `A`, then `A' = U' * A * U` for some matrices `U`, `U'`. -/ |
| 106 | lemma exists_mul_mul_eq_of_rank_le {A : Matrix N N k} {A' : Matrix n n k} (h : A'.rank ≤ A.rank) : |
| 107 | ∃ (U : Matrix N n k) (U' : Matrix n N k), U' * A * U = A' := by |
| 108 | -- The range of `A'` embeds by some `J` in the range of `A`. A lift of `J` through `A` gives `U`, |
| 109 | -- and a left inverse of `J` gives `U'`. |
| 110 | let R : Submodule k (N → k) := range A.mulVecLin |
| 111 | let R' : Submodule k (n → k) := range A'.mulVecLin |
| 112 | obtain ⟨J, J_inj⟩ : ∃ J : R' →ₗ[k] R, Function.Injective J := |
| 113 | finrank_le_iff_exists_linearMap.1 (by simpa only [R, R', finrank_range_mulVecLin] using h) |
| 114 | obtain ⟨lift, h_lift⟩ : ∃ lift : R' →ₗ[k] N → k, A.mulVecLin.rangeRestrict ∘ₗ lift = J := |
| 115 | Module.projective_lifting_property _ J A.mulVecLin.surjective_rangeRestrict |
| 116 | obtain ⟨L, hL⟩ : ∃ L : (N → k) →ₗ[k] R', L ∘ₗ R.subtype ∘ₗ J = .id := |
| 117 | (R.subtype ∘ₗ J).exists_leftInverse_of_injective |
| 118 | (ker_eq_bot.2 (R.injective_subtype.comp J_inj)) |
| 119 | have left_inv (y : R') : L (A *ᵥ lift y) = y := by |
| 120 | rw [show A *ᵥ lift y = J y from congrArg Subtype.val (LinearMap.congr_fun h_lift y)] |
| 121 | exact LinearMap.congr_fun hL y |
| 122 | refine ⟨(lift ∘ₗ A'.mulVecLin.rangeRestrict).toMatrix', (R'.subtype ∘ₗ L).toMatrix', |
| 123 | ext_iff_mulVec.2 fun x ↦ ?_⟩ |
| 124 | simp [← mulVec_mulVec, left_inv] |
| 125 | |
| 126 | variable {p : Matrix n n k} (f : PiMatrix k d →ₐ[k] Matrix N N k) |
| 127 | (f' : PiMatrix k d →ₐ[k] Matrix n n k) [Ring B] [Group H] [Algebra k B] [Module.Finite k B] |
| 128 | (ρ : G →* B) |
| 129 | |
| 130 | omit [DecidableEq n] in |
| 131 | /-- The trace of an idempotent matrix is its rank. In characteristic zero, the matrix is zero |
| 132 | exactly when its trace is zero. -/ |
| 133 | lemma trace_of_idempotent [CharZero k] (hp : IsIdempotentElem p) : |
| 134 | p.trace = p.rank ∧ (p = 0 ↔ p.trace = 0) := |
| 135 | ⟨IsIdempotentElem.trace_eq_rank hp, fun h ↦ by simp [h], |
| 136 | Matrix.IsIdempotentElem.eq_zero_of_trace_eq_zero hp⟩ |
| 137 | |
| 138 | attribute [local ext] ext_linearMap |
| 139 | |
| 140 | omit [Module.Finite k B] in |
| 141 | lemma isIdempotentElem_map_piMatrixUnit (f : PiMatrix k d →ₐ[k] B) (i : Fin m) : |
| 142 | IsIdempotentElem (f (piMatrixUnit i)) := |
| 143 | IsIdempotentElem.map (by simp [IsIdempotentElem, ← Pi.single_mul]) f |
| 144 | |
| 145 | omit [∀ i, NeZero (d i)] in |
| 146 | /-- Let `k` have characteristic zero. If `r = f' ∘ s`, where the image of |
| 147 | `s` spans a finite product of matrix algebras and `f'` is an algebra map to `M_n(k)`, then the |
| 148 | trace form on the span of `r(G)` is non-degenerate. -/ |
| 149 | lemma IsTraceNondeg.of_span_piMatrix [CharZero k] |
| 150 | {s : G → PiMatrix k d} (s_span : span k (Set.range s) = ⊤) (hr : ∀ g : G, f' (s g) = r g) : |
| 151 | IsTraceNondeg r := by |
| 152 | -- Write `x = f' a`. The left ideal spanned by `a` is spanned by an idempotent `c * a`. Its image |
| 153 | -- has trace zero, so it is zero (characteristic zero), and `a` is a multiple of `c * a`. |
| 154 | intro x hx h_trace |
| 155 | obtain ⟨a, rfl⟩ : ∃ a : PiMatrix k d, f' a = x := |
| 156 | mem_span.1 hx f'.range.toSubmodule (range_subset_iff.2 fun g ↦ ⟨s g, hr g⟩) |
| 157 | obtain ⟨c, idem, b, hb⟩ : |
| 158 | ∃ c : PiMatrix k d, IsIdempotentElem (c * a) ∧ ∃ b : PiMatrix k d, b * (c * a) = a := by |
| 159 | simpa [le_antisymm_iff, mem_span_singleton] using |
| 160 | IsSemisimpleRing.ideal_eq_span_idempotent (PiMatrix k d ∙ a) |
| 161 | -- The trace of `f' (y * a)` is linear in `y` and vanishes on the spanning family `s`. |
| 162 | have trace_zero (y : PiMatrix k d) : (f' (y * a)).trace = 0 := by |
| 163 | have h_lin : traceLinearMap n k k ∘ₗ f'.toLinearMap ∘ₗ .mulRight k a = 0 := |
| 164 | LinearMap.ext_on_range s_span fun g ↦ by simp [hr, Matrix.trace_mul_comm _ (f' a), h_trace] |
| 165 | simpa using LinearMap.congr_fun h_lin y |
| 166 | have idem_zero : f' (c * a) = 0 := |
| 167 | Matrix.IsIdempotentElem.eq_zero_of_trace_eq_zero (idem.map f') (trace_zero c) |
| 168 | rw [← hb, map_mul, idem_zero, mul_zero] |
| 169 | |
| 170 | /-- Let `k` be an algebraically closed field of characteristic zero, and let `s : G →* PiMatrix k d` |
| 171 | be a homomorphism into the product ∏_i M_{d_i}(k) of matrix algebras whose image spans the product. |
| 172 | Let `τ` be a `k`-linear form on the product with `τ (x * y) = τ (y * x)`, taking a natural number |
| 173 | value on `piMatrixUnit i` (the matrix unit E_00 in factor `i`, zero elsewhere) for each `i`, and |
| 174 | with `τ 1 = card n`. Then there is a representation `r : G →* GL n k` with trace `τ ∘ s` whose trace |
| 175 | form is non-degenerate on the span of the `r g`, meaning any `x` in that span with |
| 176 | `tr (x * r g) = 0` for all `g` is zero. -/ |
| 177 | lemma exists_rep_of_trace [CharZero k] |
| 178 | {s : G →* PiMatrix k d} (h_span : span k (Set.range s) = ⊤) |
| 179 | (τ : PiMatrix k d →ₗ[k] k) (h_comm : ∀ x y : PiMatrix k d, τ (x * y) = τ (y * x)) |
| 180 | (h_nat : ∀ i : Fin m, ∃ c : ℕ, τ (piMatrixUnit i) = c) (h_one : τ 1 = Fintype.card n) : |
| 181 | ∃ r : G →* GL n k, IsTraceNondeg r ∧ ∀ g : G, (r g).val.trace = τ (s g) := by |
| 182 | choose c hc using h_nat |
| 183 | -- A tracial form is a combination of the traces of the blocks, with coefficients `c i`. |
| 184 | have τ_unit (i : Fin m) (a b : Fin (d i)) : |
| 185 | τ (piMatrixUnit i a b) = if a = b then (c i : k) else 0 := by |
| 186 | have h_swap : τ (piMatrixUnit i a * piMatrixUnit i 0 b) = |
| 187 | τ (piMatrixUnit i 0 b * piMatrixUnit i a) := h_comm _ _ |
| 188 | split_ifs with hab |
| 189 | · simpa [hab, hc, ← single_mul_left] using h_swap |
| 190 | · simpa [Ne.symm hab, ← single_mul_left] using h_swap |
| 191 | have τ_eq (z : PiMatrix k d) : τ z = ∑ i : Fin m, c i * (z i).trace := by |
| 192 | have τ_lsum : τ = lsum k _ k fun i : Fin m ↦ c i • traceLinearMap (Fin (d i)) k k := by |
| 193 | ext i a b |
| 194 | have trace_unit : (Matrix.single a b (1 : k)).trace = if a = b then 1 else 0 := by |
| 195 | split_ifs with hab <;> simp [hab] |
| 196 | simpa [-lsum_apply, lsum_piSingle, trace_unit] using τ_unit i a b |
| 197 | simp [τ_lsum] |
| 198 | -- Repeat the block `i` along the diagonal `c i` times; the total size is `τ 1 = card n`. |
| 199 | let ι : Type := Σ p : Σ i : Fin m, Fin (c i), Fin (d p.1) |
| 200 | let blocks : PiMatrix k d →ₐ[k] Matrix ι ι k := |
| 201 | blockDiagonalAlgHom.comp (.pi fun p ↦ evalAlgHom k _ p.1) |
| 202 | have trace_blocks (z : PiMatrix k d) : (blocks z).trace = τ z := by |
| 203 | simp +instances [blocks, ι, trace_blockDiagonal', τ_eq, sum_sigma] |
| 204 | have h_card : card ι = card n := by |
| 205 | refine Nat.cast_injective (R := k) ?_ |
| 206 | rw [← h_one, ← trace_blocks, map_one, Matrix.trace_one] |
| 207 | let φ : PiMatrix k d →ₐ[k] Matrix n n k := |
| 208 | (reindexAlgEquiv k k (equivOfCardEq h_card)).toAlgHom.comp blocks |
| 209 | refine ⟨.toHomUnits (.comp φ s), .of_span_piMatrix φ h_span (by simp), fun g ↦ ?_⟩ |
| 210 | simp [φ, -coe_reindexAlgEquiv, trace_blocks] |
| 211 | |
| 212 | /-! ### Intertwiners between algebra maps -/ |
| 213 | |
| 214 | /-- Given algebra maps f, f' from the product of the M_{d_i}(k) to matrix algebras and matrices U_i, |
| 215 | this is the matrix Σ_i Σ_a f(E^i_{a0}) U_i f'(E^i_{0a}). -/ |
| 216 | def intertwiner (U : Fin m → Matrix N n k) : Matrix N n k := |
| 217 | ∑ i : Fin m, ∑ a : Fin (d i), f (piMatrixUnit i a) * U i * f' (piMatrixUnit i 0 a) |
| 218 | |
| 219 | /-- Multiplying `intertwiner f f' U` on the right by the image under `f'` of the matrix unit |
| 220 | E^i_{ab} gives f(E^i_{a0}) U_i f'(E^i_{0b}). -/ |
| 221 | lemma intertwiner_mul_map_piMatrixUnit (U : Fin m → Matrix N n k) (i : Fin m) (a b : Fin (d i)) : |
| 222 | intertwiner f f' U * f' (piMatrixUnit i a b) = |
| 223 | f (piMatrixUnit i a) * U i * f' (piMatrixUnit i 0 b) := by |
| 224 | -- Products of matrix units vanish unless block and index match, so one term of the sum is left. |
| 225 | simp +contextual [intertwiner, ← map_mul, eq_comm, sum_eq_single i, |
| 226 | sum_eq_single a, Matrix.mul_assoc, Matrix.sum_mul, ← single_mul_left] |
| 227 | |
| 228 | /-- Multiplying `intertwiner f f' U` on the left by the image under `f` of the matrix unit |
| 229 | E^i_{ab} gives the same matrix f(E^i_{a0}) U_i f'(E^i_{0b}). -/ |
| 230 | lemma map_piMatrixUnit_mul_intertwiner (U : Fin m → Matrix N n k) (i : Fin m) (a b : Fin (d i)) : |
| 231 | f (piMatrixUnit i a b) * intertwiner f f' U = |
| 232 | f (piMatrixUnit i a) * U i * f' (piMatrixUnit i 0 b) := by |
| 233 | -- Products of matrix units vanish unless block and index match, so one term of the sum is left. |
| 234 | simp +contextual [intertwiner, ← map_mul, ← (f _).mul_assoc (f _), eq_comm, sum_eq_single i, |
| 235 | sum_eq_single b, Matrix.mul_assoc, ← single_mul_left, Matrix.mul_sum] |
| 236 | |
| 237 | /-- `intertwiner f f' U` intertwines the two actions of the product of matrix algebras. -/ |
| 238 | lemma mul_intertwiner (U : Fin m → Matrix N n k) (z : PiMatrix k d) : |
| 239 | f z * intertwiner f f' U = intertwiner f f' U * f' z := by |
| 240 | -- Both sides are linear in `z`: expand `z` in the matrix units. |
| 241 | rw [← (Pi.basis fun i ↦ stdBasis k (Fin (d i)) (Fin (d i))).sum_repr z] |
| 242 | simp [sum_prod_type, stdBasis_eq_single, intertwiner_mul_map_piMatrixUnit, |
| 243 | map_piMatrixUnit_mul_intertwiner, sum_sigma, Matrix.sum_mul, Matrix.mul_sum] |
| 244 | |
| 245 | /-- Let `f` and `f'` be matrix representations of a product of matrix algebras. The rank of |
| 246 | `f (piMatrixUnit i)` is the multiplicity of the block `i` in `f`. If each block occurs in `f'` at |
| 247 | most as often as in `f`, then there is an intertwiner `P` from `f'` to `f` with a left inverse. -/ |
| 248 | lemma exists_piMatrix_retract |
| 249 | (h_rank : ∀ i : Fin m, (f' (piMatrixUnit i)).rank ≤ (f (piMatrixUnit i)).rank) : |
| 250 | ∃ (P : Matrix N n k) (Q : Matrix n N k), Q * P = 1 ∧ ∀ z : PiMatrix k d, |
| 251 | f z * P = P * f' z := by |
| 252 | -- The inequality of ranks gives matrices `U i`, `U' i` that cut `f' (piMatrixUnit i)` out of |
| 253 | -- `f (piMatrixUnit i)`. The sums `intertwiner` made of them are `P` and `Q`. |
| 254 | have exists_retract (i : Fin m) : ∃ (U : Matrix N n k) (U' : Matrix n N k), |
| 255 | U' * f (piMatrixUnit i) * U = f' (piMatrixUnit i) := exists_mul_mul_eq_of_rank_le (h_rank i) |
| 256 | choose U U' retract using exists_retract |
| 257 | have unit_mul (i : Fin m) (a : Fin (d i)) : (piMatrixUnit i a * piMatrixUnit i * |
| 258 | piMatrixUnit i 0 a : PiMatrix k d) = piMatrixUnit i a a := by simp [← single_mul_left] |
| 259 | refine ⟨intertwiner f f' U, intertwiner f' f U', ?_, mul_intertwiner f f' U⟩ |
| 260 | calc intertwiner f' f U' * intertwiner f f' U |
| 261 | _ = ∑ i : Fin m, ∑ a : Fin (d i), |
| 262 | f' (piMatrixUnit i a) * (U' i * f (piMatrixUnit i) * U i) * f' (piMatrixUnit i 0 a) := by |
| 263 | simp [intertwiner.eq_1 f', map_piMatrixUnit_mul_intertwiner, Matrix.mul_assoc, Matrix.sum_mul] |
| 264 | _ = ∑ i : Fin m, ∑ a : Fin (d i), f' (piMatrixUnit i a a) := by |
| 265 | simp only [retract, ← map_mul, unit_mul] |
| 266 | _ = 1 := by simp only [← map_sum, sum_piMatrixUnit, map_one] |
| 267 | |
| 268 | variable (k) in |
| 269 | /-- The span of ρ(G) in B is semiprime: any x in it with x ρ(g) x = 0 for all g is zero. -/ |
| 270 | def HasSemiprimeSpan : Prop := ∀ x ∈ span k (Set.range ρ), (∀ g : G, x * ρ g * x = 0) → x = 0 |
| 271 | |
| 272 | omit [Module.Finite k B] in |
| 273 | /-- In a semiprime component, the sandwich condition forces the projected element to vanish. -/ |
| 274 | private lemma component_eq_zero {A : Type} [Ring A] [Algebra k A] {σ : G →* B} {x : B} |
| 275 | (hx : x ∈ span k (Set.range σ)) (hz : ∀ g, x * σ g * x = 0) |
| 276 | (f : B →ₐ[k] A) (h : HasSemiprimeSpan k (f.toMonoidHom.comp σ)) : f x = 0 := by |
| 277 | apply h _ ?_ fun g ↦ by simpa [MonoidHom.comp_apply] using congrArg f (hz g) |
| 278 | change f.toLinearMap x ∈ span k (range (f.toLinearMap ∘ σ)) |
| 279 | simpa only [range_comp] using apply_mem_span_image_of_mem_span f.toLinearMap hx |
| 280 | |
| 281 | /-! ### The Wedderburn decomposition and its consequences -/ |
| 282 | |
| 283 | /-- The Wedderburn–Artin theorem for the span of `ρ ∘ f`. Let `ρ : G →* B` have semiprime span and |
| 284 | let `f : H →* G` have normal range. Then `ρ ∘ f = F ∘ s`, where the image of `s` spans a product of |
| 285 | matrix algebras and the algebra map `F` kills no block of that product. -/ |
| 286 | lemma exists_wedderburn [IsAlgClosed k] [CharZero k] (f : H →* G) |
| 287 | (h_semiprime : HasSemiprimeSpan k ρ) (h_normal : f.range.Normal) : |
| 288 | ∃ (b : ℕ) (d : Fin b → ℕ) (_ : ∀ i : Fin b, NeZero (d i)) |
| 289 | (s : H →* PiMatrix k d) (F : PiMatrix k d →ₐ[k] B), |
| 290 | (∀ i : Fin b, F (piMatrixUnit i) ≠ 0) ∧ |
| 291 | span k (Set.range s) = ⊤ ∧ |
| 292 | ∀ g : H, F (s g) = ρ (f g) := by |
| 293 | -- The span `A` of `ρ (f H)` is an algebra stable under conjugation by `ρ G`. Its radical is zero, |
| 294 | -- so by the Wedderburn–Artin theorem it is a product of matrix algebras. |
| 295 | let A : Subalgebra k B := adjoin k (range (ρ.comp f)) |
| 296 | have A_span : A.toSubmodule = span k (range (ρ.comp f)) := by |
| 297 | rw [adjoin_eq_span, MonoidHom.mclosure_range, MonoidHom.coe_mrange] |
| 298 | have A_artinian : IsArtinianRing A := of_finite k A |
| 299 | let conj (g : G) : B →ₐ[k] B := MulSemiringAction.toAlgHom k B (toConjAct (ρ.toHomUnits g)) |
| 300 | have conj_apply (g y : G) : conj g (ρ y) = ρ (g * y * g⁻¹) := by |
| 301 | simp [conj, units_smul_def, ← map_inv] |
| 302 | have conj_mem (g : G) : A ≤ A.comap (conj g) := by |
| 303 | refine adjoin_le ?_ |
| 304 | rintro - ⟨y, rfl⟩ |
| 305 | obtain ⟨z, hz⟩ : ∃ z : H, f z = g * f y * g⁻¹ := h_normal.conj_mem (f y) ⟨y, rfl⟩ g |
| 306 | exact subset_adjoin ⟨z, by simp [conj_apply, hz]⟩ |
| 307 | let conjA (g : G) : A →+* A := .restrict (conj g) A A (conj_mem g) |
| 308 | have conjA_surj (g : G) : RingHomSurjective (conjA g⁻¹) := |
| 309 | ⟨fun y ↦ ⟨conjA g y, Subtype.ext (show conj g⁻¹ (conj g y.val) = y.val by simp [conj])⟩⟩ |
| 310 | have radical_zero : Ring.jacobson A = ⊥ := by |
| 311 | -- Otherwise the radical contains a minimal left ideal `I`, which it kills (Nakayama). |
| 312 | refine (eq_bot_or_exists_atom_le (Ring.jacobson A)).resolve_right fun ⟨I, atom, I_le⟩ ↦ ?_ |
| 313 | have kills : Ring.jacobson A • I = ⊥ := |
| 314 | atom.lt_iff.1 (FG.of_finite.jacobson_smul_lt atom.ne_bot) |
| 315 | refine atom.ne_bot (eq_bot_iff.2 fun x hx ↦ Subtype.ext ?_) |
| 316 | have x_mem : x.val ∈ span k (range ρ) := |
| 317 | span_mono (range_comp_subset_range f ρ) (A_span.le x.property) |
| 318 | refine h_semiprime x x_mem fun g ↦ ?_ |
| 319 | -- The conjugate `(ρ g)⁻¹ * x * ρ g` lies in the radical, so it kills `x`: `x * ρ g * x = 0`. |
| 320 | have conj_rad : conjA g⁻¹ x ∈ Ring.jacobson A := Ring.le_comap_jacobson (conjA g⁻¹) (I_le hx) |
| 321 | have conj_mul : conjA g⁻¹ x * x = 0 := kills.le (smul_mem_smul conj_rad hx) |
| 322 | simpa [conjA, conj, units_smul_def, mul_assoc, Subtype.ext_iff] using conj_mul |
| 323 | have A_semisimple : IsSemisimpleRing A := isSemisimpleRing_iff_jacobson.2 radical_zero |
| 324 | obtain ⟨b, d, hd, ⟨e⟩⟩ := IsSemisimpleRing.exists_algEquiv_pi_matrix_of_isAlgClosed k A |
| 325 | -- the same isomorphism, for the instances of `PiMatrix k d` |
| 326 | replace e : A ≃ₐ[k] PiMatrix k d := by convert! e |
| 327 | let ρA : H →* A := (ρ.comp f).codRestrict A fun y ↦ subset_adjoin ⟨y, rfl⟩ |
| 328 | have ρA_span : span k (range ρA) = ⊤ := |
| 329 | (span_range_subtype_eq_top_iff A.toSubmodule _).2 A_span.symm |
| 330 | refine ⟨b, d, hd, .comp e ρA, A.val.comp e.symm, ?_, ?_, by simp [ρA]⟩ |
| 331 | · simp [← ext_iff, Matrix.single] |
| 332 | · have e_surj : Function.Surjective e.toLinearMap := e.surjective |
| 333 | simpa [Set.range_comp, ← span_image, range_eq_top.2 e_surj] using |
| 334 | congrArg (Submodule.map e.toLinearMap) ρA_span |
| 335 | |
| 336 | /-- If the trace form of `r : G →* GL n k` is non-degenerate on the span of `r(G)`, then this span |
| 337 | is semiprime: any `x` in it with `x * r g * x = 0` for all `g` is zero. This is the hypothesis of |
| 338 | `New.exists_wedderburn`. -/ |
| 339 | lemma IsTraceNondeg.hasSemiprimeSpan (h : IsTraceNondeg r) : |
| 340 | HasSemiprimeSpan k ((coeHom (Matrix n n k)).comp r) := by |
| 341 | -- If `x * r g * x = 0`, then `x * r g` has square zero, so its trace is zero. |
| 342 | refine fun x hx h_zero ↦ h x hx fun g ↦ ?_ |
| 343 | have h_sandwich : x * (r g).val * x = 0 := h_zero g |
| 344 | have h_square_zero : (x * (r g).val) ^ 2 = 0 := by |
| 345 | rw [sq, ← mul_assoc, h_sandwich, zero_mul] |
| 346 | have h_nilpotent : IsNilpotent (x * (r g).val) := ⟨2, h_square_zero⟩ |
| 347 | exact (Matrix.isNilpotent_trace_of_isNilpotent h_nilpotent).eq_zero |
| 348 | |
| 349 | variable [IsAlgClosed k] |
| 350 | |
| 351 | /-- Clifford's theorem for the trace form. Let `k` be algebraically closed of characteristic zero. |
| 352 | If the trace form of `r : G →* GL n k` is non-degenerate and `f : H →* G` has normal range, then |
| 353 | the trace form of `r ∘ f` is non-degenerate. -/ |
| 354 | lemma IsTraceNondeg.comp [CharZero k] |
| 355 | (h : IsTraceNondeg r) (f : H →* G) (h_normal : f.range.Normal) : |
| 356 | IsTraceNondeg (r.comp f) := by |
| 357 | -- the span of `r (f H)` is the image of a product of matrix algebras |
| 358 | obtain ⟨b, d, hd, s, F, -, s_span, hF⟩ := exists_wedderburn _ f h.hasSemiprimeSpan h_normal |
| 359 | exact of_span_piMatrix F s_span hF |
| 360 | |
| 361 | /-- Brauer–Nesbitt in the form used here: over an algebraically closed field `k` of characteristic |
| 362 | `0`, let `r` have non-degenerate trace form, `ρ : G →* B` into a finite-dimensional algebra have |
| 363 | semiprime span, and `φ : B →ₐ[k] Matrix n n k`. If `r` and `φ ∘ ρ` have equal traces, then |
| 364 | `r g * P = P * φ (ρ g)` for one invertible `P`. -/ |
| 365 | lemma IsTraceNondeg.exists_conj_of_trace_eq [CharZero k] |
| 366 | (hr : IsTraceNondeg r) (φ : B →ₐ[k] Matrix n n k) |
| 367 | (hρ : HasSemiprimeSpan k ρ) (h_trace : ∀ g : G, (r g).val.trace = (φ (ρ g)).trace) : |
| 368 | ∃ P : GL n k, ∀ g : G, (r g).val * P = P * φ (ρ g) := by |
| 369 | -- Apply `exists_wedderburn` to the pair `(r, ρ)`. It writes `r = F₁ ∘ s` and `φ ∘ ρ = F₂ ∘ s` for |
| 370 | -- algebra maps `F₁`, `F₂` of equal trace, and `exists_piMatrix_retract` intertwines these. |
| 371 | let pair : G →* Matrix n n k × B := ((coeHom (Matrix n n k)).comp r).prod ρ |
| 372 | have pair_semiprime : HasSemiprimeSpan k pair := by |
| 373 | intro x hx hz |
| 374 | exact Prod.ext (component_eq_zero hx hz (AlgHom.fst k _ _) hr.hasSemiprimeSpan) |
| 375 | (component_eq_zero hx hz (AlgHom.snd k _ _) hρ) |
| 376 | obtain ⟨b, d, _, s, F, -, s_span, hF⟩ := |
| 377 | exists_wedderburn pair (.id G) pair_semiprime ⟨by simp⟩ |
| 378 | let F₁ : PiMatrix k d →ₐ[k] Matrix n n k := (AlgHom.fst k (Matrix n n k) B).comp F |
| 379 | let F₂ : PiMatrix k d →ₐ[k] Matrix n n k := φ.comp ((AlgHom.snd k (Matrix n n k) B).comp F) |
| 380 | have F₁_s (g : G) : F₁ (s g) = r g := congrArg Prod.fst (hF g) |
| 381 | have F₂_s (g : G) : F₂ (s g) = φ (ρ g) := congrArg (fun z ↦ φ z.2) (hF g) |
| 382 | -- Equal traces on the spanning family give equal traces on each matrix factor's |
| 383 | -- matrix-unit idempotent. In characteristic zero these traces recover the ranks, |
| 384 | -- which are the multiplicities used to construct the intertwiner. |
| 385 | have trace_eq (y : PiMatrix k d) : (F₁ y).trace = (F₂ y).trace := by |
| 386 | have h_lin : |
| 387 | traceLinearMap n k k ∘ₗ F₁.toLinearMap = traceLinearMap n k k ∘ₗ F₂.toLinearMap := |
| 388 | LinearMap.ext_on_range s_span fun g ↦ by simp [F₁_s, F₂_s, h_trace] |
| 389 | simpa using LinearMap.congr_fun h_lin y |
| 390 | have rank_eq (i : Fin b) : (F₂ (piMatrixUnit i)).rank = (F₁ (piMatrixUnit i)).rank := by |
| 391 | refine Nat.cast_injective (R := k) ?_ |
| 392 | rw [← IsIdempotentElem.trace_eq_rank (isIdempotentElem_map_piMatrixUnit F₁ i), |
| 393 | ← IsIdempotentElem.trace_eq_rank (isIdempotentElem_map_piMatrixUnit F₂ i), trace_eq] |
| 394 | obtain ⟨P, Q, QP, hP⟩ := exists_piMatrix_retract F₁ F₂ fun i ↦ (rank_eq i).le |
| 395 | exact ⟨⟨P, Q, mul_eq_one_comm.1 QP, QP⟩, fun g ↦ by rw [← F₁_s, ← F₂_s, hP]⟩ |
| 396 | |
| 397 | /-! ### Continuity -/ |
| 398 | |
| 399 | omit [IsAlgClosed k] in |
| 400 | /-- Let k be a field with a ring topology. Let r be a representation of a topological group into |
| 401 | GL_n(k) whose trace form is non-degenerate on the span of its image. If the trace of r is |
| 402 | continuous, then r is continuous. -/ |
| 403 | lemma IsTraceNondeg.continuous_of_trace [TopologicalSpace k] [IsTopologicalRing k] |
| 404 | [TopologicalSpace G] [IsTopologicalGroup G] (h : IsTraceNondeg r) |
| 405 | (h_trace : Continuous fun g : G ↦ (r g).val.trace) : |
| 406 | Continuous r := by |
| 407 | -- On the span `S` of `r G` the trace form is non-degenerate, so each matrix entry is a linear |
| 408 | -- combination of the functionals `L g : x ↦ trace (x * r g)`. These are continuous along `r`. |
| 409 | refine .of_coeHom_comp (continuous_matrix fun i j ↦ ?_) |
| 410 | let S : Submodule k (Matrix n n k) := span k (range fun g : G ↦ (r g).val) |
| 411 | let L (g : G) : S →ₗ[k] k := (traceLinearMap n k k ∘ₗ .mulRight k (r g).val).domRestrict S |
| 412 | have ker_le : ⨅ g : G, ker (L g) ≤ ker ((entryLinearMap k k i j).domRestrict S) := by |
| 413 | intro x hx |
| 414 | simp [show x.val = 0 from h x x.property (by simpa [L] using hx)] |
| 415 | have entry_mem : (entryLinearMap k k i j).domRestrict S ∈ span k (range L) := |
| 416 | FiniteDimensional.mem_span_of_iInf_ker_le_ker ker_le |
| 417 | -- The functionals `φ` for which `g ↦ φ (r g)` is continuous form a subspace. |
| 418 | let along : (S →ₗ[k] k) →ₗ[k] G → k := .pi fun g ↦ .applyₗ ⟨r g, subset_span ⟨g, rfl⟩⟩ |
| 419 | have L_cont (g : G) : Continuous (along (L g)) := by |
| 420 | -- along `r`, the functional `L g` is `x ↦ trace (r (x * g))` |
| 421 | refine (h_trace.comp (continuous_mul_const g)).congr fun x ↦ ?_ |
| 422 | simp [along, L] |
| 423 | exact mem_span.1 entry_mem ((continuousSubmodule ..).comap along) (range_subset_iff.2 L_cont) |
| 424 | |
| 425 | end New |
| 426 | |
| 427 | end SemisimpleReps |
| 428 | |
| 429 | /-! |
| 430 | ## Twists by characters and cancellation of characters |
| 431 | |
| 432 | * `New.twistByChar`, `New.IsTraceNondeg.twist`: the twist by a character, which keeps nondegeneracy. |
| 433 | |
| 434 | The proof of `New.IsTraceNondeg.exists_cancel_chars` decomposes both sides at once through a product |
| 435 | of matrix algebras (`New.exists_wedderburn`). It then shows that the common virtual character has |
| 436 | multiplicities in `ℕ`. |
| 437 | -/ |
| 438 | |
| 439 | section CharacterCancellation |
| 440 | |
| 441 | open Matrix Submodule Pi Fintype Function |
| 442 | |
| 443 | variable {k G m n t : Type} [Field k] [Group G] [Fintype m] [DecidableEq m] [Fintype n] [Fintype t] |
| 444 | (μ : G →* kˣ) (R : G →* GL m k) |
| 445 | |
| 446 | /-- For a character μ of G and a matrix representation R over k, the representation g ↦ |
| 447 | μ(g)R(g). -/ |
| 448 | noncomputable abbrev New.twistByChar : G →* GL m k := |
| 449 | MonoidHom.mk' (fun g ↦ μ g • R g) (by aesop (add simp smul_mul_smul)) |
| 450 | |
| 451 | /-- Twisting by a character `μ` keeps the trace form non-degenerate on the span of the image. -/ |
| 452 | lemma New.IsTraceNondeg.twist {R : G →* GL m k} (h : IsTraceNondeg R) (μ : G →* kˣ) : |
| 453 | IsTraceNondeg (twistByChar μ R) := by |
| 454 | -- Scaling each `R g` by the unit `μ g` changes neither the span nor which traces vanish. |
| 455 | intro x hx h_trace |
| 456 | have twist_apply (g : G) : (twistByChar μ R g).val = (μ g).val • (R g).val := rfl |
| 457 | have span_le_span : span k (Set.range fun g : G ↦ (twistByChar μ R g).val) ≤ |
| 458 | span k (Set.range fun g : G ↦ (R g).val) := |
| 459 | span_le.2 (Set.range_subset_iff.2 fun g ↦ smul_mem _ (μ g).val (subset_span ⟨g, rfl⟩)) |
| 460 | refine h x (span_le_span hx) fun g ↦ ?_ |
| 461 | simpa [twist_apply, smul_eq_zero_iff_eq] using h_trace g |
| 462 | |
| 463 | /-- Cancellation of characters over an algebraically closed field of characteristic `0`. Let `r 0`, |
| 464 | `r 1` of dimension `card n + card t` have nondegenerate trace form, and let no character `ψ 0 i` |
| 465 | equal a `ψ 1 j`. If `tr (r i) - ∑ j, ψ i j` is the same function `T` for `i = 0, 1`, then `T` is |
| 466 | the trace of some `s` of dimension `card n` with nondegenerate trace form. -/ |
| 467 | lemma New.IsTraceNondeg.exists_cancel_chars [DecidableEq n] [CharZero k] [IsAlgClosed k] |
| 468 | (h_card : card m = card n + card t) {r : Fin 2 → G →* GL m k} |
| 469 | (h_nondeg : ∀ i : Fin 2, IsTraceNondeg (r i)) |
| 470 | {ψ : Fin 2 → t → G →* kˣ} (h_ne : ∀ i j : t, ψ 0 i ≠ ψ 1 j) {T : G → k} |
| 471 | (h_trace : ∀ (i : Fin 2) (g : G), (r i g).val.trace = T g + ∑ j : t, (ψ i j g).val) : |
| 472 | ∃ s : G →* GL n k, IsTraceNondeg s ∧ ∀ g : G, T g = (s g).val.trace := by |
| 473 | -- Decompose `ρ = (r i, ψ i)_i` through a product of matrix algebras. The virtual character |
| 474 | -- `τ = tr (r i) - ∑ ψ i j` is `T` for both `i`; it is the trace of a representation as soon as it |
| 475 | -- takes natural values on the primitive idempotents `piMatrixUnit c`. |
| 476 | let ρ : G →* Fin 2 → Matrix m m k × (t → k) := |
| 477 | { toFun := fun g i ↦ ((r i g : Matrix m m k), fun j ↦ (ψ i j g : k)) |
| 478 | map_one' := by aesop |
| 479 | map_mul' := by aesop } |
| 480 | -- The span of `ρ` has no `x ≠ 0` with all `x * ρ g * x = 0`: test each component. |
| 481 | have hsemi : HasSemiprimeSpan k ρ := by |
| 482 | intro x hx h_zero |
| 483 | funext i |
| 484 | refine Prod.ext (component_eq_zero hx h_zero |
| 485 | ((AlgHom.fst k _ _).comp (Pi.evalAlgHom k _ i)) (h_nondeg i).hasSemiprimeSpan) ?_ |
| 486 | -- at `g = 1` the character components give `(x i).snd j ^ 2 = 0` |
| 487 | exact funext fun j ↦ by simpa [ρ] using congrArg (fun y ↦ (y i).snd j) (h_zero 1) |
| 488 | -- Wedderburn: `ρ = F ∘ s`, where `s G` spans a product `PiMatrix k d` of matrix algebras and `F` |
| 489 | -- is an algebra map on it. |
| 490 | obtain ⟨b, d, hd, s, F, -, hs, hF⟩ : ∃ (b : ℕ) (d : Fin b → ℕ) (_ : ∀ i : Fin b, NeZero (d i)) |
| 491 | (s : G →* PiMatrix k d) (F : PiMatrix k d →ₐ[k] Fin 2 → Matrix m m k × (t → k)), |
| 492 | (∀ i : Fin b, F (piMatrixUnit i) ≠ 0) ∧ span k (Set.range s) = ⊤ ∧ |
| 493 | ∀ g : G, F (s g) = ρ g := |
| 494 | exists_wedderburn ρ (.id G) hsemi ⟨by simp⟩ |
| 495 | replace hF (g : G) (i : Fin 2) : |
| 496 | F (s g) i = ((r i g : Matrix m m k), fun j ↦ (ψ i j g : k)) := congrFun (hF g) i |
| 497 | let τ (i : Fin 2) : PiMatrix k d →ₗ[k] k := |
| 498 | (traceLinearMap m k k).coprod (-∑ j, .proj j) ∘ₗ .proj i ∘ₗ F.toLinearMap |
| 499 | have hτ (i : Fin 2) (x : PiMatrix k d) : τ i x = (F x i).fst.trace - ∑ j, (F x i).snd j := by |
| 500 | simp [τ, sub_eq_add_neg] |
| 501 | have hτ_eq (i : Fin 2) : τ 0 = τ i := |
| 502 | LinearMap.ext_on_range hs fun g ↦ by simp [hτ, hF, h_trace] |
| 503 | have hcomm (x y : PiMatrix k d) : τ 0 (x * y) = τ 0 (y * x) := by |
| 504 | simp [hτ, trace_mul_comm (F x 0).fst, mul_comm ((F x 0).snd _)] |
| 505 | have hnat (c : Fin b) : ∃ N : ℕ, τ 0 (piMatrixUnit c) = N := by |
| 506 | by_contra hc |
| 507 | -- If the characters `ψ i` did not see `piMatrixUnit c`, then `τ i (piMatrixUnit c)` would be |
| 508 | -- the trace of an idempotent, a natural number. |
| 509 | have hsee (i : Fin 2) : ∃ j : t, (F (piMatrixUnit c) i).snd j ≠ 0 := by |
| 510 | refine ne_iff.mp fun hzero : (F (piMatrixUnit c) i).snd = 0 ↦ hc ?_ |
| 511 | have h_idem : IsIdempotentElem (F (piMatrixUnit c) i).fst := |
| 512 | ((isIdempotentElem_map_piMatrixUnit F c).map (evalAlgHom k _ i)).map (AlgHom.fst k _ _) |
| 513 | simp [hτ_eq i, hτ, hzero, trace_of_idempotent h_idem] |
| 514 | choose j hj using hsee |
| 515 | -- Since `piMatrixUnit c * s g * piMatrixUnit c = s g c 0 0 • piMatrixUnit c`, both `ψ i (j i)` |
| 516 | -- equal `g ↦ s g c 0 0`. |
| 517 | have hcorner (g : G) : piMatrixUnit c * (s g - s g c 0 0 • 1) * piMatrixUnit c = 0 := by |
| 518 | simp [← single_mul_left] |
| 519 | have hψ (g : G) (i : Fin 2) : (ψ i (j i) g : k) = s g c 0 0 := by |
| 520 | simpa [hF, hj i, sub_eq_zero] using congrArg (fun y ↦ (F y i).snd (j i)) (hcorner g) |
| 521 | exact h_ne (j 0) (j 1) (MonoidHom.ext fun g ↦ Units.ext (by simp [hψ])) |
| 522 | -- A trace form with natural values on the `piMatrixUnit c` is the character of a representation. |
| 523 | have h_one : τ 0 1 = card n := by simp [hτ, h_card] |
| 524 | obtain ⟨σ, hσ, htr⟩ := exists_rep_of_trace hs (τ 0) hcomm hnat h_one |
| 525 | exact ⟨σ, hσ, fun g ↦ by simp [htr, hτ, hF, h_trace]⟩ |
| 526 | |
| 527 | end CharacterCancellation |
| 528 | |
| 529 | /-! |
| 530 | ## Stable lattices for ℓ-adic representations of compact groups |
| 531 | |
| 532 | * `New.Selmer.IsLatticeIn`: a representation u with values in matrices over O is conjugate to a |
| 533 | given ℓ-adic representation r. |
| 534 | |
| 535 | Auerbach's lemma (`New.exists_auerbach`) gives a basis in which all entries have norm at most 1. |
| 536 | Baire's theorem and compactness put them in one finite extension. |
| 537 | -/ |
| 538 | |
| 539 | namespace New |
| 540 | |
| 541 | open Matrix Filter Set Prod IntermediateField InfiniteGalois Units CoeffRing |
| 542 | |
| 543 | variable {ℓ : ℕ} [ThePrime ℓ] |
| 544 | {n : Type} [Fintype n] [DecidableEq n] {G : Type} [Group G] {O : CoeffRing ℓ} |
| 545 | |
| 546 | /-- The `O`-valued representation `u` is a lattice in `r`: there is one `P` in `GL n ℚ̄_ℓ` with |
| 547 | `P⁻¹ * r g * P = u g` for all `g` in `G`, where `u g` is read in `ℚ̄_ℓ` through the inclusion |
| 548 | `O.val.val` of `O` into `ℚ̄_ℓ`. -/ |
| 549 | def Selmer.IsLatticeIn (r : G →* GL n (PadicAlgCl ℓ)) (u : G →* Matrix n n O) : Prop := |
| 550 | ∃ P : GL n (PadicAlgCl ℓ), ∀ g : G, ↑(P⁻¹ * r g * P) = (u g).map O.val.val |
| 551 | |
| 552 | variable {r : G →* GL n (PadicAlgCl ℓ)} {u : G →* Matrix n n O} |
| 553 | |
| 554 | /-- If `u` is a lattice in `r`, then for every `g` the characteristic polynomial of `r g` is the |
| 555 | image of that of `u g` under the inclusion `O.val.val` of `O` into `ℚ̄_ℓ`. -/ |
| 556 | lemma Selmer.IsLatticeIn.charpoly_eq_map (h_lattice : IsLatticeIn r u) (g : G) : |
| 557 | (r g).val.charpoly = (u g).charpoly.map O.val.val := by |
| 558 | obtain ⟨P, hP⟩ : ∃ P : GL n (PadicAlgCl ℓ), ∀ g : G, ↑(P⁻¹ * r g * P) = (u g).map O.val.val := |
| 559 | h_lattice |
| 560 | -- Conjugation by `P` does not change the characteristic polynomial. |
| 561 | have h_conj : (↑(P⁻¹ * r g * P) : Matrix n n (PadicAlgCl ℓ)).charpoly = (r g).val.charpoly := by |
| 562 | rw [Units.val_mul, Units.val_mul, coe_units_inv, charpoly_units_conj'] |
| 563 | rw [← h_conj, hP g] |
| 564 | simpa using charpoly_map (u g) (O.val.val : O.val →+* PadicAlgCl ℓ) |
| 565 | |
| 566 | /-- Conjugate a continuous representation `r : G →* GL n (PadicAlgCl ℓ)` on a compact |
| 567 | group `G` via Auerbach's lemma to an equivalent continuous representation `s` whose matrix |
| 568 | entries all have norm at most `1`. -/ |
| 569 | private lemma exists_conj_continuous_norm_le_one {ℓ : ℕ} [Fact ℓ.Prime] {G n : Type*} |
| 570 | [Group G] [TopologicalSpace G] [CompactSpace G] |
| 571 | [Fintype n] [DecidableEq n] (r : G →* GL n (PadicAlgCl ℓ)) (hr : Continuous r) : |
| 572 | ∃ (s : G →* GL n (PadicAlgCl ℓ)) (P : GL n (PadicAlgCl ℓ)), |
| 573 | (∀ g : G, (P⁻¹).val * (r g).val * P.val = (s g).val) ∧ |
| 574 | (∀ (g : G) (p : n × n), ‖s g p.fst p.snd‖ ≤ 1) ∧ |
| 575 | (∀ p : n × n, Continuous fun g : G ↦ s g p.fst p.snd) := by |
| 576 | -- The family of linear forms `v ↦ (r g v) i`, for `⟨i, g⟩` in the compact space `Σ _ : n, G`. |
| 577 | let forms (x : Σ _ : n, G) : Module.Dual (PadicAlgCl ℓ) (n → PadicAlgCl ℓ) := |
| 578 | .proj x.fst ∘ₗ (r x.snd).val.toLin' |
| 579 | have h_sep (v : n → PadicAlgCl ℓ) (hv : ∀ x : Σ _ : n, G, forms x v = 0) : v = 0 := |
| 580 | funext fun i ↦ by simpa [forms] using hv ⟨i, 1⟩ |
| 581 | have h_forms_cont (v : n → PadicAlgCl ℓ) : |
| 582 | Continuous fun x : Σ _ : n, G ↦ RingHom.id (PadicAlgCl ℓ) (forms x v) := by |
| 583 | refine continuous_sigma fun i ↦ ?_ |
| 584 | change Continuous fun g : G ↦ ∑ j : n, (r g).val i j * v j |
| 585 | fun_prop |
| 586 | obtain ⟨c, z, hz, h_norm⟩ : ∃ (c : n → Σ _ : n, G) |
| 587 | (z : Module.Basis n (PadicAlgCl ℓ) (n → PadicAlgCl ℓ)), |
| 588 | (∀ k : n, z.coord k = forms (c k)) ∧ |
| 589 | ∀ (x : Σ _ : n, G) (k : n), ‖RingHom.id (PadicAlgCl ℓ) (forms x (z k))‖ ≤ 1 := |
| 590 | exists_auerbach (Pi.basisFun (PadicAlgCl ℓ) n) forms h_sep (.id _) h_forms_cont |
| 591 | -- The rows of `P` are the forms chosen by `c`, the columns of `P⁻¹` are the vectors `z k`. An |
| 592 | -- entry of `s g = P * r g * P⁻¹` is the value of a form of the family at some `z k`. |
| 593 | have h_mul_eq_one : (of fun k ↦ (r (c k).snd).val (c k).fst) * (of z)ᵀ = 1 := |
| 594 | -- the entry `(k, j)` is the form `forms (c k)` at `z j`, the `k`-th coordinate of `z j` |
| 595 | (ext fun k j ↦ (LinearMap.congr_fun (hz k) (z j)).symm).trans z.toMatrix_self |
| 596 | let P : GL n (PadicAlgCl ℓ) := mkOfMulEqOne _ _ h_mul_eq_one |
| 597 | let s : G →* GL n (PadicAlgCl ℓ) := (MulAut.conj P).toMonoidHom.comp r |
| 598 | have hs_norm (g : G) (p : n × n) : ‖s g p.fst p.snd‖ ≤ 1 := by |
| 599 | -- the entry is the value of the form `forms ⟨(c p.fst).fst, (c p.fst).snd * g⟩` at `z p.snd` |
| 600 | simpa [forms] using! h_norm ⟨(c p.fst).fst, (c p.fst).snd * g⟩ p.snd |
| 601 | have hs_cont (p : n × n) : Continuous fun g : G ↦ s g p.fst p.snd := by |
| 602 | suffices Continuous fun g : G ↦ (P.val * (r g).val * (P⁻¹).val) p.fst p.snd by |
| 603 | simpa [s] using this |
| 604 | fun_prop |
| 605 | refine ⟨s, P⁻¹, fun g ↦ by simp [s, MulAut.conj_apply, mul_assoc], hs_norm, hs_cont⟩ |
| 606 | |
| 607 | /-- A continuous representation `r : G →* GL n ℚ̄_ℓ` of a compact group `G` has a lattice over |
| 608 | every large enough coefficient ring: for all `O` in `CoeffRing ℓ` that contain some fixed one, |
| 609 | there is a representation `u` with entries in `O` that is a lattice in `r` |
| 610 | (`Selmer.IsLatticeIn r u`, that is, `u` is conjugate to `r` in `GL n ℚ̄_ℓ`). -/ |
| 611 | lemma eventually_exists_isLatticeIn [TopologicalSpace G] [IsTopologicalGroup G] [CompactSpace G] |
| 612 | (hr : Continuous r) : |
| 613 | ∀ᶠ O : CoeffRing ℓ in atTop, ∃ u : G →* Matrix n n O, Selmer.IsLatticeIn r u := by |
| 614 | -- Auerbach's lemma conjugates `r` to `s` with entries of norm at most 1. By Baire's theorem the |
| 615 | -- entries lie in fixed rings `O _` on a nonempty open set; finitely many translates cover `G`. |
| 616 | obtain ⟨s, P, h_conj_s, hs_norm, hs_cont⟩ := exists_conj_continuous_norm_le_one r hr |
| 617 | -- The values of an entry lie in the closure of a countable set `D p`, hence in the field that |
| 618 | -- `D p` generates, as what fixes `D p` fixes its closure; finitely many generators suffice. |
| 619 | choose D hD_count hD_dense using fun p : n × n ↦ (isCompact_range (hs_cont p)).isSeparable |
| 620 | have h_gen (g : G) (p : n × n) : ∃ S : Finset (PadicAlgCl ℓ), |
| 621 | ↑S ⊆ D p ∧ s g p.fst p.snd ∈ adjoin ℚ_[ℓ] (S : Set (PadicAlgCl ℓ)) := by |
| 622 | refine exists_finset_of_mem_adjoin |
| 623 | ((InfiniteGalois.fixedField_fixingSubgroup _).le fun σ ↦ ?_) |
| 624 | -- `σ` fixes `D p`, hence its closure, which contains `s g p.fst p.snd` |
| 625 | exact EqOn.closure (fun x hx ↦ σ.prop ⟨x, subset_adjoin ℚ_[ℓ] _ hx⟩) (by fun_prop) continuous_id |
| 626 | (hD_dense p ⟨g, rfl⟩) |
| 627 | have h_coeff (S : Finset (PadicAlgCl ℓ)) : ∃ O : CoeffRing ℓ, |
| 628 | ∀ x ∈ adjoin ℚ_[ℓ] (S : Set (PadicAlgCl ℓ)), ‖x‖ ≤ 1 → x ∈ O.val := |
| 629 | CoeffRing.exists_mem_of_mem_adjoin S |
| 630 | choose O hO using h_coeff |
| 631 | -- Baire: `G` is the union of countably many closed sets `Z m`, one for each choice `m` of finite |
| 632 | -- subsets of the `D p`. |
| 633 | let I (p : n × n) : Set (Finset (PadicAlgCl ℓ)) := {S : Finset (PadicAlgCl ℓ) | ↑S ⊆ D p} |
| 634 | have h_count (p : n × n) : Countable (I p) := by |
| 635 | simpa using (countable_ofPred_finite_subset (hD_count p)).preimage Finset.coe_injective |
| 636 | let Z (m : ∀ p, I p) : Set G := ⋂ p : n × n, {g | s g p.fst p.snd ∈ (O (m p)).val} |
| 637 | have hZ_closed (m : ∀ p, I p) : IsClosed (Z m) := isClosed_iInter fun p ↦ |
| 638 | -- `O (m p)` is compact, hence closed; `Z m` is an intersection of preimages of it |
| 639 | .preimage (hs_cont p) <| by |
| 640 | simpa using (isCompact_range (X := O (m p)) continuous_subtypeVal).isClosed |
| 641 | have hZ_cover : ⋃ m, Z m = univ := by |
| 642 | refine eq_univ_of_forall fun g ↦ ?_ |
| 643 | choose m hm hg using h_gen g |
| 644 | exact mem_iUnion.mpr ⟨fun p ↦ ⟨m p, hm p⟩, mem_iInter.mpr fun p ↦ hO _ _ (hg p) (hs_norm g p)⟩ |
| 645 | obtain ⟨m, hm⟩ := nonempty_interior_of_iUnion_of_closed hZ_closed hZ_cover |
| 646 | obtain ⟨t, ht⟩ : ∃ t : Finset G, ∀ x, ∃ g ∈ t, g * x ∈ Z m := by |
| 647 | simpa [subset_def] using compact_covered_by_mul_left_translates isCompact_univ hm |
| 648 | -- Take `O'` above the `O (m p)` and containing the entries of `s g⁻¹`, `g ∈ t`; |
| 649 | -- then `s x = s g⁻¹ * s (g * x)` has its entries in `O'`. |
| 650 | filter_upwards [eventually_all.mpr fun p ↦ mem_atTop (O (m p)), |
| 651 | t.eventually_all.mpr fun g _ ↦ |
| 652 | eventually_all.mpr fun p ↦ CoeffRing.eventually_mem (hs_norm g⁻¹ p)] with O' h_le h_inv |
| 653 | have h_mem (x : G) (i j : n) : s x i j ∈ O'.val := by |
| 654 | obtain ⟨g, hg, hgx⟩ := ht x |
| 655 | simpa using O'.val.matrix.mul_mem (fun i j ↦ h_inv g hg (i, j)) |
| 656 | (fun i j ↦ h_le _ (mem_iInter.mp hgx (i, j))) i j |
| 657 | -- The entries of `s` as a representation with values in matrices over `O'`. |
| 658 | let u : G →* Matrix n n O' := |
| 659 | { toFun := fun x ↦ of fun i j ↦ ⟨s x i j, h_mem x i j⟩ |
| 660 | map_one' := by simp [← ext_iff, Subtype.ext_iff, Matrix.one_apply, apply_ite] |
| 661 | map_mul' x y := by simp [← ext_iff, Subtype.ext_iff, Matrix.mul_apply] } |
| 662 | -- `P⁻¹ * r g * P = s g` (`h_conj_s`), whose entries are those of `u g` |
| 663 | exact ⟨u, P, fun g ↦ by ext i j; simp [u, ← h_conj_s g]⟩ |
| 664 | |
| 665 | end New |
| 666 | |
| 667 | end |