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 TauCeti.Algebra.Group.Semiconj |
| 4 | import TauCeti.RepresentationTheory.Irreducible.ConjugatePow |
| 5 | import Mathlib.LinearAlgebra.Matrix.FiniteDimensional |
| 6 | import Mathlib.RingTheory.Coalgebra.IsFrobenius |
| 7 | import Mathlib.RingTheory.Etale.Weakly |
| 8 | import Mathlib.RingTheory.MvPolynomial.IrreducibleQuadratic |
| 9 | import Mathlib.RingTheory.PiTensorProduct |
| 10 | import Mathlib.RingTheory.TotallySplit |
| 11 | public import Lib.GaloisRep.Pseudocharacter.SemisimpleRepresentations |
| 12 | import Lib.General.LinearAlgebra.Eigenvalues |
| 13 | import Lib.PadicComparison.Descent.TestCategory |
| 14 | |
| 15 | /-! |
| 16 | # Spanning criteria, limits of traces and pseudorepresentations |
| 17 | |
| 18 | This file gives a criterion for the image of a lattice to span the matrix algebra over the |
| 19 | coefficient ring `O`, using a tame pair with incongruent eigenvalues. It studies uniform |
| 20 | approximation of eigensystems through `New.IsApproximatingMonoid`, and Newton's identities through |
| 21 | `New.newtonPoly`. It proves that over an algebraically closed field of characteristic `0`, a |
| 22 | function obeying every polynomial identity among traces is the trace of a representation. It also |
| 23 | proves that a limit of traces of continuous representations is such a trace. |
| 24 | |
| 25 | ## Main definitions and results |
| 26 | |
| 27 | * `New.exists_rep_of_trace_identities`: over an algebraically closed field of characteristic `0`, a |
| 28 | function on `G` that obeys every polynomial identity among traces of homomorphisms `G → GL n k` is |
| 29 | the trace of such a homomorphism with non-degenerate trace form (`New.IsTraceNondeg`). |
| 30 | * `New.GaloisRep.exists_continuous_isTraceNondeg_of_tendsto_trace`: a limit, in the sense of |
| 31 | `IsApproximatingMonoid` (uniform approximation by linear combinations), of traces of continuous |
| 32 | representations is the trace of a continuous representation. |
| 33 | |
| 34 | Notions from other files: |
| 35 | * `New.IsTraceNondeg`: Non-degeneracy of the trace form on the span of r(G): any x in that span with |
| 36 | tr(x r(g)) = 0 for all g is zero. |
| 37 | * `New.CoeffRing`: Rings of integers of finite Galois extensions of `ℚ_ℓ` inside `ℚ̄_ℓ`, where the |
| 38 | class `ThePrime ℓ` records that ℓ is the fixed prime. |
| 39 | * `New.Selmer.IsLatticeIn`: an `O`-valued representation `u` is conjugate in `GL n ℚ̄_ℓ` to a given |
| 40 | ℓ-adic representation `r`. |
| 41 | |
| 42 | ## Relation to the literature |
| 43 | |
| 44 | Known result: a function obeying the trace identities is the trace of a representation |
| 45 | (pseudocharacters), and the lattice stable under a family spanning the matrix algebra is unique up |
| 46 | to scalars. Here all polynomial identities among traces are assumed, not only the Frobenius |
| 47 | identity, so no invariant theory is needed. |
| 48 | Semisimple means a non-degenerate trace form on the span of the image, in characteristic 0. The file |
| 49 | also proves that a limit of traces of continuous representations is the trace of a continuous |
| 50 | representation. Source: R. Taylor, Galois representations associated to Siegel modular forms of low |
| 51 | weight, Duke Math. J. 63 (1991), Theorem 1; R. Rouquier, Caractérisation des caractères et |
| 52 | pseudo-caractères, J. Algebra 180 (1996); K. Conrad, Compact subgroups of GL_n(Qbar_p) (note). |
| 53 | |
| 54 | See also `Lib.GaloisRep.WeightCongruence`. |
| 55 | -/ |
| 56 | |
| 57 | @[expose] public section |
| 58 | |
| 59 | noncomputable section |
| 60 | |
| 61 | /-! |
| 62 | ## A spanning criterion from a tame pair with incongruent eigenvalues |
| 63 | |
| 64 | A criterion for residual absolute irreducibility, in the strong form that the image of the group |
| 65 | spans the matrix algebra over the coefficient ring |
| 66 | (`New.Selmer.IsLatticeIn.span_range_eq_top_of_map_pow_eq_map_conj`). In the application `γ` and `φ` |
| 67 | come from tame inertia and Frobenius at an auxiliary place. |
| 68 | -/ |
| 69 | |
| 70 | section ResidualIrreducibility |
| 71 | |
| 72 | open Matrix IsLocalRing Fintype Module Submodule Set End |
| 73 | |
| 74 | /-- If the differences `ζ ^ q ^ i - ζ ^ q ^ j` for distinct `i, j < d` have norm `1`, then the |
| 75 | residues of the `ζ ^ q ^ i`, `i < d`, are pairwise distinct: a difference of norm `1` is a unit of |
| 76 | `O`, so its residue is not zero. -/ |
| 77 | private lemma New.injective_residue_pow_pow_of_norm_sub_eq_one {ℓ : ℕ} [ThePrime ℓ] |
| 78 | {O : CoeffRing ℓ} {ζ : ↑O} {q d : ℕ} |
| 79 | (h_dist : ∀ i < d, ∀ j < d, i ≠ j → ‖ζ.val ^ q ^ i - ζ ^ q ^ j‖ = 1) : |
| 80 | Function.Injective fun j : Fin d ↦ residue O ζ ^ q ^ (j : ℕ) := by |
| 81 | refine .of_lt_imp_ne fun i j h_lt ↦ ?_ |
| 82 | have h_unit : IsUnit (ζ ^ q ^ (i : ℕ) - ζ ^ q ^ (j : ℕ)) := by |
| 83 | rw [O.isUnit_iff_norm_eq_one] |
| 84 | simpa using h_dist i i.isLt j j.isLt (Fin.val_ne_of_ne h_lt.ne) |
| 85 | simpa [sub_ne_zero] using (residue_ne_zero_iff_isUnit _).2 h_unit |
| 86 | |
| 87 | /-- A square matrix that commutes with every member of a family spanning all matrices is a scalar |
| 88 | multiple of `1`. -/ |
| 89 | private lemma Matrix.exists_eq_smul_one_of_commute_of_span_eq_top {R n ι : Type*} [CommRing R] |
| 90 | [Fintype n] [DecidableEq n] {v : ι → Matrix n n R} (h_span : Submodule.span R (range v) = ⊤) |
| 91 | {M : Matrix n n R} (h_comm : ∀ i : ι, Commute (v i) M) : ∃ α : R, M = α • 1 := by |
| 92 | simpa [eq_comm, smul_one_eq_diagonal] using |
| 93 | mem_range_scalar_of_commute_of_span_eq_top h_span h_comm |
| 94 | |
| 95 | /-- A tame pair with incongruent conjugate eigenvalues spans all matrices. Let `u` be an |
| 96 | `O`-lattice in `R`, `d = card n`, let conjugation by `φ` raise `R γ` to the power `q`, let |
| 97 | `R (γ ^ q ^ d) = R γ`, and let `R γ` have an eigenvalue `ζ ∈ O` whose powers `ζ ^ q ^ i`, `i < d`, |
| 98 | differ by elements of norm `1`. Then (a) `u` spans all matrices over `O` and (b) `u (φ⁻¹ ^ d)` is |
| 99 | a scalar: a case of Burnside's theorem, lifted to `O` by Nakayama's lemma. -/ |
| 100 | lemma New.Selmer.IsLatticeIn.span_range_eq_top_of_map_pow_eq_map_conj {G n : Type} [Group G] |
| 101 | [Fintype n] [DecidableEq n] {γ φ : G} {q ℓ : ℕ} [ThePrime ℓ] {O : CoeffRing ℓ} |
| 102 | {R : G →* GL n (PadicAlgCl ℓ)} {u : G →* Matrix n n O} {ζ : ↑O} (h_lattice : IsLatticeIn R u) |
| 103 | (h_tame : R γ ^ q = R (φ⁻¹ * γ * φ)) |
| 104 | (h_dist : ∀ i < card n, ∀ j < card n, i ≠ j → ‖ζ.val ^ q ^ i - ζ ^ q ^ j‖ = 1) |
| 105 | (h_root : (R γ).val.charpoly.IsRoot ζ) (h_fix : R (γ ^ q ^ card n) = R γ) : |
| 106 | -- (a) the image of `u` spans all matrices |
| 107 | span O (range u) = ⊤ ∧ |
| 108 | -- (b) `φ⁻¹ ^ card n` acts by a scalar |
| 109 | ∃ α : ↑O, u (φ⁻¹ ^ card n) = α • 1 := by |
| 110 | -- Tau Ceti's spanning criterion lifts the residual eigenvalue argument by Nakayama's lemma. |
| 111 | have hζ_u : ((u γ).charpoly.map O.val.val).IsRoot (ζ : PadicAlgCl ℓ) := by |
| 112 | rwa [h_lattice.charpoly_eq_map γ] at h_root |
| 113 | obtain ⟨P, hP⟩ := h_lattice |
| 114 | -- `u` is determined by `R`: `u a` is `R a` conjugated by `P`, read in `O`. |
| 115 | have u_congr {a b : G} (hab : R a = R b) : u a = u b := |
| 116 | map_injective (f := O.val.val) Subtype.val_injective (by simp only [← hP, hab]) |
| 117 | have h_root_u : ((u γ).map (residue O)).charpoly.IsRoot (residue O ζ) := by |
| 118 | rw [charpoly_map] |
| 119 | exact .map (residue O) (.of_map hζ_u O.val.subtype_injective) |
| 120 | -- Iterating `h_tame`: conjugation by `φ ^ k` raises `R γ` to the power `q ^ k`. |
| 121 | have h_semiconj : SemiconjBy (R φ) (R γ ^ q) (R γ) := by |
| 122 | rw [SemiconjBy, h_tame, ← map_mul, ← map_mul] |
| 123 | simp [mul_assoc] |
| 124 | have h_conj (k : ℕ) : R (γ * φ ^ k) = R (φ ^ k * γ ^ q ^ k) := by |
| 125 | simpa [map_mul, map_pow] using (h_semiconj.pow_left_pow_pow k).eq.symm |
| 126 | have h_mul : u γ * u φ = u φ * u γ ^ q := by |
| 127 | simpa [map_mul, map_pow] using u_congr (h_conj 1) |
| 128 | let w (p : Fin (card n) × Fin (card n)) : G := φ ^ (p.fst : ℕ) * γ ^ (p.snd : ℕ) |
| 129 | have h_span : Submodule.span O (range (u ∘ w)) = ⊤ := by |
| 130 | simpa [Function.comp_def, w, map_mul, map_pow] using |
| 131 | IsLocalRing.span_range_pow_mul_pow_eq_top_of_mul_eq_mul_pow h_mul |
| 132 | ((Group.isUnit φ).map u) h_root_u (injective_residue_pow_pow_of_norm_sub_eq_one h_dist) |
| 133 | refine ⟨eq_top_mono (span_mono (range_comp_subset_range w u)) h_span, ?_⟩ |
| 134 | -- By `h_conj` and `h_fix`, `R γ` commutes with `R φ ^ card n`, so `R (φ⁻¹ ^ card n)` commutes |
| 135 | -- with every `R (w p)`. As `u` is `R` conjugated by `P`, read in `O`, also `u (φ⁻¹ ^ card n)` |
| 136 | -- commutes with every `u (w p)`. |
| 137 | have h_comm_φ : Commute (R γ) (R φ ^ card n) := by |
| 138 | rw [commute_iff_eq, ← map_pow, ← map_mul, ← map_mul, h_conj, map_mul, map_mul, h_fix] |
| 139 | have h_comm (p : Fin (card n) × Fin (card n)) : Commute (u (w p)) (u (φ⁻¹ ^ card n)) := by |
| 140 | have h_R : R (w p * φ⁻¹ ^ card n) = R (φ⁻¹ ^ card n * w p) := by |
| 141 | have h_pow := |
| 142 | (Commute.pow_pow_self (R φ) p.1.val (card n)).mul_left (h_comm_φ.pow_left p.2.val) |
| 143 | simpa only [w, map_mul, map_pow, map_inv, inv_pow] using h_pow.inv_right.eq |
| 144 | simpa only [map_mul, commute_iff_eq] using u_congr h_R |
| 145 | exact Matrix.exists_eq_smul_one_of_commute_of_span_eq_top h_span h_comm |
| 146 | |
| 147 | end ResidualIrreducibility |
| 148 | |
| 149 | /-! |
| 150 | ## Uniform approximation of eigensystems and pseudorepresentations |
| 151 | |
| 152 | * `New.IsApproximatingMonoid`: a closed submonoid of pairs of a value and a family of values, in |
| 153 | which each value is a uniform limit of linear combinations of the family. |
| 154 | * `New.exists_isApproximatingMonoid_of_mem_uniformClosure`: an eigenfunction in the closure of the |
| 155 | span of eigenfunctions of operators that do not increase the sup norm gives such an approximation |
| 156 | of its eigenvalues. |
| 157 | -/ |
| 158 | |
| 159 | section Pseudorepresentation |
| 160 | |
| 161 | open Filter MvPolynomial Finset Submodule Metric Matrix MonoidAlgebra Ideal.Quotient LinearMap |
| 162 | Module IsAlgClosed IsUniformAddGroup |
| 163 | |
| 164 | namespace New |
| 165 | |
| 166 | variable {k K G n ι : Type} [Field k] [NormedField K] [Group G] [Fintype n] [DecidableEq n] |
| 167 | |
| 168 | /-- For a set `S` of functions `ι → K`, `K` a normed field, the closure of the `K`-span of `S` in |
| 169 | the topology of uniform convergence. -/ |
| 170 | def uniformClosure (S : Set (ι → K)) : Submodule K (ι → K) := |
| 171 | (topologicalClosure (M := UniformFun ι K) (span K S) :) |
| 172 | |
| 173 | variable {S : Set (ι → K)} {f : ι → K} |
| 174 | |
| 175 | /-- A function lies in the uniform closure of the span of `S` exactly when, for every `ε > 0`, some |
| 176 | element of the span is within `ε` of it at all points. -/ |
| 177 | lemma mem_uniformClosure : |
| 178 | f ∈ uniformClosure S ↔ ∀ ε > (0 : ℝ), ∃ g ∈ span K S, ∀ x : ι, ‖f x - g x‖ ≤ ε := by |
| 179 | -- The closure in `UniformFun ι K`, read through the basis of entourages `‖a - b‖ ≤ ε`. |
| 180 | simpa [dist_eq_norm] using! |
| 181 | mem_closure_iff_nhds_basis (UniformFun.hasBasis_nhds_of_basis _ _ f uniformity_basis_dist_le) |
| 182 | |
| 183 | /-- Approximation of a submonoid `N` of pairs `(t, φ)`, with `t` in `K` and `φ` a family indexed by |
| 184 | pairs `(η, i)` with `i < s η`. The set `N` is closed. As `η > 0` tends to `0`, the sum over `i` of |
| 185 | `c η i * φ (η, i)` tends to `t`, uniformly over `(t, φ) ∈ N`. -/ |
| 186 | def IsApproximatingMonoid (s : Set.Ioi (0 : ℝ) → ℕ) (c : ∀ η : Set.Ioi (0 : ℝ), Fin (s η) → K) |
| 187 | (N : Submonoid (K × ((Σ η : Set.Ioi (0 : ℝ), Fin (s η)) → K))) : |
| 188 | Prop := |
| 189 | IsClosed N.carrier ∧ |
| 190 | TendstoUniformly (fun (η : Set.Ioi (0 : ℝ)) (p : N) ↦ ∑ i : Fin (s η), c η i * p.val.snd ⟨η, i⟩) |
| 191 | (fun p : N ↦ p.val.fst) atBot |
| 192 | |
| 193 | /-- The monoid `N` of an approximation `New.IsApproximatingMonoid s c N` is closed. -/ |
| 194 | lemma IsApproximatingMonoid.isClosed_carrier {s : Set.Ioi (0 : ℝ) → ℕ} |
| 195 | {c : (η : Set.Ioi (0 : ℝ)) → Fin (s η) → K} |
| 196 | {N : Submonoid (K × ((η : Set.Ioi (0 : ℝ)) × Fin (s η) → K))} |
| 197 | (h_apx : IsApproximatingMonoid s c N) : IsClosed N.carrier := |
| 198 | And.left h_apx |
| 199 | |
| 200 | /-- In an approximation `New.IsApproximatingMonoid s c N`, the sum over `i` of |
| 201 | `c η i * p.val.snd (η, i)` tends to `p.val.fst` as `η > 0` tends to `0`, uniformly over `p ∈ N`. -/ |
| 202 | lemma IsApproximatingMonoid.tendstoUniformly {s : Set.Ioi (0 : ℝ) → ℕ} |
| 203 | {c : (η : Set.Ioi (0 : ℝ)) → Fin (s η) → K} |
| 204 | {N : Submonoid (K × ((η : Set.Ioi (0 : ℝ)) × Fin (s η) → K))} |
| 205 | (h_apx : IsApproximatingMonoid s c N) : |
| 206 | TendstoUniformly (fun (η : Set.Ioi (0 : ℝ)) (p : N) ↦ ∑ i : Fin (s η), c η i * p.val.snd ⟨η, i⟩) |
| 207 | (fun p : N ↦ p.val.fst) atBot := |
| 208 | And.right h_apx |
| 209 | |
| 210 | /-- Let `S` be a set of functions `ι → K`, with `K` a normed field, and let `f ≠ 0` lie in the |
| 211 | closure of the `K`-span of `S` for uniform convergence. Then there exist `s : (η > 0) → ℕ`, |
| 212 | coefficients `c η i ∈ K`, a closed submonoid `N` of pairs `(t, φ)` (with `t ∈ K` and `φ` a family |
| 213 | indexed by pairs `(η, i)`, `i < s η`) such that `∑_i c η i * φ (η, i) → t` as `η → 0` uniformly on |
| 214 | `N`, and functions `y (η, i)` in `S`, with the following property. If a linear operator that does |
| 215 | not increase the sup norm has `f` as eigenfunction with eigenvalue `t` and each `y (η, i)` as |
| 216 | eigenfunction with eigenvalue `φ (η, i)`, then `(t, φ) ∈ N`. -/ |
| 217 | lemma exists_isApproximatingMonoid_of_mem_uniformClosure (hf : f ≠ 0) |
| 218 | (hf_mem : f ∈ uniformClosure S) : |
| 219 | ∃ (s : Set.Ioi (0 : ℝ) → ℕ) (c : (η : Set.Ioi (0 : ℝ)) → Fin (s η) → K) |
| 220 | (N : Submonoid (K × ((η : Set.Ioi (0 : ℝ)) × Fin (s η) → K))), |
| 221 | IsApproximatingMonoid s c N ∧ |
| 222 | ∃ y : (Σ η : Set.Ioi (0 : ℝ), Fin (s η)) → S, |
| 223 | ∀ p : K × ((Σ η : Set.Ioi (0 : ℝ), Fin (s η)) → K), |
| 224 | (∃ T : End K (ι → K), |
| 225 | -- (a) `T` is a contraction for the supremum norm |
| 226 | (∀ (g : ι → K) (r : ℝ), (∀ x : ι, ‖g x‖ ≤ r) → ∀ x : ι, ‖T g x‖ ≤ r) ∧ |
| 227 | -- (b) `f` and the `y i` are eigenvectors, with eigenvalues `p.fst` and `p.snd i` |
| 228 | T f = p.fst • f ∧ |
| 229 | ∀ i : (η : Set.Ioi (0 : ℝ)) × Fin (s η), T (y i) = p.snd i • y i) → |
| 230 | p ∈ N := by |
| 231 | -- Normalise `f z = 1` and approximate `f` within `η` by a combination of vectors of `S`. A |
| 232 | -- contraction `T` keeps the error `≤ η`; evaluating at `z` puts the eigenvalue at `f` within |
| 233 | -- `η` of a combination of the other eigenvalues. The bound passes to the closure of the monoid |
| 234 | -- `N` of such eigenvalue systems. |
| 235 | obtain ⟨z, hz : f z ≠ 0⟩ := Function.ne_iff.mp hf |
| 236 | have h_approx (η : Set.Ioi (0 : ℝ)) : ∃ (m : ℕ) (a : Fin m → K) (y : Fin m → S), |
| 237 | ∀ w : ι, ‖((f z)⁻¹ • f - ∑ j, a j • (y j).val) w‖ ≤ η := by |
| 238 | simpa [mem_span_set'] using mem_uniformClosure.1 (smul_mem _ (f z)⁻¹ hf_mem) η η.prop |
| 239 | choose s a y hy using h_approx |
| 240 | -- `N`: the eigenvalue systems of contractions with eigenvectors `f` and all `y η j`. |
| 241 | let N : Submonoid (K × ((Σ η : Set.Ioi (0 : ℝ), Fin (s η)) → K)) := |
| 242 | { carrier := {p | ∃ T : End K (ι → K), |
| 243 | (∀ (g : ι → K) (r : ℝ), (∀ x : ι, ‖g x‖ ≤ r) → ∀ x : ι, ‖T g x‖ ≤ r) ∧ |
| 244 | T f = p.fst • f ∧ ∀ i, T (y i.fst i.snd) = p.snd i • y i.fst i.snd} |
| 245 | mul_mem' := by |
| 246 | rintro p p' ⟨T, hT_le, hT_f, hT_y⟩ ⟨T', hT'_le, hT'_f, hT'_y⟩ |
| 247 | exact ⟨T' * T, fun g r hg x ↦ hT'_le _ _ (hT_le g r hg) x, |
| 248 | by simp [hT_f, hT'_f, mul_smul], fun i ↦ by simp [hT_y, hT'_y, mul_smul]⟩ |
| 249 | one_mem' := ⟨1, by simp⟩ } |
| 250 | -- Evaluating at `z` the image under `T` of the approximation of `f / f z`. |
| 251 | have h_dist (η : Set.Ioi (0 : ℝ)) : |
| 252 | ∀ p ∈ N, dist p.fst (∑ j, a η j * (y η j).val z * p.snd ⟨η, j⟩) ≤ η := by |
| 253 | rintro p ⟨T, hT, hTf, hTy⟩ |
| 254 | have h_bound : ‖T ((f z)⁻¹ • f - ∑ j, a η j • (y η j).val) z‖ ≤ η := hT _ _ (hy η) z |
| 255 | simpa [hTy ⟨η, _⟩, hTf, hz, ← dist_eq_norm, mul_comm, ← mul_assoc] using h_bound |
| 256 | refine ⟨s, fun η j ↦ a η j * (y η j).val z, N.topologicalClosure, |
| 257 | ⟨isClosed_closure, tendstoUniformly_iff.2 fun ε hε ↦ ?_⟩, fun i ↦ y i.fst i.snd, |
| 258 | fun _ hp ↦ subset_closure hp⟩ |
| 259 | filter_upwards [eventually_lt_atBot (⟨ε, hε⟩ : Set.Ioi (0 : ℝ))] with η hη p |
| 260 | exact (le_on_closure (h_dist η) (by fun_prop) (by fun_prop) p.prop).trans_lt hη |
| 261 | |
| 262 | /-- Given `New.IsApproximatingMonoid s c N`, let `B` be a polynomial in the variables `ι`, and let |
| 263 | `f p x` be elements of `N`. Then the sum over `i` of `c η i` times the value of `B` at the `(η, i)` |
| 264 | components of the `f p x` tends to the value of `B` at their first components, uniformly in `p`. -/ |
| 265 | lemma IsApproximatingMonoid.tendstoUniformly_eval {P : Type*} {s : Set.Ioi (0 : ℝ) → ℕ} |
| 266 | {c : (η : Set.Ioi (0 : ℝ)) → Fin (s η) → K} |
| 267 | {N : Submonoid (K × ((η : Set.Ioi (0 : ℝ)) × Fin (s η) → K))} |
| 268 | (h_apx : IsApproximatingMonoid s c N) (B : MvPolynomial ι K) (f : P → ι → N) : |
| 269 | TendstoUniformly |
| 270 | (fun (η : Set.Ioi (0 : ℝ)) (p : P) ↦ |
| 271 | ∑ i : Fin (s η), c η i * B.eval fun x : ι ↦ (f p x).val.snd ⟨η, i⟩) |
| 272 | (fun p : P ↦ B.eval fun x : ι ↦ (f p x).val.fst) atBot := by |
| 273 | induction B using MvPolynomial.induction_on' with |
| 274 | | monomial m a => |
| 275 | -- the monomial `m` is evaluated at a product of points of the monoid `N`; scale by `a` |
| 276 | have h_prod : TendstoUniformly |
| 277 | (fun (η : Set.Ioi (0 : ℝ)) (p : P) ↦ |
| 278 | ∑ i : Fin (s η), c η i * (m.prod fun x e ↦ f p x ^ e).val.snd ⟨η, i⟩) |
| 279 | (fun p : P ↦ (m.prod fun x e ↦ f p x ^ e).val.fst) atBot := |
| 280 | h_apx.tendstoUniformly.comp fun p ↦ m.prod fun x e ↦ f p x ^ e |
| 281 | simpa [mul_left_comm, eval_monomial, Finsupp.prod, Function.comp_def, Prod.snd_prod, mul_sum, |
| 282 | Prod.fst_prod] using (uniformContinuous_mul_left' a).comp_tendstoUniformly h_prod |
| 283 | | add B B' hB hB' => simpa [mul_add, sum_add_distrib, Pi.add_def] using hB.add hB' |
| 284 | |
| 285 | /-- The polynomials `newtonPoly j m` over k in X_0, X_1, … are defined by `newtonPoly 0 m = 1` and |
| 286 | `newtonPoly (j + 1) m = X m * newtonPoly j 1 - j • newtonPoly j (m + 1)`. At the power sums, |
| 287 | `newtonPoly j 1` equals j! times the j-th elementary symmetric function. -/ |
| 288 | noncomputable def newtonPoly : ℕ → ℕ → MvPolynomial ℕ k := |
| 289 | Nat.rec 1 fun j b m ↦ X m * b 1 - j • b (m + 1) |
| 290 | |
| 291 | private lemma newtonPoly_zero (m : ℕ) : newtonPoly 0 m = (1 : MvPolynomial ℕ k) := rfl |
| 292 | |
| 293 | /-- The recursion that defines `newtonPoly`. -/ |
| 294 | private lemma newtonPoly_succ (j m : ℕ) : |
| 295 | newtonPoly (j + 1) m = (X m * newtonPoly j 1 - j • newtonPoly j (m + 1) : MvPolynomial ℕ k) := |
| 296 | rfl |
| 297 | |
| 298 | /-- How `newtonPoly` changes when a new element `a` adds `a ^ m` to each power sum `p m`: evaluated |
| 299 | at `a ^ m + p m`, `newtonPoly (j + 1) m` is its value at `p` plus `j a` times that of |
| 300 | `newtonPoly j m` plus `a ^ m` times that of `newtonPoly j 1`. -/ |
| 301 | private lemma eval_add_pow_newtonPoly_succ (a : k) (p : ℕ → k) (j m : ℕ) : |
| 302 | eval (fun m ↦ a ^ m + p m) (newtonPoly (j + 1) m) = |
| 303 | eval p (newtonPoly (j + 1) m) + j * a * eval p (newtonPoly j m) + |
| 304 | a ^ m * eval p (newtonPoly j 1) := by |
| 305 | induction j generalizing m with |
| 306 | | zero => simp [newtonPoly_succ, newtonPoly_zero, add_comm] |
| 307 | | succ j ih => |
| 308 | -- unfold `newtonPoly (j + 2) m` and apply `ih` at `1` and at `m + 1` |
| 309 | simp only [newtonPoly_succ (j + 1), map_sub, map_mul, map_nsmul, eval_X, ih] |
| 310 | -- unfold `newtonPoly (j + 1) m` from the right-hand side |
| 311 | simp only [newtonPoly_succ j, map_sub, map_mul, eval_X, nsmul_eq_mul, map_natCast] |
| 312 | push_cast |
| 313 | ring |
| 314 | |
| 315 | /-- The polynomials `newtonPoly j m` over `k` in variables X_0, X_1, … are defined by |
| 316 | `newtonPoly 0 m = 1` and `newtonPoly (j + 1) m = X m * newtonPoly j 1 - j • newtonPoly j (m + 1)`. |
| 317 | Newton's identities: for a multiset `s` in `k`, evaluating `newtonPoly j 1` at X_m ↦ ∑_{a ∈ s} a ^ m |
| 318 | (the power sums of `s`) gives `j!` times the `j`-th elementary symmetric function of `s`. -/ |
| 319 | lemma eval_newtonPoly (s : Multiset k) : |
| 320 | ∀ j : ℕ, eval (fun m : ℕ ↦ (s.map fun a : k ↦ a ^ m).sum) (newtonPoly j 1) = |
| 321 | j.factorial * s.esymm j := by |
| 322 | -- Newton's identities, by induction on `s`: `add_pow_eval` says how `newtonPoly` changes when a |
| 323 | -- new element `a` adds `a ^ m` to each power sum `p m`. |
| 324 | have add_pow_eval (a : k) (p : ℕ → k) (j m : ℕ) : |
| 325 | eval (fun m ↦ a ^ m + p m) (newtonPoly (j + 1) m) = |
| 326 | eval p (newtonPoly (j + 1) m) + j * a * eval p (newtonPoly j m) + |
| 327 | a ^ m * eval p (newtonPoly j 1) := |
| 328 | eval_add_pow_newtonPoly_succ a p j m |
| 329 | have const_coeff (j m : ℕ) : (newtonPoly (j + 1) m).constantCoeff = (0 : k) := by |
| 330 | induction j generalizing m <;> simp_all [newtonPoly_succ] |
| 331 | intro j |
| 332 | induction s using Multiset.induction generalizing j with |
| 333 | | empty => |
| 334 | -- all power sums are zero, so only the constant coefficient is left |
| 335 | cases j <;> |
| 336 | simp [newtonPoly_zero, const_coeff, Multiset.powersetCard_zero_right, Multiset.esymm] |
| 337 | | cons a s ih => |
| 338 | rcases j with _ | j |
| 339 | · simp [newtonPoly_zero, Multiset.esymm] |
| 340 | -- The power sums of `a ::ₘ s` are `a ^ m` plus those of `s`; `add_pow_eval` and `ih` expand |
| 341 | -- the left side, and `esymm (j + 1)` of `a ::ₘ s` is `esymm (j + 1) + a * esymm j` of `s`. |
| 342 | simp only [Multiset.map_cons, Multiset.sum_cons, add_pow_eval, ih] |
| 343 | simp [Nat.factorial_succ, Multiset.sum_map_mul_left, Multiset.esymm, mul_assoc] |
| 344 | ring |
| 345 | |
| 346 | /-- Let `τ` be a linear form on a `k`-algebra `A` and `y : A` with `y ^ (m + 1) = l ^ m • y` for all |
| 347 | `m`. At the values `τ (y ^ i)`, the Newton polynomial `newtonPoly (j + 1) (m + 1)` takes the value |
| 348 | `l ^ m` times the product of `τ y - i * l` over `i ≤ j`. -/ |
| 349 | private lemma eval_newtonPoly_eq_pow_mul_prod_of_pow_succ_eq_smul {A : Type*} [Ring A] [Algebra k A] |
| 350 | (τ : A →ₗ[k] k) {l : k} {y : A} (hy : ∀ m : ℕ, y ^ (m + 1) = l ^ m • y) (j : ℕ) : |
| 351 | ∀ m : ℕ, eval (fun i : ℕ ↦ τ (y ^ i)) (newtonPoly (j + 1) (m + 1)) = |
| 352 | l ^ m * ∏ i ∈ range (j + 1), (τ y - i * l) := by |
| 353 | induction j with |
| 354 | | zero => simp [newtonPoly_succ, newtonPoly_zero, hy] |
| 355 | | succ j ih => |
| 356 | intro m |
| 357 | -- unfold one step: `X (m + 1) * newtonPoly (j + 1) 1 - (j + 1) • newtonPoly (j + 1) (m + 2)`; |
| 358 | -- `ih` at `0` and at `m + 1` turns both into products |
| 359 | rw [newtonPoly_succ (j + 1), map_sub, map_mul, map_nsmul, eval_X, ih 0, ih (m + 1), hy, |
| 360 | map_smul, prod_range_succ _ (j + 1), smul_eq_mul, nsmul_eq_mul] |
| 361 | ring |
| 362 | |
| 363 | /-- Let `τ` be a linear form on a `k`-algebra `A` and `y : A` with `y ^ (m + 1) = l ^ m • y` for all |
| 364 | `m`. If the Newton polynomial `newtonPoly (d + 1) 1` vanishes at the values `τ (y ^ i)`, then |
| 365 | `τ y = j * l` for some natural number `j`. -/ |
| 366 | private lemma exists_eq_nat_mul_of_eval_newtonPoly_eq_zero {A : Type*} [Ring A] [Algebra k A] |
| 367 | (τ : A →ₗ[k] k) {l : k} {y : A} (hy : ∀ m : ℕ, y ^ (m + 1) = l ^ m • y) {d : ℕ} |
| 368 | (h_zero : eval (fun i : ℕ ↦ τ (y ^ i)) (newtonPoly (d + 1) 1) = 0) : |
| 369 | ∃ j : ℕ, τ y = j * l := by |
| 370 | -- at `m = 0` the Newton polynomial is the product of the `τ y - i * l`, `i ≤ d`, so one vanishes |
| 371 | have h_prod : ∏ i ∈ range (d + 1), (τ y - i * l) = 0 := by |
| 372 | simpa using (eval_newtonPoly_eq_pow_mul_prod_of_pow_succ_eq_smul τ hy d 0).symm.trans h_zero |
| 373 | obtain ⟨i, -, hi⟩ := prod_eq_zero_iff.mp h_prod |
| 374 | exact ⟨i, sub_eq_zero.mp hi⟩ |
| 375 | |
| 376 | /-- More than `card n ^ 2` linear forms `A ↦ trace (M i * A)` on the `n × n` matrices over a |
| 377 | field are linearly dependent. -/ |
| 378 | private lemma _root_.Matrix.not_linearIndependent_trace_mul_of_card_lt {k n N : Type*} [Field k] |
| 379 | [Fintype n] [DecidableEq n] [Fintype N] (M : N → Matrix n n k) |
| 380 | (h_card : Fintype.card n * Fintype.card n < Fintype.card N) : |
| 381 | ¬LinearIndependent k fun (i : N) (A : Matrix n n k) ↦ (M i * A).trace := by |
| 382 | intro h_ind |
| 383 | -- the `M i` would be independent in a space of dimension `card n * card n` |
| 384 | have h_le : Fintype.card N ≤ Module.finrank k (Matrix n n k) := |
| 385 | (LinearIndependent.of_comp (v := M) (pi fun A ↦ traceLinearMap n k k ∘ₗ mulRight k A) |
| 386 | h_ind).fintype_card_le_finrank |
| 387 | simp only [finrank_matrix, Module.finrank_self, mul_one] at h_le |
| 388 | lia |
| 389 | |
| 390 | /-- The linear form on `k[G]` that extends `T : G → k`. -/ |
| 391 | private noncomputable def linearExtension (T : G → k) : k[G] →ₗ[k] k := |
| 392 | (aeval T).toLinearMap ∘ₗ Finsupp.lift _ k G X ∘ₗ (coeffLinearEquiv k).toLinearMap |
| 393 | |
| 394 | /-- If `T : G → k` obeys every polynomial identity among traces of homomorphisms `G →* GL n k`, then |
| 395 | its linear extension to `k[G]` obeys every polynomial identity among traces of algebra maps |
| 396 | `k[G] →ₐ[k] Matrix n n k`. -/ |
| 397 | private lemma eval_linearExtension_eq_zero {T : G → k} |
| 398 | (h_identities : ∀ B : MvPolynomial G k, |
| 399 | (∀ x : G →* GL n k, eval (fun g : G ↦ (x g).val.trace) B = 0) → eval T B = 0) |
| 400 | (B : MvPolynomial k[G] k) |
| 401 | (hB : ∀ ρ : k[G] →ₐ[k] Matrix n n k, eval (fun x : k[G] ↦ (ρ x).trace) B = 0) : |
| 402 | eval (linearExtension T) B = 0 := by |
| 403 | -- Apply `h_identities` to `B` with each variable `X (∑ c g • g)` replaced by `∑ c g • X g`. |
| 404 | refine (comp_aeval_apply _ (aeval T) B).symm.trans |
| 405 | (h_identities _ fun ρ ↦ (comp_aeval_apply _ (aeval fun g : G ↦ (ρ g).val.trace) B).trans ?_) |
| 406 | simpa [Finsupp.sum, lift_apply] using |
| 407 | hB (MonoidAlgebra.lift k (Matrix n n k) G ((Units.coeHom (Matrix n n k)).comp ρ)) |
| 408 | |
| 409 | /-- The kernel of the pairing `(x, y) ↦ t (x * y)` on `k[G]`, for a linear form `t` with |
| 410 | `t (x * y) = t (y * x)`; this symmetry makes the kernel a left ideal. -/ |
| 411 | private def pairingKernel (t : k[G] →ₗ[k] k) (t_comm : ∀ x y : k[G], t (x * y) = t (y * x)) : |
| 412 | Ideal k[G] := |
| 413 | { toAddSubmonoid := ((mul k k[G]).compr₂ t).ker.toAddSubmonoid |
| 414 | smul_mem' := fun a x hx ↦ by simp_all [t_comm a, DFunLike.ext_iff, mul_assoc] } |
| 415 | |
| 416 | /-- Let `t` be a linear form on `k[G]` that obeys every polynomial identity among traces of algebra |
| 417 | maps `k[G] → Matrix n n k`. Then the quotient of `k[G]` by the kernel of the pairing `t (x * y)` is |
| 418 | finite-dimensional: for `card n ^ 2 + 1` elements `s i`, independent modulo the kernel, the forms |
| 419 | `y ↦ t (s i * y)` would be independent, but their minors `det (t (s i * b j))` are polynomial |
| 420 | identities among traces, and these vanish since the `ρ (s i)` are dependent in every `ρ`. -/ |
| 421 | private lemma finite_quotient_pairingKernel (t : k[G] →ₗ[k] k) |
| 422 | (t_comm : ∀ x y : k[G], t (x * y) = t (y * x)) [hI : (pairingKernel t t_comm).IsTwoSided] |
| 423 | (h_alg : ∀ B : MvPolynomial k[G] k, |
| 424 | (∀ ρ : k[G] →ₐ[k] Matrix n n k, eval (fun x : k[G] ↦ (ρ x).trace) B = 0) → eval t B = 0) : |
| 425 | Module.Finite k (k[G] ⧸ pairingKernel t t_comm) := by |
| 426 | let N : ℕ := Fintype.card n * Fintype.card n + 1 |
| 427 | refine rank_lt_aleph0_iff.mp (not_le.mp fun h_inf ↦ ?_) |
| 428 | obtain ⟨s, hs⟩ : ∃ s : Fin N → k[G], LinearIndependent k (mk (pairingKernel t t_comm) ∘ s) := |
| 429 | mk_surjective.comp_left.exists.mp (le_rank_iff.mp (Cardinal.aleph0_le.mp h_inf N)) |
| 430 | have h_ltoFun : LinearMap.ker (ltoFun k k[G] k k) = ⊥ := by aesop |
| 431 | have h_indep : LinearIndependent k fun (i : Fin N) (y : k[G]) ↦ t (s i * y) := |
| 432 | (hs.map' _ (ker_liftQ_eq_bot' _ _ rfl)).map' (ltoFun k k[G] k k) h_ltoFun |
| 433 | have h_dep (ρ : k[G] →ₐ[k] Matrix n n k) : |
| 434 | ¬LinearIndependent k fun (i : Fin N) (A : Matrix n n k) ↦ (ρ (s i) * A).trace := |
| 435 | Matrix.not_linearIndependent_trace_mul_of_card_lt _ (by simp [N]) |
| 436 | refine det_eval_eq_zero_iff_not_linearIndependent.mp (fun b ↦ ?_) h_indep |
| 437 | -- the minor `det (t (s i * b j))` is `t` at a polynomial that vanishes on traces |
| 438 | have h_det_zero : eval t (of fun i j ↦ X (s i * b j) : Matrix (Fin N) (Fin N) _)ᵀ.det = 0 := by |
| 439 | refine h_alg _ fun ρ ↦ ?_ |
| 440 | simpa [det_apply, Function.flip_def] using det_eval_eq_zero_iff_not_linearIndependent.mpr |
| 441 | (h_dep ρ) (ρ ∘ b) |
| 442 | simpa [det_apply, Function.flip_def] using h_det_zero |
| 443 | |
| 444 | /-- A weak form of the Procesi–Taylor theorem: over an algebraically closed field `k` of |
| 445 | characteristic `0`, a function `T : G → k` that satisfies every polynomial identity holding among |
| 446 | the traces of homomorphisms `G →* GL n k` is the trace of such a homomorphism `r` with |
| 447 | non-degenerate trace form (`New.IsTraceNondeg`). -/ |
| 448 | lemma exists_rep_of_trace_identities [IsAlgClosed k] [CharZero k] {T : G → k} |
| 449 | (h_identities : ∀ B : MvPolynomial G k, |
| 450 | (∀ x : G →* GL n k, eval (fun g : G ↦ (x g).val.trace) B = 0) → eval T B = 0) : |
| 451 | ∃ r : G →* GL n k, IsTraceNondeg (n := n) r ∧ ∀ g : G, (r g).val.trace = T g := by |
| 452 | -- Extend `T` to a linear form `t` on `k[G]` and divide by the kernel `I` of the pairing |
| 453 | -- `t (x * y)`. Identities of traces show that the quotient is finite-dimensional, has no |
| 454 | -- nonzero ideal of square zero, and that `t` takes natural values on idempotents; |
| 455 | -- Wedderburn's theorem then gives the representation. |
| 456 | let t : k[G] →ₗ[k] k := linearExtension T |
| 457 | have h_alg : ∀ B : MvPolynomial k[G] k, |
| 458 | (∀ ρ : k[G] →ₐ[k] Matrix n n k, eval (fun x : k[G] ↦ (ρ x).trace) B = 0) → eval t B = 0 := |
| 459 | eval_linearExtension_eq_zero h_identities |
| 460 | have t_comm (x y : k[G]) : t (x * y) = t (y * x) := by |
| 461 | simpa [trace_mul_comm (m := n) (n := n), sub_eq_zero] using h_alg (X (x * y - y * x)) |
| 462 | let I : Ideal k[G] := pairingKernel t t_comm |
| 463 | have hI_twoSided : I.IsTwoSided := ⟨by simp_all [I, pairingKernel, mul_assoc, DFunLike.ext_iff]⟩ |
| 464 | let τ : k[G] ⧸ I →ₗ[k] k := liftQ _ t fun x hx ↦ by simpa using LinearMap.congr_fun hx 1 |
| 465 | -- If `x ^ (m + 1) = l ^ m • x`, then `τ x ∈ ℕ l`: the Newton polynomial for the elementary |
| 466 | -- symmetric function of degree `card n + 1` vanishes on traces, and here it equals |
| 467 | -- `∏ (τ x - i * l)` over `i ≤ card n`. |
| 468 | have τ_nat (l : k) (x : k[G] ⧸ I) (hx : ∀ m : ℕ, x ^ (m + 1) = l ^ m • x) : |
| 469 | ∃ j : ℕ, τ x = j * l := by |
| 470 | obtain ⟨x, rfl⟩ := mk_surjective (I := I) x |
| 471 | have h_zero : eval t (rename (fun i : ℕ ↦ x ^ i) (newtonPoly (Fintype.card n + 1) 1)) = 0 := by |
| 472 | refine h_alg _ fun ρ ↦ ?_ |
| 473 | -- at the traces of the powers of `ρ x` the Newton polynomial is `(card n + 1)!` times the |
| 474 | -- elementary symmetric function of degree `card n + 1` of the `card n` eigenvalues: `0` |
| 475 | simp [eval_rename, eval_newtonPoly, trace_pow_eq_sum_roots, card_roots_eq_natDegree, |
| 476 | Function.comp_def, Multiset.esymm] |
| 477 | rw [eval_rename] at h_zero |
| 478 | exact exists_eq_nat_mul_of_eval_newtonPoly_eq_zero τ hx h_zero |
| 479 | have h_finite : Module.Finite k (k[G] ⧸ I) := |
| 480 | finite_quotient_pairingKernel t t_comm h_alg (hI := hI_twoSided) |
| 481 | -- If `x g x = 0` for all `g`, each `x g` has square zero, so `t (x g) = 0` (`τ_nat` with `l = 0`) |
| 482 | -- and `x ∈ I`. |
| 483 | let π : G →* k[G] ⧸ I := (mk I).toMonoidHom.comp (of k G) |
| 484 | have h_semisimple (x : k[G] ⧸ I) |
| 485 | (hx : ∀ g : G, x * π g * x = 0) : x = 0 := by |
| 486 | obtain ⟨x, rfl⟩ := mk_surjective (I := I) x |
| 487 | refine eq_zero_iff_mem.mpr ?_ |
| 488 | ext g |
| 489 | have h_sq (m : ℕ) : (mk I x * π g) ^ (m + 1) = (0 : k) ^ m • (mk I x * π g) := by |
| 490 | cases m <;> simp_all [pow_succ', ← mul_assoc] |
| 491 | obtain ⟨j, hj⟩ := τ_nat 0 (mk I x * π g) h_sq |
| 492 | simpa [show τ (mk I x * π g) = t (x * .single g 1) from rfl] using hj |
| 493 | -- Wedderburn: `π = F ∘ s`, where `s G` spans a product of matrix algebras and `F` is an algebra |
| 494 | -- map from it to the quotient. |
| 495 | obtain ⟨b, d, hd, s, F, -, hs_span, hF⟩ := |
| 496 | exists_wedderburn (k := k) π (.id G) (fun x _ ↦ h_semisimple x) ⟨by simp⟩ |
| 497 | -- On the product of matrix algebras `τ ∘ₗ F` is a trace, natural on the idempotents |
| 498 | -- `piMatrixUnit i` (`τ_nat` with `l = 1`) and `card n` at `1`; so `exists_rep_of_trace` applies. |
| 499 | have hτF_comm (x y : PiMatrix k d) : |
| 500 | (τ ∘ₗ F.toLinearMap) (x * y) = (τ ∘ₗ F.toLinearMap) (y * x) := by |
| 501 | simpa using (F x).ind₂ t_comm (F y) |
| 502 | have hτF_nat (i : Fin b) : ∃ m : ℕ, (τ ∘ₗ F.toLinearMap) (piMatrixUnit i) = m := by |
| 503 | simpa using τ_nat 1 (F (piMatrixUnit i)) fun m ↦ by |
| 504 | simp [(isIdempotentElem_map_piMatrixUnit F i).pow_succ_eq] |
| 505 | have hτF_one : (τ ∘ₗ F.toLinearMap) 1 = Fintype.card n := by |
| 506 | -- the identity `X 1 - card n` holds among traces, as the trace of `1` is `card n` |
| 507 | have h_one : eval t (X 1 - ∑ _ : n, 1) = 0 := h_alg _ fun ρ ↦ by simp |
| 508 | simpa [show τ 1 = t 1 from rfl, sub_eq_zero] using h_one |
| 509 | obtain ⟨r, hr, hr_trace⟩ := |
| 510 | exists_rep_of_trace (n := n) hs_span (τ ∘ₗ F.toLinearMap) hτF_comm hτF_nat hτF_one |
| 511 | refine ⟨r, hr, fun g ↦ ?_⟩ |
| 512 | calc (r g).val.trace = τ (F (s g)) := hr_trace g |
| 513 | _ = τ (π g) := congrArg τ (hF g) |
| 514 | _ = t (.single g 1) := rfl |
| 515 | _ = T g := by simp [t, linearExtension] |
| 516 | |
| 517 | /-- A limit of traces is a trace. Let `N` be a closed submonoid of pairs `(t, φ)` on which |
| 518 | `∑ i, c η i * φ (η, i)` tends to `t` uniformly as `η → 0` (`IsApproximatingMonoid s c N`). For each |
| 519 | `g` let `F g` be a nontrivial filter on `N` along which `t` eventually lies in the complete set `L` |
| 520 | and each `φ x` tends to the trace of `r x g`, with each `r x` continuous. Then some continuous `R`, |
| 521 | whose trace form is non-degenerate on the span of its matrices, has `(tr (R g), (tr (r x g))_x) ∈ N` |
| 522 | for all `g`. -/ |
| 523 | lemma GaloisRep.exists_continuous_isTraceNondeg_of_tendsto_trace [TopologicalSpace G] |
| 524 | [IsTopologicalGroup G] [IsAlgClosed K] |
| 525 | [CharZero K] {s : Set.Ioi (0 : ℝ) → ℕ} {c : (η : Set.Ioi (0 : ℝ)) → Fin (s η) → K} |
| 526 | {N : Submonoid (K × ((η : Set.Ioi (0 : ℝ)) × Fin (s η) → K))} |
| 527 | (h_apx : IsApproximatingMonoid s c N) (F : G → Filter N) [∀ g : G, (F g).NeBot] {L : Set K} |
| 528 | (hL : IsComplete L) (h_mem : ∀ g : G, ∀ᶠ p : N in F g, p.val.fst ∈ L) |
| 529 | {r : (η : Set.Ioi (0 : ℝ)) × Fin (s η) → G →* GL n K} |
| 530 | (hr_cont : ∀ x : (η : Set.Ioi (0 : ℝ)) × Fin (s η), Continuous (r x)) |
| 531 | (h_tendsto : ∀ (g : G) (x : (η : Set.Ioi (0 : ℝ)) × Fin (s η)), |
| 532 | (F g).Tendsto (fun p : N ↦ p.val.snd x) (nhds (r x g).val.trace)) : |
| 533 | ∃ R : G →* GL n K, |
| 534 | Continuous R ∧ IsTraceNondeg R ∧ |
| 535 | ∀ g : G, |
| 536 | ((R g).val.trace, fun x : (η : Set.Ioi (0 : ℝ)) × Fin (s η) ↦ (r x g).val.trace) ∈ N := by |
| 537 | -- Along `F g` the first components have a limit `T g`. The approximation passes to the limit, |
| 538 | -- so `T` is continuous and obeys the trace identities: it is a trace. |
| 539 | have fst_cauchy (g : G) : Cauchy ((F g).map fun p : N ↦ p.val.fst) := by |
| 540 | -- For each `η` the approximating sums converge along `F g`: their differences tend to `0`. |
| 541 | -- A uniform limit of such families is again Cauchy. |
| 542 | have sum_diff (η : Set.Ioi (0 : ℝ)) : |
| 543 | Tendsto (fun q : N × N ↦ |
| 544 | ∑ i, c η i * q.fst.val.snd ⟨η, i⟩ - ∑ i, c η i * q.snd.val.snd ⟨η, i⟩) |
| 545 | (F g ×ˢ F g) (nhds 0) := |
| 546 | ((cauchy_map_iff_tendsto (F g) _).mp |
| 547 | (tendsto_finsetSum _ fun i _ ↦ (h_tendsto g _).const_mul _).cauchy_map).right |
| 548 | refine (cauchy_map_iff_tendsto (F g) fun p : N ↦ p.val.fst).mpr ⟨map_neBot, ?_⟩ |
| 549 | exact ((h_apx.tendstoUniformly.comp Prod.fst).sub |
| 550 | (h_apx.tendstoUniformly.comp Prod.snd)).tendsto_of_eventually_tendsto |
| 551 | (.of_forall sum_diff) tendsto_const_nhds |
| 552 | have h_lim (g : G) : ∃ t : K, (F g).Tendsto (fun p : N ↦ p.val.fst) (nhds t) := |
| 553 | (hL _ (fst_cauchy g) (tendsto_principal.mpr (h_mem g))).imp fun _ ht ↦ ht.2 |
| 554 | choose T hT using h_lim |
| 555 | -- The limit system at `g`, as a point of the closed monoid `N`. |
| 556 | let point (g : G) : N := ⟨(T g, fun x ↦ (r x g).val.trace), h_apx.isClosed_carrier.mem_of_tendsto |
| 557 | (.prodMk_nhds (hT g) (tendsto_pi_nhds.2 (h_tendsto g))) (by simp)⟩ |
| 558 | have T_cont : Continuous T := by |
| 559 | have sum_cont (η : Set.Ioi (0 : ℝ)) : |
| 560 | Continuous fun g : G ↦ ∑ i : Fin (s η), c η i * (r ⟨η, i⟩ g).val.trace := by fun_prop |
| 561 | exact (h_apx.tendstoUniformly.comp point).continuous (.of_forall sum_cont) |
| 562 | -- A polynomial `D` that vanishes on all traces vanishes on their limit `T`. |
| 563 | have T_identities (D : MvPolynomial G K) |
| 564 | (hD : ∀ x : G →* GL n K, eval (fun g : G ↦ (x g).val.trace) D = 0) : eval T D = 0 := by |
| 565 | have h_lim : Tendsto (fun η : Set.Ioi (0 : ℝ) ↦ |
| 566 | ∑ i : Fin (s η), c η i * D.eval fun g : G ↦ (r ⟨η, i⟩ g).val.trace) atBot |
| 567 | (nhds (D.eval T)) := |
| 568 | (h_apx.tendstoUniformly_eval D ![point]).tendsto_at 0 |
| 569 | simpa [hD, eq_comm] using h_lim |
| 570 | obtain ⟨R, hR, trace_R⟩ := exists_rep_of_trace_identities T_identities |
| 571 | obtain rfl : (fun g ↦ (R g).val.trace) = T := funext trace_R |
| 572 | exact ⟨R, hR.continuous_of_trace T_cont, hR, fun g ↦ (point g).prop⟩ |
| 573 | |
| 574 | end New |
| 575 | |
| 576 | end Pseudorepresentation |
| 577 | |
| 578 | end |