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.AddChar.Basic |
| 4 | import TauCeti.MeasureTheory.Integral.Pi |
| 5 | import TauCeti.NumberTheory.NumberField.Countable |
| 6 | import TauCeti.Topology.Algebra.Group.Units |
| 7 | import TauCeti.Topology.Instances.Matrix |
| 8 | public import New.Spanning.MainTerm.FillingLevel |
| 9 | public import New.Spanning.Unfolding.Climbing |
| 10 | public import New.Spanning.Frames.BesselVector |
| 11 | import Lib.General.LinearAlgebra.BlockEmbeddings |
| 12 | import Lib.General.LinearAlgebra.TensorChains |
| 13 | import Lib.General.Measure.Group |
| 14 | import New.Spanning.Frames.FiniteDepth |
| 15 | import New.Spanning.Frames.FiniteShells |
| 16 | |
| 17 | /-! |
| 18 | # Groups that fix given vectors at chosen places have a small mass integral |
| 19 | |
| 20 | Let `S` be an admissible filling with base `b = S.b`, and `T` a finite set of finite places of `E` |
| 21 | stable under conjugation. The product `LocProd T` of the completions at `T` is read as one ring, |
| 22 | with integers `R` (`New.Floors.IntegralPlace`), and `F` is a filling datum on it, of modulus |
| 23 | `g = F.levelUnit`. An `F.IntermediateGroup` is a group `Z` with `K(g) ≤ Z ≤ K`, for the integral |
| 24 | unitary group `K` and its congruence subgroup `K(g)` (both `New.unitaryLevel`). `F.groupMeasure` is |
| 25 | a Haar measure on the unitary group, and `F.massIntegral Z` is the mass integral, the number ∫ |∫_Z |
| 26 | χ_g(y x y⁻¹) dy|² dx, where χ_g is `New.Floors.IntegralPlace.extendedBesselChar g`. |
| 27 | |
| 28 | * `New.Filling.volume_integers_diff_intUnits_le`: at the chosen places and their conjugates |
| 29 | (`New.Filling.chosenPlacesAndConj`), few integers are not units. |
| 30 | * `New.Filling.IsFillingData.exists_intermediateGroup_one_place`: for one place `w`, some group `Z` |
| 31 | contains the elements that fix the given vectors, and `F.massIntegral Z / F.groupMeasure Z` is |
| 32 | smaller than `F.massIntegral K / F.groupMeasure K` by at least the factor `b ^ (6 * 𝔰.k)` (for no |
| 33 | place, the factor is `1`). Here `𝔰.k` is the rank of the block `X₀` of the shape `𝔰`. The proof |
| 34 | takes the stabiliser of the vector at `w`, which has large index in `K`. |
| 35 | * `New.Filling.IsFillingData.exists_intermediateGroup_places`: for several places, take the product; |
| 36 | the factors multiply. The places of `T` are cut into the fibres `New.Filling.placeFiber` of a map |
| 37 | `blk`; `New.Filling.evalFiber` and `New.Filling.toFibers` restrict elements of `LocProd T` and |
| 38 | unitary matrices to the fibres. |
| 39 | |
| 40 | Notions from other files: |
| 41 | * `New.Filling`: `S.levelPrime 0` and `S.levelPrime 1` are the level primes `p₀` and `p₁`, |
| 42 | `S.chosenPlaces i` is the finite set of chosen places of norm `pᵢ`, and `S.ideleM` is the level |
| 43 | `M = p₀ p₁` as a finite idele. |
| 44 | * `New.Filling.IsFillingData`: `F` is a large lattice datum on `LocProd T` whose modulus is the |
| 45 | component of `M` at `T` and whose character is `S.charOnPlaces T`. |
| 46 | * `New.Filling.latticeStabilizer`: the integral elements of the finite adelic unitary group; |
| 47 | `S.reduction` reduces them modulo the chosen places, `S.toPlaces T` takes components at `T`. |
| 48 | * `New.Filling.vectorFixer`: for a chosen place `w` and `d = (ε, v)`, the elements of `S.ResidueGL` |
| 49 | (the product of the general linear groups over the residue fields) that fix the vector of the span |
| 50 | of the frame with coordinates `v ≠ 0`, modulo `w` if `ε` is false and modulo its conjugate if `ε` |
| 51 | is true; `S.fixer Sg d` is the intersection of these groups over `w ∈ Sg`. |
| 52 | |
| 53 | ## Relation to the literature |
| 54 | |
| 55 | See `New.Spanning.MainTerm.EnergyEstimate` for related work. |
| 56 | -/ |
| 57 | |
| 58 | @[expose] public section |
| 59 | |
| 60 | namespace New.Filling |
| 61 | |
| 62 | open NumberField Matrix Finset Fintype MeasureTheory Valued Floors ENNReal Subgroup Pi |
| 63 | IntegralPlace |
| 64 | |
| 65 | section OnePlace |
| 66 | |
| 67 | variable {E : Type} {𝔰 : Shape} [Field E] [CMType E] |
| 68 | |
| 69 | /-! ### Few integers are not units -/ |
| 70 | |
| 71 | open scoped Classical in |
| 72 | /-- The chosen places of the filling `S`, above both level primes, and their conjugates. -/ |
| 73 | noncomputable def chosenPlacesAndConj (S : Filling E 𝔰) : Finset (FinPlace E) := |
| 74 | univ.biUnion fun p : Σ i : Fin 2, S.chosenPlaces i ↦ |
| 75 | {(p.2 : FinPlace E), star (p.2 : FinPlace E)} |
| 76 | |
| 77 | theorem mem_chosenPlacesAndConj {S : Filling E 𝔰} {w : FinPlace E} : |
| 78 | w ∈ S.chosenPlacesAndConj ↔ |
| 79 | ∃ (i : Fin 2) (s : FinPlace E), s ∈ S.chosenPlaces i ∧ (w = s ∨ w = star s) := by |
| 80 | simp [chosenPlacesAndConj] |
| 81 | |
| 82 | /-- Let `S` be a filling over `E` (the data of the filling theorem), whose chosen places |
| 83 | `S.chosenPlaces` lie above its two level primes. Suppose every place of `T` is a chosen place of `S` |
| 84 | or the conjugate of one. Then for each `w ∈ T` the residue field order `w.q` is at least |
| 85 | `S.b ^ 10`. -/ |
| 86 | theorem b_pow_ten_le_q {S : Filling E 𝔰} {T : Finset (FinPlace E)} |
| 87 | (hT : T ⊆ S.chosenPlacesAndConj) {w : FinPlace E} (hw : w ∈ T) : |
| 88 | S.b ^ 10 ≤ w.q := by |
| 89 | obtain ⟨i, s, hs, hws⟩ : ∃ (i : Fin 2) (s : FinPlace E), |
| 90 | s ∈ S.chosenPlaces i ∧ (w = s ∨ w = star s) := |
| 91 | mem_chosenPlacesAndConj.1 (hT hw) |
| 92 | have h_conj : w.q = s.q := by |
| 93 | obtain rfl | rfl := hws |
| 94 | · rfl |
| 95 | · exact q_star s |
| 96 | rw [h_conj, S.chosenPlaces_q i s hs] |
| 97 | exact S.le_levelPrime i |
| 98 | |
| 99 | /-- If every place of `T` is a chosen place of the filling `S` or the conjugate of one, then `T` has |
| 100 | at most `S.b` elements. -/ |
| 101 | theorem card_le_b_of_subset_chosenPlacesAndConj {S : Filling E 𝔰} {T : Finset (FinPlace E)} |
| 102 | (hT : T ⊆ S.chosenPlacesAndConj) : |
| 103 | (#T : ℝ) ≤ S.b := by |
| 104 | classical |
| 105 | have h_chosen : card (Σ i : Fin 2, S.chosenPlaces i) = 2 * numInfPlaces E := by |
| 106 | simp [S.card_chosenPlaces] |
| 107 | have h_pairs : #T ≤ 2 * numInfPlaces E * 2 := by |
| 108 | grw [hT, chosenPlacesAndConj, card_biUnion_le_card_mul _ _ 2 fun _ _ ↦ card_le_two, card_univ, |
| 109 | h_chosen] |
| 110 | have h_real : (#T : ℝ) ≤ 2 * numInfPlaces E * 2 := mod_cast h_pairs |
| 111 | linarith [S.numInfPlaces_le_div, S.one_le_b] |
| 112 | |
| 113 | open scoped Classical in |
| 114 | /-- Let `P.integers` be the ring of integers of the product `LocProd T` of the completions at `T`, |
| 115 | with units `P.intUnits`. Almost every integer that is not a unit is divisible by the uniformiser at |
| 116 | some place `w` of `T`. -/ |
| 117 | private lemma integers_diff_intUnits_ae_le_iUnion {T : Finset (FinPlace E)} [fT : T.StarStable] |
| 118 | [P : IntegralPlace (LocProd T)] : |
| 119 | (P.integers \ P.intUnits : Set (LocProd T)) ≤ᵐ[volume] |
| 120 | ⋃ w : T, {x : LocProd T | (MulEquiv.piUnits.symm |
| 121 | (mulSingle w (uniformizer (w : FinPlace E))) : (LocProd T)ˣ)⁻¹.val * x ∈ integers} := by |
| 122 | filter_upwards [P.ae_isUnit] |
| 123 | rintro _ ⟨y, rfl⟩ ⟨hy_int, hy_nonunit⟩ |
| 124 | -- Some component of `y` lies in the maximal ideal, or `y⁻¹` would be integral. |
| 125 | obtain ⟨j, hj⟩ : ∃ j : T, v (y.val j) < 1 := by |
| 126 | by_contra! h_one_le |
| 127 | refine hy_nonunit ⟨hy_int, y, mem_O_locProd.2 fun j ↦ ?_, rfl⟩ |
| 128 | have h_inv : y⁻¹.val j = (y.val j)⁻¹ := by simp |
| 129 | rw [h_inv, map_inv₀] |
| 130 | exact inv_le_one_of_one_le₀ (h_one_le j) |
| 131 | refine Set.mem_iUnion.2 ⟨j, mem_O_locProd.2 fun i ↦ ?_⟩ |
| 132 | obtain rfl | hij : i = j ∨ i ≠ j := eq_or_ne i j |
| 133 | · have h_comp : ((MulEquiv.piUnits.symm (mulSingle i (uniformizer (i : FinPlace E))) : |
| 134 | (LocProd T)ˣ)⁻¹.val * y.val) i = (uniformizer (i : FinPlace E)).val⁻¹ * y.val i := by |
| 135 | simp |
| 136 | rw [h_comp] |
| 137 | exact v_uniformizer_inv_mul_le_one_iff.2 hj |
| 138 | · have h_comp : ((MulEquiv.piUnits.symm (mulSingle j (uniformizer (j : FinPlace E))) : |
| 139 | (LocProd T)ˣ)⁻¹.val * y.val) i = y.val i := by simp [hij] |
| 140 | rw [h_comp] |
| 141 | exact mem_O_locProd.1 hy_int i |
| 142 | |
| 143 | open scoped Classical in |
| 144 | /-- The elements of `LocProd T` that the uniformiser at the place `w` of `T` divides in the |
| 145 | integers have volume `1 / q`, with `q` the norm of `w`. -/ |
| 146 | private lemma volume_setOf_uniformizer_inv_mul_mem_integers {T : Finset (FinPlace E)} |
| 147 | [fT : T.StarStable] [P : IntegralPlace (LocProd T)] (w : T) : |
| 148 | volume {x : LocProd T | (MulEquiv.piUnits.symm |
| 149 | (mulSingle w (uniformizer (w : FinPlace E))) : (LocProd T)ˣ)⁻¹.val * x ∈ integers} = |
| 150 | ENNReal.ofReal ((w : FinPlace E).q : ℝ)⁻¹ := by |
| 151 | rw [volume_setOf_mul_mem, modulus_eq_inv_genIndex, genIndex_eq_inv_prod_norm, |
| 152 | Fintype.prod_eq_single w] |
| 153 | · simp [norm_locField_eq_q_zpow] |
| 154 | · intro i hi |
| 155 | simp [hi] |
| 156 | |
| 157 | /-- Let `S` be an admissible filling with base `b = S.b`, let every place of `T` be a chosen place |
| 158 | of `S` or the conjugate of one, and let `P.integers` be the ring of integers of the product |
| 159 | `LocProd T` of the completions at `T`, with units `P.intUnits`. Then (a) `2 ≤ b ^ 9`, and (b) the |
| 160 | integers that are not units have volume at most `(b ^ 9)⁻¹`. -/ |
| 161 | theorem volume_integers_diff_intUnits_le {S : Filling E 𝔰} |
| 162 | {T : Finset (FinPlace E)} [fT : T.StarStable] [P : IntegralPlace (LocProd T)] |
| 163 | (hT : T ⊆ S.chosenPlacesAndConj) : |
| 164 | 2 ≤ ENNReal.ofReal (S.b ^ 9) ∧ |
| 165 | volume (P.integers \ P.intUnits : Set (LocProd T)) ≤ (ENNReal.ofReal (S.b ^ 9))⁻¹ := by |
| 166 | -- Almost every element of `LocProd T` is a unit (`P.ae_isUnit`), and an integer that is a unit of |
| 167 | -- `LocProd T` but not of `P.integers` is divisible by the uniformiser `c w` at some `w`. Each |
| 168 | -- such set of multiples has volume `1 / q ≤ b⁻¹⁰`, and `T` has at most `4 * numInfPlaces E ≤ b` |
| 169 | -- places. |
| 170 | classical |
| 171 | let c (w : T) : (LocProd T)ˣ := |
| 172 | MulEquiv.piUnits.symm (mulSingle w (uniformizer (w : FinPlace E))) |
| 173 | have hb : 1000 ≤ S.b := S.thousand_le_b |
| 174 | constructor |
| 175 | · grw [← hb] |
| 176 | bound |
| 177 | have h_sub : (P.integers \ P.intUnits : Set (LocProd T)) ≤ᵐ[volume] |
| 178 | ⋃ w : T, {x : LocProd T | (c w)⁻¹.val * x ∈ integers} := |
| 179 | integers_diff_intUnits_ae_le_iUnion |
| 180 | have h_vol (w : T) : |
| 181 | volume {x : LocProd T | (c w)⁻¹.val * x ∈ integers} ≤ ENNReal.ofReal (S.b ^ 10)⁻¹ := by |
| 182 | have h_q : S.b ^ 10 ≤ (w : FinPlace E).q := b_pow_ten_le_q hT w.prop |
| 183 | have h_eq : volume {x : LocProd T | (c w)⁻¹.val * x ∈ integers} = |
| 184 | ENNReal.ofReal ((w : FinPlace E).q : ℝ)⁻¹ := |
| 185 | volume_setOf_uniformizer_inv_mul_mem_integers w |
| 186 | rw [h_eq] |
| 187 | gcongr |
| 188 | have h_card : (#T : ℝ) ≤ S.b := card_le_b_of_subset_chosenPlacesAndConj hT |
| 189 | calc volume (P.integers \ P.intUnits : Set (LocProd T)) |
| 190 | _ ≤ ∑ w : T, volume {x : LocProd T | (c w)⁻¹.val * x ∈ integers} := |
| 191 | (measure_mono_ae h_sub).trans (measure_iUnion_fintype_le _ _) |
| 192 | _ ≤ ∑ _ : T, ENNReal.ofReal (S.b ^ 10)⁻¹ := sum_le_sum fun w _ ↦ h_vol w |
| 193 | _ = ENNReal.ofReal (#T * (S.b ^ 10)⁻¹) := by |
| 194 | rw [sum_const, card_univ, card_coe, ← ofReal_nsmul, nsmul_eq_mul] |
| 195 | _ ≤ ENNReal.ofReal (S.b * (S.b ^ 10)⁻¹) := by gcongr |
| 196 | _ = (ENNReal.ofReal (S.b ^ 9))⁻¹ := by |
| 197 | rw [← ofReal_inv_of_pos (by positivity)] |
| 198 | congr 1 |
| 199 | field_simp |
| 200 | |
| 201 | /-! ### One place -/ |
| 202 | |
| 203 | /-- If `2 ≤ B` and `B ^ (t + 1) * z ≤ k` in `ℝ≥0∞`, then `(z + B⁻¹ ^ (t + 1) * k) * B ^ t ≤ k`. -/ |
| 204 | theorem add_inv_pow_mul_mul_pow_le {B z k : ℝ≥0∞} {t : ℕ} (hB : 2 ≤ B) (hz : B ^ (t + 1) * z ≤ k) : |
| 205 | (z + B⁻¹ ^ (t + 1) * k) * B ^ t ≤ k := by |
| 206 | -- Both terms times `B ^ (t + 1)` are at most `k`; the spare factor `B ≥ 2` pays for the sum. |
| 207 | rw [← ENNReal.mul_le_mul_iff_left two_ne_zero ofNat_ne_top] |
| 208 | calc (z + B⁻¹ ^ (t + 1) * k) * B ^ t * 2 |
| 209 | _ ≤ (z + B⁻¹ ^ (t + 1) * k) * B ^ t * B := by gcongr |
| 210 | _ = B ^ (t + 1) * z + (B⁻¹ * B) ^ (t + 1) * k := by ring |
| 211 | _ ≤ k * 2 := by grw [hz, ENNReal.inv_mul_le_one, one_pow, one_mul, mul_two] |
| 212 | |
| 213 | /-- Let `S` be a filling of shape `𝔰` over `E` (the data of the filling theorem, with `𝔰.ϱ` |
| 214 | hyperbolic planes, a definite space X₀ and a vector z). Let `T` be a finite set of places stable |
| 215 | under conjugation, and `P.integers` the ring of integers of the product `LocProd T` of the |
| 216 | completions at `T`. The form `(S.latticeMiddle A).splitGram` over a ring `A` consists of `𝔰.ϱ` |
| 217 | hyperbolic planes and the Gram matrix `S.latticeMiddle A` of X₀ ⊕ Ez in the lattice basis. Taking |
| 218 | components at `T` (`S.toPlaces T`) maps the integral elements `S.latticeStabilizer` of the finite |
| 219 | adelic unitary group of `S` onto `unitaryLevel P.integers 1`. -/ |
| 220 | theorem range_toPlaces_latticeStabilizer {S : Filling E 𝔰} {T : Finset (FinPlace E)} |
| 221 | [fT : T.StarStable] [P : IntegralPlace (LocProd T)] : |
| 222 | ((S.toPlaces T).comp S.latticeStabilizer.subtype).range = |
| 223 | unitaryLevel P.integers 1 (S.latticeMiddle (LocProd T)).splitGram := by |
| 224 | ext y |
| 225 | constructor |
| 226 | · rintro ⟨k, rfl⟩ |
| 227 | obtain ⟨-, hk_int⟩ : S.IsIntegralOff T k ∧ |
| 228 | S.toPlaces T k ∈ unitaryLevel integers 1 (S.latticeMiddle (LocProd T)).splitGram := |
| 229 | S.mem_latticeStabilizer_iff.1 k.prop |
| 230 | exact hk_int |
| 231 | · intro hy |
| 232 | obtain ⟨x, rfl, hx_off, -⟩ := exists_isIntegralOff_toPlaces_eq y |
| 233 | have hx_int : x ∈ S.latticeStabilizer := S.mem_latticeStabilizer_iff.2 ⟨hx_off, hy⟩ |
| 234 | exact ⟨⟨x, hx_int⟩, rfl⟩ |
| 235 | |
| 236 | section Reduction |
| 237 | |
| 238 | variable {S : Filling E 𝔰} |
| 239 | |
| 240 | /-- The level `M = S.ideleM`, the product of the two level primes as a finite idele, lies in the |
| 241 | maximal ideal at every chosen place `w`. -/ |
| 242 | theorem v_ideleM_lt_one {i : Fin 2} (w : S.chosenPlaces i) : v (S.ideleM.val w) < 1 := by |
| 243 | obtain ⟨h_zero, -⟩ : New.reduceAt w (S.M : Ô E) = 0 ∧ New.reduceAt w (star (S.M : Ô E)) = 0 := |
| 244 | (S.M_dvd_iff S.M).1 dvd_rfl ⟨i, w⟩ |
| 245 | rw [reduceAt_eq_zero, SubringClass.coe_natCast] at h_zero |
| 246 | rwa [ideleM_val] |
| 247 | |
| 248 | /-- Let `w` be a chosen place and `r` an integral finite adele. If `M⁻¹ r` is integral at `w`, for |
| 249 | the level `M = S.ideleM`, then `r` vanishes modulo `w`. -/ |
| 250 | theorem reduceAt_eq_zero_of_inv_ideleM_smul {i : Fin 2} (w : S.chosenPlaces i) {r : Ô E} |
| 251 | (hr : v ((S.ideleM⁻¹ • (r : 𝔸f E)) w) ≤ 1) : |
| 252 | New.reduceAt w r = 0 := by |
| 253 | have h_adele : (r : 𝔸f E) = S.ideleM.val * S.ideleM⁻¹ • (r : 𝔸f E) := by simp [Units.smul_def] |
| 254 | have h_factor : (r : 𝔸f E) w = S.ideleM.val w * (S.ideleM⁻¹ • (r : 𝔸f E)) w := by |
| 255 | simpa only [map_mul, evalAt_apply] using congrArg (evalAt (w : FinPlace E)) h_adele |
| 256 | rw [reduceAt_eq_zero, h_factor, map_mul] |
| 257 | exact (mul_le_of_le_one_right' hr).trans_lt (v_ideleM_lt_one w) |
| 258 | |
| 259 | /-- If the inverse of the level `M = S.ideleM` is integral at all places outside `T₀`, then `T₀` |
| 260 | contains every chosen place. -/ |
| 261 | theorem mem_of_inv_ideleM_mem_integralOff {T₀ : Finset (FinPlace E)} |
| 262 | (hT : (↑S.ideleM⁻¹ : 𝔸f E) ∈ integralOff T₀) {i : Fin 2} (w : S.chosenPlaces i) : |
| 263 | (w : FinPlace E) ∈ T₀ := by |
| 264 | -- Otherwise `M⁻¹` is integral at `w`, and `1` vanishes modulo `w`. |
| 265 | by_contra hw |
| 266 | have h_int : v ((S.ideleM⁻¹ • ((1 : Ô E) : 𝔸f E)) w) ≤ 1 := by |
| 267 | simpa [Units.smul_def] using (mem_integralOff T₀).1 hT w hw |
| 268 | have h_zero : New.reduceAt w (1 : Ô E) = 0 := reduceAt_eq_zero_of_inv_ideleM_smul w h_int |
| 269 | simp at h_zero |
| 270 | |
| 271 | /-- Let `F` be a filling datum at `T`: a large lattice datum on the product of the completions at |
| 272 | `T` whose modulus `g` is the component of the level `S.ideleM = p₀ p₁`. Let `w ∈ T` be a chosen |
| 273 | place. An integral element `k` of the adelic unitary group whose component at `T` lies in the |
| 274 | congruence subgroup `K(g) = F.congruenceSubgroup` has reduction `S.reduction k i w = 1` modulo |
| 275 | `w`. -/ |
| 276 | theorem IsFillingData.reduction_eq_one {T : Finset (FinPlace E)} [fT : T.StarStable] |
| 277 | [P : IntegralPlace (LocProd T)] |
| 278 | {F : PlaceData (Fin (𝔰.k - (6 * 𝔰.ϱ + 13))) (S.latticeMiddle (LocProd T)) (𝔰.ϱ + 1 + 2 * 𝔰.ϱ + |
| 279 | 5)} |
| 280 | (h : S.IsFillingData T F) {i : Fin 2} |
| 281 | {w : S.chosenPlaces i} (hw : (w : FinPlace E) ∈ T) {k : S.latticeStabilizer} |
| 282 | (hk : S.toPlaces T k ∈ F.congruenceSubgroup) : |
| 283 | S.reduction k i w = 1 := by |
| 284 | -- Each entry of `M⁻¹ (k - 1)` is integral at `w`, so each entry of `k - 1` vanishes modulo `w`. |
| 285 | let x : Matrix 𝔰.BesselIndex 𝔰.BesselIndex (𝔸f E) := (k : S.GFin).val |
| 286 | let y : Matrix 𝔰.BesselIndex 𝔰.BesselIndex (LocProd T) := (S.toPlaces T k).val |
| 287 | have hy : y = x.map (evalPlaces T) := rfl |
| 288 | have h_map : F.levelUnit⁻¹ • (y - 1) = (S.ideleM⁻¹ • (x - 1)).map (evalPlaces T) := by |
| 289 | ext1 a b |
| 290 | simp [h.levelUnit_eq, hy, Units.smul_def, Matrix.one_apply] |
| 291 | have h_cong : IsIntMatrix integers (F.levelUnit⁻¹ • (y - 1)) := (mem_unitaryLevel_def.1 hk).right |
| 292 | rw [h_map] at h_cong |
| 293 | refine intGL.map_eq_one.2 fun a b ↦ reduceAt_eq_zero_of_inv_ideleM_smul w ?_ |
| 294 | change v (evalPlaces T ((S.ideleM⁻¹ • (x - 1)) a b) ⟨w, hw⟩) ≤ 1 |
| 295 | exact mem_O_locProd.1 (h_cong a b) ⟨w, hw⟩ |
| 296 | |
| 297 | /-- Let `S` be an admissible filling, `w` a chosen place above the level prime |
| 298 | `p = S.levelPrime i`, and `d` a nonzero vector modulo `w` or its conjugate. The integral elements |
| 299 | whose reduction fixes `d` (lies in `S.vectorFixer w d`) have index `p ^ r - 1` in the integral group |
| 300 | `S.latticeStabilizer`, where `r = 𝔰.r` is the size of the matrices. -/ |
| 301 | theorem index_comap_vectorFixer [S.IsAdmissible] {i : Fin 2} (w : S.chosenPlaces i) |
| 302 | (d : S.FrameVector w) : |
| 303 | ((S.vectorFixer w d).comap S.reduction).index = S.levelPrime i ^ 𝔰.r - 1 := by |
| 304 | classical |
| 305 | -- `S.reduction` and the component at `w` are onto, and the stabiliser of a nonzero vector has as |
| 306 | -- index the number of nonzero vectors. |
| 307 | obtain ⟨ε, u, hu⟩ := d |
| 308 | have h_inj : |
| 309 | Function.Injective (inclMatrix (ResField (w : FinPlace E)) 𝔰.besselFrame).mulVecLin := |
| 310 | inclMatrix_mulVecLin_injective ⟨𝔰.besselFrame, besselFrame_injective⟩ _ |
| 311 | have h_ne : inclMatrix (ResField (w : FinPlace E)) 𝔰.besselFrame *ᵥ u ≠ 0 := by |
| 312 | simpa using h_inj.ne hu |
| 313 | have h_surj : Function.Surjective fun s : S.ResidueGL ↦ S.idOrInvAdjoint ε (s i w) := |
| 314 | fun g ↦ ⟨mulSingle i (mulSingle w ((S.idOrInvAdjoint ε).symm g)), by simp⟩ |
| 315 | rw [index_comap_of_surjective _ IsAdmissible.reduction_surjective, vectorFixer, |
| 316 | index_comap_of_surjective _ h_surj, index_stabilizer_GL_vector h_ne, |
| 317 | card_resField_eq_levelPrime] |
| 318 | |
| 319 | /-- Let `𝔰` be the shape of a filling, with the numbers `k = 𝔰.k`, `n = 𝔰.n` and the matrix size |
| 320 | `r = 𝔰.r`. Some `t` has `t + 1 + n + 2 · 10⁹ n⁴ ≤ k`, `6 k ≤ 9 t` and `t + 1 < r`. -/ |
| 321 | theorem exists_exponent_le_k (S : Filling E 𝔰) : |
| 322 | ∃ t : ℕ, t + 1 + 𝔰.n + 2 * 10 ^ 9 * 𝔰.n ^ 4 ≤ 𝔰.k ∧ 6 * 𝔰.k ≤ 9 * t ∧ t + 1 < 𝔰.r := by |
| 323 | have h_pow : 10 ^ 10 * 𝔰.n ^ 4 ≤ 𝔰.n ^ 6 ∧ 3 * 𝔰.n ^ 6 + 12 ≤ 𝔰.n ^ 7 ∧ 𝔰.n ^ 7 ≤ 𝔰.k := |
| 324 | S.pow_chain |
| 325 | have h_size : 𝔰.r = 𝔰.ϱ + (𝔰.k + 1 + 𝔰.ϱ) := by simp |
| 326 | have h_pos : 0 < 𝔰.n ^ 4 := by positivity |
| 327 | have h_le : 𝔰.n ≤ 𝔰.n ^ 4 := Nat.le_self_pow (by norm_num) _ |
| 328 | exact ⟨𝔰.k - 10 ^ 10 * 𝔰.n ^ 4, by omega⟩ |
| 329 | |
| 330 | end Reduction |
| 331 | |
| 332 | variable {S : Filling E 𝔰} |
| 333 | {T T₀ : Finset (FinPlace E)} [fT : T.StarStable] [P : IntegralPlace (LocProd T)] |
| 334 | {F : PlaceData (Fin (𝔰.k - (6 * 𝔰.ϱ + 13))) (S.latticeMiddle (LocProd T)) (𝔰.ϱ + 1 + 2 * 𝔰.ϱ + 5)} |
| 335 | |
| 336 | /-- Let `F` be a filling datum at `T`, `K = unitaryLevel P.integers 1 _` the integral unitary group |
| 337 | over the completions at `T` and `K(g) = F.congruenceSubgroup`. Let `Z` with `K(g) ≤ Z ≤ K` have |
| 338 | index `p₀ ^ r - 1` in `K`, for the first level prime `p₀` and the size `r = 𝔰.r` of the matrices, |
| 339 | and let `t + 1 < r`. Then `B ^ (t + 1) vol(Z) ≤ vol(K)` for `B = b ^ 9` and the Haar measure |
| 340 | `vol = F.groupMeasure`: the large index makes the volume of `Z` small. -/ |
| 341 | private lemma IsFillingData.pow_mul_groupMeasure_le_of_relIndex_eq (h : S.IsFillingData T F) |
| 342 | (Z : F.IntermediateGroup) |
| 343 | (h_index : Z.val.relIndex (unitaryLevel P.integers 1 (S.latticeMiddle (LocProd T)).splitGram) = |
| 344 | S.levelPrime 0 ^ 𝔰.r - 1) {t : ℕ} (ht_lt : t + 1 < 𝔰.r) : |
| 345 | ENNReal.ofReal (S.b ^ 9) ^ (t + 1) * F.groupMeasure Z ≤ |
| 346 | F.groupMeasure (unitaryLevel P.integers 1 (S.latticeMiddle (LocProd T)).splitGram) := by |
| 347 | set μ : Measure (U (S.latticeMiddle (LocProd T)).splitGram) := F.groupMeasure |
| 348 | set K : Subgroup (U (S.latticeMiddle (LocProd T)).splitGram) := |
| 349 | unitaryLevel P.integers 1 (S.latticeMiddle (LocProd T)).splitGram with hK |
| 350 | set B : ℝ≥0∞ := ENNReal.ofReal (S.b ^ 9) with hB |
| 351 | have hB_le : B ≤ S.levelPrime 0 := by |
| 352 | grw [hB, pow_le_pow_right₀ S.one_le_b (Nat.le_succ 9), S.le_levelPrime 0, ofReal_natCast] |
| 353 | have h_prime : (S.levelPrime 0).Prime := (S.levelPrime_prime_and_ne 0).left |
| 354 | have h_pow_le : S.levelPrime 0 ^ (t + 1) ≤ Z.val.relIndex K := by |
| 355 | rw [h_index] |
| 356 | exact Nat.le_sub_one_of_lt (pow_lt_pow_right₀ h_prime.one_lt ht_lt) |
| 357 | calc B ^ (t + 1) * μ Z |
| 358 | _ ≤ (S.levelPrime 0 ^ (t + 1) : ℕ) * μ Z := by grw [hB_le, Nat.cast_pow] |
| 359 | _ ≤ Z.val.relIndex K * μ Z := by gcongr |
| 360 | _ = μ K := by |
| 361 | rw [hK, ← relIndex_mul_measure_inf unitaryLevel_open_compact.right Z.isOpen, |
| 362 | inf_of_le_left Z.prop.right] |
| 363 | |
| 364 | /-- Let `S` be an admissible filling with base `b = S.b`, and `F` a filling datum at `T`, where |
| 365 | every place of `T` is a chosen place or the conjugate of one. Let `K = unitaryLevel P.integers 1 _` |
| 366 | be the integral unitary group over the completions at `T` and `K(g) = F.congruenceSubgroup` its |
| 367 | subgroup of elements congruent to `1` modulo `g`. Let `Z` with `K(g) ≤ Z ≤ K` have index |
| 368 | `p₀ ^ r - 1` in `K`, for the first level prime `p₀` and the size `r = 𝔰.r` of the matrices. Then |
| 369 | `ϰ(Z) vol(K) b ^ (6 k) ≤ ϰ(K) vol(Z)`. Here `vol = F.groupMeasure` is a Haar measure, |
| 370 | `ϰ(Z) = F.massIntegral Z` is ∫ |∫_Z χ_g(y x y⁻¹) dy|² dx for the function |
| 371 | χ_g = `extendedBesselChar g`, and `k = 𝔰.k` is the rank of the block `X₀` of the shape `𝔰`. -/ |
| 372 | theorem IsFillingData.massIntegral_mul_le_of_relIndex_eq (h : S.IsFillingData T F) |
| 373 | (hT : T ⊆ S.chosenPlacesAndConj) (Z : F.IntermediateGroup) |
| 374 | (h_index : Z.val.relIndex (unitaryLevel P.integers 1 (S.latticeMiddle (LocProd T)).splitGram) = |
| 375 | S.levelPrime 0 ^ 𝔰.r - 1) : |
| 376 | F.massIntegral Z * |
| 377 | F.groupMeasure (unitaryLevel P.integers 1 (S.latticeMiddle (LocProd T)).splitGram) * |
| 378 | ENNReal.ofReal (S.b ^ (6 * 𝔰.k)) ≤ |
| 379 | F.massIntegral (unitaryLevel P.integers 1 (S.latticeMiddle (LocProd T)).splitGram) * |
| 380 | F.groupMeasure Z := by |
| 381 | -- The large index makes the volume of `Z` small; then |
| 382 | -- `IntegralPlace.IsLargeLatticeData.massIntegral_le_main_add_error` bounds the mass integral of |
| 383 | -- `Z` from above, `IntegralPlace.IsLargeLatticeData.setLIntegral_congruenceSubgroup_integral_sq` |
| 384 | -- that of `K` from below. |
| 385 | set μ : Measure (U (S.latticeMiddle (LocProd T)).splitGram) := F.groupMeasure |
| 386 | set K : Subgroup (U (S.latticeMiddle (LocProd T)).splitGram) := |
| 387 | unitaryLevel P.integers 1 (S.latticeMiddle (LocProd T)).splitGram with hK |
| 388 | -- With `B = b ^ 9` the non-units have volume at most `B⁻¹`; the gain is `B ^ t`, `6 k ≤ 9 t`. |
| 389 | set B : ℝ≥0∞ := ENNReal.ofReal (S.b ^ 9) with hB |
| 390 | obtain ⟨hB_two, h_vol⟩ : 2 ≤ B ∧ volume (P.integers \ P.intUnits : Set (LocProd T)) ≤ B⁻¹ := |
| 391 | S.volume_integers_diff_intUnits_le hT |
| 392 | have hb : 1 ≤ S.b := S.one_le_b |
| 393 | obtain ⟨t, ht_le, ht_gain, ht_lt⟩ : |
| 394 | ∃ t : ℕ, t + 1 + 𝔰.n + 2 * 10 ^ 9 * 𝔰.n ^ 4 ≤ 𝔰.k ∧ 6 * 𝔰.k ≤ 9 * t ∧ t + 1 < 𝔰.r := |
| 395 | S.exists_exponent_le_k |
| 396 | have h_rare : B ^ (t + 1) * μ Z ≤ μ K := |
| 397 | h.pow_mul_groupMeasure_le_of_relIndex_eq Z h_index ht_lt |
| 398 | have h_K : 2⁻¹ ^ 𝔰.n ≤ μ K := by |
| 399 | rw [hK] |
| 400 | exact h.inv_two_pow_le_groupMeasure ⟨hB_two, h_vol⟩ |
| 401 | have h_upper : F.massIntegral Z ≤ μ Z * μ F.congruenceSubgroup * (μ Z + B⁻¹ ^ (t + 1) * μ K) := by |
| 402 | have h_modulus (c : (LocProd T)ˣ) (hc : c.val ∈ integers) (hc_inv : c⁻¹.val ∉ integers) : |
| 403 | P.modulus c ≤ B⁻¹ := (IsLargeLatticeData.modulus_le_volume_nonunits c hc hc_inv).trans h_vol |
| 404 | have h_half : B⁻¹ ^ 𝔰.n ≤ 2⁻¹ ^ 𝔰.n := by gcongr |
| 405 | calc F.massIntegral Z |
| 406 | _ ≤ μ Z * μ F.congruenceSubgroup * (μ Z + B⁻¹ ^ (t + 1 + 𝔰.n)) := |
| 407 | h.massIntegral_le_main_add_error Z hB_two h_modulus ht_le |
| 408 | _ ≤ μ Z * μ F.congruenceSubgroup * (μ Z + B⁻¹ ^ (t + 1) * μ K) := by |
| 409 | grw [pow_add B⁻¹ (t + 1), h_half, h_K] |
| 410 | have h_lower : μ K ^ 2 * μ F.congruenceSubgroup ≤ F.massIntegral K := by |
| 411 | have hK_mem : K ∈ Set.Icc F.congruenceSubgroup K := ⟨unitaryLevel_le_unitaryLevel_one, le_rfl⟩ |
| 412 | -- The left side is the part of the outer integral over `K(g)`. |
| 413 | rw [← h.setLIntegral_congruenceSubgroup_integral_sq ⟨K, hK_mem⟩] |
| 414 | exact setLIntegral_le_lintegral _ _ |
| 415 | have h_gain : ENNReal.ofReal (S.b ^ (6 * 𝔰.k)) ≤ B ^ t := by |
| 416 | grw [pow_le_pow_right₀ hb ht_gain, pow_mul, ofReal_pow (by positivity)] |
| 417 | calc F.massIntegral Z * μ K * ENNReal.ofReal (S.b ^ (6 * 𝔰.k)) |
| 418 | _ ≤ μ Z * μ F.congruenceSubgroup * (μ Z + B⁻¹ ^ (t + 1) * μ K) * μ K * B ^ t := by |
| 419 | grw [h_upper, h_gain] |
| 420 | _ = μ Z * μ F.congruenceSubgroup * μ K * ((μ Z + B⁻¹ ^ (t + 1) * μ K) * B ^ t) := by ring |
| 421 | _ ≤ μ Z * μ F.congruenceSubgroup * μ K * μ K := by |
| 422 | grw [add_inv_pow_mul_mul_pow_le hB_two h_rare] |
| 423 | _ = μ K ^ 2 * μ F.congruenceSubgroup * μ Z := by ring |
| 424 | _ ≤ F.massIntegral K * μ Z := by grw [h_lower] |
| 425 | |
| 426 | /-- Let `S` be an admissible filling and `F` a filling datum at `T`, of modulus `g`. Let `Sg` be a |
| 427 | set of chosen places above the first level prime, `d w` a nonzero vector modulo `w` or its |
| 428 | conjugate, and let the inverse of the level `S.ideleM` be integral off `T₀`. Let `o` be `none`, or a |
| 429 | place `w` of `Sg` such that `T` consists of the places of `T₀` equal to `w` or `w̄`. Then some group |
| 430 | `Z` with `K(g) ≤ Z ≤ K`, for the integral unitary group `K = unitaryLevel P.integers 1 _` and its |
| 431 | congruence subgroup `K(g) = F.congruenceSubgroup`, has two properties. (a) `Z` contains the |
| 432 | `T`-component of every integral element whose reduction fixes `d w` for all `w ∈ Sg`. (b) With the |
| 433 | mass integral `ϰ = F.massIntegral` and `vol = F.groupMeasure`, `ϰ(Z) vol(K) B ≤ ϰ(K) vol(Z)`, where |
| 434 | `B` is `S.b ^ (6 * 𝔰.k)` if `o` is a place, and `1` otherwise. -/ |
| 435 | theorem IsFillingData.exists_intermediateGroup_one_place [S.IsAdmissible] (h : S.IsFillingData T F) |
| 436 | (Sg : Finset (S.chosenPlaces 0)) (o : Option Sg) |
| 437 | (d : ∀ w : S.chosenPlaces 0, S.FrameVector w) |
| 438 | (hT : (↑S.ideleM⁻¹ : 𝔸f E) ∈ integralOff T₀) |
| 439 | (h_places : ∀ w ∈ o, ∀ j : FinPlace E, j ∈ T ↔ j ∈ T₀ ∧ (j = w ∨ star j = w)) : |
| 440 | ∃ Z : F.IntermediateGroup, |
| 441 | -- (a) |
| 442 | (∀ k : S.latticeStabilizer, S.reduction k ∈ S.fixer Sg d → S.toPlaces T k ∈ Z.val) ∧ |
| 443 | -- (b) |
| 444 | F.massIntegral Z * |
| 445 | F.groupMeasure (unitaryLevel P.integers 1 (S.latticeMiddle (LocProd T)).splitGram) * |
| 446 | o.elim 1 (fun _ : Sg ↦ ENNReal.ofReal (S.b ^ (6 * 𝔰.k))) ≤ |
| 447 | F.massIntegral (unitaryLevel P.integers 1 (S.latticeMiddle (LocProd T)).splitGram) * |
| 448 | F.groupMeasure Z := by |
| 449 | -- Without a place take `Z = K`. At a place `w` take for `Z` the image of the group `H` of those |
| 450 | -- `k` whose reduction at `w` fixes the vector; its index in `K` is that of `H`. |
| 451 | let p : S.latticeStabilizer →* U (S.latticeMiddle (LocProd T)).splitGram := |
| 452 | (S.toPlaces T).comp S.latticeStabilizer.subtype |
| 453 | have h_range : p.range = unitaryLevel integers 1 (S.latticeMiddle (LocProd T)).splitGram := |
| 454 | range_toPlaces_latticeStabilizer |
| 455 | obtain _ | ⟨w, hw⟩ := o |
| 456 | · let K : F.IntermediateGroup := ⟨unitaryLevel integers 1 (S.latticeMiddle (LocProd T)).splitGram, |
| 457 | unitaryLevel_le_unitaryLevel_one, le_rfl⟩ |
| 458 | exact ⟨K, fun k _ ↦ h_range.le ⟨k, rfl⟩, by simp [K]⟩ |
| 459 | replace h_places (j : FinPlace E) : j ∈ T ↔ j ∈ T₀ ∧ (j = w ∨ star j = w) := |
| 460 | h_places ⟨w, hw⟩ rfl j |
| 461 | have hwT : (w : FinPlace E) ∈ T := |
| 462 | (h_places w).2 ⟨mem_of_inv_ideleM_mem_integralOff hT w, .inl rfl⟩ |
| 463 | have hT_sub : T ⊆ S.chosenPlacesAndConj := by |
| 464 | intro j hj |
| 465 | have hjw : j = w ∨ star j = w := ((h_places j).1 hj).right |
| 466 | exact mem_chosenPlacesAndConj.2 ⟨0, w, w.prop, hjw.imp_right fun h_star ↦ by simp [← h_star]⟩ |
| 467 | let H : Subgroup S.latticeStabilizer := (S.vectorFixer w (d w)).comap S.reduction |
| 468 | have h_cong : F.congruenceSubgroup.comap p ≤ H := by |
| 469 | intro k hk |
| 470 | have h_one : S.reduction k 0 w = 1 := h.reduction_eq_one hwT hk |
| 471 | simp [H, vectorFixer, h_one] |
| 472 | have h_lower : F.congruenceSubgroup ≤ H.map p := by |
| 473 | have h_le_range : F.congruenceSubgroup ≤ p.range := |
| 474 | unitaryLevel_le_unitaryLevel_one.trans h_range.ge |
| 475 | rw [← map_comap_eq_self h_le_range] |
| 476 | exact map_mono h_cong |
| 477 | have h_upper : H.map p ≤ unitaryLevel integers 1 (S.latticeMiddle (LocProd T)).splitGram := |
| 478 | (H.map_le_range p).trans h_range.le |
| 479 | have h_index : |
| 480 | (H.map p).relIndex (unitaryLevel integers 1 (S.latticeMiddle (LocProd T)).splitGram) = |
| 481 | S.levelPrime 0 ^ 𝔰.r - 1 := by |
| 482 | have h_ker : p.ker ≤ H := (p.ker_le_comap F.congruenceSubgroup).trans h_cong |
| 483 | rw [← h_range, ← index_comap, comap_map_eq_self h_ker] |
| 484 | exact index_comap_vectorFixer w (d w) |
| 485 | let Z : F.IntermediateGroup := ⟨H.map p, h_lower, h_upper⟩ |
| 486 | refine ⟨Z, fun k hk ↦ ⟨k, mem_fixer.1 hk w hw, rfl⟩, ?_⟩ |
| 487 | simpa only [Option.elim_some] using h.massIntegral_mul_le_of_relIndex_eq hT_sub Z h_index |
| 488 | |
| 489 | end OnePlace |
| 490 | |
| 491 | /-! ### Restriction to the fibres of a map on places -/ |
| 492 | |
| 493 | section Rings |
| 494 | |
| 495 | variable {E : Type} {𝔰 : Shape} [Field E] [CMType E] |
| 496 | |
| 497 | /-- The places of `T` that the map `blk` sends to `i`. -/ |
| 498 | abbrev placeFiber (T : Finset (FinPlace E)) {ι : Type} [DecidableEq ι] (blk : FinPlace E → ι) |
| 499 | (i : ι) : Finset (FinPlace E) := |
| 500 | {w ∈ T | blk w = i} |
| 501 | |
| 502 | /-- The projection from the product of the completions at `T` to the product of the completions at |
| 503 | the places of `T` that `blk` sends to `i`. -/ |
| 504 | noncomputable def evalFiber (T : Finset (FinPlace E)) {ι : Type} [DecidableEq ι] |
| 505 | (blk : FinPlace E → ι) (i : ι) : LocProd T →+* LocProd (placeFiber T blk i) := |
| 506 | RingHom.pi fun w : placeFiber T blk i ↦ |
| 507 | evalRingHom _ (⟨w, mem_of_mem_filter (w : FinPlace E) w.prop⟩ : T) |
| 508 | |
| 509 | variable {S : Filling E 𝔰} {T : Finset (FinPlace E)} {ι : Type} [DecidableEq ι] |
| 510 | (blk : FinPlace E → ι) |
| 511 | |
| 512 | /-- The projection to a fibre of `blk` keeps the component at each place `w` of the fibre. -/ |
| 513 | lemma evalFiber_apply (i : ι) (x : LocProd T) (w : placeFiber T blk i) : |
| 514 | evalFiber T blk i x w = x ⟨w, mem_of_mem_filter (w : FinPlace E) w.prop⟩ := |
| 515 | rfl |
| 516 | |
| 517 | /-- A property holds at all places of `T` if and only if it holds on each fibre |
| 518 | `placeFiber T blk i` of the map `blk`. -/ |
| 519 | lemma forall_placeFiber {E : Type} [Field E] {T : Finset (FinPlace E)} {ι : Type} [DecidableEq ι] |
| 520 | (blk : FinPlace E → ι) {p : T → Prop} : |
| 521 | (∀ w : T, p w) ↔ |
| 522 | ∀ (i : ι) (w : placeFiber T blk i), p ⟨w, mem_of_mem_filter (w : FinPlace E) w.prop⟩ := |
| 523 | ⟨fun hp _ _ ↦ hp _, fun hp w ↦ hp (blk w) ⟨w, mem_filter.2 ⟨w.prop, rfl⟩⟩⟩ |
| 524 | |
| 525 | /-- Two elements of the product of the completions at `T` are equal if and only if their |
| 526 | projections to each fibre of `blk` are equal. -/ |
| 527 | lemma eq_iff_evalFiber_eq {x y : LocProd T} : |
| 528 | x = y ↔ ∀ i : ι, evalFiber T blk i x = evalFiber T blk i y := by |
| 529 | simp only [funext_iff, evalFiber_apply] |
| 530 | exact forall_placeFiber blk |
| 531 | |
| 532 | /-- An element of the product of the completions at `T` is integral if and only if its projection |
| 533 | to each fibre of `blk` is integral. -/ |
| 534 | lemma mem_O_iff_evalFiber_mem {x : LocProd T} : |
| 535 | x ∈ SemilocalField.O ↔ ∀ i : ι, evalFiber T blk i x ∈ SemilocalField.O := by |
| 536 | simp only [mem_O_locProd, evalFiber_apply] |
| 537 | exact forall_placeFiber blk |
| 538 | |
| 539 | /-- When `T` is cut into the fibres of a map `blk`, the additive character `S.charOnPlaces T` of the |
| 540 | product of the completions at `T`, which is the character of the finite adeles of `S` after |
| 541 | extension by zero, is the product of the characters of the fibres. -/ |
| 542 | theorem charOnPlaces_eq_prod_fibers [Fintype ι] (x : LocProd T) : |
| 543 | S.charOnPlaces T x = ∏ i : ι, S.charOnPlaces (placeFiber T blk i) (evalFiber T blk i x) := by |
| 544 | -- An adele supported on `T` is the sum of its parts on the fibres. |
| 545 | have h_sum : |
| 546 | adeleOfLocal T x = ∑ i : ι, adeleOfLocal (placeFiber T blk i) (evalFiber T blk i x) := by |
| 547 | ext1 w |
| 548 | rw [← evalAt_apply, ← evalAt_apply, map_sum] |
| 549 | simp only [evalAt_apply, adeleOfLocal_apply, evalFiber_apply] |
| 550 | -- A place of `T` lies in exactly one fibre; both sides vanish at the other places. |
| 551 | by_cases hw : w ∈ T <;> simp [hw] |
| 552 | simp only [charOnPlaces, AddChar.compAddMonoidHom_apply, AddMonoidHom.coe_ofClass, h_sum, |
| 553 | AddChar.map_sum_eq_prod] |
| 554 | |
| 555 | end Rings |
| 556 | |
| 557 | section Groups |
| 558 | |
| 559 | variable {E : Type} {𝔰 : Shape} [Field E] [CMType E] |
| 560 | |
| 561 | /-- The map from the unitary group over the completions at `T` to the product of the unitary groups |
| 562 | over the fibres of `blk`, given by the projections `evalFiber T blk i` on matrix entries. -/ |
| 563 | noncomputable def toFibers (S : Filling E 𝔰) (T : Finset (FinPlace E)) [fT : T.StarStable] |
| 564 | {ι : Type} [DecidableEq ι] (blk : FinPlace E → ι) |
| 565 | [∀ i : ι, (placeFiber T blk i).StarStable] : |
| 566 | U (S.latticeMiddle (LocProd T)).splitGram →* |
| 567 | ∀ i : ι, U (S.latticeMiddle (LocProd (placeFiber T blk i))).splitGram := |
| 568 | MonoidHom.pi fun i : ι ↦ |
| 569 | U.map (evalFiber T blk i) (fun _ ↦ rfl) (S.map_splitGram_latticeMiddle (evalFiber T blk i)) |
| 570 | |
| 571 | variable {S : Filling E 𝔰} {T : Finset (FinPlace E)} [fT : T.StarStable] |
| 572 | {ι : Type} [DecidableEq ι] (blk : FinPlace E → ι) [∀ i : ι, (placeFiber T blk i).StarStable] |
| 573 | |
| 574 | /-- For a unitary matrix `x` over the completions at `T`, the entries of its component |
| 575 | `S.toFibers T blk x i` at the fibre of `blk` over `i` are the projections of the entries of `x`. -/ |
| 576 | lemma toFibers_apply (x : U (S.latticeMiddle (LocProd T)).splitGram) (i : ι) (a b : 𝔰.BesselIndex) : |
| 577 | (S.toFibers T blk x i).val a b = evalFiber T blk i (x.val a b) := |
| 578 | rfl |
| 579 | |
| 580 | /-- For an adelic unitary matrix `x`, restricting its components at `T` to a fibre of `blk` gives |
| 581 | the components of `x` at that fibre. -/ |
| 582 | lemma toFibers_toPlaces (x : U (S.latticeMiddle (𝔸f E)).splitGram) (i : ι) : |
| 583 | S.toFibers T blk (S.toPlaces T x) i = S.toPlaces (placeFiber T blk i) x := |
| 584 | rfl |
| 585 | |
| 586 | /-- Unitary matrices over the fibres of `blk` glue to a unitary matrix over `T`, that is, the map |
| 587 | `S.toFibers T blk` to the product of the unitary groups over the fibres is onto. -/ |
| 588 | lemma toFibers_surjective : Function.Surjective (S.toFibers T blk) := by |
| 589 | intro y |
| 590 | let M : Matrix 𝔰.BesselIndex 𝔰.BesselIndex (LocProd T) := |
| 591 | of fun (a b : 𝔰.BesselIndex) (w : T) ↦ (y (blk w)).val a b ⟨w, mem_filter.2 ⟨w.prop, rfl⟩⟩ |
| 592 | have hM (i : ι) : M.map (evalFiber T blk i) = (y i).val := by |
| 593 | ext a b ⟨w, hw⟩ |
| 594 | obtain rfl : blk w = i := (mem_filter.1 hw).2 |
| 595 | rfl |
| 596 | have h_fiber (i : ι) : |
| 597 | (Mᴴ * (S.latticeMiddle (LocProd T)).splitGram * M).map (evalFiber T blk i) = |
| 598 | (S.latticeMiddle (LocProd T)).splitGram.map (evalFiber T blk i) := by |
| 599 | rw [map_conjTranspose_mul_mul _ fun _ ↦ rfl, hM, S.map_splitGram_latticeMiddle] |
| 600 | exact mem_unitaryGroupOf_iff.1 (y i).prop |
| 601 | have h_unitary : Mᴴ * (S.latticeMiddle (LocProd T)).splitGram * M = |
| 602 | (S.latticeMiddle (LocProd T)).splitGram := by |
| 603 | ext a b : 1 |
| 604 | exact (eq_iff_evalFiber_eq blk).2 fun i ↦ congr_fun₂ (h_fiber i) a b |
| 605 | refine ⟨U.of IsHermitianUnit.isUnit M h_unitary, ?_⟩ |
| 606 | ext i : 2 |
| 607 | exact hM i |
| 608 | |
| 609 | /-- A unitary matrix over the completions at `T` is integral with integral inverse and congruent to |
| 610 | `1` modulo `u`, that is, lies in `unitaryLevel SemilocalField.O u`, if and only if its components |
| 611 | at all fibres of `blk` satisfy the same for the projections of `u`. -/ |
| 612 | lemma mem_unitaryLevel_iff_toFibers {u : (LocProd T)ˣ} |
| 613 | {x : U (S.latticeMiddle (LocProd T)).splitGram} : |
| 614 | x ∈ unitaryLevel SemilocalField.O u (S.latticeMiddle (LocProd T)).splitGram ↔ |
| 615 | ∀ i : ι, S.toFibers T blk x i ∈ unitaryLevel SemilocalField.O (u.map (evalFiber T blk i)) |
| 616 | (S.latticeMiddle (LocProd (placeFiber T blk i))).splitGram := by |
| 617 | -- Each of the three conditions asks for a matrix to be integral, which is read fibre by fibre. |
| 618 | have h_int (M : Matrix 𝔰.BesselIndex 𝔰.BesselIndex (LocProd T)) : |
| 619 | IsIntMatrix SemilocalField.O M ↔ |
| 620 | ∀ i : ι, IsIntMatrix SemilocalField.O (M.map (evalFiber T blk i)) := |
| 621 | ⟨fun hM i a b ↦ (mem_O_iff_evalFiber_mem blk).1 (hM a b) i, |
| 622 | fun hM a b ↦ (mem_O_iff_evalFiber_mem blk).2 fun i ↦ hM i a b⟩ |
| 623 | have h_cong (i : ι) : (u⁻¹ • (x.val.val - 1)).map (evalFiber T blk i) = |
| 624 | (u.map (evalFiber T blk i) : (LocProd (placeFiber T blk i))ˣ)⁻¹ • |
| 625 | ((S.toFibers T blk x i).val.val - 1) := by |
| 626 | ext a b : 1 |
| 627 | simp only [Matrix.map_apply, Matrix.smul_apply, Matrix.sub_apply, Units.smul_def, smul_eq_mul, |
| 628 | map_mul, map_sub, Units.coe_map_inv, MonoidHom.coe_ofClass, toFibers_apply, Matrix.one_apply, |
| 629 | apply_ite (evalFiber T blk i), map_one, map_zero] |
| 630 | have h_map (y : U (S.latticeMiddle (LocProd T)).splitGram) (i : ι) : |
| 631 | (S.toFibers T blk y i).val.val = y.val.val.map (evalFiber T blk i) := rfl |
| 632 | have h_map_inv (i : ι) : |
| 633 | (S.toFibers T blk x i).val⁻¹.val = x.val⁻¹.val.map (evalFiber T blk i) := h_map x⁻¹ i |
| 634 | simp only [mem_unitaryLevel_def, mem_intGL, forall_and, ← h_cong, ← h_int] |
| 635 | simp only [h_map, h_map_inv] |
| 636 | -- The congruences agree; `x` and `x⁻¹` are integral when they are so on every fibre. |
| 637 | exact and_congr_left' (and_congr (h_int x.val.val) (h_int x⁻¹.val.val)) |
| 638 | |
| 639 | /-- The group `unitaryLevel SemilocalField.O u` for the Gram matrix `splitGram` over the completions |
| 640 | at `T` is the preimage under `S.toFibers T blk` of the product, over all `i`, of the same groups |
| 641 | over the fibres of `blk`. For each `i`, the modulus there is `u` projected by |
| 642 | `evalFiber T blk i`. -/ |
| 643 | lemma unitaryLevel_eq_comap_toFibers {u : (LocProd T)ˣ} : |
| 644 | unitaryLevel SemilocalField.O u (S.latticeMiddle (LocProd T)).splitGram = |
| 645 | (Subgroup.pi Set.univ fun i : ι ↦ unitaryLevel SemilocalField.O (u.map (evalFiber T blk i)) |
| 646 | (S.latticeMiddle (LocProd (placeFiber T blk i))).splitGram).comap (S.toFibers T blk) := by |
| 647 | ext x |
| 648 | simp [Subgroup.mem_pi, mem_unitaryLevel_iff_toFibers blk] |
| 649 | |
| 650 | /-- A unitary matrix over the completions at `T` lies in `besselU`, the group of unitary matrices |
| 651 | that are unitriangular for the levels of the indices, if and only if this holds on each fibre of |
| 652 | `blk`. -/ |
| 653 | lemma mem_besselU_iff_toFibers {x : U (S.latticeMiddle (LocProd T)).splitGram} : |
| 654 | x ∈ besselU ↔ ∀ i : ι, S.toFibers T blk x i ∈ besselU := by |
| 655 | have h_entry (a b : 𝔰.BesselIndex) : |
| 656 | x.val a b = (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex (LocProd T)) a b ↔ |
| 657 | ∀ i : ι, (S.toFibers T blk x i).val a b = |
| 658 | (1 : Matrix 𝔰.BesselIndex 𝔰.BesselIndex (LocProd (placeFiber T blk i))) a b := by |
| 659 | rw [eq_iff_evalFiber_eq blk] |
| 660 | simp [toFibers_apply, Matrix.one_apply] |
| 661 | simp only [mem_besselU, h_entry] |
| 662 | exact ⟨fun hx i a b hab ↦ hx a b hab i, fun hx a b hab i ↦ hx i a b hab⟩ |
| 663 | |
| 664 | end Groups |
| 665 | |
| 666 | section Measures |
| 667 | |
| 668 | variable {E : Type} {𝔰 : Shape} [Field E] [CMType E] {S : Filling E 𝔰} |
| 669 | {T : Finset (FinPlace E)} [fT : T.StarStable] [P : IntegralPlace (LocProd T)] |
| 670 | {F : PlaceData (Fin (𝔰.k - (6 * 𝔰.ϱ + 13))) (S.latticeMiddle (LocProd T)) (𝔰.ϱ + 1 + 2 * 𝔰.ϱ + 5)} |
| 671 | {ι : Type} [DecidableEq ι] (blk : FinPlace E → ι) [∀ i : ι, (placeFiber T blk i).StarStable] |
| 672 | [Fintype ι] [P' : ∀ i : ι, IntegralPlace (LocProd (placeFiber T blk i))] |
| 673 | |
| 674 | /-- The map `S.toFibers T blk` from the unitary group over the completions at `T` to the product of |
| 675 | the unitary groups over the fibres of `blk` is a measurable embedding. -/ |
| 676 | lemma measurableEmbedding_toFibers : MeasurableEmbedding (S.toFibers T blk) := by |
| 677 | -- The projection to each fibre is continuous entry by entry, and the map is injective. |
| 678 | have h_cont : Continuous (S.toFibers T blk) := |
| 679 | continuous_pi fun i : ι ↦ U.continuous_map (continuous_pi fun _ ↦ continuous_apply _) |
| 680 | (hf_star := fun _ ↦ rfl) (hJ_map := S.map_splitGram_latticeMiddle (evalFiber T blk i)) |
| 681 | refine h_cont.measurableEmbedding fun x y hxy ↦ ?_ |
| 682 | ext a b : 2 |
| 683 | refine (eq_iff_evalFiber_eq blk).2 fun i ↦ ?_ |
| 684 | rw [← toFibers_apply, ← toFibers_apply, hxy] |
| 685 | |
| 686 | /-- Let `blk` send the places to indices in a finite type `ι`, and let the additive characters of |
| 687 | the integral places `P` at `T` and `P' i` at the fibres of `blk` be those of `S`. The function |
| 688 | `extendedBesselChar a` is the product of the same functions of the fibres. -/ |
| 689 | lemma extendedBesselChar_eq_prod_toFibers (hψ : P.ψ = S.charOnPlaces T) |
| 690 | (hψ' : ∀ i : ι, (P' i).ψ = S.charOnPlaces (placeFiber T blk i)) |
| 691 | (a : (LocProd T)ˣ) (x : U (S.latticeMiddle (LocProd T)).splitGram) : |
| 692 | extendedBesselChar a x = ∏ i : ι, extendedBesselChar (a.map (evalFiber T blk i)) |
| 693 | (S.toFibers T blk x i) := by |
| 694 | -- On `besselU` times the congruence subgroup `extendedBesselChar` is a value of the character, |
| 695 | -- which is a product. |
| 696 | by_cases hx : ∃ u ∈ besselU, |
| 697 | u⁻¹ * x ∈ unitaryLevel integers a (S.latticeMiddle (LocProd T)).splitGram |
| 698 | · obtain ⟨(u : (S.latticeMiddle (LocProd T)).G), hu, hux⟩ := hx |
| 699 | have h_fiber (i : ι) : extendedBesselChar (a.map (evalFiber T blk i)) (S.toFibers T blk x i) = |
| 700 | S.charOnPlaces (placeFiber T blk i) (evalFiber T blk i (a⁻¹.val * simpleRootSum u)) := by |
| 701 | have h_level : (S.toFibers T blk u i)⁻¹ * S.toFibers T blk x i ∈ |
| 702 | unitaryLevel integers (a.map (evalFiber T blk i)) |
| 703 | (S.latticeMiddle (LocProd (placeFiber T blk i))).splitGram := by |
| 704 | simpa using (mem_unitaryLevel_iff_toFibers blk).1 hux i |
| 705 | rw [extendedBesselChar_eq ((mem_besselU_iff_toFibers blk).1 hu i) h_level, hψ'] |
| 706 | simp only [simpleRootSum, map_mul, map_sum, toFibers_apply, Units.coe_map_inv, |
| 707 | MonoidHom.coe_ofClass] |
| 708 | rw [extendedBesselChar_eq hu hux, hψ, charOnPlaces_eq_prod_fibers blk] |
| 709 | simp only [h_fiber] |
| 710 | · -- If no factor vanished, the unipotent elements of the fibres would glue to one over `T`. |
| 711 | have h_zero : extendedBesselChar a x = 0 := by |
| 712 | by_contra h_ne |
| 713 | exact hx (exists_besselU_of_extendedBesselChar_ne_zero h_ne) |
| 714 | rw [h_zero, eq_comm, prod_eq_zero_iff] |
| 715 | contrapose! hx |
| 716 | choose u hu hux using fun i : ι ↦ |
| 717 | exists_besselU_of_extendedBesselChar_ne_zero (hx i (mem_univ i)) |
| 718 | -- The elements `u i` of the fibres are the components of one element `v` over `T`. |
| 719 | obtain ⟨(v : (S.latticeMiddle (LocProd T)).G), rfl⟩ := toFibers_surjective blk u |
| 720 | have h_level : v⁻¹ * x ∈ unitaryLevel integers a (S.latticeMiddle (LocProd T)).splitGram := |
| 721 | (mem_unitaryLevel_iff_toFibers blk).2 fun i ↦ by simpa using hux i |
| 722 | exact ⟨v, (mem_besselU_iff_toFibers blk).2 hu, h_level⟩ |
| 723 | |
| 724 | variable {F' : ∀ i : ι, PlaceData (Fin (𝔰.k - (6 * 𝔰.ϱ + 13))) |
| 725 | (S.latticeMiddle (LocProd (placeFiber T blk i))) (𝔰.ϱ + 1 + 2 * 𝔰.ϱ + 5)} |
| 726 | |
| 727 | omit [Fintype ι] in |
| 728 | /-- Let `F` be a filling datum at `T` and `F' i` a filling datum at each fibre of a map `blk` on |
| 729 | places. Then the modulus `(F' i).levelUnit` is the projection of the modulus `F.levelUnit` to the |
| 730 | fibre. -/ |
| 731 | lemma IsFillingData.levelUnit_eq_map_evalFiber (h : S.IsFillingData T F) |
| 732 | (h' : ∀ i : ι, S.IsFillingData (placeFiber T blk i) (F' i)) (i : ι) : |
| 733 | (F' i).levelUnit = F.levelUnit.map (evalFiber T blk i) := by |
| 734 | rw [h.levelUnit_eq, (h' i).levelUnit_eq] |
| 735 | rfl |
| 736 | |
| 737 | /-- Let `blk` map the finite places to a finite type `ι`, let `F` be a filling datum at `T` and |
| 738 | `F' i` one at each fibre `placeFiber T blk i`, and let the image of `F.groupMeasure` under |
| 739 | `S.toFibers T blk` be `t` times the product of the measures `(F' i).groupMeasure`. For subgroups |
| 740 | `Y i` over the fibres and `x` in the unitary group over `T`, the integral of |
| 741 | `extendedBesselChar F.levelUnit (y * x * y⁻¹)` over `y` in the preimage of their product under |
| 742 | `S.toFibers T blk` is `t.toReal` times the product of the same integrals over the `Y i`, taken at |
| 743 | the components of `x`. -/ |
| 744 | private lemma IsFillingData.setIntegral_comap_toFibers (h : S.IsFillingData T F) |
| 745 | (h' : ∀ i : ι, S.IsFillingData (placeFiber T blk i) (F' i)) {t : ℝ≥0∞} |
| 746 | (ht : F.groupMeasure.map (S.toFibers T blk) = t • .pi fun i : ι ↦ (F' i).groupMeasure) |
| 747 | (Y : ∀ i : ι, Subgroup (S.latticeMiddle (LocProd (placeFiber T blk i))).G) |
| 748 | (x : (S.latticeMiddle (LocProd T)).G) : |
| 749 | ∫ y in (Subgroup.pi .univ Y).comap (S.toFibers T blk), |
| 750 | extendedBesselChar F.levelUnit (y * x * y⁻¹) ∂F.groupMeasure = |
| 751 | t.toReal • ∏ i : ι, ∫ y in Y i, |
| 752 | extendedBesselChar (F' i).levelUnit (y * S.toFibers T blk x i * y⁻¹) |
| 753 | ∂(F' i).groupMeasure := by |
| 754 | have h_emb : MeasurableEmbedding (S.toFibers T blk) := measurableEmbedding_toFibers blk |
| 755 | have _ (i : ι) : SigmaFinite (F' i).groupMeasure := |
| 756 | (h' i).isHaarMeasure_groupMeasure.sigmaFinite |
| 757 | -- The character over `T` is the product of the characters over the fibres. |
| 758 | have h_phase (y : (S.latticeMiddle (LocProd T)).G) : |
| 759 | extendedBesselChar F.levelUnit y = ∏ i : ι, |
| 760 | extendedBesselChar (F' i).levelUnit (S.toFibers T blk y i) := by |
| 761 | rw [extendedBesselChar_eq_prod_toFibers blk h.psi_eq fun i ↦ (h' i).psi_eq] |
| 762 | simp only [h.levelUnit_eq_map_evalFiber blk h'] |
| 763 | -- Transport along `S.toFibers T blk`, then Fubini. |
| 764 | rw [← integral_fintype_prod_eq_prod, ← integral_smul_measure, ← Measure.restrict_pi_pi, |
| 765 | ← Measure.restrict_smul, ← ht, h_emb.setIntegral_map] |
| 766 | simp [coe_pi, h_phase] |
| 767 | |
| 768 | /-- Let `F` be a filling datum at `T` and `F' i` a filling datum at each fibre `placeFiber T blk i` |
| 769 | of a map `blk` from the places to a finite type `ι`. Then there is a constant `t` with the following |
| 770 | property. For all subgroups `Y i` of the unitary groups over the fibres, let `Z` be their product, |
| 771 | read in the group over `T` through `S.toFibers`. Then the volume `F.groupMeasure Z` is `t` times the |
| 772 | product of the volumes `(F' i).groupMeasure (Y i)`. The mass integral, `F.massIntegral Z` = ∫ |
| 773 | |∫_Z χ_g(y x y⁻¹) dy|² dx, is `‖t.toReal‖ₑ ^ 2 * t` times the product of the mass integrals of the |
| 774 | `Y i`. |
| 775 | |
| 776 | This factor is `t ^ 3` for finite `t`. -/ |
| 777 | lemma IsFillingData.exists_massIntegral_pi_eq (h : S.IsFillingData T F) |
| 778 | (h' : ∀ i : ι, S.IsFillingData (placeFiber T blk i) (F' i)) : |
| 779 | ∃ t : ℝ≥0∞, ∀ Y : ∀ i : ι, Subgroup (S.latticeMiddle (LocProd (placeFiber T blk i))).G, |
| 780 | F.massIntegral ((Subgroup.pi .univ Y).comap (S.toFibers T blk)) = |
| 781 | ‖t.toReal‖ₑ ^ 2 * t * ∏ i : ι, (F' i).massIntegral (Y i) ∧ |
| 782 | F.groupMeasure ((Subgroup.pi .univ Y).comap (S.toFibers T blk)) = |
| 783 | t * ∏ i : ι, (F' i).groupMeasure (Y i) := by |
| 784 | have h_emb : MeasurableEmbedding (S.toFibers T blk) := measurableEmbedding_toFibers blk |
| 785 | -- The image of `F.groupMeasure` is right invariant, so a multiple of the product Haar measure. |
| 786 | have _ (i : ι) : SigmaFinite (F' i).groupMeasure := |
| 787 | (h' i).isHaarMeasure_groupMeasure.sigmaFinite |
| 788 | have _ : LocallyCompactSpace (∀ i : ι, (S.latticeMiddle (LocProd (placeFiber T blk i))).G) := |
| 789 | Pi.locallyCompactSpace_of_finite |
| 790 | have h_inv : (F.groupMeasure.map (S.toFibers T blk)).IsMulRightInvariant := |
| 791 | New.isMulRightInvariant_map (S.toFibers T blk).toMulHom h_emb.measurable |
| 792 | (toFibers_surjective blk) |
| 793 | obtain ⟨t, ht⟩ : ∃ t : ℝ≥0∞, |
| 794 | F.groupMeasure.map (S.toFibers T blk) = t • .pi fun i : ι ↦ (F' i).groupMeasure := |
| 795 | exists_eq_smul_haar _ h_inv |
| 796 | refine ⟨t, fun Y ↦ ⟨?_, ?_⟩⟩ |
| 797 | · -- The inner integral gives the factor `t`: transport along `S.toFibers T blk`, then Fubini. |
| 798 | let f (i : ι) (z : (S.latticeMiddle (LocProd (placeFiber T blk i))).G) : ℝ≥0∞ := |
| 799 | ‖∫ y in Y i, extendedBesselChar (F' i).levelUnit (y * z * y⁻¹) ∂(F' i).groupMeasure‖ₑ ^ 2 |
| 800 | -- The outer integral gives one more factor `t`: transport, then Tonelli. |
| 801 | calc F.massIntegral ((Subgroup.pi .univ Y).comap (S.toFibers T blk)) |
| 802 | _ = ∫⁻ x : (S.latticeMiddle (LocProd T)).G, |
| 803 | ‖t.toReal‖ₑ ^ 2 * ∏ i : ι, f i (S.toFibers T blk x i) ∂F.groupMeasure := by |
| 804 | simp only [PlaceData.massIntegral, h.setIntegral_comap_toFibers blk h' ht Y, f, mul_pow, |
| 805 | prod_pow, eNorm_eq_nnNorm, nnNorm_smul, nnNorm_prod, ENNReal.coe_mul, |
| 806 | ofNNReal_finsetProd] |
| 807 | _ = ‖t.toReal‖ₑ ^ 2 * ∫⁻ z, ∏ i : ι, f i (z i) ∂F.groupMeasure.map (S.toFibers T blk) := by |
| 808 | rw [lintegral_const_mul' _ _ (by simp), h_emb.lintegral_map] |
| 809 | _ = ‖t.toReal‖ₑ ^ 2 * t * ∏ i : ι, (F' i).massIntegral (Y i) := by |
| 810 | rw [ht, lintegral_smul_measure, TauCeti.lintegral_fintype_prod_eq_prod _ (by fun_prop), |
| 811 | smul_eq_mul, mul_assoc] |
| 812 | simp only [PlaceData.massIntegral, f] |
| 813 | · rw [coe_comap, coe_pi, ← h_emb.map_apply, ht, smul_apply, Measure.pi_pi, smul_eq_mul] |
| 814 | |
| 815 | /-- Let `F` be a filling datum at `T` and `F' i` a filling datum at each fibre of a map `blk` from |
| 816 | the places to a finite type, and let `ϰ` be the mass integral and `vol` the Haar volume. If on each |
| 817 | fibre `ϰ(Y i) vol(W i) c i ≤ ϰ(W i) vol(Y i)`, then the products of the groups, read in the group |
| 818 | over `T` through `S.toFibers`, satisfy `ϰ(∏ Y i) vol(∏ W i) (∏ c i) ≤ ϰ(∏ W i) vol(∏ Y i)`. -/ |
| 819 | lemma IsFillingData.massIntegral_pi_mul_le (h : S.IsFillingData T F) |
| 820 | (h' : ∀ i : ι, S.IsFillingData (placeFiber T blk i) (F' i)) |
| 821 | {Y W : ∀ i : ι, Subgroup (S.latticeMiddle (LocProd (placeFiber T blk i))).G} {c : ι → ℝ≥0∞} |
| 822 | (h_le : ∀ i : ι, (F' i).massIntegral (Y i) * (F' i).groupMeasure (W i) * c i ≤ |
| 823 | (F' i).massIntegral (W i) * (F' i).groupMeasure (Y i)) : |
| 824 | F.massIntegral ((Subgroup.pi .univ Y).comap (S.toFibers T blk)) * |
| 825 | F.groupMeasure ((Subgroup.pi .univ W).comap (S.toFibers T blk)) * ∏ i : ι, c i ≤ |
| 826 | F.massIntegral ((Subgroup.pi .univ W).comap (S.toFibers T blk)) * |
| 827 | F.groupMeasure ((Subgroup.pi .univ Y).comap (S.toFibers T blk)) := by |
| 828 | -- Mass integral and volume of a product are products, up to constants that agree on both sides. |
| 829 | obtain ⟨t, h_prod⟩ := h.exists_massIntegral_pi_eq blk h' |
| 830 | calc F.massIntegral ((Subgroup.pi .univ Y).comap (S.toFibers T blk)) * |
| 831 | F.groupMeasure ((Subgroup.pi .univ W).comap (S.toFibers T blk)) * ∏ i : ι, c i |
| 832 | _ = ‖t.toReal‖ₑ ^ 2 * t * t * ∏ i : ι, |
| 833 | (F' i).massIntegral (Y i) * (F' i).groupMeasure (W i) * c i := by |
| 834 | simp only [h_prod, prod_mul_distrib] |
| 835 | ring |
| 836 | _ ≤ ‖t.toReal‖ₑ ^ 2 * t * t * ∏ i : ι, |
| 837 | (F' i).massIntegral (W i) * (F' i).groupMeasure (Y i) := by |
| 838 | grw [prod_le_prod fun i _ ↦ h_le i] |
| 839 | _ = F.massIntegral ((Subgroup.pi .univ W).comap (S.toFibers T blk)) * |
| 840 | F.groupMeasure ((Subgroup.pi .univ Y).comap (S.toFibers T blk)) := by |
| 841 | simp only [h_prod, prod_mul_distrib] |
| 842 | ring |
| 843 | |
| 844 | end Measures |
| 845 | |
| 846 | /-! ### Several places -/ |
| 847 | |
| 848 | variable {E : Type} {𝔰 : Shape} [Field E] [CMType E] |
| 849 | |
| 850 | /-- Let `Sg` be a set of chosen places of the filling `S` above the first level prime. A place `w` |
| 851 | lies in the pair `{s, star s}` for at most one `s` of `Sg`; the index `o` is this `s`, or `none` if |
| 852 | there is none. -/ |
| 853 | theorem exists_option_eq_some_iff {S : Filling E 𝔰} (Sg : Finset (S.chosenPlaces 0)) |
| 854 | (w : FinPlace E) : |
| 855 | ∃ o : Option Sg, ∀ s : Sg, o = some s ↔ w = s ∨ star w = s := by |
| 856 | by_cases hw : ∃ s : Sg, w = s ∨ star w = s |
| 857 | · -- The conjugate of a chosen place is not chosen, so `s` is unique. |
| 858 | obtain ⟨(s : Sg), hs⟩ := hw |
| 859 | have h_not_conj (a b : S.chosenPlaces 0) : (b : FinPlace E) ≠ star (a : FinPlace E) := |
| 860 | ne_of_mem_of_not_mem b.prop (S.star_notMem_chosenPlaces a.prop) |
| 861 | have h_unique (s' : Sg) (hs' : w = s' ∨ star w = s') : s = s' := by |
| 862 | have h_place : (s : FinPlace E) = s' := by |
| 863 | obtain rfl | hs := hs |
| 864 | · exact hs'.resolve_right (h_not_conj s s').symm |
| 865 | · obtain rfl | hs' := hs' |
| 866 | · exact absurd hs.symm (h_not_conj s' s) |
| 867 | · exact hs.symm.trans hs' |
| 868 | exact Subtype.ext (Subtype.ext h_place) |
| 869 | refine ⟨some s, fun s' ↦ ⟨fun h_eq ↦ ?_, fun hs' ↦ congrArg some (h_unique s' hs')⟩⟩ |
| 870 | rwa [← Option.some_injective Sg h_eq] |
| 871 | · exact ⟨none, by simpa using hw⟩ |
| 872 | |
| 873 | /-- Let `S` be an admissible filling, `F` a filling datum at `T`, and let the inverse of the level |
| 874 | `S.ideleM` be integral off `T`. Let `Sg` be a set of chosen places above the first level prime |
| 875 | (index `0`) and let `d w = (ε, v)` prescribe, for each such place `w`, the frame vector with nonzero |
| 876 | coordinates `v` modulo `w` if `ε` is false and modulo its conjugate if `ε` is true; `S.fixer Sg d` |
| 877 | is the group that fixes these vectors for all `w` in `Sg`. Then some group `Z` between the |
| 878 | congruence subgroup `F.congruenceSubgroup` and the integral unitary group |
| 879 | `K = unitaryLevel P.integers 1 _` has two properties. (a) `Z` contains the `T`-component of every |
| 880 | integral element `k` whose reduction modulo the chosen places lies in `S.fixer Sg d`. (b) With |
| 881 | `ϰ = F.massIntegral` (the mass integral), `vol = F.groupMeasure` (a Haar measure) and `b = S.b`, |
| 882 | `ϰ(Z) vol(K) (b ^ (6 * 𝔰.k)) ^ #Sg ≤ ϰ(K) vol(Z)`. -/ |
| 883 | theorem IsFillingData.exists_intermediateGroup_places [WeilData E] {S : Filling E 𝔰} |
| 884 | [S.IsAdmissible] {T : Finset (FinPlace E)} [fT : T.StarStable] [P : IntegralPlace (LocProd T)] |
| 885 | {F : PlaceData (Fin (𝔰.k - (6 * 𝔰.ϱ + 13))) (S.latticeMiddle (LocProd T)) (𝔰.ϱ + 1 + 2 * 𝔰.ϱ + |
| 886 | 5)} |
| 887 | (h : S.IsFillingData T F) |
| 888 | (Sg : Finset (S.chosenPlaces 0)) (d : ∀ w : S.chosenPlaces 0, S.FrameVector w) |
| 889 | (hT : (↑S.ideleM⁻¹ : 𝔸f E) ∈ integralOff T) : |
| 890 | ∃ Z : F.IntermediateGroup, |
| 891 | -- (a) |
| 892 | (∀ k : S.latticeStabilizer, S.reduction k ∈ S.fixer Sg d → S.toPlaces T k ∈ Z.val) ∧ |
| 893 | -- (b) |
| 894 | F.massIntegral Z * |
| 895 | F.groupMeasure (unitaryLevel P.integers 1 (S.latticeMiddle (LocProd T)).splitGram) * |
| 896 | ENNReal.ofReal (S.b ^ (6 * 𝔰.k)) ^ #Sg ≤ |
| 897 | F.massIntegral (unitaryLevel P.integers 1 (S.latticeMiddle (LocProd T)).splitGram) * |
| 898 | F.groupMeasure Z := by |
| 899 | classical |
| 900 | -- Split `T` into the blocks `T ∩ {w, star w}`, `w ∈ Sg`, and the rest; |
| 901 | -- `IsFillingData.exists_intermediateGroup_one_place` gives a group on each block. The unitary |
| 902 | -- group over `T` is the product of those over the blocks; take the product group. |
| 903 | obtain ⟨blk, hblk⟩ : ∃ blk : FinPlace E → Option Sg, |
| 904 | ∀ (w : FinPlace E) (s : Sg), blk w = some s ↔ w = s ∨ star w = s := |
| 905 | Classical.skolem.1 (exists_option_eq_some_iff Sg) |
| 906 | have h_star (w : FinPlace E) : blk (star w) = blk w := |
| 907 | Option.ext fun s ↦ by simp [hblk, or_comm] |
| 908 | have _ (i : Option Sg) : (placeFiber T blk i).StarStable := |
| 909 | ⟨by simp +contextual [fT.out, h_star]⟩ |
| 910 | have h_places (i : Option Sg) : |
| 911 | ∀ w ∈ i, ∀ j : FinPlace E, j ∈ placeFiber T blk i ↔ j ∈ T ∧ (j = w ∨ star j = w) := by |
| 912 | rintro w rfl j |
| 913 | simp [hblk] |
| 914 | -- A filling datum `F' i` and a group `Z i` on each block. |
| 915 | choose P' F' h' using fun i : Option Sg ↦ S.exists_isFillingData (placeFiber T blk i) |
| 916 | let K' (i : Option Sg) : Subgroup (S.latticeMiddle (LocProd (placeFiber T blk i))).G := |
| 917 | unitaryLevel integers 1 (S.latticeMiddle (LocProd (placeFiber T blk i))).splitGram |
| 918 | let B : ℝ≥0∞ := ENNReal.ofReal (S.b ^ (6 * 𝔰.k)) |
| 919 | choose Z hZ_mem hZ_le using fun i ↦ |
| 920 | (h' i).exists_intermediateGroup_one_place Sg i d hT (h_places i) |
| 921 | -- `Q Y` is the product of the groups `Y i`, read in the group over `T`. |
| 922 | let Q (Y : ∀ i : Option Sg, Subgroup (S.latticeMiddle (LocProd (placeFiber T blk i))).G) : |
| 923 | Subgroup (S.latticeMiddle (LocProd T)).G := |
| 924 | (Subgroup.pi .univ Y).comap (S.toFibers T blk) |
| 925 | have hK : unitaryLevel integers 1 (S.latticeMiddle (LocProd T)).splitGram = Q K' := by |
| 926 | simp only [Q, K', unitaryLevel_eq_comap_toFibers blk, map_one] |
| 927 | have h_cong : F.congruenceSubgroup = Q fun i : Option Sg ↦ (F' i).congruenceSubgroup := by |
| 928 | simp only [Q, PlaceData.congruenceSubgroup, unitaryLevel_eq_comap_toFibers blk, |
| 929 | h.levelUnit_eq_map_evalFiber blk h'] |
| 930 | have h_between : Q (fun i : Option Sg ↦ Z i) ∈ |
| 931 | Set.Icc F.congruenceSubgroup (unitaryLevel integers 1 |
| 932 | (S.latticeMiddle (LocProd T)).splitGram) := by |
| 933 | rw [hK, h_cong] |
| 934 | exact ⟨fun x hx i hi ↦ (Z i).prop.left (hx i hi), fun x hx i hi ↦ (Z i).prop.right (hx i hi)⟩ |
| 935 | refine ⟨⟨Q fun i ↦ Z i, h_between⟩, fun k hk i _ ↦ ?_, ?_⟩ |
| 936 | · rw [toFibers_toPlaces] |
| 937 | exact hZ_mem i k hk |
| 938 | -- Multiply the inequalities of the blocks: those of `Sg` give one factor `B` each, the rest `1`. |
| 939 | have h_gain : ENNReal.ofReal (S.b ^ (6 * 𝔰.k)) ^ #Sg = |
| 940 | ∏ i : Option Sg, i.elim 1 fun _ ↦ B := by simp [B] |
| 941 | simp only [hK, h_gain] |
| 942 | exact h.massIntegral_pi_mul_le blk h' hZ_le |
| 943 | |
| 944 | end New.Filling |