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.Topology.LocallyConstant.Algebra |
| 4 | public import Lib.Weil.Construction.FiniteMultiplier |
| 5 | import Lib.General.Measure.HaarNormalisation |
| 6 | |
| 7 | /-! |
| 8 | # Schwartz–Bruhat functions on a set of places and the Schrödinger model there |
| 9 | |
| 10 | Functions on finite adelic vectors that only see the components at a set `S` of finite places, and |
| 11 | the action of the Heisenberg group on them when `S` is disjoint from its conjugate. |
| 12 | |
| 13 | * `New.IsSchwartzBruhat S Ψ`: `Ψ` is Schwartz–Bruhat above `S`. Examples are the indicator |
| 14 | `New.boxIndicator` of the vectors integral on `S` and the coset functions `New.cosetIndicator`. |
| 15 | * `New.IsSchwartzBruhat.eq_sum_cosetIndicator`, `New.IsSchwartzBruhat.mem_of_cosets`: such a |
| 16 | function is a finite linear combination of coset functions. |
| 17 | * `New.schrodingerAct`: the Schrödinger model, with the Heisenberg law |
| 18 | `New.schrodingerAct_schrodingerAct`. `New.semichar_smul_schrodingerAct` gives its form in the |
| 19 | normalisation that represents the lattice, and its vacuum is the box function |
| 20 | (`New.schrodingerAct_boxIndicator`). |
| 21 | * `New.Space.mem_range_schrodingerCombination`: every Schwartz–Bruhat function above `S` is a finite |
| 22 | combination of Heisenberg translates of the box function. |
| 23 | |
| 24 | Notions from other files: |
| 25 | * `New.idem S`: the finite adele with component 1 at the places of `S` and 0 elsewhere, so that |
| 26 | `idem S • x` is the part of `x` at `S`. |
| 27 | * `New.stdLattice.selfDualAddChar`: a character of the finite adeles for which `Ô^n` is its own dual |
| 28 | under the pairing `selfDualAddChar E (y* x)`. |
| 29 | * `Set.conjClosure`: the set `S ∪ S̄` of the places in `S` and their complex conjugates; |
| 30 | `Set.IsConjDisjoint S` says that `S` and `S̄` are disjoint. |
| 31 | * `New.stdLattice.half` is `1 / 2`, `New.stdLattice.traceOneAdele` an integer `c₀` with |
| 32 | `c₀ + c̄₀ = 1`, and `New.stdLattice.semichar x` is `selfDualAddChar E (c₀ / 2 * x* x)`. |
| 33 | |
| 34 | ## Relation to the literature |
| 35 | |
| 36 | Known; see `Lib.Weil.MixedModel.ZeroTerm` for sources. |
| 37 | -/ |
| 38 | |
| 39 | @[expose] public section |
| 40 | |
| 41 | noncomputable section |
| 42 | |
| 43 | namespace New |
| 44 | |
| 45 | open NumberField Filter MeasureTheory Matrix ComplexConjugate AddSubgroup QuotientAddGroup |
| 46 | OpenAddSubgroup Quotient stdLattice Submodule AddChar Set Prod |
| 47 | |
| 48 | section |
| 49 | |
| 50 | variable {E : Type*} [Field E] [NumberField E] [IsCMField E] |
| 51 | (n : Type*) [Fintype n] [DecidableEq n] (S : Set (FinPlace E)) |
| 52 | |
| 53 | /-! ### The box, coset functions and the partial determinant -/ |
| 54 | |
| 55 | /-- The additive group of finite adelic n-vectors that are integral at every place of S. -/ |
| 56 | def integralBox : AddSubgroup (n → 𝔸f E) := |
| 57 | (stdLattice E n).comap (idem S • AddMonoidHom.id (n → 𝔸f E)) |
| 58 | |
| 59 | open scoped Classical in |
| 60 | /-- The complex-valued indicator function of the finite adelic n-vectors that are integral at |
| 61 | every place of S. -/ |
| 62 | def boxIndicator (x : n → 𝔸f E) : ℂ := if x ∈ integralBox n S then (1 : ℂ) else 0 |
| 63 | |
| 64 | variable {n} |
| 65 | |
| 66 | /-- Ψ is Schwartz–Bruhat above S: it depends only on the components at S, is locally constant, |
| 67 | and the S-parts of its support lie in a compact set. -/ |
| 68 | @[local grind] |
| 69 | class IsSchwartzBruhat (Ψ : (n → 𝔸f E) → ℂ) where |
| 70 | /-- `Ψ x` depends only on the components of `x` at the places of `S`. -/ |
| 71 | idem_smul (x : n → 𝔸f E) : Ψ (idem S • x) = Ψ x |
| 72 | /-- `Ψ` is locally constant. -/ |
| 73 | locally_constant : IsLocallyConstant Ψ |
| 74 | /-- On the support of `Ψ`, the part of `x` at the places of `S` stays in a compact set. -/ |
| 75 | compact_support : ∃ C : Set (n → 𝔸f E), IsCompact C ∧ ∀ x : n → 𝔸f E, Ψ x ≠ 0 → idem S • x ∈ C |
| 76 | |
| 77 | /-- The homomorphism sending g in GL_n of the finite adeles to the idele equal to det g at the |
| 78 | places of S and 1 elsewhere. -/ |
| 79 | @[simps! apply_val_fst] |
| 80 | def detOn : GL n (𝔸f E) →* (𝔸 E)ˣ := |
| 81 | finIdeleIncl.comp (GeneralLinearGroup.det.comp (cutGL (idem_mul_self S))) |
| 82 | |
| 83 | /-- The indicator function of the finite adelic vectors x such that t⁻¹(x − z) is integral at |
| 84 | every place of S. -/ |
| 85 | abbrev cosetIndicator (t : (𝔸f E)ˣ) (z x : n → 𝔸f E) : ℂ := boxIndicator n S (t⁻¹.val • (x - z)) |
| 86 | |
| 87 | variable {S} (g : Gf E n) (hS : S.IsConjDisjoint) {Φ Ψ : (n → 𝔸f E) → ℂ} [hΨ : IsSchwartzBruhat S Ψ] |
| 88 | |
| 89 | open scoped Classical in |
| 90 | omit [IsCMField E] [Fintype n] [DecidableEq n] in |
| 91 | /-- The indicator function of the integral box evaluates to 1 on `integralBox` and 0 outside. -/ |
| 92 | @[simp] |
| 93 | lemma boxIndicator_apply (x : n → 𝔸f E) : |
| 94 | boxIndicator n S x = (if x ∈ integralBox n S then 1 else 0) := |
| 95 | rfl |
| 96 | |
| 97 | omit [IsCMField E] [Fintype n] [DecidableEq n] in |
| 98 | /-- Membership in the integral box is equivalent to component integrality after scaling. -/ |
| 99 | lemma mem_integralBox {x : n → 𝔸f E} : x ∈ integralBox n S ↔ ∀ i : n, idem S * x i ∈ Ô E := .rfl |
| 100 | |
| 101 | omit [IsCMField E] [DecidableEq n] in |
| 102 | /-- The integral box `integralBox n S` is an open subset in the adelic topology. -/ |
| 103 | lemma isOpen_integralBox : (integralBox n S).IsOpen := isOpen_stdLattice.preimage (by continuity) |
| 104 | |
| 105 | open scoped Classical in |
| 106 | /-- The component of the idele `detOn S g` (`g` a finite adelic unitary point) at a finite place |
| 107 | `w`: `det g_w` if `w ∈ S`, and `1` otherwise. -/ |
| 108 | @[simp] |
| 109 | lemma detOn_apply (w : IsDedekindDomain.HeightOneSpectrum (𝓞 E)) : |
| 110 | (detOn S g.val).val.2 w = (if w ∈ S then (g.atPlace w).val.det else 1) := by |
| 111 | -- The simp writes the component as the determinant of the cut matrix at `w` (`↓` so that |
| 112 | -- `RingHom.map_det` applies before the matrix is expanded); at `w ∈ S` it is `g_w`, else `1`. |
| 113 | simp [detOn, ← evalAt_apply, map_add, Matrix.map_smul', cutGL, ↓ RingHom.map_det] |
| 114 | by_cases hw : w ∈ S |
| 115 | · simp [hw, evalAt_apply, Gf.atPlace] |
| 116 | · simp [hw, evalAt_apply] |
| 117 | |
| 118 | /-- For a finite adelic unitary point g (`g : Gf E n`) and a finite set T of finite places, the |
| 119 | idele det g_T is the product over w ∈ T of the ideles with component det g_w at w and 1 |
| 120 | elsewhere. -/ |
| 121 | lemma detOn_eq_prod (T : Finset (FinPlace E)) : |
| 122 | detOn T g.val = ∏ w ∈ T, locFullIdele w (g.atPlace w).det := by |
| 123 | classical |
| 124 | ext v |
| 125 | · -- At infinity both sides are `1`. |
| 126 | simp [locFullIdele, fst_prod] |
| 127 | · -- At the finite place `v` only the factor `w = v` differs from `1`. |
| 128 | -- The first call evaluates both sides at `v`; the second evaluates the product over `T`. |
| 129 | simp [locFullIdele, snd_prod, ← evalAt_apply] |
| 130 | simp_all [T.prod_eq_ite v, eq_comm] |
| 131 | |
| 132 | /-- At a single finite place, the cut determinant is the idele supported there. -/ |
| 133 | lemma detOn_singleton (w : FinPlace E) : |
| 134 | detOn ({w} : Set (FinPlace E)) g.val = locFullIdele w (g.atPlace w).det := by |
| 135 | simpa using detOn_eq_prod g ({w} : Finset (FinPlace E)) |
| 136 | |
| 137 | end |
| 138 | |
| 139 | section |
| 140 | |
| 141 | variable {E ι : Type*} [Field E] [NumberField E] |
| 142 | |
| 143 | /-- The preimage of the integral box at `S` under coordinatewise multiplication by `d`. -/ |
| 144 | def weightedIntegralBox (S : FinPlace E → Prop) (d : ι → 𝔸f E) : AddSubgroup (ι → 𝔸f E) := |
| 145 | ((integralBox ι {w | S w}).comap (AddMonoidHom.mulLeft d)).copy |
| 146 | {x | ∀ i w, S w → Valued.v (evalAt w (d i * x i)) ≤ 1} (by |
| 147 | ext x |
| 148 | simp [mem_integralBox, idem_mul_mem_Ô, AddMonoidHom.mulLeft, evalAt_apply]) |
| 149 | |
| 150 | @[simp] lemma mem_weightedIntegralBox {S : FinPlace E → Prop} {d x : ι → 𝔸f E} : |
| 151 | x ∈ weightedIntegralBox S d ↔ ∀ i w, S w → Valued.v ((d i * x i) w) ≤ 1 := Iff.rfl |
| 152 | |
| 153 | end |
| 154 | |
| 155 | attribute [local grind] IsSchwartzBruhat |
| 156 | |
| 157 | variable {E : Type*} [Field E] [CMType E] {n : Type*} [Fintype n] [DecidableEq n] |
| 158 | (S : Set (FinPlace E)) (g : Gf E n) (hS : S.IsConjDisjoint) {Ψ : (n → 𝔸f E) → ℂ} |
| 159 | [hΨ : IsSchwartzBruhat S Ψ] |
| 160 | |
| 161 | /-! ### The Schrödinger model -/ |
| 162 | |
| 163 | /-- The Schrödinger model at the places of `S`: the vector `y` acts on functions by |
| 164 | `Ψ ↦ (x ↦ selfDualAddChar E (½ y* (2 x + y)_S) * Ψ (x + y))`, where `z_S = idem S • z` is the part |
| 165 | of `z` at `S`. -/ |
| 166 | def schrodingerAct [WeilData E] (y : n → 𝔸f E) : Module.End ℂ ((n → 𝔸f E) → ℂ) := |
| 167 | LinearMap.pi fun x ↦ selfDualAddChar E (half * star y ⬝ᵥ idem S • (x + (x + y))) • LinearMap.proj |
| 168 | (x + y) |
| 169 | |
| 170 | omit [DecidableEq n] in |
| 171 | /-- The value of the Schrödinger operator of `y` on `f` at `x`. -/ |
| 172 | lemma schrodingerAct_apply [WeilData E] (y x : n → 𝔸f E) (f : (n → 𝔸f E) → ℂ) : |
| 173 | schrodingerAct S y f x = selfDualAddChar E (half * star y ⬝ᵥ idem S • (x + (x + y))) * f |
| 174 | (x + y) := |
| 175 | rfl |
| 176 | |
| 177 | /-- The linear map sending finitely supported coefficients c_y to the function ∑ c_y |
| 178 | `New.schrodingerAct` S y applied to the indicator of vectors integral on S. -/ |
| 179 | abbrev schrodingerCombination [WeilData E] : ((n → 𝔸f E) →₀ ℂ) →ₗ[ℂ] (n → 𝔸f E) → ℂ := |
| 180 | Finsupp.lift ((n → 𝔸f E) → ℂ) ℂ (n → 𝔸f E) (schrodingerAct S · (boxIndicator n S)) |
| 181 | |
| 182 | /-- The inner product ∫ conj(Ψ) Ψ′ over the finite adelic vectors integral off S, for the Haar |
| 183 | measure giving Ô^n mass one. -/ |
| 184 | def localInner (Ψ Ψ' : (n → 𝔸f E) → ℂ) : ℂ := |
| 185 | ∫ x : n → 𝔸f E in integralBox n Sᶜ, conj (Ψ x) * Ψ' x ∂latticeMeasure E n |
| 186 | |
| 187 | variable {S} |
| 188 | |
| 189 | omit [Fintype n] [DecidableEq n] in |
| 190 | /-- A vector integral off `S` and integral on `S` is integral everywhere. -/ |
| 191 | lemma integralBox_compl_inter : |
| 192 | SetLike.coe (integralBox n Sᶜ) ∩ integralBox n S = stdLattice E n := by |
| 193 | grind [mem_integralBox, mem_stdLattice, mem_Ô, SetLike.mem_coe, idem_mul_mem_Ô] |
| 194 | |
| 195 | lemma isLocallyConstant_selfDualAddChar [WeilData E] : IsLocallyConstant (selfDualAddChar E) := by |
| 196 | -- `selfDualAddChar E` is invariant under translation by the elements of `Ô E`, a neighbourhood of |
| 197 | -- `0`. |
| 198 | refine isLocallyConstant_of_eventually_add ((isOpen_Ô.eventually_mem (zero_mem _)).mono ?_) |
| 199 | simp_all [map_add_eq_mul, selfDualAddChar_eq_one_of_mem] |
| 200 | |
| 201 | open scoped Classical in |
| 202 | /-- The indicator of the vectors integral at every place of `S` is Schwartz–Bruhat above `S`. -/ |
| 203 | instance isSchwartzBruhat_boxIndicator : IsSchwartzBruhat S (boxIndicator n S) where |
| 204 | idem_smul := by simp [integralBox, smul_smul, idem_mul_self] |
| 205 | -- The box is an open subgroup, hence also closed. |
| 206 | locally_constant := |
| 207 | (LocallyConstant.charFn ℂ (isClopen ⟨integralBox n S, isOpen_integralBox⟩)).isLocallyConstant |
| 208 | -- Where the box function is not zero, the part at `S` lies in the lattice. |
| 209 | compact_support := ⟨stdLattice E n, isCompact_stdLattice, by simp [integralBox]⟩ |
| 210 | |
| 211 | namespace IsSchwartzBruhat |
| 212 | |
| 213 | section |
| 214 | |
| 215 | omit [DecidableEq n] |
| 216 | |
| 217 | /-- Let `Ψ` be Schwartz–Bruhat above `S` (instance `hΨ`), `A` a matrix with a left inverse `B` |
| 218 | (`B A y = y` for all `y`), and `y` a vector. Then `x ↦ Ψ (A x + y)` is |
| 219 | Schwartz–Bruhat above `S`. -/ |
| 220 | lemma comp {m : Type*} [Fintype m] {A : Matrix n m (𝔸f E)} (B : Matrix m n (𝔸f E)) |
| 221 | (h_left_inv : ∀ y : m → 𝔸f E, B *ᵥ A *ᵥ y = y) (y : n → 𝔸f E) : |
| 222 | IsSchwartzBruhat S fun x : m → 𝔸f E ↦ Ψ (A *ᵥ x + y) := by |
| 223 | obtain ⟨C, hC, h_supp⟩ := hΨ.compact_support |
| 224 | refine ⟨fun x ↦ ?_, hΨ.locally_constant.comp_continuous (by fun_prop), |
| 225 | (fun z ↦ B *ᵥ (z - idem S • y)) '' C, hC.image (by fun_prop), fun x hx ↦ |
| 226 | ⟨idem S • (A *ᵥ x + y), h_supp _ hx, by simp [smul_add, ← mulVec_smul, h_left_inv]⟩⟩ |
| 227 | rw [← hΨ.idem_smul (A *ᵥ (idem S • x) + y), ← hΨ.idem_smul (A *ᵥ x + y)] |
| 228 | simp [smul_add, mulVec_smul, smul_smul, idem_mul_self] |
| 229 | |
| 230 | /-- A translate of a Schwartz–Bruhat function above `S` is Schwartz–Bruhat above `S`. -/ |
| 231 | instance comp_add (y : n → 𝔸f E) : IsSchwartzBruhat S fun x : n → 𝔸f E ↦ Ψ (x + y) := by |
| 232 | simpa using comp (A := diagonal 1) 1 (by simp) y |
| 233 | |
| 234 | /-- The composite of a Schwartz–Bruhat function above `S` with an invertible matrix over the finite |
| 235 | adeles is Schwartz–Bruhat above `S`. -/ |
| 236 | instance comp_mulVec (g : GL n (𝔸f E)) : |
| 237 | IsSchwartzBruhat S fun x : n → 𝔸f E ↦ Ψ (g.val *ᵥ x) := by |
| 238 | simpa using comp g.inv (by simp) 0 |
| 239 | |
| 240 | /-- Let Ψ be Schwartz–Bruhat above S (instance `hΨ`) and t a finite idele, with Ψ(y) = Ψ(x) when |
| 241 | Ψ(x) ≠ 0 and t⁻¹(y − x) is integral on S. Then there is a finite set A of vectors q with Ψ(q) ≠ 0 |
| 242 | such that Ψ = ∑_{q ∈ A} Ψ(q) · `cosetIndicator S t q`. -/ |
| 243 | lemma eq_sum_cosetIndicator (t : (𝔸f E)ˣ) |
| 244 | (h_per : ∀ x : n → 𝔸f E, Ψ x ≠ 0 → ∀ y : n → 𝔸f E, |
| 245 | t⁻¹.val • (y - x) ∈ integralBox n S → Ψ y = Ψ x) : |
| 246 | ∃ A : Finset (n → 𝔸f E), (∀ q ∈ A, Ψ q ≠ 0) ∧ Ψ = ∑ q ∈ A, Ψ q • cosetIndicator S t q := by |
| 247 | classical |
| 248 | -- Take one representative of each class modulo the open subgroup `U` and keep those at which |
| 249 | -- `Ψ` does not vanish. |
| 250 | let U : OpenAddSubgroup (n → 𝔸f E) := |
| 251 | comap (smulAddHom _ _ t⁻¹.val) (continuous_const_smul _) ⟨integralBox n S, isOpen_integralBox⟩ |
| 252 | have mem_box_iff {x y : n → 𝔸f E} : |
| 253 | t⁻¹.val • (y - x) ∈ integralBox n S ↔ (y : _ ⧸ U.toAddSubgroup) = x := |
| 254 | (eq_iff_sub_mem (N := U.toAddSubgroup)).symm |
| 255 | obtain ⟨C, hC, h_supp⟩ := hΨ.compact_support |
| 256 | -- These classes are finitely many: each meets the compact set `C`, as `q.out` and its part at |
| 257 | -- `S` are congruent modulo `U`, and the quotient is discrete. |
| 258 | have h_fin : (Function.support fun q : _ ⧸ U.toAddSubgroup ↦ Ψ q.out).Finite := |
| 259 | (hC.image continuous_mk).finite_of_discrete.subset fun q hq ↦ ⟨_, h_supp _ hq, |
| 260 | (mem_box_iff.mp (by simp +contextual [mem_integralBox, idem_mul_mem_Ô])).trans q.out_eq⟩ |
| 261 | refine ⟨h_fin.toFinset.image out, by simp, ?_⟩ |
| 262 | -- At `x` only the class of `x` contributes, and `Ψ` is constant on each class. |
| 263 | suffices h : ∀ x : n → 𝔸f E, Ψ x = if Ψ (out (x : (n → 𝔸f E) ⧸ U.toAddSubgroup)) = 0 then 0 |
| 264 | else Ψ (out (x : (n → 𝔸f E) ⧸ U.toAddSubgroup)) by |
| 265 | simpa [funext_iff, mem_box_iff] using h |
| 266 | intro x |
| 267 | split_ifs with hq |
| 268 | · exact by_contra fun hx ↦ hx ((h_per x hx _ (mem_box_iff.mpr (out_eq _))).symm.trans hq) |
| 269 | · exact h_per _ hq x (mem_box_iff.mpr (out_eq _).symm) |
| 270 | |
| 271 | open scoped Pointwise in |
| 272 | /-- For `Ψ` Schwartz–Bruhat above `S` (instance `hΨ`) and a continuous `F`, the product `F Ψ` is |
| 273 | integrable on the vectors integral off `S`, for the measure `New.latticeMeasure` that gives `Ô^n` |
| 274 | mass one. -/ |
| 275 | lemma integrableOn_mul {F : (n → 𝔸f E) → ℂ} (hF : Continuous F) : |
| 276 | IntegrableOn (fun x : n → 𝔸f E ↦ F x * Ψ x) (integralBox n Sᶜ) (latticeMeasure E n) := by |
| 277 | -- On `integralBox n Sᶜ` the support of `F Ψ` lies in the compact set `C + stdLattice E n`, on |
| 278 | -- which the continuous function `F Ψ` is integrable. |
| 279 | obtain ⟨C, hC, h_supp⟩ : ∃ C : Set (n → 𝔸f E), IsCompact C ∧ |
| 280 | ∀ x : n → 𝔸f E, Ψ x ≠ 0 → idem S • x ∈ C := hΨ.compact_support |
| 281 | have h_int : IntegrableOn (fun x : n → 𝔸f E ↦ F x * Ψ x) (C + (stdLattice E n : Set (n → 𝔸f E))) |
| 282 | (latticeMeasure E n) := |
| 283 | (hC.add isCompact_stdLattice).integrableOn _ (hF.mul hΨ.locally_constant.continuous) |
| 284 | have h_subset : (integralBox n Sᶜ : Set (n → 𝔸f E)) ∩ Function.support (fun x ↦ F x * Ψ x) ⊆ |
| 285 | C + (stdLattice E n : Set (n → 𝔸f E)) := by |
| 286 | rintro x ⟨hx_box, hx⟩ |
| 287 | -- `x` is its part at `S`, in `C`, plus its part off `S`, in the lattice. |
| 288 | have h_split : idem S • x + idem Sᶜ • x = x := by aesop (add simp idem_apply) |
| 289 | exact ⟨idem S • x, h_supp x (right_ne_zero_of_mul hx), idem Sᶜ • x, hx_box, h_split⟩ |
| 290 | exact .of_inter_support isOpen_integralBox.measurableSet (h_int.mono_set h_subset) |
| 291 | |
| 292 | /-- A Schwartz–Bruhat function Ψ above S (instance `hΨ`) lies in a subspace P if each y with |
| 293 | Ψ(y) ≠ 0 has a neighbourhood U such that P contains every coset function `cosetIndicator S t z`, |
| 294 | t an integral idele, whose coset has S-parts in U. -/ |
| 295 | lemma mem_of_cosets (P : Submodule ℂ ((n → 𝔸f E) → ℂ)) |
| 296 | (h_small : ∀ y : n → 𝔸f E, Ψ y ≠ 0 → ∃ U ∈ nhds y, |
| 297 | ∀ (t : (𝔸f E)ˣ) (z : n → 𝔸f E), t.val ∈ Ô E → |
| 298 | (∀ x : n → 𝔸f E, t⁻¹.val • (x - z) ∈ integralBox n S → idem S • x ∈ U) → |
| 299 | cosetIndicator S t z ∈ P) : |
| 300 | Ψ ∈ P := by |
| 301 | -- By compactness of the support one integer `N` makes every coset of `N` times the box through |
| 302 | -- the support small enough; `Ψ` is constant on these cosets, so it is a finite sum of them. |
| 303 | obtain ⟨C, hC, h_supp⟩ : ∃ C : Set (n → 𝔸f E), IsCompact C ∧ |
| 304 | ∀ x : n → 𝔸f E, Ψ x ≠ 0 → idem S • x ∈ C := hΨ.compact_support |
| 305 | choose! U hU h_coset_mem using h_small |
| 306 | have h_nhds (y : n → 𝔸f E) : {x | Ψ x = Ψ y ∧ (Ψ y ≠ 0 → x ∈ U y)} ∈ nhds y := |
| 307 | (hΨ.locally_constant.eventually_eq y).and (eventually_imp_distrib_left.mpr (hU y)) |
| 308 | -- Take a Lebesgue entourage `W` for the cover of `C` by these neighbourhoods, and `N ≠ 0` such |
| 309 | -- that points that differ by an element of `N` times the lattice are `W`-close. |
| 310 | let uniformSpace : UniformSpace (n → 𝔸f E) := IsTopologicalAddGroup.rightUniformSpace (n → 𝔸f E) |
| 311 | obtain ⟨W, hW, h_ball_subset⟩ : ∃ W ∈ uniformity (n → 𝔸f E), ∀ x ∈ C, ∃ y : n → 𝔸f E, |
| 312 | SetRel.ball (SetRel.inv W) x ⊆ {z | Ψ z = Ψ y ∧ (Ψ y ≠ 0 → z ∈ U y)} := by |
| 313 | obtain ⟨V, hV, h_ball⟩ := lebesgue_number_lemma_nhds hC fun y _ ↦ h_nhds y |
| 314 | exact ⟨SetRel.inv V, tendsto_swap_uniformity hV, h_ball⟩ |
| 315 | obtain ⟨N, hN, h_smul_mem⟩ : ∃ N : ℕ, N ≠ 0 ∧ ∀ x ∈ (stdLattice E n).carrier, |
| 316 | (N : 𝔸f E) • x ∈ {z | ∀ ⦃p : (n → 𝔸f E) × (n → 𝔸f E)⦄, p.2 + -p.1 = z → p ∈ W} := |
| 317 | exists_natCast_smul_mem_of_isCompact E isCompact_stdLattice (mem_comap'.mp hW) |
| 318 | obtain ⟨t, ht⟩ : ∃ t : (𝔸f E)ˣ, (t : 𝔸f E) = N := isUnit_natCast_finAdele hN |
| 319 | have h_coset_center (q : n → 𝔸f E) (hq : Ψ q ≠ 0) : ∃ y : n → 𝔸f E, ∀ x : n → 𝔸f E, |
| 320 | t⁻¹.val • (x - q) ∈ integralBox n S → |
| 321 | Ψ (idem S • x) = Ψ y ∧ (Ψ y ≠ 0 → idem S • x ∈ U y) := by |
| 322 | obtain ⟨y, hy⟩ : ∃ y : n → 𝔸f E, |
| 323 | SetRel.ball (SetRel.inv W) (idem S • q) ⊆ {z | Ψ z = Ψ y ∧ (Ψ y ≠ 0 → z ∈ U y)} := |
| 324 | h_ball_subset _ (h_supp q hq) |
| 325 | refine ⟨y, fun x hx ↦ hy (h_smul_mem _ hx ?_)⟩ |
| 326 | simp [← ht, mul_left_comm (t : 𝔸f E), sub_eq_add_neg, smul_smul] |
| 327 | -- Each vector lies in its own coset, so `Ψ` is constant on the cosets through its support. |
| 328 | have h_mem_self (q : n → 𝔸f E) : t⁻¹.val • (q - q) ∈ integralBox n S := by simp |
| 329 | have h_per : ∀ x : n → 𝔸f E, Ψ x ≠ 0 → ∀ y : n → 𝔸f E, |
| 330 | t⁻¹.val • (y - x) ∈ integralBox n S → Ψ y = Ψ x := by |
| 331 | intro x hx y hy |
| 332 | obtain ⟨c, hc⟩ := h_coset_center x hx |
| 333 | rw [← hΨ.idem_smul y, ← hΨ.idem_smul x, (hc y hy).left, (hc x (h_mem_self x)).left] |
| 334 | obtain ⟨A, hA, h_sum_eq⟩ : ∃ A : Finset (n → 𝔸f E), (∀ q ∈ A, Ψ q ≠ 0) ∧ |
| 335 | Ψ = ∑ q ∈ A, Ψ q • cosetIndicator S t q := hΨ.eq_sum_cosetIndicator t h_per |
| 336 | rw [h_sum_eq] |
| 337 | refine sum_smul_mem _ _ fun q hq ↦ ?_ |
| 338 | obtain ⟨y, hy⟩ := h_coset_center q (hA q hq) |
| 339 | -- `Ψ y = Ψ q`, read at `q` itself, is not zero. |
| 340 | have hy_ne : Ψ y ≠ 0 := by |
| 341 | rw [← (hy q (h_mem_self q)).left, hΨ.idem_smul] |
| 342 | exact hA q hq |
| 343 | have ht_int : t.val ∈ Ô E := by simp [ht] |
| 344 | have h_coset : ∀ x : n → 𝔸f E, t⁻¹.val • (x - q) ∈ integralBox n S → idem S • x ∈ U y := |
| 345 | fun x hx ↦ (hy x hx).right hy_ne |
| 346 | exact h_coset_mem y hy_ne t q ht_int h_coset |
| 347 | |
| 348 | end |
| 349 | |
| 350 | end IsSchwartzBruhat |
| 351 | |
| 352 | open scoped Classical in |
| 353 | /-- The coset functions are Schwartz–Bruhat above `S`. -/ |
| 354 | instance (t : (𝔸f E)ˣ) (z : n → 𝔸f E) : |
| 355 | IsSchwartzBruhat S fun x : n → 𝔸f E ↦ cosetIndicator S t z x := by |
| 356 | -- `using!`: simp unfolds `boxIndicator` only in the goal, and unfolding it in the term times out. |
| 357 | simpa [sub_eq_add_neg] using! (isSchwartzBruhat_boxIndicator.comp_add _).comp_mulVec (.scalar _ _) |
| 358 | |
| 359 | include hS in |
| 360 | /-- For `S` disjoint from its conjugate (hypothesis `hS`), the idempotents of `S` and of `S̄` have |
| 361 | product zero. -/ |
| 362 | lemma idem_mul_star : idem S * star (idem S) = 0 := by aesop (add simp [disjoint_left, idem_apply]) |
| 363 | |
| 364 | include hS in |
| 365 | /-- For `S` disjoint from its conjugate (hypothesis `hS`), the idempotent of `S ∪ S̄` is the sum of |
| 366 | those of `S` and of `S̄`. -/ |
| 367 | lemma idem_conjClosure_eq_add_star : idem S.conjClosure = idem S + star (idem S) := by |
| 368 | aesop (add simp [disjoint_left, idem_apply]) |
| 369 | |
| 370 | variable [WeilData E] |
| 371 | |
| 372 | section |
| 373 | |
| 374 | omit [DecidableEq n] |
| 375 | |
| 376 | include hS in |
| 377 | /-- The Heisenberg law, for `S` disjoint from its conjugate (hypothesis `hS`): the operators compose |
| 378 | up to the bicharacter `β` of `New.stdLattice.finHeisenberg` at the parts of `y` and `y'` at |
| 379 | `S ∪ S̄`. -/ |
| 380 | lemma schrodingerAct_schrodingerAct (y y' : n → 𝔸f E) (f : (n → 𝔸f E) → ℂ) : |
| 381 | schrodingerAct S y (schrodingerAct S y' f) = |
| 382 | (stdLattice.finHeisenberg E n).β (idem S.conjClosure • y) (idem S.conjClosure • y') • |
| 383 | schrodingerAct S (y + y') f := by |
| 384 | funext x |
| 385 | -- Both sides are `selfDualAddChar E` of an exponent times `f (x + y + y')`, whose exponents |
| 386 | -- differ by `t + star t` for `t = -(half * idem S * star y ⬝ᵥ y')`. |
| 387 | simp only [schrodingerAct_apply, Pi.smul_apply, smul_eq_mul, ← mul_assoc, add_assoc] |
| 388 | refine congrArg (· * f (x + (y + y'))) ?_ |
| 389 | change selfDualAddChar E _ * selfDualAddChar E _ = selfDualAddChar E _ * selfDualAddChar E _ |
| 390 | rw [← map_add_eq_mul, ← map_add_eq_mul] |
| 391 | refine selfDualAddChar_congr (-(half * idem S * star y ⬝ᵥ y')) (zero_mem _) ?_ |
| 392 | rw [idem_conjClosure_eq_add_star hS] |
| 393 | simp only [star_smul, star_add, star_neg, star_star, star_mul, star_half, smul_dotProduct, |
| 394 | dotProduct_smul, add_dotProduct, dotProduct_add, add_smul, smul_add, smul_eq_mul] |
| 395 | linear_combination |
| 396 | -(half * (star y' ⬝ᵥ y)) * idem_mul_self S - |
| 397 | (half * (star y' ⬝ᵥ y)) * ((star_mul _ _).symm.trans (congrArg star (idem_mul_self S))) - |
| 398 | (2 * half * (star y' ⬝ᵥ y)) * idem_mul_star hS + |
| 399 | (half * star (idem S)) * (Matrix.star_dotProduct y' y).symm |
| 400 | |
| 401 | include hS in |
| 402 | /-- For `S` disjoint from its conjugate (hypothesis `hS`), the operator of `y`, corrected by the |
| 403 | semicharacter `semichar` of the part of `y` at `S ∪ S̄`, sends `Ψ` to |
| 404 | `x ↦ selfDualAddChar E (y* (x + c₀ y)_S) * Ψ (x + y)`, where `c₀ = traceOneAdele` and |
| 405 | `z_S = idem S • z`. -/ |
| 406 | lemma semichar_smul_schrodingerAct (y : n → 𝔸f E) (Ψ : (n → 𝔸f E) → ℂ) : |
| 407 | semichar (idem S.conjClosure • y) • schrodingerAct S y Ψ = |
| 408 | fun x : n → 𝔸f E ↦ |
| 409 | selfDualAddChar E (star y ⬝ᵥ idem S • (x + (traceOneAdele : 𝔸f E) • y)) * Ψ (x + y) := by |
| 410 | -- The two exponents on the left add up to the exponent on the right plus `t + star t`, which |
| 411 | -- `selfDualAddChar E` kills. |
| 412 | ext x |
| 413 | set t : 𝔸f E := star (traceOneAdele : 𝔸f E) * half * idem S ^ 2 * star y ⬝ᵥ y with ht |
| 414 | have h_exp : |
| 415 | (traceOneAdele : 𝔸f E) * half * star (idem S.conjClosure • y) ⬝ᵥ idem S.conjClosure • y + |
| 416 | half * star y ⬝ᵥ idem S • (x + (x + y)) = |
| 417 | star y ⬝ᵥ idem S • (x + (traceOneAdele : 𝔸f E) • y) + (t + star t) + 0 := by |
| 418 | -- Expand in `e = idem S`, `c₀`, `half` and the pairings `y* y`, `y* x`; the identity |
| 419 | -- holds since `e * e = e`, `e * star e = 0`, `c₀ + star c₀ = 1`, `2 * half = 1` and `y* y` |
| 420 | -- is self-adjoint. |
| 421 | rw [ht, idem_conjClosure_eq_add_star hS] |
| 422 | simp only [star_smul, star_add, star_star, star_mul, star_pow, star_half, smul_dotProduct, |
| 423 | dotProduct_smul, add_dotProduct, dotProduct_add, add_smul, smul_add, smul_eq_mul] |
| 424 | linear_combination |
| 425 | (traceOneAdele * idem S * (star y ⬝ᵥ y) + idem S * (star y ⬝ᵥ x)) * two_mul_half (E := E) - |
| 426 | (half * idem S * (star y ⬝ᵥ y)) * traceOneAdele_add_star (E := E) - |
| 427 | (traceOneAdele * half * star (idem S) ^ 2) * (Matrix.star_dotProduct y y).symm + |
| 428 | ((traceOneAdele * half - star traceOneAdele * half) * (star y ⬝ᵥ y)) * idem_mul_self S + |
| 429 | (2 * traceOneAdele * half * (star y ⬝ᵥ y)) * idem_mul_star hS |
| 430 | rw [Pi.smul_apply, schrodingerAct_apply, smul_eq_mul, ← mul_assoc, semichar, ← map_add_eq_mul, |
| 431 | selfDualAddChar_congr t (zero_mem _) h_exp] |
| 432 | |
| 433 | include hS in |
| 434 | /-- For `S` disjoint from its conjugate (hypothesis `hS`) and `y` integral on `S ∪ S̄`, the operator |
| 435 | of `y`, corrected by the semicharacter `semichar` of the part of `y` at `S ∪ S̄`, fixes the box |
| 436 | function. -/ |
| 437 | lemma schrodingerAct_boxIndicator {y : n → 𝔸f E} (hy : y ∈ integralBox n S.conjClosure) : |
| 438 | semichar (idem S.conjClosure • y) • schrodingerAct S y (boxIndicator n S) = |
| 439 | boxIndicator n S := by |
| 440 | classical |
| 441 | -- Translation by `y` preserves the box, and on the box the phase of |
| 442 | -- `semichar_smul_schrodingerAct` is `selfDualAddChar E` of an integral element. |
| 443 | have h_idem : star (idem S.conjClosure) * idem S = idem S := by |
| 444 | simp [idem_conjClosure_eq_add_star hS, mul_add, idem_mul_self, mul_comm _ (idem S), |
| 445 | idem_mul_star hS] |
| 446 | have hyS : idem S • y ∈ stdLattice E n := by |
| 447 | simpa [idem_conjClosure_eq_add_star hS, idem_mul_star hS, smul_smul, mul_add, |
| 448 | idem_mul_self] using smul_mem_stdLattice (idem_mem_Ô S) hy |
| 449 | have h_phase (x : n → 𝔸f E) (hx : idem S • x ∈ stdLattice E n) : |
| 450 | selfDualAddChar E (star y ⬝ᵥ idem S • (x + (traceOneAdele : 𝔸f E) • y)) = 1 := by |
| 451 | have h_vec : idem S • (x + (traceOneAdele : 𝔸f E) • y) ∈ stdLattice E n := by |
| 452 | rw [smul_add, smul_comm] |
| 453 | exact add_mem hx (smul_mem_stdLattice traceOneAdele_mem hyS) |
| 454 | have h_int : star (idem S.conjClosure • y) ⬝ᵥ idem S • (x + (traceOneAdele : 𝔸f E) • y) ∈ |
| 455 | Ô E := star_dotProduct_mem h_vec hy |
| 456 | rw [star_smul, smul_dotProduct, ← dotProduct_smul, smul_smul, h_idem] at h_int |
| 457 | exact selfDualAddChar_eq_one_of_mem h_int |
| 458 | rw [semichar_smul_schrodingerAct hS] |
| 459 | ext x |
| 460 | have h_box : x + y ∈ integralBox n S ↔ x ∈ integralBox n S := by |
| 461 | simp [integralBox, smul_add, add_mem_cancel_right hyS] |
| 462 | by_cases hx : x ∈ integralBox n S |
| 463 | · simp only [boxIndicator_apply, h_box, hx, ↓reduceIte, mul_one, h_phase x hx] |
| 464 | · simp [h_box, hx] |
| 465 | |
| 466 | end |
| 467 | |
| 468 | namespace IsSchwartzBruhat |
| 469 | |
| 470 | include hS in |
| 471 | omit [DecidableEq n] in |
| 472 | /-- For `S` disjoint from its conjugate (hypothesis `hS`) and `Ψ` Schwartz–Bruhat above `S` |
| 473 | (instance `hΨ`), a vector supported on `S` acts on `Ψ` by translation. -/ |
| 474 | lemma schrodingerAct_idem (y : n → 𝔸f E) : |
| 475 | schrodingerAct S (idem S • y) Ψ = fun x : n → 𝔸f E ↦ Ψ (x + y) := by |
| 476 | -- The phase is `selfDualAddChar E 0 = 1`, as `idem S * star (idem S) = 0`, and `Ψ` only sees the |
| 477 | -- part at `S`. |
| 478 | have h_exp (x : n → 𝔸f E) : |
| 479 | half * star (idem S • y) ⬝ᵥ idem S • (x + (x + idem S • y)) = 0 := by |
| 480 | simp only [star_smul, smul_dotProduct, dotProduct_smul, smul_eq_mul] |
| 481 | linear_combination (half * (star y ⬝ᵥ (x + (x + idem S • y)))) * idem_mul_star hS |
| 482 | have h_part (x : n → 𝔸f E) : Ψ (x + idem S • y) = Ψ (x + y) := by |
| 483 | rw [← hΨ.idem_smul (x + idem S • y), ← hΨ.idem_smul (x + y), smul_add, smul_add, smul_smul, |
| 484 | idem_mul_self] |
| 485 | funext x |
| 486 | rw [schrodingerAct_apply, h_exp x, map_zero_eq_one, one_mul, h_part x] |
| 487 | |
| 488 | include hS in |
| 489 | omit [DecidableEq n] in |
| 490 | /-- Let `E` be a CM number field with Weil data (instances `CMType E`, `WeilData E`; they fix the |
| 491 | character `selfDualAddChar E`), `n` a finite index type and `S` a set of finite places disjoint |
| 492 | from its conjugate (hypothesis `hS`), and let `Ψ` be Schwartz–Bruhat above `S` (instance `hΨ`). |
| 493 | Then a vector supported on the conjugate of `S` acts on `Ψ` by multiplication with a character. -/ |
| 494 | lemma schrodingerAct_star_idem_smul (y : n → 𝔸f E) : |
| 495 | schrodingerAct S (star (idem S) • y) Ψ = |
| 496 | fun x : n → 𝔸f E ↦ selfDualAddChar E (star y ⬝ᵥ idem S • x) * Ψ x := by |
| 497 | -- The exponent is `half * idem S * (2 y* x + star (idem S) y* y)`, that is `idem S * y* x`, as |
| 498 | -- `2 * half = 1` and `idem S * star (idem S) = 0`; `Ψ` does not see `star (idem S) • y`. |
| 499 | have h_exp (x : n → 𝔸f E) : |
| 500 | half * star (star (idem S) • y) ⬝ᵥ idem S • (x + (x + star (idem S) • y)) = |
| 501 | star y ⬝ᵥ idem S • x := by |
| 502 | simp only [star_smul, star_star, smul_dotProduct, dotProduct_smul, dotProduct_add, smul_eq_mul] |
| 503 | linear_combination |
| 504 | (half * 2 * (star y ⬝ᵥ x) + half * star (idem S) * (star y ⬝ᵥ y)) * idem_mul_self S + |
| 505 | (half * (star y ⬝ᵥ y)) * idem_mul_star hS + (idem S * (star y ⬝ᵥ x)) * two_mul_half (E := E) |
| 506 | have h_part (x : n → 𝔸f E) : Ψ (x + star (idem S) • y) = Ψ x := by |
| 507 | rw [← hΨ.idem_smul (x + star (idem S) • y), ← hΨ.idem_smul x, smul_add, smul_smul, |
| 508 | idem_mul_star hS, zero_smul, add_zero] |
| 509 | funext x |
| 510 | rw [schrodingerAct_apply, h_exp x, h_part x] |
| 511 | |
| 512 | include hS in |
| 513 | /-- The Schrödinger operators keep the Schwartz–Bruhat functions above `S`. -/ |
| 514 | instance (y : n → 𝔸f E) : IsSchwartzBruhat S (schrodingerAct S y Ψ) := by |
| 515 | -- `schrodingerAct S y Ψ` is the translate of `Ψ` by `y` times a locally constant function. |
| 516 | have h_add : IsSchwartzBruhat S fun x : n → 𝔸f E ↦ Ψ (x + y) := hΨ.comp_add y |
| 517 | refine ⟨?_, (isLocallyConstant_selfDualAddChar.comp_continuous (by fun_prop)).mul |
| 518 | h_add.locally_constant, ?_⟩ |
| 519 | · intro x |
| 520 | -- The phase and `Ψ` only see the part of `x` at `S`. |
| 521 | have h_vec : idem S • (idem S • x + (idem S • x + y)) = idem S • (x + (x + y)) := by |
| 522 | simp only [smul_add, smul_smul, idem_mul_self] |
| 523 | rw [schrodingerAct_apply, schrodingerAct_apply, h_vec, ← hΨ.idem_smul, |
| 524 | ← hΨ.idem_smul (x + y)] |
| 525 | simp only [smul_add, smul_smul, idem_mul_self] |
| 526 | · simp only [schrodingerAct_apply] |
| 527 | -- Where the product is not zero, `Ψ (x + y)` is not zero. |
| 528 | obtain ⟨C, hC, h_supp⟩ := h_add.compact_support |
| 529 | exact ⟨C, hC, fun x hx ↦ h_supp x (right_ne_zero_of_mul hx)⟩ |
| 530 | |
| 531 | /-! ### Translates of the box function span -/ |
| 532 | |
| 533 | /-- Let `E` be a CM number field with Weil data (instances `CMType E`, `WeilData E`; they fix the |
| 534 | character in `schrodingerAct`), `n` a finite index type and `S` a set of finite places of `E` |
| 535 | disjoint from its complex conjugate. Let `Φ` be a function on finite adelic `n`-vectors that is |
| 536 | Schwartz–Bruhat above `S`: locally constant, depending only on the components at `S`, and with |
| 537 | compact support there. Then `Φ` is a finite combination of Heisenberg translates of the box |
| 538 | function: there are finitely supported coefficients `c` with |
| 539 | `Φ = ∑ c y • schrodingerAct S y (boxIndicator n S)`, which is `schrodingerCombination S c`. Here |
| 540 | `boxIndicator n S` is the indicator of the vectors integral at every place of `S`. -/ |
| 541 | lemma _root_.New.Space.mem_range_schrodingerCombination {S : Set (FinPlace E)} |
| 542 | (hS : S.IsConjDisjoint) {Φ : (n → 𝔸f E) → ℂ} (hΦ : IsSchwartzBruhat S Φ) : |
| 543 | ∃ c : (n → 𝔸f E) →₀ ℂ, schrodingerCombination S c = Φ := by |
| 544 | classical |
| 545 | -- It suffices to treat a coset function. By Fourier inversion on the finite group |
| 546 | -- `stdLattice / (B ∩ stdLattice)`, with `B` equal to `star t` times the lattice, the coset |
| 547 | -- function is a multiple of a sum over the classes `q`. Each term is the box function, twisted by |
| 548 | -- the character of `q` and moved to `z`. |
| 549 | suffices h_coset : ∀ (t : (𝔸f E)ˣ) (z : n → 𝔸f E), t.val ∈ Ô E → |
| 550 | cosetIndicator S t z ∈ (schrodingerCombination S).range by |
| 551 | exact hΦ.mem_of_cosets (schrodingerCombination S).range fun _ _ ↦ |
| 552 | ⟨Set.univ, univ_mem, fun t z ht _ ↦ h_coset t z ht⟩ |
| 553 | intro t z ht |
| 554 | let B : OpenAddSubgroup (n → 𝔸f E) := |
| 555 | comap (smulAddHom (𝔸f E) (n → 𝔸f E) (star t⁻¹.val)) (continuous_const_smul _) |
| 556 | ⟨stdLattice E n, isOpen_stdLattice⟩ |
| 557 | let h_fintype : Fintype (stdLattice E n ⧸ B.toAddSubgroup.addSubgroupOf (stdLattice E n)) := |
| 558 | fintypeOfIndexNeZero (isCompact_stdLattice.relIndex_ne_zero_add B.isOpen) |
| 559 | let f (q : stdLattice E n ⧸ B.toAddSubgroup.addSubgroupOf (stdLattice E n)) : (n → 𝔸f E) → ℂ := |
| 560 | schrodingerAct S (idem S • -z) |
| 561 | (schrodingerAct S (star (idem S) • -(star t⁻¹.val • (q.out : n → 𝔸f E))) (boxIndicator n S)) |
| 562 | suffices h_eq : cosetIndicator S t z = |
| 563 | ((latticeMeasure E n).real (B ∩ stdLattice E n) : ℂ) • ∑ q, f q by |
| 564 | -- By the Heisenberg law each `f q` is a multiple of a translate of the box function. |
| 565 | have h_translate (y : n → 𝔸f E) : |
| 566 | schrodingerAct S y (boxIndicator n S) ∈ (schrodingerCombination S).range := |
| 567 | ⟨Finsupp.single y 1, by simp⟩ |
| 568 | rw [h_eq] |
| 569 | refine smul_mem _ _ (sum_mem fun q _ ↦ ?_) |
| 570 | simp only [f, schrodingerAct_schrodingerAct hS] |
| 571 | exact smul_mem _ _ (h_translate _) |
| 572 | -- Evaluate at `x + z`; the two operators in `f q` are a translation and a character. |
| 573 | funext w |
| 574 | obtain ⟨x, rfl⟩ : ∃ x : n → 𝔸f E, x + z = w := ⟨w - z, sub_add_cancel w z⟩ |
| 575 | have h_term (q : stdLattice E n ⧸ B.toAddSubgroup.addSubgroupOf (stdLattice E n)) : |
| 576 | f q (x + z) = selfDualAddChar E (star (idem S • t⁻¹.val • x) ⬝ᵥ (q.out : n → 𝔸f E)) * |
| 577 | boxIndicator n S x := by |
| 578 | have h_arg (u : n → 𝔸f E) : star (-(star t⁻¹.val • u)) ⬝ᵥ idem S • x = |
| 579 | star (-(star (idem S • t⁻¹.val • x) ⬝ᵥ u)) := by |
| 580 | rw [Matrix.star_dotProduct] |
| 581 | simp [mul_left_comm] |
| 582 | simp only [f] |
| 583 | rw [schrodingerAct_idem hS, schrodingerAct_star_idem_smul hS] |
| 584 | simp only [add_neg_cancel_right, h_arg, selfDualAddChar_star, neg_neg] |
| 585 | by_cases hx : x ∈ integralBox n S |
| 586 | · -- Compute the integral of the character of `t⁻¹ • x` over the lattice in two ways: as a sum |
| 587 | -- over the cosets of `B`, on which it is constant, and as `1` or `0` by self-duality. |
| 588 | have h_const : ∀ y₁ y₂ : stdLattice E n, -(y₁ : n → 𝔸f E) + y₂ ∈ B → |
| 589 | selfDualAddChar E (star (idem S • t⁻¹.val • x) ⬝ᵥ (y₂ : n → 𝔸f E)) = |
| 590 | selfDualAddChar E (star (idem S • t⁻¹.val • x) ⬝ᵥ (y₁ : n → 𝔸f E)) := by |
| 591 | -- Two points of one coset differ by a vector pairing integrally with `idem S • t⁻¹ • x`. |
| 592 | intro y₁ y₂ h_diff |
| 593 | have h_int : star (idem S • x) ⬝ᵥ star t⁻¹.val • (-(y₁ : n → 𝔸f E) + y₂) ∈ Ô E := |
| 594 | star_dotProduct_mem h_diff hx |
| 595 | have h_split : star (idem S • t⁻¹.val • x) ⬝ᵥ (y₂ : n → 𝔸f E) = |
| 596 | star (idem S • t⁻¹.val • x) ⬝ᵥ (y₁ : n → 𝔸f E) + |
| 597 | star (idem S • x) ⬝ᵥ star t⁻¹.val • (-(y₁ : n → 𝔸f E) + y₂) := by |
| 598 | simp only [star_smul, smul_dotProduct, dotProduct_smul, dotProduct_add, dotProduct_neg, |
| 599 | smul_eq_mul] |
| 600 | ring |
| 601 | rw [h_split, map_add_eq_mul, selfDualAddChar_eq_one_of_mem h_int, mul_one] |
| 602 | have h_integral_eq_sum : ∫ y in (stdLattice E n : Set (n → 𝔸f E)), |
| 603 | selfDualAddChar E (star (idem S • t⁻¹.val • x) ⬝ᵥ y) ∂latticeMeasure E n = |
| 604 | (latticeMeasure E n).real (B ∩ stdLattice E n) • |
| 605 | ∑ᶠ q : stdLattice E n ⧸ B.toAddSubgroup.addSubgroupOf (stdLattice E n), |
| 606 | selfDualAddChar E (star (idem S • t⁻¹.val • x) ⬝ᵥ (q.out : n → 𝔸f E)) := |
| 607 | setIntegral_eq_finsum (ν := latticeMeasure E n) isCompact_stdLattice B.isOpen |
| 608 | (F := fun y ↦ selfDualAddChar E (star (idem S • t⁻¹.val • x) ⬝ᵥ y)) h_const |
| 609 | rw [integral_selfDualAddChar_stdLattice, finsum_eq_sum_of_fintype] at h_integral_eq_sum |
| 610 | have h_lhs : cosetIndicator S t z (x + z) = |
| 611 | if idem S • t⁻¹.val • x ∈ stdLattice E n then 1 else 0 := by |
| 612 | simp [cosetIndicator, integralBox] |
| 613 | have h_box : boxIndicator n S x = 1 := by simp [hx] |
| 614 | simp only [h_lhs, h_integral_eq_sum, Pi.smul_apply, Finset.sum_apply, h_term, h_box, mul_one, |
| 615 | Complex.real_smul, smul_eq_mul] |
| 616 | · -- Off the box both sides vanish, because `t` is integral. |
| 617 | have h_not : t⁻¹.val • x ∉ integralBox n S := by |
| 618 | refine fun h_mem ↦ hx ?_ |
| 619 | have h_t : t.val • idem S • t⁻¹.val • x ∈ stdLattice E n := smul_mem_stdLattice ht h_mem |
| 620 | rwa [smul_smul, smul_smul, mul_right_comm, Units.mul_inv, one_mul] at h_t |
| 621 | simp [cosetIndicator, h_term, hx, h_not] |
| 622 | |
| 623 | end IsSchwartzBruhat |
| 624 | |
| 625 | end New |
| 626 | |
| 627 | end |