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.Order.Star.Rat |
| 4 | import Mathlib.Analysis.Matrix.Order |
| 5 | import Mathlib.Topology.MetricSpace.Ultra.Pi |
| 6 | public import Lib.Adelic.AutomorphicForms.HeckeEigenforms |
| 7 | public import Lib.Adelic.Adeles.StrongApproximation |
| 8 | public import Lib.Adelic.Reduction.DefiniteClassSums |
| 9 | public import Lib.GLn.SchurModule.GramMatrix |
| 10 | import Lib.Adelic.Unitary.WeakApproximation |
| 11 | import Lib.Adelic.Witt.WittTheorem |
| 12 | import Lib.GLn.SchurModule.SchurNorm |
| 13 | import Lib.GLn.SchurModule.WeylKernel |
| 14 | import Lib.General.LinearAlgebra.MatrixNormBounds |
| 15 | import Lib.PadicComparison.Descent.TestCategory |
| 16 | |
| 17 | /-! |
| 18 | # The p-adic gauge of algebraic forms, class sums, and integral forms of a level |
| 19 | |
| 20 | Fix a prime `p` and a map `ιₚ : ℂ →+* ℂ_[p]`, written ι in prose and given by the instance |
| 21 | `[ι : PadicPlace p]`. The gauge `New.weylGauge κ e g ξ` is the largest `p`-adic absolute value of a |
| 22 | coordinate of `g⁻¹ ι(ξ)`, for a finite adelic unitary point `g` acting in weight `(κ, e)`. It |
| 23 | measures the `p`-integrality of the values of algebraic forms (`New.AlgForm`). The file proves |
| 24 | invariance properties of the gauge, bounds the forms `New.deltaForm` on `New.stdSpace E n` that are |
| 25 | supported on one double coset, bounds class sums over `Γ \ G / K`, and studies the sizes of |
| 26 | algebraic forms whose level is cut out at finitely many split places. |
| 27 | |
| 28 | ## Main definitions and results |
| 29 | |
| 30 | * `New.exists_mul_mem_integralAbove`: a rational point moves `g` to a point integral above `p`. |
| 31 | * `New.LevelPlaces.LevelForm`: forms of weight (κ, e) on which the level `New.levelOf` of H acts |
| 32 | through χ, a finite-dimensional inner product space under the class sum of the Gram pairing. |
| 33 | * `New.gramForm_mem_embValRing`: the Gram pairing of two vectors of gauge at most one, for |
| 34 | `ι ∘ conj` and for `ι`, is integral; `New.LevelPlaces.LevelForm.norm_nsmul_inner_le_one`: so is |
| 35 | the inner product of two such forms, after multiplication by a common multiple of the orders of |
| 36 | the stabilisers. |
| 37 | * `New.LevelPlaces.LevelForm.valueCoord`, `New.LevelPlaces.LevelForm.valueMetric`: coordinates of a |
| 38 | form in which the inner product has a rational matrix, if the classes have no nontrivial |
| 39 | automorphisms. |
| 40 | * `New.Rows.weylGauge_classSum_le_one`: `p`-integrality (gauge `New.weylGauge` at most one) passes |
| 41 | to the class sum after multiplication by a common multiple of the orders of the stabilisers. |
| 42 | |
| 43 | Notions from other files: |
| 44 | * `New.weylGauge`: at the infinite place τ, g⁻¹ acts through its component at the prime induced by |
| 45 | the embedding x ↦ ι(Φ_τ(x̄)) of E into ℂ_p. |
| 46 | * `New.stdSpace`: the definite space `I_n`, the sum of `n` norms with its standard lattice. |
| 47 | * `New.integralAbove`: the subgroup of finite adelic unitary points whose components at all primes |
| 48 | above p are integral invertible matrices. |
| 49 | * `New.classSum`: the class sum of f, that is, the sum over the double cosets c in Γ\G/K of |
| 50 | f(g_c)/#(Γ ∩ g_c K g_c⁻¹), with g_c a chosen representative; `New.classAut` is Γ ∩ gKg⁻¹. |
| 51 | * `New.stdLevel`: K₀ = G_f ∩ GL_n(Ô), the stabiliser of the standard lattice in the finite adelic |
| 52 | unitary group G_f = `New.Gf`; `New.maxCompactAt n w` is its part supported at w and w̄. |
| 53 | |
| 54 | ## Relation to the literature |
| 55 | |
| 56 | Known; see `Lib.Adelic.AutomorphicForms.SmoothAlgebraicForms` and `Lib.Adelic.Hecke.ClassSums` for |
| 57 | sources. |
| 58 | -/ |
| 59 | |
| 60 | @[expose] public section |
| 61 | |
| 62 | noncomputable section |
| 63 | |
| 64 | /-! |
| 65 | ## Invariance of the gauge, integral forms, weak approximation above p |
| 66 | |
| 67 | * `New.GaugeLe`, `New.integralFormsAt`: bounds for forms, and the module of integral forms over the |
| 68 | valuation ring `New.embValRing` of `ι`. |
| 69 | -/ |
| 70 | |
| 71 | namespace New |
| 72 | |
| 73 | open NormedField Space IsUltrametricDist Matrix Function |
| 74 | open NumberField (InfinitePlace) |
| 75 | |
| 76 | variable {E n : Type} [Field E] [CMType E] [Fintype n] [DecidableEq n] |
| 77 | {κ : InfinitePlace E → ℕ → ℕ} {e : InfinitePlace E → ℤ} {p : ℕ} [Fact p.Prime] |
| 78 | (g d : Gf E n) {k : Gf E n} |
| 79 | |
| 80 | /-! ### Weak approximation above `p` and properties of the gauge -/ |
| 81 | |
| 82 | /-- The extension to the finite adeles of an embedding `σ : E →+* ℂ_[p]` maps a unitary point that |
| 83 | is integral above `p` to an integral matrix with integral inverse. -/ |
| 84 | lemma adeleExtension_mem_intGL (σ : E →+* ℂ_[p]) {k : Gf E n} (hk : k ∈ integralAbove n p) : |
| 85 | GeneralLinearGroup.map (adeleExtension σ) k.val ∈ intGL n valuation.integer := by |
| 86 | -- The place induced by `σ` lies above `p`, so the component of `k` there is an integral `k'`. |
| 87 | obtain ⟨k', hk'⟩ : k.atPlace (placeOfEmb σ) ∈ intGL n (LocInt (placeOfEmb σ)).toSubring := |
| 88 | mem_localLevel.1 hk _ (natCast_mem_placeOfEmb σ) |
| 89 | -- The extension of `σ` to the completion preserves the order of values, hence integrality. |
| 90 | have h_int (x : LocField (placeOfEmb σ)) (hx : x ∈ (LocInt (placeOfEmb σ)).toSubring) : |
| 91 | placeOfEmbExtension σ x ∈ valuation.integer := |
| 92 | (valuation_comap_placeOfEmbExtension_isEquiv σ).le_one_iff_le_one.mpr hx |
| 93 | -- The extension to the adeles factors through the component at the induced place. |
| 94 | change GeneralLinearGroup.map (placeOfEmbExtension σ) (k.atPlace (placeOfEmb σ)) ∈ _ |
| 95 | rw [← hk'] |
| 96 | exact ⟨GeneralLinearGroup.map (RingHom.restrict _ _ _ h_int) k', rfl⟩ |
| 97 | |
| 98 | variable (p) in |
| 99 | /-- Weak approximation above `p`: for finite adelic points `g`, `d` there is a rational point `γ` of |
| 100 | the definite space `V` (by default the standard one), embedded by `V.embFin`, such that `γ g` and |
| 101 | `d (γ g) d⁻¹` are integral at all primes above `p`. -/ |
| 102 | lemma exists_mul_mem_integralAbove (V : Space E n 1 := stdSpace E n) : |
| 103 | ∃ γ : U V.J, |
| 104 | V.embFin γ * g ∈ integralAbove n p ∧ |
| 105 | d * (V.embFin γ * g) * d⁻¹ ∈ integralAbove n p := by |
| 106 | -- The `x` with `x g` and `d x g d⁻¹` integral at all places form a nonempty open set. By weak |
| 107 | -- approximation it contains some `γ h` with `γ` rational and `h` trivial above `p`. |
| 108 | have h_open : IsOpen {x : Gf E n | x ∈ stdLevel E n ∧ d * x * d⁻¹ ∈ stdLevel E n} := |
| 109 | isOpen_stdLevel.inter (isOpen_stdLevel.preimage_of_continuous (f := (d * · * d⁻¹))) |
| 110 | obtain ⟨⟨⟨_, γ, rfl⟩, h, hh⟩, h_int, h_conj⟩ := |
| 111 | (V.weak_approximation (finite_natCast_mem p)).exists_mem_open |
| 112 | (h_open.preimage (continuous_snd.mul_const g)) ⟨(1, g⁻¹), by simp⟩ |
| 113 | -- The finite component of the product of `γ` and `(1, h)` is `V.embFin γ * h`. |
| 114 | replace h_int : V.embFin γ * h * g ∈ stdLevel E n := by simpa [embFin] using h_int |
| 115 | replace h_conj : d * (V.embFin γ * h * g) * d⁻¹ ∈ stdLevel E n := by simpa [embFin] using h_conj |
| 116 | have h_triv : ∀ w : FinPlace E, ↑p ∈ w.1 → h.atPlace w = 1 := by simpa [Gf.trivialOn] using hh |
| 117 | refine ⟨γ, mem_localLevel.2 fun w hw ↦ ?_, mem_localLevel.2 fun w hw ↦ ?_⟩ |
| 118 | · simpa [h_triv w hw] using mem_stdLevel_iff.1 h_int w |
| 119 | · simpa [h_triv w hw] using mem_stdLevel_iff.1 h_conj w |
| 120 | |
| 121 | variable [ι : PadicPlace p] {ξ : WeylIndex n κ → ℂ} |
| 122 | |
| 123 | /-- The gauge of `γ ξ` at `γ g` is the gauge of `ξ` at `g`, for a rational point `γ`. -/ |
| 124 | lemma weylGauge_embFin (γ : U (stdSpace E n).J) : |
| 125 | weylGauge κ e ((stdSpace E n).embFin γ * g) ((stdSpace E n).weightRep κ e γ ξ) = |
| 126 | weylGauge κ e g ξ := by |
| 127 | -- At each infinite place `adeleExtension` restricts on `E` to the embedding that it extends, so |
| 128 | -- the factor `γ⁻¹` of `(γ g)⁻¹` cancels the action of `γ` on `ξ`. |
| 129 | have h_rat (τ : InfinitePlace E) : |
| 130 | GeneralLinearGroup.map (adeleExtension (weightEmbedding ιₚ τ)) ((stdSpace E n).embFin γ).val = |
| 131 | GeneralLinearGroup.map (weightEmbedding ιₚ τ) γ.val := |
| 132 | GeneralLinearGroup.ext fun _ _ ↦ by simp [stdSpace_embFin, adeleExtension_algebraMap] |
| 133 | have h_cancel (τ : InfinitePlace E) : |
| 134 | GeneralLinearGroup.map (adeleExtension (weightEmbedding ιₚ τ)) |
| 135 | ((stdSpace E n).embFin γ * g)⁻¹.val * |
| 136 | GeneralLinearGroup.map (weightEmbedding ιₚ τ) γ.val = |
| 137 | GeneralLinearGroup.map (adeleExtension (weightEmbedding ιₚ τ)) g⁻¹.val := by |
| 138 | rw [← h_rat, ← map_mul] |
| 139 | simp [mul_assoc] |
| 140 | simp only [weylGauge, map_weightRep, mulVec_mulVec, ← map_mul, Pi.mul_def, h_cancel] |
| 141 | |
| 142 | /-- The gauge of a vector is unchanged when the point is multiplied on the right by an element |
| 143 | that is integral at the primes above `p`. -/ |
| 144 | lemma weylGauge_mul_of_mem_integralAbove (hk : k ∈ integralAbove n p) : |
| 145 | weylGauge κ e (g * k) ξ = weylGauge κ e g ξ := by |
| 146 | -- An element integral above `p` acts by a matrix with integral entries, so it does not increase |
| 147 | -- the sup norm; this is applied to `k` and to `k⁻¹`. |
| 148 | have h_le {a : Gf E n} (ha : a ∈ integralAbove n p) (b : Gf E n) : |
| 149 | weylGauge κ e (b * a⁻¹) ξ ≤ weylGauge κ e b ξ := by |
| 150 | have h_entry (i j : WeylIndex n κ) : |
| 151 | ‖weylRep κ e (fun τ : InfinitePlace E ↦ |
| 152 | GeneralLinearGroup.map (adeleExtension (weightEmbedding ιₚ τ)) a.val) i j‖ ≤ 1 := |
| 153 | weylRep_entry_mem _ (fun _ ↦ adeleExtension_mem_intGL _ ha) i j |
| 154 | simpa [weylGauge, ← Pi.mul_def] using norm_mulVec_le_of_nonneg zero_le_one h_entry (_ *ᵥ _) |
| 155 | exact le_antisymm (by simpa using h_le (inv_mem hk) g) (by simpa using h_le hk (g * k)) |
| 156 | |
| 157 | /-- The gauge is homogeneous for the absolute value of scalars under `ι`. -/ |
| 158 | lemma weylGauge_smul (c : ℂ) : weylGauge κ e g (c • ξ) = ‖ιₚ c‖ * weylGauge κ e g ξ := by |
| 159 | have h_comp : ιₚ ∘ (c • ξ) = ιₚ c • (ιₚ ∘ ξ) := funext fun i ↦ map_mul ιₚ c (ξ i) |
| 160 | simp [weylGauge, h_comp, mulVec_smul, norm_smul] |
| 161 | |
| 162 | /-- At a point `k` that is integral above `p`, a vector has gauge at most one if and only if all |
| 163 | its coordinates have absolute value at most one under `ι`. -/ |
| 164 | lemma weylGauge_le_one_iff (ξ : WeylIndex n κ → ℂ) (hk : k ∈ integralAbove n p) : |
| 165 | weylGauge κ e k ξ ≤ 1 ↔ ∀ i : WeylIndex n κ, ‖ιₚ (ξ i)‖ ≤ 1 := by |
| 166 | -- The gauge at `k` is the gauge at `1`, the sup norm of the coordinates. |
| 167 | rw [← one_mul k, weylGauge_mul_of_mem_integralAbove 1 hk] |
| 168 | simp [weylGauge, weylRep, pi_norm_le_iff_of_nonneg] |
| 169 | |
| 170 | /-- The gauge is ultrametric: if every `f a` has gauge at most `C ≥ 0`, so does their sum. -/ |
| 171 | lemma weylGauge_sum_le {α : Type*} {s : Finset α} {C : ℝ} {f : α → WeylIndex n κ → ℂ} |
| 172 | (hC : 0 ≤ C) (hf : ∀ a ∈ s, weylGauge κ e g (f a) ≤ C) : |
| 173 | weylGauge κ e g (∑ a ∈ s, f a) ≤ C := by |
| 174 | have h_comp : ιₚ ∘ (∑ a ∈ s, f a) = ∑ a ∈ s, ιₚ ∘ f a := funext fun _ ↦ by simp |
| 175 | simpa [weylGauge, h_comp, mulVec_sum] using norm_sum_le_of_forall_le_of_nonneg hC hf |
| 176 | |
| 177 | /-! ### Integral forms -/ |
| 178 | |
| 179 | /-- The algebraic form `φ` (with `φ.val (γ g)` equal to `γ` acting on `φ.val g` for rational `γ`) is |
| 180 | bounded by `c` at `d`: for every `g`, the gauge of `φ g` at `g * d` is at most `c`. -/ |
| 181 | def GaugeLe (c : ℝ) (φ : AlgForm (E := E) n κ e) : Prop := |
| 182 | ∀ g : Gf E n, weylGauge κ e (g * d) (φ.val g) ≤ c |
| 183 | |
| 184 | /-- The O_ι-module of forms φ in S that are integral at d: the value φ(g) has gauge at most 1 at |
| 185 | gd for every g. -/ |
| 186 | noncomputable def integralFormsAt (S : Submodule ℂ (AlgForm n κ e)) (d : Gf E n) : |
| 187 | Submodule embValRing (AlgForm (E := E) n κ e) := |
| 188 | S.restrictScalars embValRing ⊓ |
| 189 | { carrier := Set.ofPred (GaugeLe d 1) |
| 190 | add_mem' {φ ψ} hφ hψ g := by |
| 191 | simpa [weylGauge, mulVec_add] using (norm_add_le_max _ _).trans (max_le (hφ g) (hψ g)) |
| 192 | zero_mem' := by simp [GaugeLe, weylGauge] |
| 193 | smul_mem' a φ hφ g := (weylGauge_smul (g * d) a).trans_le |
| 194 | ((mul_le_of_le_one_left (norm_nonneg _) a.property).trans (hφ g)) } |
| 195 | |
| 196 | /-- The stabiliser of the standard lattice is integral at every set `S` of finite places. -/ |
| 197 | lemma stdLevel_le_localLevel {S : Set (FinPlace E)} : stdLevel E n ≤ localLevel n S := fun _ hk ↦ |
| 198 | mem_localLevel.2 fun w _ ↦ mem_stdLevel_iff.1 hk w |
| 199 | |
| 200 | /-- If the values of an algebraic form `φ` at the points integral above `p` have `ι`-integral |
| 201 | coordinates, then `φ g` has gauge at most `1` at `g` for every `g`. -/ |
| 202 | lemma weylGauge_le_one_of_integralAbove (φ : AlgForm (E := E) n κ e) |
| 203 | (h_coord : ∀ g ∈ integralAbove n p, ∀ i : WeylIndex n κ, ‖ιₚ (φ.val g i)‖ ≤ 1) (g : Gf E n) : |
| 204 | weylGauge κ e g (φ.val g) ≤ 1 := by |
| 205 | -- Move `g` by a rational `γ` to an element integral above `p`; the gauge does not change. |
| 206 | obtain ⟨γ, hγ, -⟩ := exists_mul_mem_integralAbove p g 1 |
| 207 | have h_equivariant : φ.val ((stdSpace E n).embFin γ * g) = |
| 208 | (stdSpace E n).weightRep κ e γ (φ.val g) := φ.property.2 γ g |
| 209 | rw [← weylGauge_embFin g γ, ← h_equivariant] |
| 210 | exact (weylGauge_le_one_iff _ hγ).2 (h_coord _ hγ) |
| 211 | |
| 212 | end New |
| 213 | |
| 214 | /-! |
| 215 | ## Classes at a level and the gauge of delta forms |
| 216 | |
| 217 | * `New.StdClasses`: the set of classes `Γ \ G_f / K` at a level `K`, where `G_f = New.Gf E n` is the |
| 218 | finite adelic group and `Γ` is the image of its rational points. |
| 219 | * `New.Rows.weylGauge_deltaForm_le`: the values of the delta form made from `v` at `x` have gauge at |
| 220 | most the gauge of `v` at `x`. |
| 221 | * `New.Rows.weylNormSq_deltaForm_le`: after any automorphism `σ` of `ℂ`, the values of the delta |
| 222 | form have squared norm at most `#Aut(x)²` times that of `σ ∘ v`. |
| 223 | -/ |
| 224 | |
| 225 | section ClassReps |
| 226 | |
| 227 | open NumberField DoubleCoset |
| 228 | |
| 229 | namespace New |
| 230 | |
| 231 | variable {E n : Type} [Field E] [CMType E] [Fintype n] [DecidableEq n] |
| 232 | {κ : InfinitePlace E → ℕ → ℕ} {e : InfinitePlace E → ℤ} (K : Subgroup (Gf E n)) {χ : K →* ℂ} |
| 233 | |
| 234 | variable {K} |
| 235 | |
| 236 | /-- The classes at level `K` have a system of representatives `r` whose members are all integral |
| 237 | at the primes above `p`. -/ |
| 238 | lemma exists_reps_integralAbove (p : ℕ) [Fact p.Prime] : |
| 239 | ∃ r : StdClasses K → Gf E n, |
| 240 | (∀ c : StdClasses K, DoubleCoset.mk (stdSpace E n).Γf K (r c) = c) ∧ |
| 241 | ∀ c : StdClasses K, r c ∈ integralAbove n p := by |
| 242 | -- Move the representative `c.out` by a rational element to make it integral above `p`. |
| 243 | have h_exists (c : StdClasses K) : |
| 244 | ∃ γ : U (stdSpace E n).J, (stdSpace E n).embFin γ * c.out ∈ integralAbove n p := |
| 245 | (exists_mul_mem_integralAbove p c.out 1).imp fun _ ↦ And.left |
| 246 | choose γ hγ using h_exists |
| 247 | refine ⟨fun c ↦ (stdSpace E n).embFin (γ c) * c.out, fun c ↦ ?_, hγ⟩ |
| 248 | -- `γ c * c.out` lies in the double coset of `c.out`. |
| 249 | exact (c.eq_mk_iff_out.2 (rel_iff.2 ⟨_, ⟨γ c, rfl⟩, 1, K.one_mem, by simp⟩)).symm |
| 250 | |
| 251 | open Space in |
| 252 | /-- For a finite-order level character, integrality can be checked coordinatewise on a system |
| 253 | of double-coset representatives that are integral above `p`. -/ |
| 254 | lemma weylGauge_le_one_iff_forall_rep [IsLevel K] {p : ℕ} [Fact p.Prime] [PadicPlace p] |
| 255 | (hχ : ∀ k : K, IsOfFinOrder (χ k)) |
| 256 | {r : StdClasses K → Gf E n} (hr : ∀ c, DoubleCoset.mk stdRatPoints K (r c) = c) |
| 257 | (hr_int : ∀ c, r c ∈ integralAbove n p) |
| 258 | (φ : levelSpace (smoothFormRep stdEmbFin ((stdSpace E n).weightRep κ e)) K χ) : |
| 259 | (∀ g : Gf E n, weylGauge κ e g (φ.val.val g) ≤ 1) ↔ |
| 260 | ∀ c i, ‖ιₚ (φ.val.val (r c) i)‖ ≤ 1 := by |
| 261 | refine ⟨fun h c ↦ (weylGauge_le_one_iff _ (hr_int c)).1 (h (r c)), fun h g ↦ ?_⟩ |
| 262 | -- Transport the gauge to the representative using the two level-form actions. |
| 263 | obtain ⟨c, γ, k, rfl⟩ := exists_eq_map_mul_rep_mul _ K hr g |
| 264 | have h_norm : ‖ιₚ (χ k)‖ = 1 := (ιₚ.isOfFinOrder (hχ k)).norm_eq_one |
| 265 | rw [levelSpace_smoothFormRep_apply φ.property, weylGauge_smul, h_norm, one_mul, |
| 266 | weylGauge_mul_of_mem_integralAbove _ (stdLevel_le_localLevel (IsLevel.le k.property)), |
| 267 | weylGauge_embFin, weylGauge_le_one_iff _ (hr_int c)] |
| 268 | exact h c |
| 269 | |
| 270 | /-- For a level K (an open subgroup of the stabiliser of the standard lattice) and χ with values of |
| 271 | finite order, the delta form attached to χ, x, v (the form supported on the double coset of x that |
| 272 | is made from the vector v) has, at every point g, gauge at ι at most the gauge of v at x. -/ |
| 273 | lemma Rows.weylGauge_deltaForm_le [Fact (χ =ᶠ[nhds 1] 1)] [hK : IsLevel K] |
| 274 | (hχ : ∀ k : K, IsOfFinOrder (χ k)) {p : ℕ} |
| 275 | [Fact p.Prime] [PadicPlace p] {x : Gf E n} {v : WeylIndex n κ → ℂ} {g : Gf E n} : |
| 276 | weylGauge κ e g ((deltaForm stdEmbFin ((stdSpace E n).weightRep κ e) χ x v).val.val g) ≤ |
| 277 | weylGauge κ e x v := by |
| 278 | -- The value at `g` is a finite sum; by the ultrametric bound `weylGauge_sum_le` it is enough to |
| 279 | -- bound each term `χ k • γ⁻¹ v`, where `k = x⁻¹ γ g` lies in `K` (the other terms vanish). |
| 280 | have h_norm (k : K) : ‖ιₚ (χ k)‖ = 1 := (ιₚ.isOfFinOrder (hχ k)).norm_eq_one |
| 281 | rw [deltaForm_apply] |
| 282 | refine weylGauge_sum_le _ (norm_nonneg _) fun γ _ ↦ ?_ |
| 283 | split_ifs with hk |
| 284 | · -- `g = γ⁻¹ x k` with `k` integral above `p`. |
| 285 | have hk_int : x⁻¹ * stdEmbFin γ * g ∈ integralAbove n p := stdLevel_le_localLevel (hK.le hk) |
| 286 | have h_gauge : |
| 287 | weylGauge κ e g ((stdSpace E n).weightRep κ e γ⁻¹ v) = weylGauge κ e x v := |
| 288 | calc |
| 289 | _ = weylGauge κ e ((stdSpace E n).embFin γ⁻¹ * x) ((stdSpace E n).weightRep κ e γ⁻¹ v) := by |
| 290 | rw [← weylGauge_mul_of_mem_integralAbove ((stdSpace E n).embFin γ⁻¹ * x) hk_int] |
| 291 | simp [mul_assoc] |
| 292 | _ = weylGauge κ e x v := weylGauge_embFin x γ⁻¹ |
| 293 | simp [weylGauge_smul, h_norm, h_gauge] |
| 294 | · simp [weylGauge] |
| 295 | |
| 296 | variable [HasFiniteType stdRatPoints K] [Fact (χ =ᶠ[nhds 1] 1)] |
| 297 | |
| 298 | /-- Let `χ` be a character of the subgroup `K` with values of finite order, trivial near `1`, where |
| 299 | `K` has finite type for the rational points (so there are finitely many double cosets of the |
| 300 | rational points and `K`), and `σ` a field automorphism of `ℂ`. The value at any `g` of the delta |
| 301 | form at `x` made from `v`, after applying `σ` to its coordinates, has squared norm |
| 302 | (`New.weylNormSq`) at most `#Aut(x)²` times that of `σ ∘ v`, where `Aut(x)` is the stabiliser |
| 303 | `New.classAut` of the coset `x K` among the rational points. -/ |
| 304 | lemma Rows.weylNormSq_deltaForm_le (hχ : ∀ k : K, IsOfFinOrder (χ k)) (σ : ℂ ≃+* ℂ) (x : Gf E n) |
| 305 | (v : WeylIndex n κ → ℂ) (g : Gf E n) : |
| 306 | weylNormSq (σ ∘ (deltaForm stdEmbFin ((stdSpace E n).weightRep κ e) χ x v).val.val g) ≤ |
| 307 | Nat.card (classAut stdEmbFin.range K x) ^ 2 * weylNormSq (σ ∘ v) := by |
| 308 | classical |
| 309 | -- The value at `g` is a sum of at most `Nat.card (classAut ..)` terms. After applying `σ` each |
| 310 | -- term has Gram norm at most that of `σ ∘ v`; use the triangle inequality. |
| 311 | have h_inv (γ : U (stdSpace E n).J) : |
| 312 | weylNormSq (σ ∘ (stdSpace E n).weightRep κ e γ v) = weylNormSq (σ ∘ v) := by |
| 313 | simpa [weylNormSq, gramForm_apply] using |
| 314 | congrArg Complex.re (gramForm_map_weightRep (e := e) (σ : ℂ →+* ℂ) γ v v) |
| 315 | have h_norm (k : K) : ‖σ (χ k)‖ = 1 := (σ.toMonoidHom.isOfFinOrder (hχ k)).norm_eq_one |
| 316 | have h_term (γ : U (stdSpace E n).J) : |
| 317 | √(weylNormSq (σ ∘ if h : x⁻¹ * stdEmbFin γ * g ∈ K then |
| 318 | χ ⟨x⁻¹ * stdEmbFin γ * g, h⟩ • (stdSpace E n).weightRep κ e γ⁻¹ v else 0)) ≤ |
| 319 | √(weylNormSq (σ ∘ v)) := by |
| 320 | split |
| 321 | · simp [h_inv, h_norm] |
| 322 | · simp [weylNormSq] |
| 323 | -- It is enough to compare the square roots; the sum has at most `#Aut(x)` terms. |
| 324 | have h_card : (transporter K stdEmbFin x g).card ≤ Nat.card (classAut stdEmbFin.range K x) := by |
| 325 | grind [card_transporter] |
| 326 | rw [← Real.sqrt_le_sqrt_iff (by bound), Real.sqrt_mul (sq_nonneg _), |
| 327 | Real.sqrt_sq (Nat.cast_nonneg _), deltaForm_apply] |
| 328 | calc |
| 329 | _ ≤ ∑ γ ∈ transporter K stdEmbFin x g, √(weylNormSq (σ ∘ v)) := |
| 330 | (sqrt_weylNormSq_sum_le σ _ _).trans (Finset.sum_le_sum fun γ _ ↦ h_term γ) |
| 331 | _ = (transporter K stdEmbFin x g).card * √(weylNormSq (σ ∘ v)) := by simp |
| 332 | _ ≤ Nat.card (classAut stdEmbFin.range K x) * √(weylNormSq (σ ∘ v)) := by gcongr |
| 333 | |
| 334 | end New |
| 335 | |
| 336 | end ClassReps |
| 337 | |
| 338 | /-! |
| 339 | ## Algebraic forms of a level: class sum metrics and integral forms |
| 340 | |
| 341 | Algebraic forms on the standard definite space `New.stdSpace` whose level is cut out at finitely |
| 342 | many split places, and their sizes under the automorphisms of ℂ and the embeddings ℂ → ℂ_l. |
| 343 | |
| 344 | * `New.LevelPlaces`: two finite families of split places; `New.fockLetters`, `New.letterPoly`: |
| 345 | substitution of sums of variables into the polynomial of a vector of weight κ. |
| 346 | * `New.LevelPlaces.LevelForm.innerAt`, `New.LevelPlaces.LevelForm.norm_map_inner_le`: the pairing |
| 347 | after an automorphism σ of ℂ, and Cauchy–Schwarz for σ of the inner product. |
| 348 | * `New.LevelPlaces.LevelForm.integralForms`, `New.LevelPlaces.LevelForm.norm_nsmul_inner_le_one`: |
| 349 | forms integral at j : ℂ → ℂ_l, and integrality of their inner products. |
| 350 | |
| 351 | A form takes values in coordinate vectors indexed by `New.WeylIndex`, paired by the integer matrix |
| 352 | `New.weylGram`. |
| 353 | -/ |
| 354 | |
| 355 | namespace New |
| 356 | |
| 357 | open Matrix NumberField MvPolynomial ComplexConjugate ComplexOrder Subgroup Real «GL» Finset |
| 358 | |
| 359 | section |
| 360 | section |
| 361 | |
| 362 | variable {E r n : Type} [Field E] [NumberField E] [IsCMField E] [Fintype r] [Fintype n] |
| 363 | [DecidableEq n] |
| 364 | |
| 365 | /-! ### Places and letters -/ |
| 366 | |
| 367 | variable (E) in |
| 368 | /-- Two finite families of finite places of E, called the chosen places and the places of the |
| 369 | twist, all distinct, none of them conjugate to itself or to another. -/ |
| 370 | structure LevelPlaces where |
| 371 | /-- The index set of the chosen places. -/ |
| 372 | ChosenIndex : Type |
| 373 | /-- The index set of the places of the twist. -/ |
| 374 | TwistIndex : Type |
| 375 | /-- There are finitely many chosen places. -/ |
| 376 | [fintypeChosen : Fintype ChosenIndex] |
| 377 | /-- There are finitely many places of the twist. -/ |
| 378 | [fintypeTwist : Fintype TwistIndex] |
| 379 | /-- The chosen places. -/ |
| 380 | chosenPlace : ChosenIndex → FinPlace E |
| 381 | /-- The places of the twist. -/ |
| 382 | twistPlace : TwistIndex → FinPlace E |
| 383 | /-- No place of either family equals another place or the conjugate of one. -/ |
| 384 | apart : IsConjApart (chosenPlace ⊕ᵥ twistPlace) |
| 385 | |
| 386 | /-- If none of the places `u i` is `w` or `w̄`, then every element of K₀ = `New.stdLevel` supported |
| 387 | at `w` and `w̄` lies in `levelOf u H`, the subgroup of elements of K₀ whose reductions at the `u i` |
| 388 | form an element of `H`. -/ |
| 389 | lemma maxCompactAt_le_levelOf {ι : Type*} {u : ι → FinPlace E} {w : FinPlace E} |
| 390 | {H : Subgroup ((i : ι) → GL n (ResField (u i)))} (hw : w ∉ (Set.range u).conjClosure) : |
| 391 | maxCompactAt n w ≤ levelOf u H := |
| 392 | (inf_le_inf_left _ ((Gf.supportedOn_mono (Set.singleton_subset_iff.2 hw)).trans_eq |
| 393 | Gf.supportedOn_compl)).trans inf_trivialOn_le_levelOf |
| 394 | |
| 395 | /-- The algebra map sending the variable (τ, i, h) to the sum of the variables (τ, i, a) over |
| 396 | the indices a with sign s(a) = c and ord(a) = h. -/ |
| 397 | def fockLetters {Φ : Type} (s : r → ℤˣ) (ord : r → ℕ) (c : ℤˣ) : |
| 398 | MatrixPoly (Σ _ : Φ, n) ℂ →ₐ[ℂ] MvPolynomial (Φ × n × r) ℂ := |
| 399 | aeval fun x : (Σ _ : Φ, n) × ℕ ↦ ∑ a : r with s a = c ∧ ord a = x.2, X (x.1.1, x.1.2, a) |
| 400 | |
| 401 | /-- The linear map sending ξ of weight κ to its polynomial `New.toPoly` ξ, with each variable |
| 402 | (τ, i, h) replaced by ∑ X(τ, i, a) over s(a) = c, ord(a) = h. -/ |
| 403 | def letterPoly {Φ : Type} [Fintype Φ] [DecidableEq Φ] (s : r → ℤˣ) (ord : r → ℕ) (c : ℤˣ) |
| 404 | (κ : Φ → ℕ → ℕ) : (WeylIndexFamily (fun _ : Φ ↦ n) κ → ℂ) →ₗ[ℂ] MvPolynomial (Φ × n × r) ℂ := |
| 405 | (fockLetters (r := r) (n := n) (Φ := Φ) s ord c).toLinearMap ∘ₗ toPoly (fun _ ↦ n) κ |
| 406 | |
| 407 | end |
| 408 | |
| 409 | variable {E n : Type} [Field E] [CMType E] [Fintype n] [DecidableEq n] |
| 410 | |
| 411 | /-! ### Forms of a level and the class sum metric -/ |
| 412 | |
| 413 | /-- The class sum on the standard definite space: for a subgroup K and a function f on the finite |
| 414 | points, the sum of f(g_c) / #Aut(g_c) over the double cosets c of the rational points and K. -/ |
| 415 | abbrev stdClassSum {X : Type*} [AddCommMonoid X] [Module ℚ X] : |
| 416 | Subgroup (Gf E n) → (Gf E n → X) → X := |
| 417 | classSum (stdSpace E n).Γf |
| 418 | |
| 419 | /-- The Cauchy–Schwarz inequality for class sums of any level `K`. Let `σ` be an automorphism of |
| 420 | `ℂ` and `σ' = conj ∘ σ ∘ conj`. The image under `σ` of the class sum of the Gram pairings of `φ g` |
| 421 | and `φ' g` has absolute value at most the norm of `φ` at `σ'` times the norm of `φ'` at `σ`; the |
| 422 | norm at `σ` is the square root of the class sum of the squared norms of the images under `σ`. -/ |
| 423 | lemma norm_map_stdClassSum_gramForm_le {κ : InfinitePlace E → ℕ → ℕ} (K : Subgroup (Gf E n)) |
| 424 | [IsLevel K] (σ : ℂ ≃+* ℂ) (φ φ' : Gf E n → WeylIndex n κ → ℂ) : |
| 425 | ‖σ (stdClassSum K fun g : Gf E n ↦ gramForm (φ g) (φ' g))‖ ≤ |
| 426 | √(stdClassSum K fun g : Gf E n ↦ |
| 427 | weylNormSq (((starRingAut.trans σ).trans starRingAut) ∘ φ g)) * |
| 428 | √(stdClassSum K fun g : Gf E n ↦ weylNormSq (σ ∘ φ' g)) := by |
| 429 | set σ' : ℂ ≃+* ℂ := (starRingAut.trans σ).trans starRingAut with hσ' |
| 430 | -- The Gram matrix has integer entries, so `σ` passes through the pairing. |
| 431 | have h_map (u v : WeylIndex n κ → ℂ) : σ (gramForm u v) = gramForm (σ' ∘ u) (σ ∘ v) := by |
| 432 | simp [hσ', gramForm_apply, dotProduct, mulVec] |
| 433 | have h_nonneg (N : ℕ) (ξ : WeylIndex n κ → ℂ) : 0 ≤ (N : ℚ)⁻¹ • weylNormSq ξ := by |
| 434 | simp [Rat.smul_def, mul_nonneg] |
| 435 | -- Cauchy–Schwarz for the Gram matrix at each class, then for the sum over the classes. |
| 436 | have h_class (N : ℕ) (u v : WeylIndex n κ → ℂ) : ‖σ ((N : ℚ)⁻¹ • gramForm u v)‖ ≤ |
| 437 | √((N : ℚ)⁻¹ • weylNormSq (σ' ∘ u)) * √((N : ℚ)⁻¹ • weylNormSq (σ ∘ v)) := by |
| 438 | have h_cs : ‖gramForm (σ' ∘ u) (σ ∘ v)‖ ^ 2 ≤ weylNormSq (σ ∘ v) * weylNormSq (σ' ∘ u) := by |
| 439 | simpa [weylNormSq, gramForm_apply] using |
| 440 | posDef_cauchy_schwarz weylGramOver_posDef (σ' ∘ u) (σ ∘ v) |
| 441 | rw [← sqrt_mul (h_nonneg N _)] |
| 442 | refine le_sqrt_of_sq_le ?_ |
| 443 | calc ‖σ ((N : ℚ)⁻¹ • gramForm u v)‖ ^ 2 |
| 444 | _ = (N : ℝ)⁻¹ ^ 2 * ‖gramForm (σ' ∘ u) (σ ∘ v)‖ ^ 2 := by |
| 445 | simp [h_map, Rat.smul_def, mul_pow] |
| 446 | _ ≤ (N : ℝ)⁻¹ ^ 2 * (weylNormSq (σ ∘ v) * weylNormSq (σ' ∘ u)) := by gcongr |
| 447 | _ = _ := by simp only [Rat.smul_def, Rat.cast_inv, Rat.cast_natCast]; ring |
| 448 | let m (c : DoubleCosets (stdSpace E n).Γf K) : ℕ := Nat.card (classAut (stdSpace E n).Γf K c.out) |
| 449 | simp_rw [classSum, finsum_eq_sum_of_fintype, map_sum] |
| 450 | calc |
| 451 | _ ≤ ∑ c, √((m c : ℚ)⁻¹ • weylNormSq (σ' ∘ φ c.out)) * |
| 452 | √((m c : ℚ)⁻¹ • weylNormSq (σ ∘ φ' c.out)) := |
| 453 | (norm_sum_le _ _).trans (sum_le_sum fun c _ ↦ h_class (m c) _ _) |
| 454 | _ ≤ _ := sum_sqrt_mul_sqrt_le _ (fun _ ↦ h_nonneg _ _) fun _ ↦ h_nonneg _ _ |
| 455 | |
| 456 | end |
| 457 | |
| 458 | namespace LevelPlaces |
| 459 | |
| 460 | attribute [instance] fintypeChosen fintypeTwist apart |
| 461 | |
| 462 | section |
| 463 | |
| 464 | variable {E : Type} [Field E] [NumberField E] [IsCMField E] (P : LevelPlaces E) |
| 465 | |
| 466 | /-- The chosen places are pairwise distinct, and none is the conjugate of itself or of another. -/ |
| 467 | instance isConjApart_chosenPlace : IsConjApart P.chosenPlace where |
| 468 | injective := P.apart.injective.comp Sum.inl_injective |
| 469 | star_ne _ _ := P.apart.star_ne (.inl _) (.inl _) |
| 470 | |
| 471 | /-- The family of all places of `P`: the chosen places and the places of the twist, indexed by the |
| 472 | disjoint union of the two index sets. -/ |
| 473 | abbrev placeAt : P.ChosenIndex ⊕ P.TwistIndex → FinPlace E := P.chosenPlace ⊕ᵥ P.twistPlace |
| 474 | |
| 475 | /-- The set of the chosen places and the places of the twist of `P`. -/ |
| 476 | abbrev places : Set (FinPlace E) := Set.range P.placeAt |
| 477 | |
| 478 | /-- The level places are disjoint from their complex conjugates. -/ |
| 479 | lemma isConjDisjoint_places : P.places.IsConjDisjoint := Set.disjoint_left.2 |
| 480 | fun {_} ⟨i, hi⟩ ⟨j, hj⟩ ↦ P.apart.star_ne i j ((congrArg star hi).trans hj.symm) |
| 481 | |
| 482 | end |
| 483 | |
| 484 | section Defs |
| 485 | |
| 486 | variable {E n : Type} [Field E] [CMType E] [Fintype n] [DecidableEq n] (S : LevelPlaces E) |
| 487 | (H : Subgroup (∀ i : S.ChosenIndex ⊕ S.TwistIndex, GL n (ResField (S.placeAt i)))) (χ : H →* ℂ) |
| 488 | (κ : InfinitePlace E → ℕ → ℕ) (e : InfinitePlace E → ℤ) |
| 489 | |
| 490 | /-- The space of algebraic forms of weight (κ, e) on the standard definite space on which the level |
| 491 | cut out by H at the places of S acts through the character χ. -/ |
| 492 | def LevelForm : Type := |
| 493 | levelSpace (algFormRep κ e) (levelOf S.placeAt H) (χ.comp (levelOf.reduction S.placeAt H)) |
| 494 | deriving AddCommGroup, Module ℂ, Module ℚ |
| 495 | |
| 496 | -- An algebraic form is read as a function on the finite adelic points. |
| 497 | instance : CoeFun (S.LevelForm H χ κ e) fun _ ↦ Gf E n → WeylIndex n κ → ℂ := ⟨(·.val.val)⟩ |
| 498 | |
| 499 | end Defs |
| 500 | |
| 501 | variable {E n : Type} [Field E] [CMType E] [Fintype n] [DecidableEq n] {S : LevelPlaces E} |
| 502 | {H : Subgroup (∀ i : S.ChosenIndex ⊕ S.TwistIndex, GL n (ResField (S.placeAt i)))} {χ : H →* ℂ} |
| 503 | {κ : InfinitePlace E → ℕ → ℕ} {e : InfinitePlace E → ℤ} |
| 504 | |
| 505 | section InnerProduct |
| 506 | |
| 507 | variable (σ : ℂ ≃+* ℂ) (φ φ' : S.LevelForm H χ κ e) |
| 508 | |
| 509 | /-- A form is fixed by the elements of `New.stdLevel E n`, the stabiliser of the standard lattice, |
| 510 | that reduce to `1` at all places of `S`. -/ |
| 511 | lemma LevelForm.algFormRep_eq_self_of_mem {k : Gf E n} (hk : k ∈ levelOf S.placeAt ⊥) : |
| 512 | algFormRep κ e k φ.val = φ.val := by |
| 513 | simp [levelSpace_levelOf_apply φ.prop _ 1 (mem_levelOf.mp hk).2] |
| 514 | |
| 515 | /-- A form is spherical (fixed by every element of `New.maxCompactAt n w`) at every place `w` such |
| 516 | that neither `w` nor `w̄` is a place of `S`. -/ |
| 517 | lemma LevelForm.mem_sphericalAt {w : FinPlace E} (hS : w ∉ S.places.conjClosure) : |
| 518 | φ.val ∈ sphericalAt (algFormRep κ e) w := by |
| 519 | intro k |
| 520 | simp [φ.algFormRep_eq_self_of_mem (maxCompactAt_le_levelOf hS k.property)] |
| 521 | |
| 522 | /-- Evaluation at g, as a complex-linear map on the forms of the level. -/ |
| 523 | def _root_.New.Rows.evalForm (g : Gf E n) : S.LevelForm H χ κ e →ₗ[ℂ] WeylIndex n κ → ℂ where |
| 524 | toFun φ := φ g |
| 525 | map_add' _ _ := rfl |
| 526 | map_smul' _ _ := rfl |
| 527 | |
| 528 | /-- Evaluates a level form `φ` at `g` as `Rows.evalForm g φ` by definition. -/ |
| 529 | lemma _root_.New.Rows.apply_eq_evalForm (g : Gf E n) : φ g = Rows.evalForm g φ := rfl |
| 530 | |
| 531 | /-- An algebraic form of level H on the standard definite space, viewed as a smooth form, that is, a |
| 532 | form with open stabiliser under right translation. -/ |
| 533 | def LevelForm.toSmoothForm : S.LevelForm H χ κ e →ₗ[ℂ] (stdSpace E n).forms (κ, e) := |
| 534 | Submodule.subtype _ |
| 535 | |
| 536 | /-- For an automorphism σ of ℂ, the pairing sending (φ, φ') to σ⁻¹ of the class sum of |
| 537 | conj(σ φ(g))ᵀ G (σ φ'(g)), with G the integral Gram matrix of weight κ. -/ |
| 538 | @[irreducible] |
| 539 | def LevelForm.innerAt : |
| 540 | S.LevelForm H χ κ e →ₛₗ[(↑σ⁻¹ : ℂ →+* ℂ).comp ((starRingEnd ℂ).comp (↑σ : ℂ →+* ℂ))] |
| 541 | S.LevelForm H χ κ e →ₗ[ℂ] ℂ := |
| 542 | -- the Gram form with `σ⁻¹ ∘ conj ∘ σ` as conjugation is invariant by `gramForm_map_weightRep` |
| 543 | ((stdLevelIndex (levelOf S.placeAt H) : ℂ) • |
| 544 | smoothPairing |
| 545 | (toLinearMapₛₗ₂' ℂ (RingHom.comp ↑σ⁻¹ ((starRingEnd ℂ).comp σ)) (RingHom.id ℂ) |
| 546 | (weylGramOver (κ := κ))) |
| 547 | fun γ u v ↦ |
| 548 | σ.injective (by simpa [Int.cast_comm, toLinearMapₛₗ₂'_apply, gramForm_apply, dotProduct, |
| 549 | mulVec, mul_sum] using gramForm_map_weightRep σ γ u v)).compl₂ |
| 550 | (toSmoothForm (χ := χ)) ∘ₛₗ toSmoothForm (χ := χ) (e := e) |
| 551 | |
| 552 | /-- An element `k` of the level acts on a form, by right translation, through the character `χ`. -/ |
| 553 | lemma LevelForm.apply_mul_eq_smul {k : Gf E n} (hk : k ∈ levelOf S.placeAt H) (g : Gf E n) : |
| 554 | φ (g * k) = χ (levelOf.reduction S.placeAt H ⟨k, hk⟩) • φ g := |
| 555 | congrFun (congrArg Subtype.val (φ.property ⟨k, hk⟩)) g |
| 556 | |
| 557 | /-- For a CM field `E`, level places `S`, a subgroup `H` of the product of the groups `GL n` over |
| 558 | the residue fields at the places of `S`, a character `χ` and weight `(κ, e)`, let `φ φ'` be level |
| 559 | forms and `σ` an automorphism of `ℂ`. The pairing `innerAt σ φ φ'` equals `σ⁻¹` of the class sum at |
| 560 | the level `levelOf S.placeAt H`, which consists of the elements of `K₀` whose reductions at the |
| 561 | places of `S` lie in `H`. That class sum is the sum over double cosets `c` of the rational points |
| 562 | and this level in `Gf E n` of `gramForm (σ ∘ φ g_c) (σ ∘ φ' g_c) / #Aut(g_c)`. -/ |
| 563 | lemma LevelForm.innerAt_eq_stdClassSum : |
| 564 | innerAt σ φ φ' = |
| 565 | σ⁻¹ (stdClassSum (levelOf S.placeAt H) fun g : Gf E n ↦ gramForm (σ ∘ φ g) (σ ∘ φ' g)) := by |
| 566 | -- The pairing is the index of the level times the integral of `f`; as `f` is invariant under the |
| 567 | -- level, the integral is the class sum at the level divided by this index. |
| 568 | let f (g : Gf E n) : ℂ := σ⁻¹ (gramForm (σ ∘ φ g) (σ ∘ φ' g)) |
| 569 | have h_integral : innerAt σ φ φ' = |
| 570 | stdLevelIndex (levelOf S.placeAt H) * classIntegral stdRatPoints (stdLevel E n) f := by |
| 571 | have h_values (ψ : S.LevelForm H χ κ e) : (toSmoothForm ψ).val = ψ := rfl |
| 572 | simp [innerAt, f, smoothPairing, h_values, toLinearMapₛₗ₂'_apply, gramForm_apply, dotProduct, |
| 573 | mulVec, mul_sum, mul_comm] |
| 574 | have h_left : stdRatPoints.FixesLeft f := by |
| 575 | rintro _ ⟨γ, rfl⟩ g |
| 576 | have h_equivariant (ψ : S.LevelForm H χ κ e) : |
| 577 | ψ (stdEmbFin γ * g) = (stdSpace E n).weightRep κ e γ (ψ g) := ψ.val.property.2 γ g |
| 578 | simp only [f, h_equivariant] |
| 579 | exact congrArg ⇑σ⁻¹ (gramForm_map_weightRep σ γ _ _) |
| 580 | -- An element `k` of the level multiplies both forms by the root of unity `χ k`. |
| 581 | have h_right : levelOf S.placeAt H ≤ rightStabilizer f := by |
| 582 | intro k hk g |
| 583 | have h_norm : ‖σ (χ (levelOf.reduction S.placeAt H ⟨k, hk⟩))‖ = 1 := |
| 584 | (σ.toRingHom.isOfFinOrder (χ.isOfFinOrder (isMulTorsion_of_finite _))).norm_eq_one |
| 585 | have h_smul (c : ℂ) (v : WeylIndex n κ → ℂ) : σ ∘ (c • v) = σ c • (σ ∘ v) := |
| 586 | funext fun i ↦ map_mul σ c (v i) |
| 587 | simp [f, apply_mul_eq_smul _ hk, h_smul, ← mul_assoc, RCLike.mul_conj, h_norm] |
| 588 | rw [h_integral, classIntegral_eq_inv_smul_classSum h_left h_right levelOf_le_stdLevel] |
| 589 | simp [f, Rat.smul_def, map_classSum] |
| 590 | |
| 591 | /-- The pairing `innerAt σ` is Hermitian for the conjugation `σ⁻¹ ∘ conj ∘ σ`. -/ |
| 592 | lemma LevelForm.conj_innerAt : σ⁻¹ (conj (σ (φ'.innerAt σ φ))) = φ.innerAt σ φ' := by |
| 593 | -- The Gram matrix is Hermitian. |
| 594 | simp [innerAt_eq_stdClassSum, starRingEnd_apply, map_classSum, gramForm_apply, |
| 595 | weylGramOver_posDef.1.star_dotProduct_mulVec_comm] |
| 596 | |
| 597 | /-- The pairing `innerAt σ` is definite: a form whose pairing with itself is zero is zero. -/ |
| 598 | lemma LevelForm.eq_zero_of_innerAt_self (h_zero : φ.innerAt σ φ = 0) : φ = 0 := by |
| 599 | -- A form is determined by its values at the representatives of the classes; if `φ` did not |
| 600 | -- vanish at one of them, the class sum would be positive. |
| 601 | suffices h_out : ∀ c : StdClasses (levelOf S.placeAt H), φ c.out = 0 from |
| 602 | levelSpace_ext_doubleCosets Quot.out_eq h_out |
| 603 | by_contra! ⟨c, hc⟩ |
| 604 | rw [innerAt_eq_stdClassSum, map_eq_zero] at h_zero |
| 605 | have h_nonneg (g : Gf E n) : 0 ≤ gramForm (σ ∘ φ g) (σ ∘ φ g) := |
| 606 | weylGramOver_posDef.posSemidef.dotProduct_mulVec_nonneg _ |
| 607 | have hc_ne : σ ∘ φ c.out ≠ 0 := by simpa [_root_.funext_iff] using hc |
| 608 | exact (classSum_pos h_nonneg (weylGramOver_posDef.dotProduct_mulVec_pos hc_ne)).ne' h_zero |
| 609 | |
| 610 | instance : NormedAddCommGroup (S.LevelForm H χ κ e) := |
| 611 | InnerProductSpace.Core.toNormedAddCommGroup |
| 612 | (cd := |
| 613 | { inner := (·.innerAt 1) |
| 614 | conj_inner_symm := LevelForm.conj_innerAt 1 |
| 615 | re_inner_nonneg := fun φ ↦ by |
| 616 | have h_class : RCLike.re (φ.innerAt 1 φ) = |
| 617 | classSum stdRatPoints (levelOf S.placeAt H) fun g : Gf E n ↦ weylNormSq (φ g) := by |
| 618 | simp [LevelForm.innerAt_eq_stdClassSum, ← Complex.reLm_coe, map_classSum, |
| 619 | gramForm_apply, weylNormSq] |
| 620 | rw [h_class, classSum, finsum_eq_sum_of_fintype] |
| 621 | exact sum_nonneg fun c _ ↦ by simp [Rat.smul_def, mul_nonneg] |
| 622 | add_left := by simp |
| 623 | smul_left := by simp |
| 624 | definite := LevelForm.eq_zero_of_innerAt_self 1 }) |
| 625 | |
| 626 | instance : InnerProductSpace ℂ (S.LevelForm H χ κ e) := .ofCore _ |
| 627 | |
| 628 | /-- The inner product of two forms is the class sum, at the level cut out by `H`, of the Gram |
| 629 | pairings of their values. -/ |
| 630 | lemma LevelForm.inner_eq_stdClassSum : |
| 631 | inner ℂ φ φ' = stdClassSum (levelOf S.placeAt H) fun g : Gf E n ↦ gramForm (φ g) (φ' g) := |
| 632 | -- by definition the inner product is `innerAt 1` |
| 633 | innerAt_eq_stdClassSum 1 φ φ' |
| 634 | |
| 635 | instance : FiniteDimensional ℂ (S.LevelForm H χ κ e) := finite_levelSpace_smoothFormRep |
| 636 | |
| 637 | /-- The character `χ` of the finite group `H`, read on the level, has values of finite order. -/ |
| 638 | lemma isOfFinOrder_level_char (k : levelOf S.placeAt H) : |
| 639 | IsOfFinOrder (χ.comp (levelOf.reduction S.placeAt H) k) := |
| 640 | χ.isOfFinOrder (isMulTorsion_of_finite _) |
| 641 | |
| 642 | variable {E : Type} [Field E] [NumberField E] [IsCMField E] {S : LevelPlaces E} |
| 643 | {H : Subgroup (∀ i : S.ChosenIndex ⊕ S.TwistIndex, GL n (ResField (S.placeAt i)))} {χ : H →* ℂ} in |
| 644 | instance : Fact (χ.comp (levelOf.reduction S.placeAt H) =ᶠ[nhds 1] 1) := by |
| 645 | -- The character is trivial on the open level of the trivial subgroup. |
| 646 | refine ⟨.mono (((isOpen_levelOf (w := S.placeAt) (H := ⊥)).preimage |
| 647 | continuous_subtypeVal).mem_nhds (by simp)) fun k hk ↦ ?_⟩ |
| 648 | simp [show levelOf.reduction S.placeAt H k = 1 from Subtype.ext (mem_levelOf.mp hk).2] |
| 649 | |
| 650 | /-- Let φ, ψ be forms of the level cut out by H, σ ∈ Aut ℂ, p a permutation of the infinite places |
| 651 | carrying the diagrams κ of φ to those of ψ, and write p also for the induced bijection of the |
| 652 | coordinate indices. If for all g, i we have σ(φ(g)_i) = c·a(g)·ψ(g)_{p i}, |
| 653 | conj σ(conj φ(g)_i) = c'·a'(g)·ψ(g)_{p i} and a(g)·conj a'(g) = 1, then |
| 654 | σ⟨φ, φ⟩ = conj(c')·c·⟨ψ, ψ⟩. -/ |
| 655 | lemma map_inner_self_eq {χ' : H →* ℂ} {e' : InfinitePlace E → ℤ} |
| 656 | {p : InfinitePlace E ≃ InfinitePlace E} {c c' : ℂ} |
| 657 | {ψ : S.LevelForm H χ' (fun τ : InfinitePlace E ↦ κ (p.symm τ)) e'} {a a' : Gf E n → ℂ} |
| 658 | (hφ : ∀ (g : Gf E n) (i : WeylIndex n κ), σ (φ g i) = c * a g * ψ g (p.piCongrLeft' _ i)) |
| 659 | (hφ_star : ∀ (g : Gf E n) (i : WeylIndex n κ), |
| 660 | star (σ (star (φ g i))) = c' * a' g * ψ g (p.piCongrLeft' _ i)) |
| 661 | (ha : ∀ g : Gf E n, a g * star (a' g) = 1) : |
| 662 | σ (inner ℂ φ φ) = star c' * c * inner ℂ ψ ψ := by |
| 663 | set f : WeylIndex n κ ≃ WeylIndex n fun τ : InfinitePlace E ↦ κ (p.symm τ) := p.piCongrLeft' _ |
| 664 | -- Expand both class sums in coordinates, reindexed by `f`, which preserves the Gram matrix; |
| 665 | -- the factors `a g` and `star (a' g)` cancel. |
| 666 | have h_star (g : Gf E n) (i : WeylIndex n κ) : |
| 667 | σ (conj (φ g i)) = conj c' * conj (a' g) * conj (ψ g (f i)) := by |
| 668 | simpa [f] using congrArg star (hφ_star g i) |
| 669 | have h_gram (g : Gf E n) : |
| 670 | σ (gramForm (φ g) (φ g)) = star c' * c * gramForm (ψ g) (ψ g) := by |
| 671 | simp only [gramForm_apply, dotProduct, mulVec, mul_sum, reindex_equiv f, map_sum, map_mul, |
| 672 | map_intCast, Matrix.map_apply, Pi.star_apply, RCLike.star_def, |
| 673 | weylGram_eq_submatrix κ p, Matrix.submatrix_apply, hφ, h_star] |
| 674 | refine sum_congr rfl fun x _ ↦ sum_congr rfl fun y _ ↦ ?_ |
| 675 | have ha_conj : a g * conj (a' g) = 1 := ha g |
| 676 | linear_combination (conj c' * c * conj (ψ g (f x)) * |
| 677 | (weylGram (fun _ ↦ n) (fun τ ↦ κ (p.symm τ)) (f x) (f y) : ℂ) * ψ g (f y)) * ha_conj |
| 678 | simp_rw [LevelForm.inner_eq_stdClassSum, map_classSum, mul_classSum, h_gram] |
| 679 | |
| 680 | end InnerProduct |
| 681 | |
| 682 | namespace LevelForm |
| 683 | |
| 684 | section Sizes |
| 685 | |
| 686 | variable (φ φ' : S.LevelForm H χ κ e) (σ : ℂ ≃+* ℂ) {l : ℕ} [Fact l.Prime] (j : PadicPlace l) |
| 687 | |
| 688 | /-! ### Archimedean and l-adic sizes of inner products -/ |
| 689 | |
| 690 | /-- For σ ∈ Aut ℂ, the number ‖φ‖²_σ: the class sum of the squared Gram norms of the vectors |
| 691 | σ(φ(g)). -/ |
| 692 | def normSqAt : ℝ := |
| 693 | classSum stdRatPoints (levelOf S.placeAt H) fun g : Gf E n ↦ weylNormSq (σ ∘ φ g) |
| 694 | |
| 695 | /-- Multiplying a level form by `c` scales its squared norm at `σ` by `‖σ c‖ ^ 2`. -/ |
| 696 | lemma normSqAt_smul (c : ℂ) (φ : S.LevelForm H χ κ e) (σ : ℂ ≃+* ℂ) : |
| 697 | (c • φ).normSqAt σ = ‖σ c‖ ^ 2 * φ.normSqAt σ := by |
| 698 | rw [normSqAt, normSqAt, mul_classSum] |
| 699 | exact congrArg _ (funext fun g ↦ weylNormSq_comp_smul (φ g) σ c) |
| 700 | |
| 701 | /-- Cauchy–Schwarz for conjugates: for forms φ, φ' of one level and σ ∈ Aut ℂ, we have |σ⟨φ', |
| 702 | φ⟩| ≤ ‖φ‖_σ·‖φ'‖_{σ'}, where σ' = conj ∘ σ ∘ conj and ‖φ‖²_σ = `φ.normSqAt σ` is the class sum of |
| 703 | the squared Gram norms of the vectors σ(φ(g)). This is `New.norm_map_stdClassSum_gramForm_le` for |
| 704 | the values of the two forms. -/ |
| 705 | lemma norm_map_inner_le : |
| 706 | ‖σ (inner ℂ φ' φ)‖ ≤ |
| 707 | √(φ.normSqAt σ) * √(φ'.normSqAt ((starRingAut.trans σ).trans starRingAut)) := by |
| 708 | rw [inner_eq_stdClassSum, mul_comm] |
| 709 | exact norm_map_stdClassSum_gramForm_le (levelOf S.placeAt H) σ φ' φ |
| 710 | |
| 711 | /-- Let `ρ` be the representation `New.weylRep κ e` and `G` the Gram matrix of weight `κ`. Then |
| 712 | `G ρ(a) = ρ(aᵀ)ᵀ G`: the matrices of `a` and of its transpose are adjoint for `G`. -/ |
| 713 | lemma _root_.New.weylGramOver_mul_weylRep {Φ R : Type} [CommRing R] |
| 714 | [Fintype Φ] [DecidableEq Φ] {κ : Φ → ℕ → ℕ} (e : Φ → ℤ) (a : Φ → GL n R) : |
| 715 | (weylGramOver : Matrix (WeylIndex n κ) (WeylIndex n κ) R) * weylRep κ e a = |
| 716 | (weylRep κ e fun τ : Φ ↦ transposeGL (a τ))ᵀ * weylGramOver := by |
| 717 | -- The transpose keeps the determinants; for the Schur matrices this is `weylGramOver_mul_schur`. |
| 718 | have h_det (τ : Φ) : GeneralLinearGroup.det (transposeGL (a τ)) = GeneralLinearGroup.det (a τ) := |
| 719 | Units.ext (det_transpose _) |
| 720 | simp [weylRep, Units.smul_def, h_det, weylGramOver_mul_schur] |
| 721 | |
| 722 | /-- For a unitary point `g` and `j : ℂ → ℂ_l`, the component of `g⁻¹` at the embedding of `E` |
| 723 | induced by `j ∘ conj` at the infinite place `τ` is the transpose of the component of `g` at the one |
| 724 | induced by `j`. -/ |
| 725 | lemma _root_.New.map_inv_weightEmbedding_comp_conj (g : Gf E n) (τ : InfinitePlace E) : |
| 726 | GeneralLinearGroup.map (adeleExtension (weightEmbedding (j.ιₚ.comp conj) τ)) g⁻¹.val = |
| 727 | transposeGL (GeneralLinearGroup.map (adeleExtension (weightEmbedding j.ιₚ τ)) g.val) := by |
| 728 | have h_conj : (weightEmbedding (E := E) (j.ιₚ.comp conj) τ).comp conj = weightEmbedding j.ιₚ τ := |
| 729 | RingHom.ext (by simp [starRingEnd_apply (R := E)]) |
| 730 | ext i k |
| 731 | -- state the entries; as `g` is unitary, those of `g⁻¹` are the conjugates of those of `gᵀ` |
| 732 | change adeleExtension _ (g⁻¹.val.val i k) = adeleExtension _ (g.val.val k i) |
| 733 | rw [U.inv_val_eq_conjTranspose, conjTranspose_apply, adeleExtension_star, h_conj] |
| 734 | |
| 735 | /-- Let `j : ℂ → ℂ_l`. If `u` has gauge at most 1 at `g` for `j ∘ conj`, and `v` has gauge at most 1 |
| 736 | at `g` for `j`, then the Gram pairing of `u` and `v` lies in the valuation ring `embValRing` of `j`. |
| 737 | -/ |
| 738 | lemma _root_.New.gramForm_mem_embValRing {g : Gf E n} {u v : WeylIndex n κ → ℂ} |
| 739 | (hu : weylGauge (ι := j.conj) κ e g u ≤ 1) |
| 740 | (hv : weylGauge (ι := j) κ e g v ≤ 1) : gramForm (n := n) u v ∈ embValRing (ι := j) := by |
| 741 | -- For `j ∘ conj` the point `g⁻¹` acts by the transposes of the matrices `a τ` of `g` at `j`, and |
| 742 | -- a matrix and its transpose are adjoint for the integral Gram matrix `G`. |
| 743 | let a (τ : InfinitePlace E) : GL n ℂ_[l] := |
| 744 | GeneralLinearGroup.map (adeleExtension (weightEmbedding j.ιₚ τ)) g.val |
| 745 | let G : Matrix (WeylIndex n κ) (WeylIndex n κ) ℂ_[l] := weylGramOver |
| 746 | let x : WeylIndex n κ → ℂ_[l] := |
| 747 | weylRep κ e (fun τ ↦ transposeGL (a τ)) *ᵥ j.ιₚ.comp conj ∘ u |
| 748 | let y : WeylIndex n κ → ℂ_[l] := weylRep κ e a⁻¹ *ᵥ j.ιₚ ∘ v |
| 749 | have hx : ‖x‖ ≤ 1 := by |
| 750 | change weylGauge (ι := ⟨j.ιₚ.comp conj⟩) κ e g u ≤ 1 at hu |
| 751 | simpa only [weylGauge, map_inv_weightEmbedding_comp_conj, x, a] using hu |
| 752 | have hy : ‖y‖ ≤ 1 := by simpa [weylGauge, a, y, Pi.inv_def] using hv |
| 753 | -- The two matrices cancel in the pairing, because they are adjoint for `G`. |
| 754 | have h_pairing : x ⬝ᵥ G *ᵥ y = j.ιₚ (gramForm u v) := |
| 755 | calc x ⬝ᵥ G *ᵥ y |
| 756 | _ = (j.ιₚ.comp conj ∘ u) ⬝ᵥ |
| 757 | ((weylRep κ e fun τ ↦ transposeGL (a τ))ᵀ * G * weylRep κ e a⁻¹) *ᵥ (j.ιₚ ∘ v) := by |
| 758 | simp [x, y, ← vecMul_transpose, ← dotProduct_mulVec, Matrix.mul_assoc] |
| 759 | _ = (j.ιₚ.comp conj ∘ u) ⬝ᵥ G *ᵥ (j.ιₚ ∘ v) := by |
| 760 | rw [← weylGramOver_mul_weylRep, Matrix.mul_assoc, ← map_mul, mul_inv_cancel, map_one, |
| 761 | mul_one] |
| 762 | -- `j` passes through the pairing, since `G` has integer entries. |
| 763 | _ = j.ιₚ (gramForm u v) := by simp [G, gramForm_apply, dotProduct, mulVec] |
| 764 | -- The vectors `x`, `y` and the Gram matrix have integral entries. |
| 765 | change j.ιₚ (gramForm u v) ∈ NormedField.valuation.integer |
| 766 | rw [← h_pairing] |
| 767 | exact sum_mem fun i _ ↦ mul_mem ((norm_le_pi_norm x i).trans hx) |
| 768 | (sum_mem fun k _ ↦ mul_mem (by simp [G]) ((norm_le_pi_norm y k).trans hy)) |
| 769 | |
| 770 | /-- The forms integral at j : ℂ → ℂ_l: the module, over the valuation ring `New.embValRing` of j, of |
| 771 | the forms φ whose value φ(g) has gauge `New.weylGauge` at most 1 for every g. -/ |
| 772 | def integralForms : Submodule embValRing (S.LevelForm H χ κ e) := |
| 773 | -- the preimage of `integralFormsAt ⊤ 1` under `toSmoothForm`, with a plainer carrier |
| 774 | Submodule.copy ((integralFormsAt ⊤ 1).comap (toSmoothForm.restrictScalars embValRing)) |
| 775 | {φ : S.LevelForm H χ κ e | ∀ g : Gf E n, weylGauge κ e g (φ g) ≤ 1} (by |
| 776 | ext φ |
| 777 | change _ ↔ True ∧ ∀ g : Gf E n, weylGauge κ e (g * 1) (φ g) ≤ 1 |
| 778 | simp) |
| 779 | |
| 780 | /-- Let `j` be an `l`-adic place of ℂ, a ring map `j.ιₚ : ℂ → ℂ_l`. Let A be divisible by the orders |
| 781 | of all stabilisers `classAut` Γ ∩ gKg⁻¹ of the rational points U_n(E) at the level |
| 782 | K = `levelOf S.placeAt H`. If the level form φ is integral at j ∘ conj and φ' is integral at j |
| 783 | (their values have gauge `weylGauge` at most 1), then |j(A·⟨φ, φ'⟩)| ≤ 1. -/ |
| 784 | lemma norm_nsmul_inner_le_one {A : ℕ} |
| 785 | (hA : ∀ g : Gf E n, Nat.card (classAut stdRatPoints (levelOf S.placeAt H) g) ∣ A) |
| 786 | (hφ : φ ∈ integralForms j.conj) (hφ' : φ' ∈ integralForms j) : |
| 787 | ‖j.ιₚ (A • inner ℂ φ φ')‖ ≤ 1 := by |
| 788 | -- Every term of the class sum is integral, and `A` clears the weights `1 / #classAut`. |
| 789 | rw [inner_eq_stdClassSum] |
| 790 | exact smul_classSum_mem (embValRing (ι := j)) hA fun g ↦ |
| 791 | gramForm_mem_embValRing j (hφ g) (hφ' g) |
| 792 | |
| 793 | end Sizes |
| 794 | |
| 795 | /-! ### Coordinates of a form -/ |
| 796 | |
| 797 | /-- The index set of the coordinates of a form: pairs of a class and an index of the standard basis |
| 798 | of the Weyl module. -/ |
| 799 | abbrev ValueIndex (H : Subgroup (∀ i : S.ChosenIndex ⊕ S.TwistIndex, GL n (ResField (S.placeAt i)))) |
| 800 | (κ : InfinitePlace E → ℕ → ℕ) : Type := |
| 801 | StdClasses (levelOf S.placeAt H) × WeylIndex n κ |
| 802 | |
| 803 | /-- The coordinates of the values of a form at fixed representatives of the classes. -/ |
| 804 | def valueCoord : S.LevelForm H χ κ e →ₗ[ℂ] ValueIndex H κ → ℂ := |
| 805 | LinearMap.pi fun i ↦ LinearMap.proj i.2 ∘ₗ Rows.evalForm i.1.out |
| 806 | |
| 807 | open scoped Classical Kronecker in |
| 808 | /-- The block diagonal matrix with one copy of the Gram matrix of the Weyl module for each class. -/ |
| 809 | def valueMetric (H : Subgroup (∀ i : S.ChosenIndex ⊕ S.TwistIndex, GL n (ResField (S.placeAt i)))) |
| 810 | (κ : InfinitePlace E → ℕ → ℕ) : Matrix (ValueIndex H κ) (ValueIndex H κ) ℚ := |
| 811 | 1 ⊗ₖ weylGramOver |
| 812 | |
| 813 | open scoped Classical Kronecker in |
| 814 | /-- Over `ℂ`, `valueMetric` is the Kronecker product of the identity and the Gram matrix. -/ |
| 815 | lemma map_valueMetric : |
| 816 | ((valueMetric H κ).map (↑) : Matrix (ValueIndex H κ) (ValueIndex H κ) ℂ) = |
| 817 | 1 ⊗ₖ weylGramOver := by |
| 818 | ext i k |
| 819 | simp [valueMetric, Matrix.one_apply, apply_ite (Rat.cast : ℚ → ℂ)] |
| 820 | |
| 821 | /-- Shows that the complexification of `valueMetric H κ` is positive definite. -/ |
| 822 | lemma posDef_valueMetric : |
| 823 | ((valueMetric H κ).map (↑) : Matrix (ValueIndex H κ) (ValueIndex H κ) ℂ).PosDef := by |
| 824 | classical |
| 825 | simpa [map_valueMetric] using PosDef.one.kronecker weylGramOver_posDef |
| 826 | |
| 827 | /-- If the classes have no nontrivial automorphisms, then the class sum of the Gram pairings of the |
| 828 | values conjugated by σ is the pairing of the conjugated coordinates for `valueMetric`. -/ |
| 829 | lemma stdClassSum_gramForm_eq |
| 830 | (h_free : ∀ g : Gf E n, classAut stdRatPoints (levelOf S.placeAt H) g = ⊥) (σ : ℂ ≃+* ℂ) |
| 831 | (φ φ' : S.LevelForm H χ κ e) : |
| 832 | (stdClassSum (levelOf S.placeAt H) fun g : Gf E n ↦ gramForm (σ ∘ φ g) (σ ∘ φ' g)) = |
| 833 | star (σ ∘ valueCoord φ) ⬝ᵥ (valueMetric H κ).map (↑) *ᵥ (σ ∘ valueCoord φ') := by |
| 834 | -- Each class has weight one, and the Gram matrix acts on each class block by itself. |
| 835 | classical |
| 836 | rw [map_valueMetric, stdClassSum, classSum, finsum_eq_sum_of_fintype, dotProduct, |
| 837 | Fintype.sum_prod_type] |
| 838 | refine sum_congr rfl fun c _ ↦ ?_ |
| 839 | have h_apply (ψ : S.LevelForm H χ κ e) (i) : valueCoord ψ (c, i) = ψ c.out i := rfl |
| 840 | simp [h_free, Fintype.sum_prod_type, h_apply, Matrix.one_apply, gramForm_apply, dotProduct, |
| 841 | mulVec] |
| 842 | |
| 843 | /-- If the classes have no nontrivial automorphisms, then the inner product of forms has the block |
| 844 | Gram matrix `valueMetric` in the coordinates `valueCoord` (the values at representatives of the |
| 845 | classes). -/ |
| 846 | lemma inner_eq_valueCoord |
| 847 | (h_free : ∀ g : Gf E n, classAut stdRatPoints (levelOf S.placeAt H) g = ⊥) |
| 848 | (φ φ' : S.LevelForm H χ κ e) : |
| 849 | inner ℂ φ φ' = star (valueCoord φ) ⬝ᵥ (valueMetric H κ).map (↑) *ᵥ valueCoord φ' := by |
| 850 | simpa [inner_eq_stdClassSum] using stdClassSum_gramForm_eq h_free 1 φ φ' |
| 851 | |
| 852 | /-- If the classes have no nontrivial automorphisms, then ‖φ‖²_σ is the squared norm of the |
| 853 | conjugated coordinates for `valueMetric`. -/ |
| 854 | lemma normSqAt_eq_re_valueCoord |
| 855 | (h_free : ∀ g : Gf E n, classAut stdRatPoints (levelOf S.placeAt H) g = ⊥) (σ : ℂ ≃+* ℂ) |
| 856 | (φ : S.LevelForm H χ κ e) : |
| 857 | φ.normSqAt σ = |
| 858 | (star (σ ∘ valueCoord φ) ⬝ᵥ (valueMetric H κ).map (↑) *ᵥ (σ ∘ valueCoord φ)).re := by |
| 859 | rw [← stdClassSum_gramForm_eq h_free, ← Complex.reLm_coe, map_classSum] |
| 860 | simp [normSqAt, weylNormSq, gramForm_apply] |
| 861 | |
| 862 | end LevelForm |
| 863 | |
| 864 | end LevelPlaces |
| 865 | |
| 866 | end New |
| 867 | |
| 868 | /-! |
| 869 | ## Integrality and size of class sums |
| 870 | |
| 871 | Arithmetic of class sums `New.classSum Γ K f = ∑ f g / #Aut g` over `Γ \ G / K`, for functions with |
| 872 | values in a weight module `New.WeylIndex V κ → ℂ`. |
| 873 | -/ |
| 874 | |
| 875 | namespace New.Rows |
| 876 | |
| 877 | open NumberField HasFiniteType Nat |
| 878 | |
| 879 | variable {E V : Type} [Field E] [CMType E] [Fintype V] [DecidableEq V] {p : ℕ} [Fact p.Prime] |
| 880 | {κ : InfinitePlace E → ℕ → ℕ} {G : Type*} [Group G] [TopologicalSpace G] {Γ K : Subgroup G} |
| 881 | [HasFiniteType Γ K] {B : ℝ} {f : G → WeylIndex V κ → ℂ} |
| 882 | |
| 883 | /-- The gauge satisfies the ultrametric inequality. -/ |
| 884 | lemma weylGauge_add_le_max (g : Gf E V) {e : InfinitePlace E → ℤ} [PadicPlace p] |
| 885 | (ξ η : WeylIndex V κ → ℂ) : |
| 886 | weylGauge κ e g (ξ + η) ≤ max (weylGauge κ e g ξ) (weylGauge κ e g η) := by |
| 887 | simpa [weylGauge, Matrix.mulVec_add] using IsUltrametricDist.norm_add_le_max _ _ |
| 888 | |
| 889 | /-- If every `c • f x` has gauge at most one at `g` and `A` is divisible by the orders of all |
| 890 | stabilisers `classAut Γ K x`, then `A * c` times the class sum of `f` has gauge at most one at |
| 891 | `g`. -/ |
| 892 | lemma weylGauge_classSum_le_one (g : Gf E V) {e : InfinitePlace E → ℤ} {A : ℕ} [PadicPlace p] |
| 893 | (hA : ∀ x : G, Nat.card (classAut Γ K x) ∣ A) {c : ℂ} |
| 894 | (hf : ∀ x : G, weylGauge κ e g (c • f x) ≤ 1) : |
| 895 | weylGauge κ e g ((A * c) • classSum Γ K f) ≤ 1 := by |
| 896 | -- The vectors `ξ` with `c • ξ` of gauge at most one form an additive submonoid, because the |
| 897 | -- gauge is ultrametric, and `A` clears the denominators of the class sum (`smul_classSum_mem`). |
| 898 | let S : AddSubmonoid (WeylIndex V κ → ℂ) := |
| 899 | { carrier := {ξ | weylGauge κ e g (c • ξ) ≤ 1} |
| 900 | add_mem' := fun {ξ η} hξ hη ↦ by |
| 901 | simpa [smul_add] using (weylGauge_add_le_max g (c • ξ) (c • η)).trans (max_le hξ hη) |
| 902 | zero_mem' := by simp [weylGauge] } |
| 903 | rw [mul_comm, mul_smul, cast_smul_eq_nsmul] |
| 904 | exact smul_classSum_mem S hA hf |
| 905 | |
| 906 | /-- If the conjugate by `σ` of every `f x` has norm at most `B`, that of the class sum of `f` has |
| 907 | norm at most `B` times the number of double cosets. -/ |
| 908 | lemma sqrt_weylNormSq_classSum_le (σ : ℂ ≃+* ℂ) (hf : ∀ x : G, √(weylNormSq (σ ∘ f x)) ≤ B) : |
| 909 | √(weylNormSq (σ ∘ classSum Γ K f)) ≤ Nat.card (DoubleCosets Γ K) * B := by |
| 910 | -- Triangle inequality over the classes; the rational weight `1 / #classAut` is fixed by `σ`, |
| 911 | -- comes out of the norm as a factor, and is at most one. |
| 912 | calc |
| 913 | _ ≤ ∑ c : DoubleCosets Γ K, |
| 914 | (Nat.card (classAut Γ K c.out) : ℝ)⁻¹ * √(weylNormSq (σ ∘ f c.out)) := by |
| 915 | grw [classSum, finsum_eq_sum_of_fintype, sqrt_weylNormSq_sum_le] |
| 916 | simp [← algebraMap_smul ℂ] |
| 917 | _ ≤ ∑ _ : DoubleCosets Γ K, 1 * B := by grw [cast_inv_le_one, hf] |
| 918 | _ = _ := by simp |
| 919 | |
| 920 | end New.Rows |
| 921 | |
| 922 | end |