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.Ring.IsFormallyReal |
| 4 | import Mathlib.Topology.UniformSpace.Uniformizable |
| 5 | import TauCeti.Analysis.Normed.Ring.Ultra |
| 6 | import TauCeti.NumberTheory.NumberField.Countable |
| 7 | public import Lib.SiegelWeil.OneVector.SiegelClassSum |
| 8 | public import New.Spanning.Frames.TopFloor |
| 9 | public import New.Spanning.MainTerm.FillingLevel |
| 10 | import New.Spanning.MainTerm.GlobalToLocal |
| 11 | import New.Spanning.Unfolding.Climbing |
| 12 | import New.Spanning.Unfolding.ReducedGroups |
| 13 | |
| 14 | /-! |
| 15 | # Siegel's formula as an upper bound, and domination of class sums by the density at the last entry |
| 16 | |
| 17 | Finite-place estimate of the filling theorem: global sums are bounded by integrals over the product |
| 18 | of the completions at a finite set `T` of places, stable under conjugation. |
| 19 | |
| 20 | * `New.Filling.adelicFrequency`, `New.Filling.localFrequency`: passage between skew-adjoint |
| 21 | frequencies at `T` and self-adjoint finite adeles, through multiplication by `-ϖ⁻¹` and `-ϖ`, |
| 22 | where `ϖ = S.deltaE` generates the different. |
| 23 | * `New.Filling.normDensity_indicator_eq_mul`: the density of a test function that is `Ψ` at `T` and |
| 24 | the indicator of the lattice off `T` splits into an integral of Gauss sums of the lattice and the |
| 25 | density of `Ψ` at `T`. |
| 26 | * `New.Filling.IsFillingData.enorm_normDensity_le_mul_lintegral_normFiberMeasure`: this density is |
| 27 | at most `1 + b⁻⁶` times the volume of the lattice times the integral of `Ψ` over the sphere of `β` |
| 28 | at `T`. |
| 29 | * `New.Filling.IsFillingData.siegel_sum_le_lintegral_sphere`: Siegel's formula bounds the sum of a |
| 30 | step function over rational points with last entry `t` by a constant times its integral over the |
| 31 | sphere of `t`. |
| 32 | * `New.Filling.IsFillingData.exists_step_sum_fiberPairing`: for any matrix `R`, the positive part of |
| 33 | the real part of the sum of the fiber pairings against `R` is, on the top quadric, the restriction |
| 34 | of a compactly supported invariant step function. |
| 35 | * `New.Filling.IsFillingData.sum_mul_norm_sum_cosetAmplitude_sq_le_lastEntryDensity`: the squared |
| 36 | norms of class sums with one last entry `t` are bounded by `(1 + b⁻⁶) * S.scaledSiegelConst` times |
| 37 | archimedean densities and densities at `T`, divided by the normalized mass. |
| 38 | |
| 39 | The `IsFillingData` results assume `S` admissible, `S.ideleM⁻¹` integral off `T` and `F` filling |
| 40 | data. Conventions: `Φ v` is the embedding of the CM type at `v`. The last entry of `γ` is the |
| 41 | product of the last frame vector with its image under `γ`. |
| 42 | |
| 43 | Notions from other files: |
| 44 | * `New.Floors.IntegralPlace`: A structure on `LocProd T`, the product of the completions at `T`: an |
| 45 | open compact self-dual subring `R` of volume one, a character `ψ`, a trace-one element `τ`, a skew |
| 46 | unit and the modulus `modulus`. |
| 47 | * `New.Filling.IsAdmissible`: The standing hypotheses: `sourceLevel` is the preimage of K(M), |
| 48 | `reduction` is onto, and size inequalities hold between b and ϖ, κ_v, N, `besselDegree`, the |
| 49 | second moments, the number of Bessel coordinates, an index and the mass. |
| 50 | * `New.Filling.latticeStabilizer`: The group `K` of integral points of the finite adelic unitary |
| 51 | group; `New.Floors.PlaceData.congruenceSubgroup` is the group `K(M)` at `T`, the kernel of |
| 52 | reduction modulo `M`. |
| 53 | |
| 54 | ## Relation to the literature |
| 55 | |
| 56 | See `New.Spanning.MainTerm.EnergyEstimate` for related work. |
| 57 | -/ |
| 58 | |
| 59 | @[expose] public section |
| 60 | |
| 61 | namespace New.Filling |
| 62 | |
| 63 | |
| 64 | open NumberField MeasureTheory Matrix ENNReal NNReal Fintype Filter Topology Floors FloorGroups Set |
| 65 | OpenAddSubgroup Finset Complex IntegralPlace CoordChange IsLargeLatticeData ComplexOrder |
| 66 | |
| 67 | section |
| 68 | |
| 69 | variable {E : Type} {𝔰 : Shape} [Field E] [CMType E] {S : Filling E 𝔰} |
| 70 | {T : Finset (FinPlace E)} [T.StarStable] |
| 71 | |
| 72 | section Factorisation |
| 73 | |
| 74 | variable (S T) in |
| 75 | /-- A skew frequency `b` at the places of `T`, as a self-adjoint finite adele: extend by zero and |
| 76 | multiply by `-ϖ⁻¹`, where `ϖ = S.deltaE` generates the different. -/ |
| 77 | noncomputable def adelicFrequency (b : skewAdjoint (LocProd T)) : selfAdjoint (𝔸f E) := |
| 78 | ⟨(-S.deltaE.val⁻¹ : E) * adeleOfLocal T b.val, by |
| 79 | simp [selfAdjoint.mem_iff, ← adeleOfLocal_star, skewAdjoint.star_val_eq, |
| 80 | ← coe_star_ringOfIntegers, S.star_deltaE]⟩ |
| 81 | |
| 82 | variable (S T) in |
| 83 | /-- The part at the places of `T` of a self-adjoint finite adele, multiplied by `-ϖ`, where `ϖ = |
| 84 | S.deltaE` generates the different. -/ |
| 85 | noncomputable def localFrequency (z : selfAdjoint (𝔸f E)) : skewAdjoint (LocProd T) := |
| 86 | ⟨evalPlaces T ((-S.deltaE.val : E) * z.val), by |
| 87 | simp [skewAdjoint.mem_iff, star_evalPlaces, ← coe_star_ringOfIntegers, S.star_deltaE]⟩ |
| 88 | |
| 89 | @[fun_prop] lemma continuous_adelicFrequency : Continuous (S.adelicFrequency T) := |
| 90 | .subtype_mk (by fun_prop) _ |
| 91 | |
| 92 | @[fun_prop] lemma continuous_localFrequency : Continuous (S.localFrequency T) := |
| 93 | .subtype_mk (by fun_prop) _ |
| 94 | |
| 95 | lemma adelicFrequency_add (b b' : skewAdjoint (LocProd T)) : |
| 96 | S.adelicFrequency T (b + b') = S.adelicFrequency T b + S.adelicFrequency T b' := |
| 97 | Subtype.ext (by simp [adelicFrequency, mul_add]) |
| 98 | |
| 99 | /-- `adelicFrequency` is a section of `localFrequency`, compatibly with translations. -/ |
| 100 | lemma localFrequency_adelicFrequency_add (b : skewAdjoint (LocProd T)) (z : selfAdjoint (𝔸f E)) : |
| 101 | S.localFrequency T (S.adelicFrequency T b + z) = b + S.localFrequency T z := by |
| 102 | ext1 |
| 103 | simp [localFrequency, adelicFrequency, mul_add, ← mul_assoc, ← map_mul (algebraMap E (𝔸f E))] |
| 104 | |
| 105 | /-- The difference of a self-adjoint adele `z` and `adelicFrequency (localFrequency z)` vanishes at |
| 106 | `T`, so it kills the adeles that vanish off `T`. -/ |
| 107 | lemma sub_adelicFrequency_mul_adeleOfLocal (z : selfAdjoint (𝔸f E)) (a : LocProd T) : |
| 108 | (z.val - S.adelicFrequency T (S.localFrequency T z)) * adeleOfLocal T a = 0 := by |
| 109 | have h_inv : ((-S.deltaE.val⁻¹ : E) : 𝔸f E) * (-S.deltaE.val : E) = 1 := by simp [← map_mul] |
| 110 | have h_eval : evalPlaces T (z.val - S.adelicFrequency T (S.localFrequency T z)) = 0 := by |
| 111 | simp only [adelicFrequency, localFrequency, map_sub, map_mul (evalPlaces T), |
| 112 | evalPlaces_adeleOfLocal, ← mul_assoc] |
| 113 | rw [← map_mul, h_inv, map_one, one_mul, sub_self] |
| 114 | rw [← adeleOfLocal_evalPlaces_mul, h_eval, zero_mul, map_zero] |
| 115 | |
| 116 | variable [P : IntegralPlace (LocProd T)] |
| 117 | |
| 118 | /-- Let `b` be skew in `LocProd T`, let `b̃ = S.adelicFrequency T b` be `-ϖ⁻¹ b` extended by zero, |
| 119 | and let `y` be a self-adjoint finite adele. Then `ψf E (b̃ y / 2) = P.ψ (τ b y_T)`, where `y_T` is |
| 120 | the part of `y` at `T` and `τ = P.element` has `τ + τ̄ = 1`. `P` is a place structure on `LocProd T` |
| 121 | whose character `P.ψ` is `x ↦ ψf E (-x / ϖ)` (`S.charOnPlaces T`). -/ |
| 122 | lemma ψf_adelicFrequency_mul (hψ : P.ψ = S.charOnPlaces T) (b : skewAdjoint (LocProd T)) {y : 𝔸f E} |
| 123 | (hy : star y = y) : |
| 124 | (ψf E ((2⁻¹ : E) * (S.adelicFrequency T b * y)) : ℂ) = P.ψ |
| 125 | (P.element * b * evalPlaces T y) := by |
| 126 | let x : 𝔸f E := (-S.deltaE.val⁻¹ : E) * adeleOfLocal T (P.element * b * evalPlaces T y) |
| 127 | have h_local : P.element * b * evalPlaces T y - star (P.element * b * evalPlaces T y) = |
| 128 | evalPlaces T y * b := by |
| 129 | rw [star_mul', star_mul', star_evalPlaces, hy, skewAdjoint.star_val_eq] |
| 130 | linear_combination (evalPlaces T y * b) * P.element_add_star |
| 131 | have h_trace : x + star x = S.adelicFrequency T b * y := by |
| 132 | rw [star_mul', star_neg_inv_deltaE, ← adeleOfLocal_star, neg_mul, ← sub_eq_add_neg, ← mul_sub, |
| 133 | ← map_sub, h_local, adeleOfLocal_evalPlaces_mul, adelicFrequency, mul_assoc, mul_comm y] |
| 134 | rw [← h_trace, ψf_inv_two_mul_add_star, hψ, charOnPlaces_apply_eq_ψf] |
| 135 | |
| 136 | /-- The phase `ψf E (ζ (x* x - β) / 2)` that detects the quadric `x* x = β` is a product of a phase |
| 137 | off `T` and a phase at `T`. The frequency `ζ` is the sum of `S.adelicFrequency T b` and of a |
| 138 | self-adjoint adele `z` for which `S.localFrequency T z` is integral. The vector `x` is the sum of a |
| 139 | vector `y` at `T`, extended by zero (`adeleOfLocal`), and of an adelic vector `w` integral at `T`. |
| 140 | `P` is a place structure on `LocProd T` whose character `P.ψ` is `x ↦ ψf E (-x / ϖ)` |
| 141 | (`S.charOnPlaces T`). -/ |
| 142 | lemma ψf_quadric_eq_mul (hψ : P.ψ = S.charOnPlaces T) {κ : Type} [Fintype κ] {β : 𝔸f E} |
| 143 | (hβ : star β = β) (b : skewAdjoint (LocProd T)) {z : selfAdjoint (𝔸f E)} |
| 144 | (hz : (S.localFrequency T z : LocProd T) ∈ P.integers) (y : κ → LocProd T) {w : κ → 𝔸f E} |
| 145 | (hw : evalPlaces T ∘ w ∈ intVectors P.integers κ) : |
| 146 | let x : κ → 𝔸f E := adeleOfLocal T ∘ y + w |
| 147 | let y' : κ → LocProd T := y + evalPlaces T ∘ w |
| 148 | (ψf E ((2⁻¹ : E) * ((S.adelicFrequency T b + z).val * (star x ⬝ᵥ x - β))) : ℂ) = |
| 149 | ψf E ((2⁻¹ : E) * ((z : 𝔸f E) * (star w ⬝ᵥ w - (β - adeleOfLocal T (evalPlaces T β))))) * |
| 150 | P.ψ (P.element * (b + S.localFrequency T z).val * (star y' ⬝ᵥ y' - evalPlaces T β)) := by |
| 151 | intro x y' |
| 152 | set β' : 𝔸f E := β - adeleOfLocal T (evalPlaces T β) |
| 153 | set b' : skewAdjoint (LocProd T) := S.localFrequency T z |
| 154 | have hβ' : star β' = β' := by simp [β', ← adeleOfLocal_star, hβ] |
| 155 | have norm_star (v : κ → 𝔸f E) : star (star v ⬝ᵥ v) = star v ⬝ᵥ v := (star_dotProduct v v).symm |
| 156 | have eval_x : evalPlaces T (star x ⬝ᵥ x - β) = star y' ⬝ᵥ y' - evalPlaces T β := by |
| 157 | simp [x, y', dotProduct, ← star_evalPlaces] |
| 158 | -- the values of the form at `x` and `w` differ only at `T` |
| 159 | have h_diff : star x ⬝ᵥ x - β - (star w ⬝ᵥ w - β') = adeleOfLocal T |
| 160 | (star y ⬝ᵥ y' + star (evalPlaces T ∘ w) ⬝ᵥ y - evalPlaces T β) := by |
| 161 | simp [x, y', β', dotProduct, Finset.sum_add_distrib, mul_add, add_mul, adeleOfLocal_star, |
| 162 | adeleOfLocal_evalPlaces_mul, mul_comm _ (evalPlaces T _), mul_comm (w _)] |
| 163 | ring |
| 164 | have h_arg : (S.adelicFrequency T b + z).val * (star x ⬝ᵥ x - β) = |
| 165 | z * (star w ⬝ᵥ w - β') + S.adelicFrequency T (b + b') * (star x ⬝ᵥ x - β) - |
| 166 | S.adelicFrequency T b' * (star w ⬝ᵥ w - β') := by |
| 167 | rw [adelicFrequency_add, AddSubgroup.coe_add, AddSubgroup.coe_add] |
| 168 | linear_combination (z.val - S.adelicFrequency T b') * h_diff + |
| 169 | S.sub_adelicFrequency_mul_adeleOfLocal (T := T) z _ |
| 170 | -- the last term is integral at `T`, so its phase is one |
| 171 | have h_int : P.ψ (P.element * b' * evalPlaces T (star w ⬝ᵥ w - β')) = 1 := by |
| 172 | have h_norm : evalPlaces T (star w ⬝ᵥ w - β') ∈ P.integers := by |
| 173 | simpa [β', dotProduct, ← star_evalPlaces] using |
| 174 | sum_mem fun i _ ↦ mul_mem (P.isAdelic.star_mem (hw i)) (hw i) |
| 175 | obtain ⟨tau_mem : P.element ∈ P.integers, -⟩ := P.data_normalised |
| 176 | exact (P.self_dual _).2 h_norm _ (mul_mem tau_mem hz) |
| 177 | rw [h_arg, mul_sub, mul_add, AddChar.map_sub_eq_div, AddChar.map_add_eq_mul, Circle.coe_div, |
| 178 | Circle.coe_mul, ψf_adelicFrequency_mul hψ _ (by simp [norm_star, hβ]), |
| 179 | ψf_adelicFrequency_mul hψ _ (by simp [norm_star, hβ']), h_int, div_one, eval_x] |
| 180 | |
| 181 | /-- Let `f` be the function on adelic vectors that is `Ψ` at `T` times the indicator of the vectors |
| 182 | integral off `T`, and let `β` be hermitian. The density `normDensity f β = ∫ z, ∫ x, f x * ψf E (z |
| 183 | (x* x - β) / 2)` is a product of two factors. The first is the integral of the Gauss sums of the |
| 184 | standard lattice over the self-adjoint `z` for which `S.localFrequency T z`, the part of `-ϖ z` at |
| 185 | `T`, is integral. The second is the density of `Ψ` at `T`, with `P.skewMeasure` the measure on skew |
| 186 | elements and `P.element` of trace `1`. `P` is a place structure on `LocProd T` whose character `P.ψ` |
| 187 | is `x ↦ ψf E (-x / ϖ)` (`S.charOnPlaces T`). |
| 188 | |
| 189 | This is a two-factor form of the factorization of the finite adelic density into local densities, |
| 190 | as in Siegel–Weil theory: the density at `T` and one integral of Gauss sums, not split over the |
| 191 | remaining places. -/ |
| 192 | lemma normDensity_indicator_eq_mul (hψ : P.ψ = S.charOnPlaces T) {κ : Type} [Fintype κ] |
| 193 | {Ψ : (κ → LocProd T) → ℝ≥0} (hΨ : Continuous Ψ) {β : 𝔸f E} (hβ : star β = β) : |
| 194 | normDensity ((intVectors (integralOff T) κ : Set (κ → 𝔸f E)).indicator |
| 195 | fun x : κ → 𝔸f E ↦ Ψ (evalPlaces T ∘ x)) β = |
| 196 | (∫ z : selfAdjoint (𝔸f E) in |
| 197 | {z : selfAdjoint (𝔸f E) | (S.localFrequency T z : LocProd T) ∈ P.integers}, |
| 198 | ∫ w : κ → 𝔸f E in (stdLattice E κ : Set (κ → 𝔸f E)), |
| 199 | (ψf E ((2⁻¹ : E) * |
| 200 | ((z : 𝔸f E) * (star w ⬝ᵥ w - (β - adeleOfLocal T (evalPlaces T β))))) : ℂ)) * |
| 201 | ∫ b : skewAdjoint (LocProd T), ∫ y : κ → LocProd T, |
| 202 | Ψ y * P.ψ (P.element * (b : LocProd T) * (star y ⬝ᵥ y - evalPlaces T β)) |
| 203 | ∂volume ∂P.skewMeasure := by |
| 204 | -- Split first the frequency and then the vector into their parts at `T` and off `T`. |
| 205 | let L : Set (κ → 𝔸f E) := intVectors (integralOff T) κ |
| 206 | have L_meas : MeasurableSet L := (isOpen_intVectors (isOpen_integralOff T)).measurableSet |
| 207 | obtain ⟨lat_open, -, lat_vol⟩ := P.isOpen_isCompact_volume_intVectors (ι := κ) |
| 208 | obtain ⟨-, -, -, -, skew_vol⟩ := P.data_normalised |
| 209 | have lattice_eq : (stdLattice E κ : Set (κ → 𝔸f E)) = |
| 210 | (evalPlaces T ∘ ·) ⁻¹' intVectors P.integers κ ∩ L := by |
| 211 | ext |
| 212 | simp [coe_stdLattice, L, intVectors, mem_Ô_iff T, forall_and] |
| 213 | -- the frequency: `adelicFrequency` is a section of `localFrequency` |
| 214 | rw [normDensity] |
| 215 | refine integral_eq_mul_of_section P.skewMeasure (by fun_prop) (by fun_prop) |
| 216 | localFrequency_adelicFrequency_add |
| 217 | (SemilocalField.isOpen_O.preimage continuous_subtypeVal).measurableSet skew_vol fun b z hz ↦ ?_ |
| 218 | rw [integral_withDensity_eq_integral_smul (.indicator (by fun_prop) L_meas), lattice_eq, |
| 219 | ← setIntegral_indicator L_meas] |
| 220 | -- the vector: `adeleOfLocal T` is a section of `evalPlaces T` |
| 221 | have h_section (y : κ → LocProd T) (x : κ → 𝔸f E) : |
| 222 | evalPlaces T ∘ (adeleOfLocal T ∘ y + x) = y + evalPlaces T ∘ x := by simp [funext_iff] |
| 223 | refine integral_eq_mul_of_section volume (ι := (adeleOfLocal T ∘ ·)) (by fun_prop) (by fun_prop) |
| 224 | h_section lat_open.measurableSet lat_vol fun y w hw ↦ ?_ |
| 225 | have mem_L : adeleOfLocal T ∘ y + w ∈ L ↔ w ∈ L := |
| 226 | forall_congr' fun i ↦ add_mem_cancel_left (adeleOfLocal_mem_integralOff T (y i)) |
| 227 | rw [ψf_quadric_eq_mul hψ hβ b hz y hw] |
| 228 | by_cases hw' : w ∈ L |
| 229 | · rw [Set.indicator_of_mem (mem_L.2 hw'), Set.indicator_of_mem hw', h_section, NNReal.smul_def, |
| 230 | real_smul, mul_left_comm] |
| 231 | · rw [Set.indicator_of_notMem (mem_L.not.2 hw'), Set.indicator_of_notMem hw', zero_smul, zero_mul] |
| 232 | |
| 233 | end Factorisation |
| 234 | |
| 235 | variable (S T) in |
| 236 | /-- The finite idele `π = S.piN`, with `π π̄ = N`, read at the places of `T`. -/ |
| 237 | noncomputable abbrev piNAt : (LocProd T)ˣ := S.piN.map (evalPlaces T) |
| 238 | |
| 239 | lemma piNAt_mul_star : S.piNAt T * star (S.piNAt T).val = (S.N : LocProd T) := by |
| 240 | simpa [star_evalPlaces] using congrArg (evalPlaces T) S.piN_mul_star |
| 241 | |
| 242 | end |
| 243 | |
| 244 | variable {E : Type} {𝔰 : Shape} [Field E] [CMType E] {S : Filling E 𝔰} |
| 245 | {T : Finset (FinPlace E)} [T.StarStable] |
| 246 | |
| 247 | /-- Let the inverse of the level `M = S.ideleM` be integral off `T`, and let `F` be a filling datum |
| 248 | at `T`: a large lattice datum of modulus `M` for the place structure `P`, whose character is that of |
| 249 | `S`. Let `K(M) = F.congruenceSubgroup` be the group of integral isometries at `T` of the form |
| 250 | `S.latticeMiddle` congruent to `1` modulo `M`, let `Z` be a group between `K(M)` and the integral |
| 251 | isometries, and let `Z.Cosets` be the cosets of `K(M)` in `Z`. Write `μ = F.groupMeasure` for the |
| 252 | measure of the unitary group at `T` and `μ_H = F.measureH` for that of `H = besselH`, the fixer of |
| 253 | all basis vectors outside the definite part `X₀`. Then there is a real `D > 0` with two properties. |
| 254 | The constant `S.scaledSiegelConst` is `D` times the number of classes times the constant |
| 255 | `S.siegelConst` of Siegel's formula. The normalized mass |
| 256 | `Z.massRatio = μ Z * μ K(M) / F.unipotentMass ^ 2`, where `F.unipotentMass` is the product of the |
| 257 | floor volumes below `ϱ`, is at most `μ_H K(M) * (μ K(M) ^ 2 * card Z.Cosets) * D`. -/ |
| 258 | lemma IsFillingData.exists_scaledSiegelConst_eq_and_massRatio_le |
| 259 | [Fact (↑S.ideleM⁻¹ ∈ integralOff T)] [P : IntegralPlace (LocProd T)] |
| 260 | {F : PlaceData (Fin (𝔰.k - (6 * 𝔰.ϱ + 13))) (S.latticeMiddle (LocProd T)) (𝔰.ϱ + 1 + 2 * 𝔰.ϱ + |
| 261 | 5)} |
| 262 | (hF : S.IsFillingData T F) (Z : F.IntermediateGroup) : |
| 263 | ∃ D : ℝ, |
| 264 | 0 < D ∧ |
| 265 | S.scaledSiegelConst = D * Fintype.card S.Classes * S.siegelConst ∧ |
| 266 | Z.massRatio ≤ F.measureH F.congruenceSubgroup * |
| 267 | (F.groupMeasure F.congruenceSubgroup ^ 2 * Fintype.card Z.Cosets) * ENNReal.ofReal D := by |
| 268 | -- In `Z.massRatio = F.groupMeasure Z * F.groupMeasure F.congruenceSubgroup / F.unipotentMass ^ 2` |
| 269 | -- cover `Z` by the cosets of `F.congruenceSubgroup` and use |
| 270 | -- `S.unipotentOrder * F.unipotentMass = 1`. Here `D = card (reducedImage besselS) * |
| 271 | -- S.unipotentOrder = card (reducedImage besselH) * S.unipotentOrder ^ 2`. |
| 272 | refine ⟨Nat.card (S.reducedImage besselS) * S.unipotentOrder, ?_, rfl, div_le_of_le_mul ?_⟩ |
| 273 | · have hM : 0 < S.M := two_pos.trans_le two_le_M |
| 274 | have h_card : 0 < Nat.card (S.reducedImage besselS) := Nat.card_pos |
| 275 | positivity |
| 276 | -- for `F.measureH`, the group `F.congruenceSubgroup` has index `card (reducedImage besselH)` in |
| 277 | -- the integral points |
| 278 | obtain ⟨h_carried : ∀ᵐ z ∂F.measureH, z ∈ besselH, |
| 279 | h_invariant : ∀ s ∈ besselH, F.measureH ∗ₘ .dirac s = F.measureH, -⟩ := |
| 280 | F.measureH_mem_and_invariant_and_le_one |
| 281 | obtain ⟨-, h_box : F.boxSet = unitaryLevel P.integers 1 (S.latticeMiddle (LocProd T)).splitGram, |
| 282 | h_box_mass : F.measureH F.boxSet = 1, -⟩ := hF.volume_le_and_boxSet_closePairs_positions_eq |
| 283 | have h_lift : ∀ᵐ z ∂F.measureH, ∃ x ∈ besselH, S.toPlaces T x = z ∧ S.IsIntegralOff T x := by |
| 284 | filter_upwards [h_carried] with z hz |
| 285 | obtain ⟨x, h_eq, h_off, -, h_mem⟩ := exists_isIntegralOff_toPlaces_eq z |
| 286 | exact ⟨x, h_mem hz, h_eq, h_off⟩ |
| 287 | have index : Nat.card (S.reducedImage besselH) * F.measureH F.congruenceSubgroup = 1 := by |
| 288 | rw [← h_box_mass, h_box] |
| 289 | exact hF.card_reducedImage_mul_measure_congruenceSubgroup_eq h_lift fun x hx ↦ |
| 290 | h_invariant _ (hx.map_mem_agreeWithOneOn _) |
| 291 | have cover : (Z.val : Set (U (S.latticeMiddle (LocProd T)).splitGram)) ⊆ |
| 292 | ⋃ d : Z.Cosets, (· * d.out.val⁻¹) ⁻¹' F.congruenceSubgroup := |
| 293 | fun y hy ↦ Set.mem_iUnion.2 ((Z.exists_forall_mul_inv_mem_congruenceSubgroup_iff_eq hy).imp |
| 294 | fun d hd ↦ (hd d).2 rfl) |
| 295 | have h_Z : F.groupMeasure Z ≤ Fintype.card Z.Cosets * F.groupMeasure F.congruenceSubgroup := by |
| 296 | grw [cover, measure_iUnion_fintype_le] |
| 297 | simp |
| 298 | calc F.groupMeasure Z * F.groupMeasure F.congruenceSubgroup |
| 299 | _ ≤ Fintype.card Z.Cosets * F.groupMeasure F.congruenceSubgroup * F.groupMeasure |
| 300 | F.congruenceSubgroup := by |
| 301 | gcongr |
| 302 | _ = Nat.card (S.reducedImage besselH) * F.measureH F.congruenceSubgroup * |
| 303 | (F.groupMeasure F.congruenceSubgroup ^ 2 * Fintype.card Z.Cosets) * |
| 304 | (S.unipotentOrder * F.unipotentMass) ^ 2 := by |
| 305 | rw [index, hF.unipotentOrder_mul_unipotentMass_eq_one] |
| 306 | ring |
| 307 | _ = F.measureH F.congruenceSubgroup * |
| 308 | (F.groupMeasure F.congruenceSubgroup ^ 2 * Fintype.card Z.Cosets) * |
| 309 | ENNReal.ofReal (Nat.card (S.reducedImage besselS) * S.unipotentOrder) * |
| 310 | F.unipotentMass ^ 2 := by |
| 311 | rw [← Nat.cast_mul, ENNReal.ofReal_natCast, card_reducedImage_besselS] |
| 312 | push_cast |
| 313 | ring |
| 314 | |
| 315 | variable [ok : S.IsAdmissible] [Fact (↑S.ideleM⁻¹ ∈ integralOff T)] |
| 316 | |
| 317 | omit [S.IsAdmissible] [Fact (↑S.ideleM⁻¹ ∈ integralOff T)] in |
| 318 | /-- Let `N⁻¹` be integral off `T`, for the prime `N = S.N`. Let `β = (t t̄ - N²) / N` be positive |
| 319 | under the embeddings `Φ v` of the CM type, and let `C` be the constant of Siegel's formula in rank |
| 320 | `k = card 𝔰.κ` at `β`; its first factor `classSum stdRatPoints S.sourceLevel 1` is the mass of the |
| 321 | set `S.Classes` of double cosets of the level `S.sourceLevel` in the definite unitary group. Let `u` |
| 322 | be a unit at `T` with `u ū = N`, and `P.modulus u` its modulus. Then `‖C‖` times `1 + S.b⁻⁶`, the |
| 323 | volume `volÔ E ^ k` of the standard lattice and `P.modulus u` is |
| 324 | `(1 + S.b⁻⁶) * card S.Classes * S.siegelConst` times `(∏ v, (|t|_v² - N²)) ^ (k - 1)`. Here `S.b` is |
| 325 | the size parameter of `S` and `S.siegelConst = (π^k / ((k - 1)! N^k))^f |disc E|^(1/4) (volÔ E)^k`, |
| 326 | with `f` the number of infinite places. -/ |
| 327 | lemma siegel_constant_eq (hT_N : (S.N : E)⁻¹ ∈ ratIntegralOff T) |
| 328 | [P : IntegralPlace (LocProd T)] {t : E} {u : (LocProd T)ˣ} (hu : u * star u.val = S.N) |
| 329 | (hβ_pos : ∀ v : InfinitePlace E, 0 < (Φ v ((t * star t - S.N ^ 2) / S.N)).re) {C : ℂ} |
| 330 | (hC : (classSum stdRatPoints S.sourceLevel 1 * √√|NumberField.discr E| * |
| 331 | ∏ v : InfinitePlace E, Real.pi ^ card 𝔰.κ / (card 𝔰.κ - 1).factorial * |
| 332 | (Φ v ((t * star t - S.N ^ 2) / S.N)).re ^ (card 𝔰.κ - 1) : ℝ) = C) : |
| 333 | ‖C‖ₑ * (.ofReal (1 + S.b⁻¹ ^ 6) * volÔ E ^ 𝔰.k) * P.modulus u = |
| 334 | .ofReal ((1 + S.b⁻¹ ^ 6) * card S.Classes * S.siegelConst * |
| 335 | (∏ v : InfinitePlace E, (‖Φ v t‖ ^ 2 - S.N ^ 2)) ^ (𝔰.k - 1)) := by |
| 336 | have hN₀ : 0 < S.N := S.N_prime.pos |
| 337 | obtain ⟨d, h_rank : 1000 * (2 * 𝔰.ϱ + 2) + d = 𝔰.k⟩ := S.thousand_mul_le_k.dest |
| 338 | -- The product formula for `N = u ū` gives `P.modulus u` as a power of `N⁻¹`. |
| 339 | have h_formula : P.modulus (evalPlaces T ((S.N : E) : 𝔸f E)) ^ (2⁻¹ : ℝ) = |
| 340 | (∏ v : InfinitePlace E, ‖Φ v (S.N : E)‖ₑ)⁻¹ := |
| 341 | P.modulus_evalPlaces_rpow_half (x := .mk0 _ (by simp [Nat.Prime.ne_zero])) ⟨by simp, hT_N⟩ |
| 342 | have h_md : P.modulus u.val = (‖(S.N : ℂ)‖ₑ ^ card (InfinitePlace E))⁻¹ := by |
| 343 | simpa [← hu, ← sq, ← ENNReal.rpow_natCast_mul] using h_formula |
| 344 | -- both sides are finite, so they are compared as real numbers |
| 345 | have h_finite : ‖C‖ₑ * (.ofReal (1 + S.b⁻¹ ^ 6) * volÔ E ^ 𝔰.k) * P.modulus u ≠ ∞ := by |
| 346 | simp [mul_eq_top] |
| 347 | refine (ofReal_toReal h_finite).symm.trans (congrArg _ ?_) |
| 348 | set β : E := (t * star t - S.N ^ 2) / S.N |
| 349 | rw [h_md, ← hC] |
| 350 | -- evaluate the class sum of `1`, then expand `S.siegelConst` and `β` |
| 351 | simp (disch := positivity) [classSum_sourceLevel_eq_sum, abs_of_nonneg, abs_of_pos (hβ_pos _), |
| 352 | prod_mul_distrib] |
| 353 | simp [siegelConst, β, mul_conj', sq, div_pow, ← h_rank, mul_add, Finset.prod_pow] |
| 354 | field |
| 355 | |
| 356 | section Level |
| 357 | |
| 358 | variable [P : IntegralPlace (LocProd T)] |
| 359 | {F : PlaceData (Fin (𝔰.k - (6 * 𝔰.ϱ + 13))) (S.latticeMiddle (LocProd T)) (𝔰.ϱ + 1 + 2 * 𝔰.ϱ + 5)} |
| 360 | |
| 361 | omit [IntegralPlace (LocProd T)] in |
| 362 | /-- Let `Ψ` be a function of compact support on the vectors of the whole space over the product |
| 363 | `LocProd T` of the completions at `T`. For `x` in the definite part `X₀` (basis `𝔰.κ`) let |
| 364 | `vectorOfLastEntry π τ x` be `x - (π π̄)⁻¹ τ z` in the basis `besselLatticeBasis 𝔰 π`, with `z` the |
| 365 | last frame vector. Then the function on adelic vectors `y` of `X₀` that is |
| 366 | `Ψ (vectorOfLastEntry π τ y_T)`, with `y_T` the part of `y` at `T`, times the indicator of the |
| 367 | vectors integral off `T` has compact support. -/ |
| 368 | lemma hasCompactSupport_testFunction {Ψ : (𝔰.BesselIndex → LocProd T) → ℝ≥0} |
| 369 | (hΨ : HasCompactSupport Ψ) (π : (LocProd T)ˣ) (τ : LocProd T) : |
| 370 | HasCompactSupport ((intVectors (integralOff T) 𝔰.κ : Set (𝔰.κ → 𝔸f E)).indicator |
| 371 | fun y : 𝔰.κ → 𝔸f E ↦ Ψ (vectorOfLastEntry π τ (evalPlaces T ∘ y))) := by |
| 372 | -- A vector in the support is an integral vector plus the extension by zero of its part at |
| 373 | -- `T`, and that part is read off a point of the support of `Ψ`. |
| 374 | let part (e : 𝔰.BesselIndex → LocProd T) (i : 𝔰.κ) : 𝔸f E := |
| 375 | adeleOfLocal T (((besselLatticeBasis 𝔰 π).val *ᵥ e) (𝔰.indexX₀ i)) |
| 376 | refine .of_support_subset_isCompact |
| 377 | ((hΨ.image (f := part) (by fun_prop)).add stdLattice.isCompact_stdLattice) ?_ |
| 378 | rw [support_indicator] |
| 379 | rintro y ⟨hy_int, hy_supp⟩ |
| 380 | let e : 𝔰.BesselIndex → LocProd T := vectorOfLastEntry π τ (evalPlaces T ∘ y) |
| 381 | have h_int : ∀ i : 𝔰.κ, (y - part e) i ∈ Ô E := fun i ↦ by |
| 382 | simpa [e, part, vectorOfLastEntry, sub_adeleOfLocal_mem_iff] using hy_int i |
| 383 | exact ⟨part e, ⟨e, subset_closure hy_supp, rfl⟩, y - part e, h_int, add_sub_cancel ..⟩ |
| 384 | |
| 385 | /-- Let the inverse of the level `M = S.ideleM` be integral off `T`, and let `F` be a filling datum |
| 386 | at `T`: a large lattice datum of modulus `M` for the place structure `P`, whose character is that of |
| 387 | `S`. Let `f` be the function on adelic vectors `x` of `X₀` that is `Ψ (x - N⁻¹ t z)` at `T` |
| 388 | (`vectorOfLastEntry`, for `N = π π̄`, `π = S.piN` and a rational `t`) times the indicator of the |
| 389 | vectors integral off `T`. If `Ψ` is invariant under `besselH ⊓ F.congruenceSubgroup`, then `f` is |
| 390 | invariant under the level `S.sourceLevel` of the finite adelic unitary group `Gf E 𝔰.κ` of `X₀`. -/ |
| 391 | lemma IsFillingData.testFunction_mulVec (hF : S.IsFillingData T F) |
| 392 | {Ψ : (𝔰.BesselIndex → LocProd T) → ℝ≥0} |
| 393 | (hΨ : ∀ k ∈ besselH ⊓ F.congruenceSubgroup, ∀ x : 𝔰.BesselIndex → LocProd T, |
| 394 | Ψ (k.val.val *ᵥ x) = Ψ x) |
| 395 | (t : E) {k : Gf E 𝔰.κ} (hk : k ∈ S.sourceLevel) (y : 𝔰.κ → 𝔸f E) : |
| 396 | let f : (𝔰.κ → 𝔸f E) → ℝ≥0 := (intVectors (integralOff T) 𝔰.κ : Set (𝔰.κ → 𝔸f E)).indicator |
| 397 | fun x : 𝔰.κ → 𝔸f E ↦ Ψ (vectorOfLastEntry (S.piN.map (evalPlaces T)) (evalPlaces T t) |
| 398 | (evalPlaces T ∘ x)) |
| 399 | f ((k : Matrix 𝔰.κ 𝔰.κ (𝔸f E)) *ᵥ y) = f y := by |
| 400 | classical |
| 401 | have h_int : k.val ∈ intGL 𝔰.κ (integralOff T) := by |
| 402 | have h_full : k.val ∈ intGL 𝔰.κ (Ô E) := S.isLevel_sourceLevel.le hk |
| 403 | grind [mem_intGL, mem_Ô_iff T] |
| 404 | -- at `T` the matrix `k` acts on the vectors with last entry `t` as an element `k'` of |
| 405 | -- `F.congruenceSubgroup` |
| 406 | let k' : U (S.latticeMiddle (LocProd T)).splitGram := S.toPlaces T (S.inclHFin k) |
| 407 | have hk' : k' ∈ besselH ⊓ F.congruenceSubgroup := |
| 408 | ⟨(inclHFin_mem_besselH k).map_mem_agreeWithOneOn _, |
| 409 | (hF.mem_principalLevel_iff.mp (ok.sourceLevel_eq.le hk)).2⟩ |
| 410 | let tail (x : 𝔰.κ → 𝔸f E) : 𝔰.BesselIndex → LocProd T := |
| 411 | vectorOfLastEntry (S.piN.map (evalPlaces T)) (evalPlaces T t) (evalPlaces T ∘ x) |
| 412 | have h_tail : tail (k.val.val *ᵥ y) = k'.val.val *ᵥ tail y := by |
| 413 | have h_map : k'.val.val = (S.inclHFin k).val.val.map (evalPlaces T) := rfl |
| 414 | ext1 |
| 415 | simp only [tail, vectorOfLastEntry_evalPlaces, h_map, ← RingHom.map_mulVec] |
| 416 | simp [vectorOfLastEntry, inclHFin, toLatticeBasis, ← mulVec_mulVec, |
| 417 | mulVec_mulVec _ (besselLatticeBasis ..).val, toBesselH, fromBlocks_mulVec] |
| 418 | exact if_congr (mulVec_mem_intVectors_iff h_int) ((congrArg Ψ h_tail).trans (hΨ k' hk' _)) rfl |
| 419 | |
| 420 | omit [S.IsAdmissible] [Fact (↑S.ideleM⁻¹ ∈ integralOff T)] in |
| 421 | /-- Let `M = S.ideleM` be the level, and let `F` be a filling datum at `T`: a large lattice datum of |
| 422 | modulus `M` for the place structure `P`, whose character is that of `S`. Let `Ψ ≥ 0` be continuous |
| 423 | of compact support on the vectors of rank `k = card 𝔰.κ` over the product `LocProd T` of the |
| 424 | completions at `T`, and let `β` be hermitian. Let `f` be `Ψ` at `T` times the indicator of the |
| 425 | vectors integral off `T`. The density `normDensity f β = ∫ z, ∫ x, f x * ψf E (z (x* x - β) / 2)` |
| 426 | has norm at most `1 + S.b⁻⁶` times the volume `volÔ E ^ k` of the standard lattice times the |
| 427 | integral of `Ψ` over the sphere `y* y = β` at `T`. The sphere carries the fiber measure |
| 428 | `P.normFiberMeasure` with index `δβ`, the product of `δ = P.skewUnit` and the part of `β` at `T`. |
| 429 | |
| 430 | This is an upper bound form of the factorization into local densities in Siegel–Weil theory: the |
| 431 | factor at `T` is kept, and the remaining factor is only bounded, by `(1 + S.b⁻⁶) volÔ E ^ k`. -/ |
| 432 | lemma IsFillingData.enorm_normDensity_le_mul_lintegral_normFiberMeasure |
| 433 | (hF : S.IsFillingData T F) |
| 434 | {Ψ : (𝔰.κ → LocProd T) → ℝ≥0} (hΨ : Continuous Ψ) (h_supp : HasCompactSupport Ψ) {β : 𝔸f E} |
| 435 | (hβ : star β = β) {δβ : skewAdjoint (LocProd T)} |
| 436 | (hδβ : P.skewUnit⁻¹.val * δβ = evalPlaces T β) : |
| 437 | ‖normDensity ((intVectors (integralOff T) 𝔰.κ : Set (𝔰.κ → 𝔸f E)).indicator |
| 438 | fun x : 𝔰.κ → 𝔸f E ↦ Ψ (evalPlaces T ∘ x)) β‖ₑ ≤ |
| 439 | .ofReal (1 + S.b⁻¹ ^ 6) * volÔ E ^ 𝔰.k * |
| 440 | ∫⁻ y : 𝔰.κ → LocProd T, Ψ y ∂P.normFiberMeasure 𝔰.κ δβ := by |
| 441 | have h_rank : 1000 * (2 * 𝔰.ϱ + 2) ≤ 𝔰.k := S.thousand_mul_le_k |
| 442 | -- the exponent of the ideal zeta sum is `μ = 3ϱ + 4`, and `2 (μ + 1) ≤ k` |
| 443 | have h_degree : 1 * Module.finrank ℚ E ≤ 2 ^ (2 * 𝔰.ϱ) := |
| 444 | S.mul_finrank_le_pow.trans' (by gcongr; lia) |
| 445 | have h_zeta : idealZeta (Ô E) (𝔰.ϱ + 2 * 𝔰.ϱ + 4) ≤ .ofReal (1 + S.b⁻¹ ^ 6) := by |
| 446 | grw [← S.half_pow_le_inv_pow_six] |
| 447 | simpa using idealZeta_intAdeles_pow_le 𝔰.ϱ h_degree |
| 448 | have h_card : 2 * (𝔰.ϱ + 2 * 𝔰.ϱ + 4 + 1) ≤ card 𝔰.κ := by |
| 449 | simpa using show 2 * (𝔰.ϱ + 2 * 𝔰.ϱ + 4 + 1) ≤ 𝔰.k by omega |
| 450 | rw [normDensity_indicator_eq_mul hF.psi_eq hΨ hβ, eNorm_mul] |
| 451 | gcongr |
| 452 | · -- the integral of Gauss sums off `T` |
| 453 | grw [eNorm_integral_le_lintegral_eNorm, setLIntegral_le_lintegral, ← h_zeta] |
| 454 | exact lintegral_gauss_sum_le_idealZeta |
| 455 | (le_two_of_pow_le_ofReal (idealZeta_intAdeles_pow_le 𝔰.ϱ h_degree)) h_card _ |
| 456 | · simpa only [one_mulVec, hδβ] using enorm_localDensity_le |
| 457 | (P.isDisintegration_normFiberMeasure F.two_le_card) conjTranspose_one hF.psi_add_star hΨ |
| 458 | h_supp δβ |
| 459 | |
| 460 | omit [Fact (↑S.ideleM⁻¹ ∈ integralOff T)] ok in |
| 461 | /-- Let `t` be in `E`, read at `T` as `ratToPlaces T t`, and let `π = S.piNAt T` be the unit at `T` |
| 462 | with `π π̄ = N = S.N`. Then the index `lastEntrySphereIndex π t` of the sphere |
| 463 | `ω* ω = t t̄ / N - N`, divided by `P.skewUnit`, is the value at `T` of `β = (t t̄ - N²) / N`. -/ |
| 464 | lemma skewUnit_inv_mul_lastEntrySphereIndex_piNAt (t : E) : |
| 465 | P.skewUnit⁻¹.val * lastEntrySphereIndex (S.piNAt T) (ratToPlaces T t) = |
| 466 | evalPlaces T (((t * star t - S.N ^ 2) / S.N : E) : 𝔸f E) := by |
| 467 | set π : (LocProd T)ˣ := S.piNAt T |
| 468 | set β : E := (t * star t - S.N ^ 2) / S.N |
| 469 | have hπ : π * star π.val = S.N := piNAt_mul_star |
| 470 | have h_rat : t * star t = S.N * (β + S.N) := by field [S.N_prime.ne_zero] |
| 471 | have h_coe : (lastEntrySphereIndex π (ratToPlaces T t)).val = P.skewUnit * |
| 472 | ((π * star π)⁻¹.val * ratToPlaces T t * star (ratToPlaces T t) - π * star π.val) := rfl |
| 473 | rw [h_coe, Units.inv_mul_cancel_left, sub_eq_iff_eq_add, mul_assoc, Units.inv_mul_eq_iff_eq_mul] |
| 474 | simpa [hπ] using congrArg (ratToPlaces T) h_rat |
| 475 | |
| 476 | /-- Let the inverse of the level `M = S.ideleM` be integral off `T`, and let `F` be a filling datum |
| 477 | at `T`: a large lattice datum of modulus `M` for the place structure `P`, whose character is that of |
| 478 | `S`. The space has the hyperbolic pairs `e_a, e*_a` (`a < ϱ`), a definite part `X₀` with basis `𝔰.κ` |
| 479 | and a vector `z`; `floorGroup 𝔰.ϱ` is the group of isometries that fix the hyperbolic pairs. Let |
| 480 | `γ₁`, `γ₂` be elements of this group over `E` with the same product `⟨z, γ z⟩` |
| 481 | (`S.frameProducts γ 𝔰.top 𝔰.top`) and the same `X₀`-part of `γ z`. Let `h_c` be the representative |
| 482 | of the double coset `c`, and let the left classes `c₁`, `c₂` be equal. If the translates |
| 483 | `h_c⁻¹ γ h_c'` (`S.translateByClassReps`) are integral off `T` and lie in one coset of |
| 484 | `F.congruenceSubgroup` at `T`, then `γ₁ = γ₂` and the right classes `c₁'`, `c₂'` are equal. -/ |
| 485 | lemma IsFillingData.classes_eq_and_eq_of_inv_mul_mem_congruenceSubgroup (hF : S.IsFillingData T F) |
| 486 | {c₁ c₂ c₁' c₂' : S.Classes} {γ₁ γ₂ : S.G E} (h_leftClass : c₁ = c₂) |
| 487 | (hγ₁ : γ₁ ∈ floorGroup 𝔰.ϱ) (hγ₂ : γ₂ ∈ floorGroup 𝔰.ϱ) |
| 488 | (h_tail : S.frameProducts γ₁ 𝔰.top 𝔰.top = S.frameProducts γ₂ 𝔰.top 𝔰.top) |
| 489 | (h_col : ∀ l : 𝔰.κ, γ₁.val.val (𝔰.indexX₀ l) 𝔰.z = γ₂.val.val (𝔰.indexX₀ l) 𝔰.z) |
| 490 | (h_off₁ : S.IsIntegralOff T (S.translateByClassReps c₁ c₁' γ₁)) |
| 491 | (h_off₂ : S.IsIntegralOff T (S.translateByClassReps c₂ c₂' γ₂)) |
| 492 | (h_coset : (S.toPlaces T (S.translateByClassReps c₁ c₁' γ₁))⁻¹ * |
| 493 | S.toPlaces T (S.translateByClassReps c₂ c₂' γ₂) ∈ F.congruenceSubgroup) : |
| 494 | c₁' = c₂' ∧ γ₁ = γ₂ := by |
| 495 | -- `γ₁⁻¹` and `γ₂⁻¹` give the same point `FloorGroups.orbitPoint 𝔰.top`, so `γ₁⁻¹ γ₂` lies in |
| 496 | -- `floorGroup 𝔰.n`; its `translateByClassReps` lies in `S.principalLevel`, which forces |
| 497 | -- `c₁' = c₂'` and makes it unipotent, hence trivial. |
| 498 | have same_z : FloorGroups.orbitPoint 𝔰.top γ₁⁻¹ = FloorGroups.orbitPoint 𝔰.top γ₂⁻¹ := by |
| 499 | simpa [funext_iff, Unique.forall_iff, FloorGroups.orbitPoint, |
| 500 | apply_eq_one_apply_of_mem_floorGroup hγ₁, |
| 501 | apply_eq_one_apply_of_mem_floorGroup hγ₂, h_col, frameGram, splitGram, Matrix.mul_apply, |
| 502 | middleGram, Nat.Prime.ne_zero] using h_tail |
| 503 | have fixes : γ₁⁻¹ * γ₂ ∈ floorGroup 𝔰.n := |
| 504 | partialUnitriangularGroup_inf_floorGroup_last.le (inv_mul_mem_of_orbitPoint_eq hγ₁ hγ₂ same_z) |
| 505 | have level : S.translateByClassReps c₁' c₂' (γ₁⁻¹ * γ₂) ∈ S.principalLevel := by |
| 506 | have h_quotient : S.translateByClassReps c₁' c₂' (γ₁⁻¹ * γ₂) = |
| 507 | (S.translateByClassReps c₁ c₁' γ₁)⁻¹ * S.translateByClassReps c₂ c₂' γ₂ := by |
| 508 | simp [translateByClassReps, h_leftClass, mul_assoc] |
| 509 | rw [h_quotient] |
| 510 | exact hF.mem_principalLevel_iff.mpr ⟨mul_mem (inv_mem h_off₁) h_off₂, by simpa using h_coset⟩ |
| 511 | obtain ⟨hc', hU : γ₁⁻¹ * γ₂ ∈ besselU, -⟩ := |
| 512 | eq_and_mem_classUnipotent_of_besselS (mem_partialUnitriangularGroup_of_mem_floorGroup fixes) |
| 513 | level |
| 514 | exact ⟨hc', inv_mul_eq_one.mp <| |
| 515 | eq_one_of_mem_floorGroup_inf ⟨fixes, (unipotentBelow_eq_besselU le_rfl).ge hU⟩ (by simp)⟩ |
| 516 | |
| 517 | omit [S.IsAdmissible] [Fact (↑S.ideleM⁻¹ ∈ integralOff T)] in |
| 518 | /-- Let `Z` be a group between the congruence group `F.congruenceSubgroup` and the integral |
| 519 | isometries, `R` a matrix and `ω p` finitely many heads. The fiber pairing |
| 520 | `F.fiberPairing Z (ω p) (ω q)` is the pairing of the orbital integrals `F.scaledOrbitalIntegral Z` |
| 521 | of two heads, integrated over `besselH`, the fixer of all basis vectors outside the definite part |
| 522 | `X₀`. On the top quadric the positive part of the real part of their sum against `R` agrees with a |
| 523 | function `Ψ ≥ 0` of compact support, invariant under small translations and under |
| 524 | `besselH ⊓ F.congruenceSubgroup`. -/ |
| 525 | lemma IsFillingData.exists_step_sum_fiberPairing (hF : S.IsFillingData T F) |
| 526 | (Z : F.IntermediateGroup) {J : Type} [Fintype J] (R : Matrix J J ℂ) (ω : J → ℕ → (LocProd T)ˣ) : |
| 527 | ∃ Ψ : (𝔰.BesselIndex → LocProd T) → ℝ≥0, |
| 528 | HasCompactSupport Ψ ∧ |
| 529 | (∀ᶠ v : 𝔰.BesselIndex → LocProd T in 𝓝 0, ∀ x : 𝔰.BesselIndex → LocProd T, Ψ (x + v) = Ψ x) ∧ |
| 530 | (∀ k ∈ besselH ⊓ F.congruenceSubgroup, ∀ x : 𝔰.BesselIndex → LocProd T, |
| 531 | Ψ (k.val.val *ᵥ x) = Ψ x) ∧ |
| 532 | ∀ e ∈ lastVectorQuadric (S.latticeMiddle (LocProd T)), |
| 533 | Ψ e = ENNReal.ofReal (∑ p : J, ∑ q : J, R p q * F.fiberPairing Z (ω p) (ω q) e).re := by |
| 534 | choose Ψpair pair_supp pair_unif pair_inv pair_eq using |
| 535 | fun p q : J ↦ exists_step_function_eqOn_fiberPairing Z (ω p) (ω q) |
| 536 | refine ⟨fun e ↦ (∑ p, ∑ q, R p q * Ψpair p q e).re.toNNReal, ?_, ?_, fun k hk x ↦ ?_, |
| 537 | fun e he ↦ ?_⟩ |
| 538 | · refine .intro (isCompact_iUnion fun p ↦ isCompact_iUnion fun q ↦ pair_supp p q) fun e he ↦ ?_ |
| 539 | simp only [mem_iUnion, not_exists] at he |
| 540 | simp [fun p q ↦ image_eq_zero_of_notMem_tsupport (he p q)] |
| 541 | · filter_upwards [eventually_all.2 fun p ↦ eventually_all.2 fun q ↦ pair_unif p q] with v hv x |
| 542 | simp only [hv] |
| 543 | · simp only [pair_inv _ _ k hk] |
| 544 | · simp only [pair_eq _ _ e he, ENNReal.ofReal] |
| 545 | |
| 546 | omit ok in |
| 547 | /-- There is a choice `A i b` of the coset of `(S.toPlaces T (n i))⁻¹ * b.out.val` in `Z` such that, |
| 548 | when the reductions of the `n i` are distinct, the pairs `(b, A i b)` are distinct. -/ |
| 549 | private lemma IsFillingData.exists_injective_cosetPairs (hF : S.IsFillingData T F) |
| 550 | {Z : F.IntermediateGroup} {ι : Type} {n : ι → S.latticeStabilizer} |
| 551 | (h_inj : (fun i : ι ↦ S.reduction (n i)).Injective) |
| 552 | (hn : ∀ i : ι, S.toPlaces T (n i) ∈ Z.val) : |
| 553 | ∃ A : ι → Z.Cosets → Z.Cosets, |
| 554 | (∀ i b, (S.toPlaces T (n i))⁻¹ * b.out.val * (A i b).out.val⁻¹ ∈ F.congruenceSubgroup) ∧ |
| 555 | (fun θ : ι × Z.Cosets ↦ (θ.2, A θ.1 θ.2)).Injective := by |
| 556 | classical |
| 557 | have h_coset (i : ι) (b : Z.Cosets) : ∃ b' : Z.Cosets, |
| 558 | (S.toPlaces T (n i))⁻¹ * b.out.val * b'.out.val⁻¹ ∈ F.congruenceSubgroup := |
| 559 | (Z.exists_forall_mul_inv_mem_congruenceSubgroup_iff_eq (mul_mem (inv_mem (hn i)) b.out.2)).imp |
| 560 | fun b' hb' ↦ (hb' b').2 rfl |
| 561 | choose A hA using h_coset |
| 562 | refine ⟨A, hA, ?_⟩ |
| 563 | rintro ⟨i, b⟩ ⟨k, _⟩ h_eq |
| 564 | obtain ⟨rfl, hAb⟩ := Prod.mk.inj h_eq |
| 565 | have h_red : S.reduction (n i) = S.reduction (n k) := |
| 566 | (hF.reduction_eq_iff ..).2 (by simpa [hAb] using div_mem (hA i b) (hA k b)) |
| 567 | rw [h_inj h_red] |
| 568 | |
| 569 | /-- Let the inverse of the level `M = S.ideleM` be integral off `T`, and let `F` be a filling datum |
| 570 | at `T`. Let `Z` be a group between the congruence group `F.congruenceSubgroup` and the integral |
| 571 | isometries at `T`. The heads `a p` (`p : J`) are sequences in `Eˣ`, with Weyl elements |
| 572 | `w_p = weylElem 𝔰.ϱ (a p)` and entries below `ϱ` that are units off `T`; `F.headDensity` is a |
| 573 | product of powers of the moduli of these entries at `T`. Let `W = S.besselFn side` be the Bessel |
| 574 | function at the infinite places or its cut, as `side` says, and let `R` be the Gram matrix of the |
| 575 | tensors `ρ p • ∫ W(y) ⊗ W((w_p γ)⁻¹ y)^* dy` (`besselOrbitalIntegral`). Let `ρ p` times the head |
| 576 | density be the same number `w` for all `p`. Let the integral elements `n i` (`i : ι`) lie in `Z` at |
| 577 | `T` and have distinct reductions `s i`. Then the squared norms of |
| 578 | `∑ p, S.cosetAmplitude side c (s i) c' (w_p γ)`, times `w ^ 2`, the number of cosets of |
| 579 | `F.congruenceSubgroup` in `Z` and the squared volume of `F.congruenceSubgroup`, add up to at most |
| 580 | `F.headSumNormSq` at `g⁻¹`, where `g = S.toPlaces T (S.translateByClassReps c c' γ)` for |
| 581 | `γ ∈ floorGroup 𝔰.ϱ` whose translate is integral off `T`: the pairings of the orbital integrals |
| 582 | `F.scaledOrbitalIntegral` at `T` of two heads, summed against `R`. -/ |
| 583 | lemma IsFillingData.sum_sq_norm_sum_cosetAmplitude_le_headSumNormSq [WeilData E] |
| 584 | (hF : S.IsFillingData T F) {side : FullOrCut} {Z : F.IntermediateGroup} |
| 585 | {ι J : Type} [Fintype ι] [Fintype J] {c c' : S.Classes} {γ : S.G E} (hγ : γ ∈ floorGroup 𝔰.ϱ) |
| 586 | {n : ι → S.latticeStabilizer} (h_inj : (fun i : ι ↦ S.reduction (n i)).Injective) |
| 587 | (hn : ∀ i : ι, S.toPlaces T (n i) ∈ Z.val) {a : J → ℕ → Eˣ} {ρ : J → ℝ} {w : ℝ} |
| 588 | (h_weight : ∀ p : J, |
| 589 | ρ p * (F.headDensity 𝔰.ϱ (Units.map (ratToPlaces T) ∘ a p) 1).toReal = w) |
| 590 | (h_off : S.IsIntegralOff T (S.translateByClassReps c c' γ)) |
| 591 | (h_head : ∀ p : J, ∀ l < 𝔰.ϱ, |
| 592 | (a p l : E) ∈ ratIntegralOff T ∧ ((a p l)⁻¹ : Eˣ).val ∈ ratIntegralOff T) : |
| 593 | let R : Matrix J J ℂ := .gram ℂ fun p : J ↦ ρ p • besselOrbitalIntegral volume |
| 594 | (fun g : InfinitePlace E → 𝔰.G₁ ↦ .toLp 2 (S.besselFn side g)) |
| 595 | (S.ratToInf (weylElem 𝔰.ϱ (a p) * γ)) |
| 596 | F.groupMeasure F.congruenceSubgroup ^ 2 * card Z.Cosets * |
| 597 | ∑ i : ι, ENNReal.ofReal (w ^ 2 * ‖∑ p : J, S.cosetAmplitude side c (S.reduction (n i)) c' |
| 598 | (weylElem 𝔰.ϱ (a p) * γ)‖ ^ 2) ≤ |
| 599 | ENNReal.ofReal (F.headSumNormSq Z R (fun p : J ↦ Units.map (ratToPlaces T) ∘ a p) |
| 600 | (S.toPlaces T (S.translateByClassReps c c' γ))⁻¹).re := by |
| 601 | classical |
| 602 | -- The entry `(b, A i b)` of the sum over the heads, with `A i b` the coset of `(n i)⁻¹ * b`, is, |
| 603 | -- up to a constant, the squared norm of the class sum at the reduction of `n i`; these entries |
| 604 | -- are distinct. |
| 605 | intro R |
| 606 | obtain ⟨A, hA, h_distinct⟩ := hF.exists_injective_cosetPairs h_inj hn |
| 607 | let v (x : Z.Cosets × Z.Cosets) (p : J) : ℂ := |
| 608 | F.scaledOrbitalIntegral Z (Units.map (ratToPlaces T) ∘ a p) |
| 609 | (S.toPlaces T (S.translateByClassReps c c' γ))⁻¹ x |
| 610 | have h_nonneg (x : Z.Cosets × Z.Cosets) : 0 ≤ (star (v x) ⬝ᵥ R *ᵥ v x).re := |
| 611 | (Complex.nonneg_iff.1 (PosSemidef.dotProduct_mulVec_nonneg (posSemidef_gram ..) (v x))).1 |
| 612 | have h_entry (i : ι) (b : Z.Cosets) : .ofReal (star (v (b, A i b)) ⬝ᵥ R *ᵥ v (b, A i b)).re = |
| 613 | F.groupMeasure F.congruenceSubgroup ^ 2 * .ofReal (w ^ 2 * ‖∑ p, S.cosetAmplitude side c |
| 614 | (S.reduction (n i)) c' (weylElem 𝔰.ϱ (a p) * γ)‖ ^ 2) := by |
| 615 | -- by unfolding, the tensor behind the entry is `w` times the mass of `K(M)` times the class sum |
| 616 | have h_tensor : ∑ p, v (b, A i b) p • (ρ p • besselOrbitalIntegral volume |
| 617 | (fun g : InfinitePlace E → 𝔰.G₁ ↦ .toLp 2 (S.besselFn side g)) |
| 618 | (S.ratToInf (weylElem 𝔰.ϱ (a p) * γ))) = |
| 619 | w • F.groupMeasure.real F.congruenceSubgroup • ∑ p, S.cosetAmplitude side c |
| 620 | (S.reduction (n i)) c' (weylElem 𝔰.ϱ (a p) * γ) := by |
| 621 | simp only [v, smul_comm (M := ℂ) (N := ℝ), |
| 622 | hF.scaledOrbitalIntegral_smul_eq_cosetAmplitude hγ (fun l ↦ (h_head _ l l.isLt).2) |
| 623 | (isIntegralOff_weylElem_mul (h_head _) h_off) (hA i b), |
| 624 | smul_smul (ρ _), h_weight, ← smul_sum] |
| 625 | simp only [R, star_dotProduct_gram_mulVec, h_tensor] |
| 626 | simp (disch := positivity) [norm_smul, ← Complex.ofReal_pow, mul_pow, Measure.real, |
| 627 | ofReal_toReal (hF.groupMeasure_ne_top unitaryLevel_le_unitaryLevel_one)] |
| 628 | ring |
| 629 | calc |
| 630 | _ = ∑ θ : ι × Z.Cosets, .ofReal (star (v (θ.2, A θ.1 θ.2)) ⬝ᵥ R *ᵥ v (θ.2, A θ.1 θ.2)).re := by |
| 631 | simp only [sum_prod_type, h_entry, sum_const, card_univ, nsmul_eq_mul, mul_sum] |
| 632 | exact sum_congr rfl fun i _ ↦ by ring |
| 633 | _ ≤ ∑ x, .ofReal (star (v x) ⬝ᵥ R *ᵥ v x).re := by |
| 634 | rw [← sum_image (f := fun x ↦ ENNReal.ofReal (star (v x) ⬝ᵥ R *ᵥ v x).re) h_distinct.injOn] |
| 635 | exact sum_le_sum_of_subset (Finset.subset_univ _) |
| 636 | _ = _ := by |
| 637 | rw [PlaceData.headSumNormSq_eq_sum, Complex.re_sum, ofReal_sum_of_nonneg fun x _ ↦ h_nonneg x] |
| 638 | |
| 639 | /-- The terms over one point `e`. Let the inverse of the level `M = S.ideleM` be integral off `T`, |
| 640 | and let `F` be a filling datum at `T`. Let `Z` be a group between the congruence group |
| 641 | `F.congruenceSubgroup` and the integral isometries at `T`. The heads `a p` (`p : J`) are sequences |
| 642 | in `Eˣ`, with Weyl elements `w_p = weylElem 𝔰.ϱ (a p)` and entries below `ϱ` that are units off `T`; |
| 643 | `F.headDensity` is a product of powers of the moduli of these entries at `T`. Let |
| 644 | `W = S.besselFn side` be the Bessel function at the infinite places or its cut, as `side` says. Let |
| 645 | the triples `(c' i, S.reduction (n i), γ i)`, `i : ι`, be distinct, with `γ i` rational and fixing |
| 646 | the `ϱ` hyperbolic pairs (`floorGroup 𝔰.ϱ`) and `n i` in `Z` at `T`. Let the translates |
| 647 | `h_c⁻¹ γ h_c'` by the class representatives be integral off `T` and send the last frame vector `z` |
| 648 | to `e` at `T` (`orbitPoint 𝔰.top g = g⁻¹ z`). Let the left class `c i`, the product `⟨z, γ i z⟩` and |
| 649 | the `X₀`-part of `γ i z` be the same for all `i`. Let `ρ p` times the head density be `w`. Let `R` |
| 650 | be positive semidefinite and, for every `i`, the Gram matrix of the tensors |
| 651 | `ρ p • ∫ W(y) ⊗ W((w_p γ i)⁻¹ y)^* dy`. Then the squared norms of the sums over `p` of |
| 652 | `S.cosetAmplitude` at `w_p γ i`, times `w ^ 2`, the `F.measureH`-mass and the squared |
| 653 | `F.groupMeasure`-mass of `F.congruenceSubgroup` and the number of its cosets in `Z`, add up to at |
| 654 | most the real part of `∑ p q, R p q * F.fiberPairing Z (ω p) (ω q) e`. Here `ω p` is `a p` read at |
| 655 | `T`, the fiber pairing is the pairing of the orbital integrals of two heads integrated over |
| 656 | `besselH`, and `S.cosetAmplitude side c s c' γ` is the sum of the amplitudes of the rational |
| 657 | `u γ u'⁻¹`, with `u`, `u'` unipotent, whose translate by the class representatives is integral with |
| 658 | reduction `s`. -/ |
| 659 | lemma IsFillingData.mul_sum_norm_sum_cosetAmplitude_sq_le_fiberPairing [WeilData E] |
| 660 | (hF : S.IsFillingData T F) {side : FullOrCut} |
| 661 | {Z : F.IntermediateGroup} {ι J : Type} [Fintype ι] [Fintype J] {c c' : ι → S.Classes} |
| 662 | {γ : ι → S.G E} {n : ι → S.latticeStabilizer} |
| 663 | (h_inj : (fun i : ι ↦ (c' i, S.reduction (n i), γ i)).Injective) |
| 664 | (h_leftClass : ∀ i k : ι, c i = c k) |
| 665 | (hγ : ∀ i : ι, γ i ∈ floorGroup 𝔰.ϱ) |
| 666 | (h_tail : ∀ i k : ι, S.frameProducts (γ i) 𝔰.top 𝔰.top = S.frameProducts (γ k) 𝔰.top 𝔰.top) |
| 667 | (h_col : ∀ (i k : ι) (l : 𝔰.κ), |
| 668 | (γ i).val.val (𝔰.indexX₀ l) 𝔰.z = (γ k).val.val (𝔰.indexX₀ l) 𝔰.z) |
| 669 | (hn : ∀ i : ι, S.toPlaces T (n i) ∈ Z.val) |
| 670 | (h_off : ∀ i : ι, S.IsIntegralOff T (S.translateByClassReps (c i) (c' i) (γ i))) |
| 671 | {e : 𝔰.BesselIndex → LocProd T} |
| 672 | (he : ∀ i : ι, orbitPoint 𝔰.top (S.toPlaces T (S.translateByClassReps (c i) (c' i) (γ i)))⁻¹ = |
| 673 | e) |
| 674 | {a : J → ℕ → Eˣ} {R : Matrix J J ℂ} (R_psd : R.PosSemidef) {ρ : J → ℝ} {w : ℝ} |
| 675 | (hR : ∀ i : ι, R = .gram ℂ fun p : J ↦ ρ p • besselOrbitalIntegral volume |
| 676 | (fun g : InfinitePlace E → 𝔰.G₁ ↦ .toLp 2 (S.besselFn side g)) |
| 677 | (S.ratToInf (weylElem 𝔰.ϱ (a p) * γ i))) |
| 678 | (h_weight : ∀ p : J, ρ p * (F.headDensity 𝔰.ϱ (Units.map (ratToPlaces T) ∘ a p) 1).toReal = w) |
| 679 | (h_head : ∀ p : J, ∀ l < 𝔰.ϱ, |
| 680 | (a p l : E) ∈ ratIntegralOff T ∧ ((a p l)⁻¹ : Eˣ).val ∈ ratIntegralOff T) : |
| 681 | let ω (p : J) : ℕ → (LocProd T)ˣ := Units.map (ratToPlaces T) ∘ a p |
| 682 | F.measureH F.congruenceSubgroup * (F.groupMeasure F.congruenceSubgroup ^ 2 * card Z.Cosets) * |
| 683 | ∑ i : ι, .ofReal (w ^ 2 * ‖∑ p : J, S.cosetAmplitude side (c i) (S.reduction (n i)) (c' i) |
| 684 | (weylElem 𝔰.ϱ (a p) * γ i)‖ ^ 2) ≤ |
| 685 | .ofReal (∑ p : J, ∑ q : J, R p q * F.fiberPairing Z (ω p) (ω q) e).re := by |
| 686 | classical |
| 687 | -- Group the classes by the pair of the right class and the rational element, and bound each |
| 688 | -- group by `sum_sq_norm_sum_cosetAmplitude_le_headSumNormSq`. Different pairs have positions in |
| 689 | -- different cosets of `F.congruenceSubgroup`. |
| 690 | intro ω |
| 691 | obtain _ | ⟨⟨i₀⟩⟩ := isEmpty_or_nonempty ι |
| 692 | · simp [Finset.univ_eq_empty (α := ι)] |
| 693 | obtain ⟨c₀, rfl⟩ : ∃ c₀, c = fun _ ↦ c₀ := ⟨c i₀, funext (h_leftClass · i₀)⟩ |
| 694 | let pair (i : ι) : S.Classes × S.G E := (c' i, γ i) |
| 695 | let pos (x : Set.range pair) : (S.latticeMiddle (LocProd T)).G := |
| 696 | (S.toPlaces T (S.translateByClassReps c₀ x.val.1 x.val.2))⁻¹ |
| 697 | have h_point (x : Set.range pair) : |
| 698 | pos x ∈ floorGroup 𝔰.ϱ ∧ orbitPoint 𝔰.top (pos x) = e := by |
| 699 | obtain ⟨_, i, rfl⟩ := x |
| 700 | exact ⟨inv_mem (.map_mem_agreeWithOneOn _ |
| 701 | (translateByClassReps_mem_floorGroup (hγ i) c₀ (c' i))), |
| 702 | he i⟩ |
| 703 | have h_sep (x x' : Set.range pair) (hK : pos x * (pos x')⁻¹ ∈ F.congruenceSubgroup) : x = x' := by |
| 704 | obtain ⟨_, i, rfl⟩ := x |
| 705 | obtain ⟨_, k, rfl⟩ := x' |
| 706 | exact Subtype.ext (Prod.ext_iff.2 (hF.classes_eq_and_eq_of_inv_mul_mem_congruenceSubgroup rfl |
| 707 | (hγ i) (hγ k) |
| 708 | (h_tail i k) (h_col i k) (h_off i) (h_off k) (by simpa [pos, pair] using hK))) |
| 709 | refine .trans ?_ (sum_headSumNormSq_le_fiberPairing Z R_psd ω h_point h_sep) |
| 710 | rw [mul_assoc, ← Finset.sum_fiberwise univ (Set.rangeFactorization pair), mul_sum] |
| 711 | gcongr with x |
| 712 | obtain ⟨_, k, rfl⟩ := x |
| 713 | have h_same (i : {i // pair i = pair k}) : c' i = c' k ∧ γ i = γ k := Prod.mk.inj i.property |
| 714 | have h_inj_fiber : (fun i : {i // pair i = pair k} ↦ S.reduction (n i)).Injective := |
| 715 | fun i i' h ↦ Subtype.ext (h_inj (by simp [h_same i, h_same i', h])) |
| 716 | rw [hR k] |
| 717 | refine .trans (le_of_eq ?_) (hF.sum_sq_norm_sum_cosetAmplitude_le_headSumNormSq (hγ k) |
| 718 | h_inj_fiber (fun i ↦ hn i) h_weight (h_off k) h_head) |
| 719 | rw [sum_subtype (F := inferInstance) (p := (pair · = pair k)) _ (by simp [Subtype.ext_iff])] |
| 720 | simp only [h_same, pair] |
| 721 | |
| 722 | omit [S.IsAdmissible] [Fact (↑S.ideleM⁻¹ ∈ integralOff T)] |
| 723 | [IntegralPlace (LocProd T)] in |
| 724 | /-- The space has the hyperbolic pairs `e_a, e*_a` (`a < ϱ`), a definite part `X₀` with basis `𝔰.κ` |
| 725 | and a vector `z`; `floorGroup 𝔰.ϱ` is the group of isometries that fix the hyperbolic pairs. Let `γ` |
| 726 | be an element of this group over `E` with `⟨z, γ z⟩ = t`, and `x` the `X₀`-part of `γ z`, moved by |
| 727 | the inverse of the representative of the class `c`. Then at `T` the translate `h_c⁻¹ γ h_c'` sends |
| 728 | `z` to `vectorOfLastEntry S.piN t x = x - N⁻¹ t z`, written in the lattice basis. -/ |
| 729 | lemma orbitPoint_toPlaces_translateByClassReps {c c' : S.Classes} {γ : S.G E} |
| 730 | (hγ : γ ∈ floorGroup 𝔰.ϱ) {t : E} (h_tail : S.frameProducts γ 𝔰.top 𝔰.top = t) : |
| 731 | orbitPoint 𝔰.top (S.toPlaces T (S.translateByClassReps c c' γ))⁻¹ = |
| 732 | evalPlaces T ∘ vectorOfLastEntry S.piN (algebraMap E (𝔸f E) t) |
| 733 | (c.out⁻¹.val.val *ᵥ algebraMap E (𝔸f E) ∘ fun l : 𝔰.κ ↦ γ.val.val (𝔰.indexX₀ l) 𝔰.z) := by |
| 734 | rw [← h_tail, ← orbitPoint_top_translateByClassReps_inv hγ c c'] |
| 735 | have h_map : (S.toPlaces T (S.translateByClassReps c c' γ)).val.val = |
| 736 | (S.translateByClassReps c c' γ).val.val.map (evalPlaces T) := rfl |
| 737 | ext l |
| 738 | simp [orbitPoint, h_map] |
| 739 | |
| 740 | end Level |
| 741 | |
| 742 | variable [WeilData E] |
| 743 | |
| 744 | /-- Siegel's formula as an upper bound. Let `S` be admissible, with the inverse of the level |
| 745 | `M = S.ideleM` integral off `T`, let `N⁻¹` be integral off `T`, where `N = S.N`, and let `F` be a |
| 746 | filling datum at `T`: a large lattice datum of modulus `M` for the place structure `P`, whose |
| 747 | character is that of `S`. Let `Ψ ≥ 0` be a function of compact support on the vectors over the |
| 748 | product `LocProd T` of the completions at `T`, invariant under small translations and under the |
| 749 | elements of `F.congruenceSubgroup` that fix all basis vectors outside the definite part `X₀` |
| 750 | (`besselH`). Let `|t|_v > N` under all embeddings `Φ v` of the CM type. For a pair `z = (class, v)` |
| 751 | let `x` be the rational vector `v` of `X₀` moved by the inverse of the representative of the class. |
| 752 | If the pairs in a finite set `s` have `N (v* v) = t t̄ - N²` and `x` integral off `T`, then the |
| 753 | values of `Ψ` at `vectorOfLastEntry S.piN t x` (`x` minus `N⁻¹ t` times the last frame vector) add |
| 754 | up to at most the product of `1 + S.b⁻⁶`, the number of classes, `S.siegelConst = (π^k / ((k - 1)! |
| 755 | N^k))^f |disc E|^(1/4) (volÔ E)^k`, `(∏ v, (|t|_v² - N²)) ^ (k - 1)`, the inverse modulus of |
| 756 | `S.piNAt T` (a unit of norm `N`) and the integral of `Ψ ∘ vectorOfLastEntry` over the sphere |
| 757 | `y* y = (t t̄ - N²) / N`, for the fiber measure `P.normFiberMeasure` with index |
| 758 | `lastEntrySphereIndex`. Here `S.b` is the size parameter of `S`, `k` the rank of `X₀` and `f` the |
| 759 | number of infinite places. -/ |
| 760 | theorem IsFillingData.siegel_sum_le_lintegral_sphere (hT_N : (S.N : E)⁻¹ ∈ ratIntegralOff T) |
| 761 | [P : IntegralPlace (LocProd T)] |
| 762 | {F : PlaceData (Fin (𝔰.k - (6 * 𝔰.ϱ + 13))) (S.latticeMiddle (LocProd T)) (𝔰.ϱ + 1 + 2 * 𝔰.ϱ + |
| 763 | 5)} |
| 764 | (hF : S.IsFillingData T F) {Ψ : (𝔰.BesselIndex → LocProd T) → ℝ≥0} |
| 765 | (Ψ_supp : HasCompactSupport Ψ) |
| 766 | (Ψ_unif : ∀ᶠ v : 𝔰.BesselIndex → LocProd T in 𝓝 0, |
| 767 | ∀ x : 𝔰.BesselIndex → LocProd T, Ψ (x + v) = Ψ x) |
| 768 | (Ψ_inv : ∀ k ∈ besselH ⊓ F.congruenceSubgroup, ∀ x : 𝔰.BesselIndex → LocProd T, |
| 769 | Ψ (k.val.val *ᵥ x) = Ψ x) |
| 770 | {s : Finset (S.Classes × (𝔰.κ → E))} {t : E} |
| 771 | (ht : ∀ v : InfinitePlace E, S.N ^ 2 < ‖Φ v t‖ ^ 2) |
| 772 | (h_norm : ∀ z ∈ s, S.N * star z.2 ⬝ᵥ z.2 = t * star t - S.N ^ 2) |
| 773 | (h_int : ∀ z ∈ s, ∀ i : 𝔰.κ, |
| 774 | (z.1.out⁻¹.val.val *ᵥ algebraMap E (𝔸f E) ∘ z.2) i ∈ integralOff T) : |
| 775 | (∑ z ∈ s, Ψ (evalPlaces T ∘ |
| 776 | vectorOfLastEntry S.piN t (z.1.out⁻¹.val.val *ᵥ algebraMap E (𝔸f E) ∘ z.2)) : ℝ≥0∞) ≤ |
| 777 | .ofReal ((1 + S.b⁻¹ ^ 6) * card S.Classes * S.siegelConst * |
| 778 | (∏ v : InfinitePlace E, (‖Φ v t‖ ^ 2 - S.N ^ 2)) ^ (𝔰.k - 1)) * |
| 779 | ((P.modulus (S.piNAt T))⁻¹ * |
| 780 | ∫⁻ y : 𝔰.κ → LocProd T, Ψ (vectorOfLastEntry (S.piNAt T) (ratToPlaces T t) y) |
| 781 | ∂P.normFiberMeasure 𝔰.κ (lastEntrySphereIndex (S.piNAt T) (ratToPlaces T t))) := by |
| 782 | -- Apply `classSum_eq_mul_normDensity` at the norm `β = (t t̄ - N²) / N` to the test function `f` |
| 783 | -- that is `Ψ` at `T` and the indicator of the integral vectors off `T`; bound the density by |
| 784 | -- `enorm_normDensity_le_mul_lintegral_normFiberMeasure`. |
| 785 | classical |
| 786 | have hN₀ : 0 < S.N := S.N_prime.pos |
| 787 | have h_rank : 1000 * (2 * 𝔰.ϱ + 2) ≤ 𝔰.k := S.thousand_mul_le_k |
| 788 | set β : E := (t * star t - S.N ^ 2) / S.N |
| 789 | set π : (LocProd T)ˣ := S.piNAt T |
| 790 | let t' : LocProd T := evalPlaces T t |
| 791 | have hβ : star β = β := by simp [β, field] |
| 792 | have hβ_pos (v : InfinitePlace E) : 0 < (Φ v β).re := by simpa [β, mul_conj', sq, hN₀] using ht v |
| 793 | have h_level : P.skewUnit⁻¹.val * lastEntrySphereIndex π t' = evalPlaces T β := |
| 794 | skewUnit_inv_mul_lastEntrySphereIndex_piNAt t |
| 795 | have Ψ_lc : IsLocallyConstant Ψ := isLocallyConstant_of_eventually_add Ψ_unif |
| 796 | -- the integral vectors off `T` form a clopen set |
| 797 | let L : OpenAddSubgroup (𝔰.κ → 𝔸f E) := |
| 798 | ⟨(intVectors (integralOff T) 𝔰.κ).toAddSubgroup, isOpen_intVectors (isOpen_integralOff T)⟩ |
| 799 | let f : LocallyConstant (𝔰.κ → 𝔸f E) ℝ≥0 := |
| 800 | .indicator ⟨fun y ↦ Ψ (vectorOfLastEntry π t' (evalPlaces T ∘ y)), |
| 801 | Ψ_lc.comp_continuous (by fun_prop)⟩ |
| 802 | (isClopen L) |
| 803 | let C : ℂ := (classSum stdRatPoints S.sourceLevel 1 * √√|NumberField.discr E| * |
| 804 | ∏ v : InfinitePlace E, Real.pi ^ card 𝔰.κ / (card 𝔰.κ - 1).factorial * |
| 805 | (Φ v β).re ^ (card 𝔰.κ - 1) : ℝ) |
| 806 | obtain ⟨h_summable, (h_siegel : ((classSum stdRatPoints S.sourceLevel fun h : Gf E 𝔰.κ ↦ |
| 807 | ((∑' v : 𝔰.κ → E, if star v ⬝ᵥ v = β then f (h⁻¹.val.val *ᵥ fun i ↦ (v i : 𝔸f E)) else 0 : |
| 808 | ℝ≥0) : ℝ) : ℝ) : ℂ) = C * normDensity f β)⟩ := |
| 809 | classSum_eq_mul_normDensity (by lia) S.sourceLevel f |
| 810 | (fun k hk ↦ hF.testFunction_mulVec Ψ_inv t hk) |
| 811 | (hasCompactSupport_testFunction Ψ_supp π t') hβ hβ_pos |
| 812 | set I : ℝ≥0∞ := ∫⁻ y, (Ψ (vectorOfLastEntry π (ratToPlaces T t) y) : ℝ≥0∞) |
| 813 | ∂P.normFiberMeasure 𝔰.κ (lastEntrySphereIndex π (ratToPlaces T t)) |
| 814 | calc |
| 815 | _ ≤ ‖C * normDensity f β‖ₑ := by |
| 816 | -- each pair `z ∈ s` has norm `β` and is integral off `T`, so it is a term of the class sum |
| 817 | rw [← h_siegel] |
| 818 | simp_rw [classSum_sourceLevel_eq_sum, ← NNReal.coe_sum, eNorm_eq_nnNorm, nnNorm_real, |
| 819 | nnNorm_eq, ofNNReal_finsetSum, ENNReal.coe_tsum (h_summable _)] |
| 820 | grw [← tsum_prod.trans (tsum_fintype _), ← sum_le_tsum s] |
| 821 | gcongr with z hz |
| 822 | have h_norm_eq : star z.2 ⬝ᵥ z.2 = β := by simp [β, ← h_norm z hz, Nat.Prime.ne_zero] |
| 823 | grw [ite_eq_left h_norm_eq, ← vectorOfLastEntry_evalPlaces] |
| 824 | exact (ite_eq_left (h_int z hz)).ge |
| 825 | _ ≤ ‖C‖ₑ * (.ofReal (1 + S.b⁻¹ ^ 6) * volÔ E ^ 𝔰.k * I) := by |
| 826 | rw [eNorm_mul] |
| 827 | gcongr |
| 828 | exact hF.enorm_normDensity_le_mul_lintegral_normFiberMeasure |
| 829 | (Ψ_lc.continuous.comp isClosedEmbedding_vectorOfLastEntry.continuous) |
| 830 | (Ψ_supp.comp_isClosedEmbedding isClosedEmbedding_vectorOfLastEntry) |
| 831 | (by rw [star_algebraMap_finAdele, hβ]) h_level |
| 832 | _ = ‖C‖ₑ * (.ofReal (1 + S.b⁻¹ ^ 6) * volÔ E ^ 𝔰.k) * P.modulus π * ((P.modulus π)⁻¹ * I) := by |
| 833 | rw [mul_assoc _ (P.modulus π), ENNReal.mul_inv_cancel_left (by simp) (by simp), ← mul_assoc] |
| 834 | _ = _ := by rw [siegel_constant_eq hT_N piNAt_mul_star hβ_pos (C := C) rfl] |
| 835 | |
| 836 | omit [WeilData E] [T.StarStable] [S.IsAdmissible] [Fact (↑S.ideleM⁻¹ ∈ integralOff T)] in |
| 837 | /-- If the lattice basis and the translate `h_c⁻¹ γ h_c'` (`S.translateByClassReps`) of a rational |
| 838 | element `γ` of `floorGroup 𝔰.ϱ` are integral off `T`, then so is the `X₀`-part of the column of `γ` |
| 839 | at `z`, moved by the inverse of the representative of `c`. -/ |
| 840 | lemma x₀Part_mem_integralOff (hT_basis : S.latticeBasis ∈ intGL 𝔰.BesselIndex (integralOff T)) |
| 841 | {c c' : S.Classes} {γ : S.G E} (hγ : γ ∈ floorGroup 𝔰.ϱ) |
| 842 | (h_off : S.IsIntegralOff T (S.translateByClassReps c c' γ)) (i : 𝔰.κ) : |
| 843 | (c.out⁻¹.val.val *ᵥ algebraMap E (𝔸f E) ∘ fun l : 𝔰.κ ↦ γ.val.val (𝔰.indexX₀ l) 𝔰.z) i ∈ |
| 844 | integralOff T := by |
| 845 | have column : orbitPoint 𝔰.top (S.translateByClassReps c c' γ)⁻¹ ∈ |
| 846 | intVectors (integralOff T) 𝔰.BesselIndex := |
| 847 | fun l ↦ by simpa [orbitPoint] using h_off.isIntMatrix l 𝔰.z |
| 848 | rw [orbitPoint_top_translateByClassReps_inv hγ] at column |
| 849 | exact (mulVec_mem_intVectors_iff (inv_mem hT_basis)).1 column (𝔰.indexX₀ i) |
| 850 | |
| 851 | /-- Siegel's step, for one last entry `t`. Let `S` be admissible, with the inverse of the level |
| 852 | `M = S.ideleM` integral off `T`, let `N⁻¹` and the lattice basis be integral off `T`, and let `F` be |
| 853 | a filling datum at `T`. Let `Z` be a group between the congruence group `F.congruenceSubgroup` and |
| 854 | the integral isometries at `T`. The heads `a p` (`p : J`) are sequences in `Eˣ`, with Weyl elements |
| 855 | `w_p = weylElem 𝔰.ϱ (a p)` and entries below `ϱ` that are units off `T`; `F.headDensity` is a |
| 856 | product of powers of the moduli of these entries at `T`. Let `W = S.besselFn side` be the Bessel |
| 857 | function at the infinite places or its cut, as `side` says. Let the terms |
| 858 | `(c i, c' i, S.reduction (n i), γ i)`, `i : j`, be distinct, with `γ i` rational, fixing the `ϱ` |
| 859 | hyperbolic pairs (`floorGroup 𝔰.ϱ`) and with `⟨z, γ i z⟩ = t`, translates by the class |
| 860 | representatives integral off `T` and `n i` in `Z` at `T`; there is at least one term, `i₀`. Let |
| 861 | `N < ‖t‖` at all infinite places, and let the heads have entry `t` at `ϱ`. Assume that `R` is, for |
| 862 | every `i`, the Gram matrix of the tensors `ρ p • ∫ W(y) ⊗ W((w_p γ i)⁻¹ y)^* dy` |
| 863 | (`besselOrbitalIntegral`), and that `ρ p` times the head density is `r * √G`, where |
| 864 | `G = (∏ v, (‖t‖_v² - N²)) ^ (k - 1)`. Then the squared norms of the sums over `p` of |
| 865 | `S.cosetAmplitude` at `w_p γ i`, times `r ^ 2`, add up to at most |
| 866 | `(1 + S.b⁻⁶) * S.scaledSiegelConst` times the real part of |
| 867 | `∑ p q, R p q * F.lastEntryDensity / Z.massRatio`. -/ |
| 868 | theorem IsFillingData.sum_mul_norm_sum_cosetAmplitude_sq_le_lastEntryDensity |
| 869 | (hT_basis : S.latticeBasis ∈ intGL 𝔰.BesselIndex (integralOff T)) |
| 870 | (hT_N : (S.N : E)⁻¹ ∈ ratIntegralOff T) |
| 871 | [P : IntegralPlace (LocProd T)] |
| 872 | {F : PlaceData (Fin (𝔰.k - (6 * 𝔰.ϱ + 13))) (S.latticeMiddle (LocProd T)) (𝔰.ϱ + 1 + 2 * 𝔰.ϱ + |
| 873 | 5)} |
| 874 | (hF : S.IsFillingData T F) {side : FullOrCut} {Z : F.IntermediateGroup} |
| 875 | {j J : Type} [Fintype j] [Fintype J] {c c' : j → S.Classes} {γ : j → S.G E} |
| 876 | {n : j → S.latticeStabilizer} {t : Eˣ} |
| 877 | (h_inj : (fun i : j ↦ (c i, c' i, S.reduction (n i), γ i)).Injective) |
| 878 | (hγ : ∀ i : j, γ i ∈ floorGroup 𝔰.ϱ) (h_tail : ∀ i : j, S.frameProducts (γ i) 𝔰.top 𝔰.top = t) |
| 879 | (ht : ∀ v : InfinitePlace E, S.N ^ 2 < ‖Φ v (t : E)‖ ^ 2) |
| 880 | (hn : ∀ i : j, S.toPlaces T (n i) ∈ Z.val) |
| 881 | (h_off : ∀ i : j, S.IsIntegralOff T (S.translateByClassReps (c i) (c' i) (γ i))) (i₀ : j) |
| 882 | {a : J → ℕ → Eˣ} (h_last : ∀ p : J, a p 𝔰.ϱ = t) |
| 883 | (h_head : ∀ p : J, ∀ l < 𝔰.ϱ, |
| 884 | (a p l : E) ∈ ratIntegralOff T ∧ ((a p l)⁻¹ : Eˣ).val ∈ ratIntegralOff T) |
| 885 | {R : Matrix J J ℂ} {ρ : J → ℝ} {r : ℝ} |
| 886 | (hR : ∀ i : j, R = .gram ℂ fun p : J ↦ ρ p • besselOrbitalIntegral volume |
| 887 | (fun g : InfinitePlace E → 𝔰.G₁ ↦ .toLp 2 (S.besselFn side g)) |
| 888 | (S.ratToInf (weylElem 𝔰.ϱ (a p) * γ i))) |
| 889 | (h_weight : ∀ p : J, ρ p * (F.headDensity 𝔰.ϱ (Units.map (ratToPlaces T) ∘ a p) 1).toReal = |
| 890 | r * √((∏ v : InfinitePlace E, (‖Φ v (t : E)‖ ^ 2 - S.N ^ 2)) ^ (𝔰.k - 1))) : |
| 891 | ∑ i : j, r ^ 2 * ‖∑ p : J, S.cosetAmplitude side (c i) (S.reduction (n i)) (c' i) |
| 892 | (weylElem 𝔰.ϱ (a p) * γ i)‖ ^ 2 ≤ |
| 893 | (1 + S.b⁻¹ ^ 6) * S.scaledSiegelConst * (∑ p : J, ∑ q : J, R p q * |
| 894 | (F.lastEntryDensity (S.piNAt T) Z (Units.map (ratToPlaces T) ∘ a p) |
| 895 | (Units.map (ratToPlaces T) ∘ a q) / Z.massRatio.toReal)).re := by |
| 896 | classical |
| 897 | -- Group the classes by the point `g i` of Siegel's sum (the class and the `X₀`-part of `γ i z`). |
| 898 | -- Over one point they are bounded by the value of a step function `Ψ`; Siegel's formula sums |
| 899 | -- over the points, and the integral of `Ψ` over the sphere of `t`, divided by the modulus of |
| 900 | -- `S.piNAt T`, is the real part of the sum `Q` of densities. |
| 901 | let ω (p : J) : ℕ → (LocProd T)ˣ := Units.map (ratToPlaces T) ∘ a p |
| 902 | let y (i : j) : ℝ := r ^ 2 * ‖∑ p : J, S.cosetAmplitude side (c i) (S.reduction (n i)) (c' i) |
| 903 | (weylElem 𝔰.ϱ (a p) * γ i)‖ ^ 2 |
| 904 | set G : ℝ := (∏ v : InfinitePlace E, (‖Φ v t.val‖ ^ 2 - S.N ^ 2)) ^ (𝔰.k - 1) |
| 905 | let g (i : j) : S.Classes × (𝔰.κ → E) := (c i, fun l ↦ (γ i).val.val (𝔰.indexX₀ l) 𝔰.z) |
| 906 | let x (z : S.Classes × (𝔰.κ → E)) : 𝔰.κ → 𝔸f E := z.1.out⁻¹.val.val *ᵥ algebraMap E (𝔸f E) ∘ z.2 |
| 907 | let Q : ℂ := ∑ p, ∑ q, R p q * F.lastEntryDensity (S.piNAt T) Z (ω p) (ω q) |
| 908 | have R_psd : R.PosSemidef := by simpa only [hR i₀] using posSemidef_gram ℂ _ |
| 909 | have G_pos : 0 < G := by simp [G, ht, prod_pos] |
| 910 | -- The translate of a term by the class representatives moves `z` to the vector with last entry |
| 911 | -- `t` over `g i`, which has norm `(t t̄ - N²) / N` and is integral off `T`. |
| 912 | have norm_eq (i : j) : S.N * star (g i).2 ⬝ᵥ (g i).2 = t.val * star t.val - S.N ^ 2 := by |
| 913 | rw [← h_tail i] |
| 914 | exact mul_star_dotProduct_eq_last_frameProducts (hγ i) |
| 915 | have x_int (i : j) : ∀ l : 𝔰.κ, x (g i) l ∈ integralOff T := |
| 916 | x₀Part_mem_integralOff hT_basis (hγ i) (h_off i) |
| 917 | have point_eq (i : j) : orbitPoint 𝔰.top |
| 918 | (S.toPlaces T (S.translateByClassReps (c i) (c' i) (γ i)))⁻¹ = |
| 919 | evalPlaces T ∘ vectorOfLastEntry S.piN t.val (x (g i)) := |
| 920 | orbitPoint_toPlaces_translateByClassReps (hγ i) (h_tail i) |
| 921 | -- Extend the real part of the sum of the fiber pairings against `R` to a step function `Ψ`; its |
| 922 | -- value at a point bounds the classes there. |
| 923 | obtain ⟨Ψ, Ψ_supp, Ψ_unif, Ψ_inv, Ψ_eq : ∀ e ∈ lastVectorQuadric (S.latticeMiddle (LocProd T)), |
| 924 | Ψ e = ENNReal.ofReal (∑ p, ∑ q, R p q * F.fiberPairing Z (ω p) (ω q) e).re⟩ := |
| 925 | hF.exists_step_sum_fiberPairing Z R ω |
| 926 | obtain ⟨D, hD : 0 < D, h_const : S.scaledSiegelConst = D * card S.Classes * S.siegelConst, |
| 927 | h_unit : Z.massRatio ≤ F.measureH F.congruenceSubgroup * |
| 928 | (F.groupMeasure F.congruenceSubgroup ^ 2 * card Z.Cosets) * .ofReal D⟩ := |
| 929 | hF.exists_scaledSiegelConst_eq_and_massRatio_le Z |
| 930 | have le_Ψ (k₀ : j) : |
| 931 | .ofReal G * (Z.massRatio / .ofReal D) * ∑ k with g k = g k₀, .ofReal (y k) ≤ |
| 932 | (Ψ (evalPlaces T ∘ vectorOfLastEntry S.piN t.val (x (g k₀))) : ℝ≥0∞) := by |
| 933 | have same (k k' : {k // g k = g k₀}) : |
| 934 | c k = c k' ∧ (g k).2 = (g k').2 := Prod.mk.inj (k.property.trans k'.property.symm) |
| 935 | have point_mem : evalPlaces T ∘ vectorOfLastEntry S.piN t.val (x (g k₀)) ∈ |
| 936 | lastVectorQuadric (S.latticeMiddle (LocProd T)) := by |
| 937 | rw [← point_eq] |
| 938 | exact orbitPoint_mem_lastVectorQuadric (inv_mem (.map_mem_agreeWithOneOn _ |
| 939 | (translateByClassReps_mem_floorGroup (hγ k₀) (c k₀) (c' k₀)))) |
| 940 | have h_scale (k : j) : ENNReal.ofReal G * .ofReal (y k) = |
| 941 | .ofReal ((r * √G) ^ 2 * ‖∑ p, S.cosetAmplitude side (c k) (S.reduction (n k)) (c' k) |
| 942 | (weylElem 𝔰.ϱ (a p) * γ k)‖ ^ 2) := by |
| 943 | rw [← ENNReal.ofReal_mul G_pos.le, mul_pow, Real.sq_sqrt G_pos.le, mul_left_comm, mul_assoc] |
| 944 | suffices h_over : F.measureH F.congruenceSubgroup * |
| 945 | (F.groupMeasure F.congruenceSubgroup ^ 2 * card Z.Cosets) * |
| 946 | ∑ k : {k // g k = g k₀}, ENNReal.ofReal G * .ofReal (y k) ≤ |
| 947 | Ψ (evalPlaces T ∘ vectorOfLastEntry S.piN t.val (x (g k₀))) by |
| 948 | grw [div_le_of_le_mul h_unit, mul_comm (ENNReal.ofReal G), mul_assoc _ (ENNReal.ofReal G), |
| 949 | mul_sum, sum_subtype (F := inferInstance) (p := fun k ↦ g k = g k₀) _ mem_filter_univ, |
| 950 | h_over] |
| 951 | simp only [h_scale, Ψ_eq _ point_mem] |
| 952 | exact hF.mul_sum_norm_sum_cosetAmplitude_sq_le_fiberPairing (ι := {k // g k = g k₀}) |
| 953 | (fun k k' h ↦ Subtype.ext (h_inj (Prod.ext (same k k').1 h))) (fun k k' ↦ (same k k').1) |
| 954 | (fun k ↦ hγ k) (fun k k' ↦ by simp only [h_tail]) |
| 955 | (fun k k' ↦ congrFun (same k k').2) (fun k ↦ hn k) (fun k ↦ h_off k) |
| 956 | (fun k ↦ by rw [point_eq, k.property]) R_psd (fun k ↦ hR k) h_weight h_head |
| 957 | -- Siegel's formula sums over the points; the normalized integral over the sphere is `Q.re`. |
| 958 | obtain ⟨⟨re_nonneg : 0 ≤ Q.re, -⟩, h_sphere⟩ := |
| 959 | sum_lastEntryDensity_nonneg_and_eq_inv_mul_lintegral Z piNAt_mul_star |
| 960 | R_psd ω (t := t.map (ratToPlaces T)) fun p ↦ by simp [ω, h_last] |
| 961 | have h_total : .ofReal G * (Z.massRatio / .ofReal D) * ∑ k, .ofReal (y k) ≤ |
| 962 | .ofReal ((1 + S.b⁻¹ ^ 6) * card S.Classes * S.siegelConst * G) * ENNReal.ofReal Q.re := by |
| 963 | calc |
| 964 | _ ≤ ∑ z ∈ univ.image g, (Ψ (evalPlaces T ∘ vectorOfLastEntry S.piN t.val (x z)) : ℝ≥0∞) := by |
| 965 | rw [← sum_fiberwise_of_maps_to fun k _ ↦ mem_image_of_mem g (mem_univ k), mul_sum] |
| 966 | exact sum_le_sum (forall_mem_image.2 fun k _ ↦ le_Ψ k) |
| 967 | _ ≤ _ := hF.siegel_sum_le_lintegral_sphere hT_N Ψ_supp Ψ_unif Ψ_inv ht |
| 968 | (forall_mem_image.2 fun k _ ↦ norm_eq k) |
| 969 | (forall_mem_image.2 fun k _ ↦ x_int k) |
| 970 | _ = _ := by |
| 971 | -- almost every point of the sphere lies on the top quadric, where `Ψ_eq` gives `Ψ` |
| 972 | rw [h_sphere, lintegral_congr_ae |
| 973 | ((P.ae_vectorOfLastEntry_mem_lastVectorQuadric piNAt_mul_star F.two_le_card _).mono |
| 974 | fun _ ↦ Ψ_eq _)] |
| 975 | rfl |
| 976 | -- pass to real numbers and cancel the constants |
| 977 | have unit_pos : 0 < Z.massRatio.toReal := (massRatio_ne_zero_and_ne_top Z).elim toReal_pos |
| 978 | have h_real : G * (Z.massRatio.toReal / D) * ∑ i, y i ≤ |
| 979 | (1 + S.b⁻¹ ^ 6) * card S.Classes * S.siegelConst * G * Q.re := by |
| 980 | simpa (disch := finiteness) only [toReal_sum, toReal_mul, toReal_ofReal, toReal_div, |
| 981 | siegelConst] using toReal_mono (by finiteness) h_total |
| 982 | have h_re : (∑ p, ∑ q, R p q * |
| 983 | (F.lastEntryDensity (S.piNAt T) Z (ω p) (ω q) / Z.massRatio.toReal)).re = |
| 984 | Q.re / Z.massRatio.toReal := by |
| 985 | simp [Q, ← mul_div_assoc, ← Finset.sum_div] |
| 986 | refine le_of_mul_le_mul_left (h_real.trans_eq ?_) (by positivity) |
| 987 | rw [h_re, h_const] |
| 988 | field |
| 989 | |
| 990 | end New.Filling |