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 | public import Mathlib.LinearAlgebra.FreeModule.IdealQuotient -- shake: keep (needed public by an exposed definition) |
| 4 | import Mathlib.Topology.Algebra.Group.Units |
| 5 | import Lib.General.Measure.HaarNormalisation |
| 6 | public import Mathlib.Topology.Algebra.Star.Unitary -- shake: keep (needed public by an exposed definition) |
| 7 | public import Lib.Weil.MixedModel.NamedData |
| 8 | public import Lib.Adelic.Unitary.GramMatrix |
| 9 | public import Lib.Weil.DualPair.Kronecker |
| 10 | public import Lib.Adelic.Adeles.LocalFactors -- shake: keep (needed public by an exposed definition) |
| 11 | |
| 12 | /-! |
| 13 | # Hom(S,T), the Weil representation and theta kernel of a pair, and data modulo an ideal |
| 14 | |
| 15 | For hermitian spaces `S`, `T` (`New.Space`) of ranks `n`, `n'`, the `n' × n` matrices form a space |
| 16 | `Hom(S, T)`. The pair `(g, h)` acts on it by `x ↦ h x g⁻¹`. The Weil representation `New.Space.ω` of |
| 17 | that space restricts to the pair. Theta kernels are also built from a polynomial at the real places |
| 18 | and a function modulo an ideal at the finite places. |
| 19 | |
| 20 | ## Main definitions and results |
| 21 | |
| 22 | * `New.Space.hom`, `New.G.onHom`: the space `Hom(S, T)` and the map `U(S) × U(T) → U(Hom(S, T))`. |
| 23 | * `New.pairWeil S T a b`: the representation of the pair, twisted by `a (det h) * b (det g)⁻¹` |
| 24 | (`New.pairChar`), for characters `a, b` of `[U(1)]` (`New.AutChar`). |
| 25 | * `New.pairTheta`: the theta kernel, the theta functional `New.Space.θ` of |
| 26 | `pairWeil S T a b (g, h) f`. |
| 27 | * `New.Modulus`: a non-zero ideal `𝔪` of `𝓞 E` such that no prime `w` divides it together with the |
| 28 | complex conjugate of `w`; `New.Modulus.ResidueRing` is the finite ring `𝓞 E ⧸ 𝔪`, |
| 29 | `New.Modulus.places` the set of primes dividing `𝔪` and `New.Modulus.reduction` a reduction map |
| 30 | from `New.Ô E`. |
| 31 | * `New.modDatum`: the vector in the data space of `New.Space.hom S T` with real part `v`, with `Ψ` |
| 32 | at the primes dividing `𝔪` (`New.Space.schrodingerOp`) and the vacuum elsewhere. |
| 33 | * `New.modKernel`: its theta kernel `New.pairTheta`, for `v` the Fock vector of a polynomial. |
| 34 | |
| 35 | Notions from other files: |
| 36 | * `New.Space`: a hermitian space over a CM field E with `CMType E` (a chosen embedding at each |
| 37 | infinite place; it contains `NumberField E` and `IsCMField E`), with a point, given by a matrix J |
| 38 | over E and x in GL_n(𝔸) with xᴴJx equal to diag(s), for a sign vector s, at the infinite places |
| 39 | and 1 at the finite places; `𝒮 V` is the data space of such a space V, on which the Weil |
| 40 | representation acts. |
| 41 | * `New.WeilData`: the fixed choices that the Weil representation needs, among them a splitting |
| 42 | character `υ` of the ideles of E. |
| 43 | * `New.AutChar`: a continuous circle-valued character of U(1)(𝔸), the norm-one adeles of E, that is |
| 44 | trivial on the elements coming from E. |
| 45 | * `New.Fock.polyVector`: the vector P(ζ(x)) exp(−|x|²/2) of the Fock space, for a polynomial P in |
| 46 | the Fock coordinates ζ(x) of a real vector x. |
| 47 | * `New.Space.integrated`: the bilinear map (v, f) ↦ v ⊗ f = ∫ v(y) ϱ(y)f dy over real vectors y, for |
| 48 | v in the Fock space and f in 𝒮(V), with ϱ the Heisenberg representation on 𝒮(V). |
| 49 | |
| 50 | ## Relation to the literature |
| 51 | |
| 52 | Known; see `Lib.Weil.DualPair.ThetaLiftConvergence`, `Lib.Weil.MixedModel.ZeroTerm` and |
| 53 | `Lib.Adelic.Unitary.WeakApproximation` for sources. |
| 54 | -/ |
| 55 | |
| 56 | @[expose] public section |
| 57 | |
| 58 | noncomputable section |
| 59 | |
| 60 | namespace New |
| 61 | |
| 62 | /-! |
| 63 | ## The Weil representation and theta kernel of a pair of hermitian spaces |
| 64 | |
| 65 | * `New.AutChar.spaceChar`: for a character `a` of `[U(1)]` and a rank `k`, the base change of `a` |
| 66 | divided by the `k`-th power of the fixed splitting character `υ` of `New.WeilData`. |
| 67 | * `New.rankTwist`: the product of `a` with the `⌊n/2⌋`-th power of `υ` on norm-one ideles, for an |
| 68 | index type of size `n`. |
| 69 | -/ |
| 70 | |
| 71 | section PairDefs |
| 72 | |
| 73 | open Matrix Kronecker WeilData |
| 74 | |
| 75 | variable {E : Type*} [Field E] [CMType E] [WeilData E] |
| 76 | {n n' : Type} [Fintype n] [DecidableEq n] [Fintype n'] [DecidableEq n'] |
| 77 | {s : n → ℤˣ} {s' : n' → ℤˣ} (S : Space E n s) (T : Space E n' s') {m m' R : Type*} |
| 78 | (a b : AutChar E) |
| 79 | |
| 80 | /-! ### The space of homomorphisms -/ |
| 81 | |
| 82 | /-- For sign vectors s on n and s′ on n′, the sign vector on n′ × n given by the products |
| 83 | s′(i)s(j). -/ |
| 84 | abbrev homSigns (s : n → ℤˣ) (s' : n' → ℤˣ) : n' × n → ℤˣ := pairSign 1 s' s |
| 85 | |
| 86 | /-- A matrix x read as the function (i, j) ↦ x_{ij} on pairs (row, column). -/ |
| 87 | def matrixToVec (x : Matrix m' m R) (p : m' × m) : R := x p.1 p.2 |
| 88 | |
| 89 | /-- A vector on pairs (row, column) as a matrix; inverse to `New.matrixToVec`. -/ |
| 90 | def vecToMatrix (y : m' × m → R) : Matrix m' m R := of fun i j ↦ y (i, j) |
| 91 | |
| 92 | section |
| 93 | |
| 94 | variable {E : Type*} [Field E] [NumberField E] [NumberField.IsCMField E] |
| 95 | |
| 96 | omit [Fintype n] [Fintype n'] [NumberField.IsCMField E] in |
| 97 | /-- Over the adeles of the field E, let `stdForm E s` be the diagonal matrix that is diag(s) at the |
| 98 | infinite places and the identity at the finite ones. The standard form of the product signs on |
| 99 | n′ × n is the Kronecker product of that of s′ and the transpose of that of s. -/ |
| 100 | @[simp] |
| 101 | lemma stdForm_homSigns : stdForm E (homSigns s s') = stdForm E s' ⊗ₖ (stdForm E s)ᵀ := by |
| 102 | simp [stdForm, pairSign, diagonal_kronecker_diagonal, Pi.mul_def] |
| 103 | |
| 104 | /-- The homomorphism from G(s) × G(s′) to the adelic unitary group of the product signs sending |
| 105 | (g, h) to x ↦ hxg⁻¹ on n′ × n matrices. -/ |
| 106 | def G.onHom : G E s × G E s' →* G E (homSigns s s') := |
| 107 | toUnitary.symm.toMonoidHom.comp |
| 108 | ((U.kroneckerHom stdForm_mul_self stdForm_homSigns).comp |
| 109 | (toUnitary.toMonoidHom.prodMap toUnitary.toMonoidHom)) |
| 110 | |
| 111 | /-- The determinant, as a homomorphism from the adelic unitary group of signs s to the group of |
| 112 | adeles x of E with x x̄ = 1 (the determinant of the standard form is a unit). -/ |
| 113 | def G.det : G E s →* unitary (𝔸 E) := |
| 114 | (U.det (isUnit_stdForm.map detMonoidHom)).comp (toUnitary : G E s ≃* U (stdForm E s)).toMonoidHom |
| 115 | |
| 116 | variable (g : G E s) in |
| 117 | @[simp] |
| 118 | lemma G.coe_det : g.det.val = g.adeleMatrix.det := rfl |
| 119 | |
| 120 | variable (g : G E s) in |
| 121 | /-- The finite component of the determinant of `g` is the determinant of the finite component |
| 122 | of `g`. -/ |
| 123 | @[simp↓] |
| 124 | lemma G.det_snd : (g.det : 𝔸 E).2 = (g.2 : Matrix n n (𝔸f E)).det := |
| 125 | (RingHom.snd (NumberField.InfinitePlace E → ℂ) (𝔸f E)).map_det g.adeleMatrix |
| 126 | |
| 127 | variable (g : G E s) in |
| 128 | /-- The infinite component of `det g` is, at each infinite place `w`, the determinant of the |
| 129 | component of `g` at `w`. -/ |
| 130 | @[simp↓] |
| 131 | lemma det_fst : (g.det : 𝔸 E).1 = |
| 132 | fun w : NumberField.InfinitePlace E ↦ ((g.1 w : GL n ℂ) : Matrix n n ℂ).det := |
| 133 | funext fun w ↦ (evalInf w).map_det g.adeleMatrix |
| 134 | |
| 135 | /-- For g in the finite adelic unitary group, the determinant of the element (1, g) of G, as an |
| 136 | adele of norm one. -/ |
| 137 | @[simp] |
| 138 | abbrev detFin (s : n → ℤˣ) (g : Gf E n) : unitary (𝔸 E) := G.det (s := s) (1, g) |
| 139 | |
| 140 | end |
| 141 | |
| 142 | /-- The space `Hom(S, T)` of `n' × n` matrices, indexed by pairs (row, column): its Gram matrix is |
| 143 | the Kronecker product `J_T ⊗ (J_S⁻¹)ᵀ`, its point is `x_T ⊗ (x_S⁻¹)ᵀ` (with inverse |
| 144 | `x_T⁻¹ ⊗ x_Sᵀ`), and the coordinate `(i, j)` has the sign `s' i * s j`. -/ |
| 145 | @[simps -isSimp J] |
| 146 | def Space.hom : Space E (n' × n) (homSigns s s') where |
| 147 | J := T.J ⊗ₖ S.J⁻¹ᵀ |
| 148 | x := |
| 149 | { val := T.x ⊗ₖ S.x⁻¹.valᵀ |
| 150 | inv := ↑T.x⁻¹ ⊗ₖ S.xᵀ |
| 151 | val_inv := by simp [← mul_kronecker_mul, ← transpose_mul] |
| 152 | inv_val := by simp [← mul_kronecker_mul, ← transpose_mul] } |
| 153 | -- The identity is the Kronecker product of `gram_point` for `T` with the inverse transpose of |
| 154 | -- `gram_point` for `S`. |
| 155 | gram_point := by |
| 156 | simp [gram_point, map_J_inv, map_kronecker, conjTranspose_nonsing_inv, conjTranspose_kronecker, |
| 157 | conjTranspose_transpose_eq_transpose_conjTranspose, transpose_map, ← mul_kronecker_mul, |
| 158 | ← transpose_mul] |
| 159 | |
| 160 | instance {E : Type} [Field E] [CMType E] {n n' : Type} [Fintype n] [DecidableEq n] [Fintype n'] |
| 161 | [DecidableEq n'] : ((stdSpace E n).hom (stdSpace E n')).IsStd where |
| 162 | signs_eq_one := rfl |
| 163 | point_eq_one := by |
| 164 | ext1 |
| 165 | simp [Space.hom] |
| 166 | |
| 167 | /-! ### Characters, the action of the pair and the theta kernel -/ |
| 168 | |
| 169 | /-- The restriction of υ to the norm-one ideles, as a character of U(1)(𝔸) trivial on the elements |
| 170 | coming from E. -/ |
| 171 | def WeilData.upsilonU1 : AutChar E := |
| 172 | ⟨υ.1.comp ⟨Unitary.toUnits, Continuous.of_coeHom_comp (by fun_prop)⟩, fun _ hx ↦ υ.2 _ hx⟩ |
| 173 | |
| 174 | /-- For u in the norm-one adeles U(1)(𝔸) of the CM field E, the character `upsilonU1` takes the |
| 175 | value υ(u). Here υ is the splitting character contained in the Weil data on E, and u is viewed as an |
| 176 | idele. -/ |
| 177 | lemma WeilData.upsilonU1_apply (u : unitary (𝔸 E)) : |
| 178 | upsilonU1.val u = υ.val (Unitary.toUnits u) := rfl |
| 179 | |
| 180 | /-- The Hecke character `x ↦ a (x / x̄) * υ x ^ (-k)` of `E`, for a character `a` of `[U(1)]` and a |
| 181 | natural number `k`: the base change `a.baseChange` divided by the `k`-th power of the splitting |
| 182 | character `υ`. It is the character attached to a space of rank `k` in a dual pair. -/ |
| 183 | def AutChar.spaceChar (k : ℕ) : HeckeChar E := a.baseChange * υ⁻¹ ^ k |
| 184 | |
| 185 | /-- For a character a of [U(1)] and a finite index set of size n, the character a·υ^⌊n/2⌋ of [U(1)], |
| 186 | where υ is restricted to the norm-one ideles (`upsilonU1`). -/ |
| 187 | def rankTwist (n : Type*) [Fintype n] : AutChar E := a * upsilonU1 ^ (Fintype.card n / 2) |
| 188 | |
| 189 | /-- For characters a, b of [U(1)], the complex character (g, h) ↦ a(det h) b(det g)⁻¹ of |
| 190 | G(s) × G(s′). -/ |
| 191 | def pairChar : G E s × G E s' →* ℂ := |
| 192 | Circle.coeHom.comp ((b⁻¹.val.toMonoidHom.comp G.det).coprod (a.val.toMonoidHom.comp G.det)) |
| 193 | |
| 194 | /-- The representation (g, h) ↦ a(det h) b(det g)⁻¹ ω(x ↦ hxg⁻¹) of the product of the two adelic |
| 195 | unitary groups on the data space of Hom(S, T). -/ |
| 196 | def pairWeil : G E s × G E s' →* 𝒮 (S.hom T) →L[ℂ] 𝒮 (S.hom T) where |
| 197 | toFun p := pairChar a b p • (S.hom T).ω (G.onHom p) |
| 198 | map_one' := by simp |
| 199 | map_mul' := by simp [← smul_mul_smul] |
| 200 | |
| 201 | /-- The theta kernel θ^{S,T}_{a,b}(f)(g, h) = θ(ω_{a,b}(g,h)f), for f in 𝒮(Hom(S,T)) and θ the |
| 202 | theta functional of Hom(S,T). -/ |
| 203 | def pairTheta (f : 𝒮 (S.hom T)) (p : G E s × G E s') : ℂ := (S.hom T).θ (pairWeil S T a b p f) |
| 204 | |
| 205 | end PairDefs |
| 206 | |
| 207 | /-! |
| 208 | ## Moduli prime to their conjugates and data modulo an ideal |
| 209 | |
| 210 | * `New.Modulus.liftFn`: a function of vectors modulo `𝔪` read on finite adelic vectors. |
| 211 | -/ |
| 212 | |
| 213 | section ModulusKernel |
| 214 | |
| 215 | open NumberField Ideal Space |
| 216 | |
| 217 | section |
| 218 | |
| 219 | variable (E : Type*) [Field E] [NumberField E] [IsCMField E] |
| 220 | |
| 221 | /-- A modulus: a nonzero ideal of O_E prime to its complex conjugate, that is, no prime w divides |
| 222 | it together with its conjugate w̄. -/ |
| 223 | structure Modulus where |
| 224 | /-- The ideal `𝔪` of the ring of integers of `E`. -/ |
| 225 | ideal : Ideal (𝓞 E) |
| 226 | /-- The ideal is not zero. -/ |
| 227 | ne_bot : ideal ≠ ⊥ |
| 228 | /-- No prime `w` divides the ideal together with its complex conjugate `star w`. -/ |
| 229 | not_le_star (w : FinPlace E) : ideal ≤ w → ¬ideal ≤ star w |
| 230 | |
| 231 | variable {E} (𝔪 : Modulus E) |
| 232 | |
| 233 | namespace Modulus |
| 234 | |
| 235 | /-- The residue ring O_E/𝔪 of the modulus 𝔪. -/ |
| 236 | abbrev ResidueRing : Type _ := 𝓞 E ⧸ 𝔪.ideal |
| 237 | |
| 238 | /-- The residue ring of a modulus is finite, as the ideal is nonzero. -/ |
| 239 | instance : Fintype 𝔪.ResidueRing := |
| 240 | haveI := finiteQuotientOfFreeOfNeBot 𝔪.ideal 𝔪.ne_bot |
| 241 | Fintype.ofFinite _ |
| 242 | |
| 243 | instance : DecidableEq 𝔪.ResidueRing := Classical.decEq _ |
| 244 | |
| 245 | /-- The set of finite places of E that divide 𝔪. -/ |
| 246 | def places : Set (FinPlace E) := {w : FinPlace E | 𝔪.ideal ≤ w} |
| 247 | |
| 248 | /-- Only finitely many primes divide a modulus. -/ |
| 249 | instance : Finite 𝔪.places := by |
| 250 | simpa [places, dvd_iff_le] using (finite_factors 𝔪.ne_bot).to_subtype |
| 251 | |
| 252 | /-- A chosen ring homomorphism Ô → O_E/𝔪, on the integral finite adeles Ô, extending reduction on |
| 253 | O_E, with kernel tÔ for an integral idele t equal to 1 off 𝔪. -/ |
| 254 | def reduction : Ô E →+* 𝔪.ResidueRing := (exists_reduction_and_idele_generator 𝔪.ne_bot).choose |
| 255 | |
| 256 | open scoped Classical in |
| 257 | /-- A function `Ψ` of vectors modulo `𝔪`, read on finite adelic vectors `x`. Multiplying by |
| 258 | `idem 𝔪.places` keeps the components at the primes dividing `𝔪` and sets the others to `0`. If the |
| 259 | result is integral, the value is `Ψ` of its reduction modulo `𝔪`; otherwise it is `0`. -/ |
| 260 | @[simps -isSimp] |
| 261 | def liftFn {n : Type*} : ((n → 𝔪.ResidueRing) → ℂ) →ₗ[ℂ] (n → 𝔸f E) → ℂ where |
| 262 | toFun Ψ x := |
| 263 | if h : ∀ i : n, idem 𝔪.places * x i ∈ Ô E then |
| 264 | Ψ fun i ↦ 𝔪.reduction ⟨idem 𝔪.places * x i, h i⟩ |
| 265 | else 0 |
| 266 | map_add' Ψ Ψ' := by ext x; simp [dite_add_dite] |
| 267 | map_smul' c Ψ := by ext x; simp [apply_dite (c * ·)] |
| 268 | |
| 269 | end Modulus |
| 270 | |
| 271 | end |
| 272 | |
| 273 | variable {E : Type*} [Field E] [CMType E] [WeilData E] {n n' : Type} [Fintype n] [DecidableEq n] |
| 274 | [Fintype n'] [DecidableEq n'] {s : n → ℤˣ} {s' : n' → ℤˣ} (S : Space E n s) (T : Space E n' s') |
| 275 | |
| 276 | /-- The datum v ⊗ Ψ ⊗ vac on Hom(S,T), for a vector v of the real Heisenberg model of Hom(S,T) and |
| 277 | a function Ψ on matrices modulo 𝔪: its real part is v, the lift of Ψ is put in at the places |
| 278 | dividing 𝔪 by `New.Space.schrodingerOp` (the operator attached to a function of finite adelic |
| 279 | vectors), and it is the vacuum elsewhere. -/ |
| 280 | def modDatum (𝔪 : Modulus E) (Ψ : Matrix n' n 𝔪.ResidueRing → ℂ) |
| 281 | (v : Heisenberg.IsVacuum.Model (Fock.realHeisenberg (realSigns E (homSigns s s')))) : |
| 282 | 𝒮 (S.hom T) := |
| 283 | (S.hom T).integrated v |
| 284 | ((S.hom T).schrodingerOp (Modulus.places 𝔪) (𝔪.liftFn (Ψ ∘ vecToMatrix)) (S.hom T).vacElem) |
| 285 | |
| 286 | /-- The theta kernel `(g, h) ↦ θ (ω_{a,b} (g, h) f)` on the product of the adelic unitary groups |
| 287 | of `S` and `T`, for the datum `f = modDatum S T 𝔪 Ψ v` given by a function `Ψ` on matrices modulo |
| 288 | `𝔪` and the Fock vector `v` of the polynomial `P`; `a` and `b` are the characters that twist |
| 289 | the action. -/ |
| 290 | def modKernel (a b : AutChar E) (𝔪 : Modulus E) (Ψ : Matrix n' n 𝔪.ResidueRing → ℂ) |
| 291 | (P : MvPolynomial (InfinitePlace E × n' × n) ℂ) : G E s → G E s' → ℂ := |
| 292 | fun g h ↦ |
| 293 | pairTheta S T a b (modDatum S T 𝔪 Ψ (Fock.polyVector (realSigns E (homSigns s s')) P)) (g, h) |
| 294 | |
| 295 | end ModulusKernel |
| 296 | |
| 297 | end New |
| 298 | |
| 299 | /-! |
| 300 | ## Lifts of functions modulo an ideal and the primitive character |
| 301 | |
| 302 | For a modulus `𝔪`, a function `Ψ` on `n → 𝔪.ResidueRing` has a lift `𝔪.liftFn Ψ` to finite adelic |
| 303 | vectors. |
| 304 | |
| 305 | * `New.Modulus.isSchwartzBruhat_liftFn`: the lift is Schwartz–Bruhat above `𝔪.places` |
| 306 | (`New.IsSchwartzBruhat`). |
| 307 | -/ |
| 308 | |
| 309 | namespace New.Modulus |
| 310 | |
| 311 | open NumberField Finset RingHom MeasureTheory Ideal Quotient Function Space stdLattice |
| 312 | |
| 313 | section |
| 314 | |
| 315 | variable {E : Type _} [Field E] [NumberField E] [IsCMField E] {n : Type _} [Fintype n] |
| 316 | [DecidableEq n] (𝔪 : Modulus E) (Ψ : (n → 𝔪.ResidueRing) → ℂ) (x : Ô E) |
| 317 | |
| 318 | /-! ### Reduction modulo `𝔪` and the generator of its kernel -/ |
| 319 | |
| 320 | /-- The finite idele `t` generates the modulus `𝔪` in the integral finite adeles `Ô E`, and it is |
| 321 | `1` away from `𝔪`. -/ |
| 322 | structure IsGenerator (𝔪 : Modulus E) (t : (𝔸f E)ˣ) : Prop where |
| 323 | /-- The idele `t` is integral. -/ |
| 324 | mem : t.val ∈ Ô E |
| 325 | /-- The component of `t` at a place not dividing `𝔪` is `1`. -/ |
| 326 | apply_of_notMem (w : FinPlace E) (hw : w ∉ 𝔪.places) : t.val w = 1 |
| 327 | /-- The kernel of `𝔪.reduction` consists of the multiples of `t` in `Ô E`. -/ |
| 328 | reduction_eq_zero_iff (x : Ô E) : 𝔪.reduction x = 0 ↔ t⁻¹.val * x ∈ Ô E |
| 329 | /-- The order of `t` at every place `w` is the multiplicity of `w` in `𝔪`. -/ |
| 330 | valued_apply (w : FinPlace E) : Valued.v (t.val w) = .exp (-multiplicity w.asIdeal 𝔪.ideal) |
| 331 | |
| 332 | /-- Every modulus `𝔪` is generated in `Ô E` by a finite idele that is `1` away from `𝔪`. -/ |
| 333 | lemma exists_generator : ∃ t : (𝔸f E)ˣ, 𝔪.IsGenerator t := by |
| 334 | obtain ⟨-, -, t, ⟨h_mem, h_one, h_ker⟩, h_order, -⟩ := |
| 335 | (exists_reduction_and_idele_generator 𝔪.ne_bot).choose_spec |
| 336 | exact ⟨t, h_mem, h_one, h_ker, h_order⟩ |
| 337 | |
| 338 | /-- A finite idele `t` generating `𝔪` in `Ô E`, chosen from `exists_generator`. It is integral, |
| 339 | and equal to `1` at the places not dividing `𝔪`. The kernel of `𝔪.reduction` consists of the |
| 340 | multiples of `t` in `Ô E`. See `generator_mem`, `generator_apply_of_notMem`, |
| 341 | `reduction_eq_zero_iff_generator_inv_mul_mem` and `valued_generator`. -/ |
| 342 | noncomputable def generator : (𝔸f E)ˣ := 𝔪.exists_generator.choose |
| 343 | |
| 344 | /-- The chosen idele `𝔪.generator` generates `𝔪`. -/ |
| 345 | lemma isGenerator_generator : 𝔪.IsGenerator 𝔪.generator := 𝔪.exists_generator.choose_spec |
| 346 | |
| 347 | /-- The set of primes dividing a modulus is disjoint from its complex conjugate. -/ |
| 348 | lemma isConjDisjoint_places : 𝔪.places.IsConjDisjoint := |
| 349 | Set.disjoint_left.2 𝔪.not_le_star |
| 350 | |
| 351 | /-- On global integers, `𝔪.reduction` is the usual reduction `𝓞 E → 𝓞 E ⧸ 𝔪`. -/ |
| 352 | @[simp] |
| 353 | lemma reduction_algebraMap (a : 𝓞 E) : 𝔪.reduction (algebraMap (𝓞 E) (Ô E) a) = a := |
| 354 | (exists_reduction_and_idele_generator 𝔪.ne_bot).choose_spec.left a |
| 355 | |
| 356 | /-- The reduction `𝔪.reduction` from `Ô E` to the residue ring of `𝔪` is surjective. -/ |
| 357 | lemma reduction_surjective : Surjective 𝔪.reduction := by |
| 358 | rintro ⟨a⟩ |
| 359 | exact ⟨algebraMap (𝓞 E) (Ô E) a, 𝔪.reduction_algebraMap a⟩ |
| 360 | |
| 361 | /-- For any a, b in O_E/𝔪 there is an idempotent e of O_E/𝔪 such that a and b both lie in the |
| 362 | principal ideal generated by (1 − e)a + eb; this is what `IsValuationPair` says for `⊤`. -/ |
| 363 | lemma isValuationPair_residueRing : IsValuationPair (⊤ : Subring 𝔪.ResidueRing) := by |
| 364 | refine 𝔪.reduction_surjective.forall₂.2 fun (a b : Ô E) ↦ ?_ |
| 365 | -- lift the pair to `Ô E` and reduce the idempotent `e` that patches it there; the spans in the |
| 366 | -- conclusion become divisibility by `(1 - e) a + e b` |
| 367 | obtain ⟨⟨e, he_mem⟩, he_idem, he_le⟩ := isValuationPair_Ô.top _ a b |
| 368 | obtain ⟨ha, hb⟩ : a - e * (a - b) ∣ a ∧ a - e * (a - b) ∣ b := by simpa [dvd_def] using he_le |
| 369 | refine ⟨⟨𝔪.reduction e, Subring.mem_top _⟩, by rw [← map_mul, he_idem], sup_le ?_ ?_⟩ |
| 370 | · simpa [dvd_def] using map_dvd 𝔪.reduction ha |
| 371 | · simpa [dvd_def] using map_dvd 𝔪.reduction hb |
| 372 | |
| 373 | /-- The idele `𝔪.generator` is integral. -/ |
| 374 | lemma generator_mem : 𝔪.generator.val ∈ Ô E := 𝔪.isGenerator_generator.mem |
| 375 | |
| 376 | /-- The component of `𝔪.generator` at a place not dividing `𝔪` is `1`. -/ |
| 377 | lemma generator_apply_of_notMem {w : FinPlace E} (hw : w ∉ 𝔪.places) : 𝔪.generator.val w = 1 := |
| 378 | 𝔪.isGenerator_generator.apply_of_notMem w hw |
| 379 | |
| 380 | /-- An element `x` of `Ô E` reduces to `0` modulo `𝔪` exactly when `𝔪.generator⁻¹ * x` is |
| 381 | integral. -/ |
| 382 | lemma reduction_eq_zero_iff_generator_inv_mul_mem (x : Ô E) : |
| 383 | 𝔪.reduction x = 0 ↔ 𝔪.generator⁻¹.val * x ∈ Ô E := |
| 384 | 𝔪.isGenerator_generator.reduction_eq_zero_iff x |
| 385 | |
| 386 | /-- The idele `t = 𝔪.generator` is integral, has component `1` at every place not dividing `𝔪`, |
| 387 | and an element `x` of `Ô E` reduces to `0` modulo `𝔪` exactly when `t⁻¹ x` is integral. -/ |
| 388 | lemma generator_spec : |
| 389 | 𝔪.generator.val ∈ Ô E ∧ (∀ w : FinPlace E, w ∉ 𝔪.places → 𝔪.generator.val w = 1) ∧ |
| 390 | ∀ x : Ô E, 𝔪.reduction x = 0 ↔ 𝔪.generator⁻¹.val * x ∈ Ô E := |
| 391 | ⟨𝔪.generator_mem, fun _ ↦ 𝔪.generator_apply_of_notMem, |
| 392 | 𝔪.reduction_eq_zero_iff_generator_inv_mul_mem⟩ |
| 393 | |
| 394 | /-- The idele `t = 𝔪.generator` has order equal to the multiplicity of `w` in `𝔪` at every finite |
| 395 | place `w`. -/ |
| 396 | lemma valued_generator (w : IsDedekindDomain.HeightOneSpectrum (𝓞 E)) : |
| 397 | Valued.v (𝔪.generator.val w) = .exp (-multiplicity w.asIdeal 𝔪.ideal) := |
| 398 | 𝔪.isGenerator_generator.valued_apply w |
| 399 | |
| 400 | /-- An element of `Ô E` reduces to `0` modulo `𝔪` exactly when it lies in the ideal of `Ô E` |
| 401 | generated by `𝔪`. -/ |
| 402 | lemma reduction_eq_zero_iff {z : Ô E} : |
| 403 | 𝔪.reduction z = 0 ↔ z ∈ 𝔪.ideal.map (algebraMap (𝓞 E) (Ô E)) := |
| 404 | (exists_reduction_and_idele_generator 𝔪.ne_bot).choose_spec.right.left |
| 405 | |
| 406 | /-- Two elements of `Ô E` with the same components at the primes dividing `𝔪` have the same |
| 407 | reduction modulo `𝔪`. -/ |
| 408 | lemma reduction_congr {x y : Ô E} (hxy : ∀ w : FinPlace E, w ∈ 𝔪.places → x.val w = y.val w) : |
| 409 | 𝔪.reduction x = 𝔪.reduction y := by |
| 410 | -- `x - y` vanishes on `𝔪.places` and `𝔪.generator` is `1` elsewhere, so `𝔪.generator` divides |
| 411 | -- `x - y` in `Ô E`. |
| 412 | have h_eq : (x - y : 𝔸f E) = 𝔪.generator * (idem 𝔪.placesᶜ * (x - y : 𝔸f E)) := by |
| 413 | ext w |
| 414 | by_cases hw : w ∈ 𝔪.places <;> simp [hw, hxy, generator_apply_of_notMem] |
| 415 | rw [← sub_eq_zero, ← map_sub, reduction_eq_zero_iff_generator_inv_mul_mem, |
| 416 | AddSubgroupClass.coe_sub, h_eq, Units.inv_mul_cancel_left] |
| 417 | exact mul_mem (idem_mem_Ô _) (sub_mem x.property y.property) |
| 418 | |
| 419 | /-- Setting the components outside the primes dividing `𝔪` to `0` does not change the reduction |
| 420 | modulo `𝔪`. -/ |
| 421 | lemma reduction_idem_mul : |
| 422 | 𝔪.reduction (⟨idem 𝔪.places, idem_mem_Ô 𝔪.places⟩ * x) = 𝔪.reduction x := |
| 423 | 𝔪.reduction_congr fun w hw ↦ by simp [hw] |
| 424 | |
| 425 | /-! ### Lifting functions modulo `𝔪` -/ |
| 426 | |
| 427 | section |
| 428 | |
| 429 | omit [DecidableEq n] |
| 430 | |
| 431 | /-- The lift of the constant function `1` is the indicator of the vectors that are integral at the |
| 432 | primes dividing `𝔪`. -/ |
| 433 | lemma liftFn_one : 𝔪.liftFn 1 = boxIndicator n 𝔪.places := by |
| 434 | ext x |
| 435 | rw [liftFn_apply, boxIndicator_apply] |
| 436 | split_ifs <;> simp_all [mem_integralBox] |
| 437 | |
| 438 | /-- For an integral vector `x₀`, the lift `𝔪.liftFn` of the point mass at its class is the |
| 439 | indicator `cosetIndicator` of the vectors `x` such that `t⁻¹ (x - x₀)` is integral at the primes |
| 440 | dividing `𝔪`, where `t = 𝔪.generator`. -/ |
| 441 | lemma liftFn_single (x₀ : n → Ô E) : |
| 442 | 𝔪.liftFn (Pi.single (𝔪.reduction ∘ x₀) 1) = |
| 443 | cosetIndicator 𝔪.places 𝔪.generator fun i : n ↦ x₀ i := by |
| 444 | classical |
| 445 | ext x |
| 446 | by_cases hx : ∀ i : n, idem 𝔪.places * x i ∈ Ô E |
| 447 | · -- If `x` is integral on `𝔪.places`, the two sides agree since the kernel of `𝔪.reduction` is |
| 448 | -- `𝔪.generator Ô`. |
| 449 | have h_iff (i : n) : |
| 450 | 𝔪.reduction ⟨idem 𝔪.places * x i, hx i⟩ = 𝔪.reduction (x₀ i) ↔ |
| 451 | idem 𝔪.places * (𝔪.generator⁻¹.val * (x i - x₀ i)) ∈ Ô E := by |
| 452 | rw [← 𝔪.reduction_idem_mul (x₀ i), ← sub_eq_zero, ← map_sub, |
| 453 | reduction_eq_zero_iff_generator_inv_mul_mem, mul_left_comm, mul_sub] |
| 454 | rfl |
| 455 | simp [liftFn_apply, hx, Pi.single_apply, funext_iff, h_iff, mem_integralBox] |
| 456 | · -- Otherwise both sides vanish: if `t⁻¹ (x - x₀)` were integral on `𝔪.places`, so would be |
| 457 | -- `x = t (t⁻¹ (x - x₀)) + x₀`. |
| 458 | have h_not_mem : 𝔪.generator⁻¹.val • (x - fun i : n ↦ (x₀ i : 𝔸f E)) ∉ |
| 459 | integralBox n 𝔪.places := by |
| 460 | refine fun h_mem ↦ hx fun i ↦ ?_ |
| 461 | have h_eq : idem 𝔪.places * x i = |
| 462 | 𝔪.generator.val * (idem 𝔪.places * (𝔪.generator⁻¹.val * (x i - x₀ i))) + |
| 463 | idem 𝔪.places * x₀ i := by |
| 464 | linear_combination -idem 𝔪.places * 𝔪.generator.mul_inv_cancel_left (x i - x₀ i) |
| 465 | rw [h_eq] |
| 466 | exact add_mem (mul_mem 𝔪.generator_mem (mem_integralBox.1 h_mem i)) |
| 467 | (mul_mem (idem_mem_Ô _) (x₀ i).property) |
| 468 | rw [liftFn_apply, dite_eq_right hx, cosetIndicator, boxIndicator_apply, ite_eq_right h_not_mem] |
| 469 | |
| 470 | /-- Translating a function modulo `𝔪` by the class of an integral vector `z` translates its lift |
| 471 | by `z`. -/ |
| 472 | lemma liftFn_reduction_add (F : (n → 𝔪.ResidueRing) → ℂ) (z : n → Ô E) (x : n → 𝔸f E) : |
| 473 | 𝔪.liftFn (fun v : n → 𝔪.ResidueRing ↦ F (𝔪.reduction ∘ z + v)) x = |
| 474 | 𝔪.liftFn F ((fun i : n ↦ (z i : 𝔸f E)) + x) := by |
| 475 | have hz (i : n) : idem 𝔪.places * (z i : 𝔸f E) ∈ Ô E := mul_mem (idem_mem_Ô _) (z i).property |
| 476 | by_cases hx : ∀ i : n, idem 𝔪.places * x i ∈ Ô E |
| 477 | · have h_sum (i : n) : idem 𝔪.places * ((z i : 𝔸f E) + x i) ∈ Ô E := by |
| 478 | simpa only [mul_add] using add_mem (hz i) (hx i) |
| 479 | have h_red (i : n) : 𝔪.reduction ⟨idem 𝔪.places * ((z i : 𝔸f E) + x i), h_sum i⟩ = |
| 480 | 𝔪.reduction (z i) + 𝔪.reduction ⟨idem 𝔪.places * x i, hx i⟩ := by |
| 481 | rw [← 𝔪.reduction_idem_mul (z i), ← map_add] |
| 482 | exact congrArg 𝔪.reduction (Subtype.ext (mul_add ..)) |
| 483 | simp [liftFn_apply, hx, h_sum, h_red, Pi.add_def] |
| 484 | · -- `z + x` is integral on `𝔪.places` exactly when `x` is, so both sides vanish. |
| 485 | simp [liftFn_apply, hx, mul_add, add_mem_cancel_left, hz] |
| 486 | |
| 487 | end |
| 488 | |
| 489 | /-- Let `f` and `g` be ring homomorphisms to `S` from `𝓞 E ⧸ 𝔪` and from `Ô E`. If they agree on |
| 490 | every global integer, then `f (𝔪.reduction x) = g x` for every `x` in `Ô E`. -/ |
| 491 | lemma apply_reduction_eq_of_algebraMap {S : Type*} [CommRing S] {f : 𝔪.ResidueRing →+* S} |
| 492 | {g : Ô E →+* S} (h_agree : ∀ a : 𝓞 E, f a = g (algebraMap (𝓞 E) (Ô E) a)) : |
| 493 | f (𝔪.reduction x) = g x := by |
| 494 | -- `x` is congruent to a global integer modulo a nonzero `d` in `𝔪`, and both maps kill `d` |
| 495 | obtain ⟨d, hd_mem, hd₀⟩ := 𝔪.ideal.ne_bot_iff.1 𝔪.ne_bot |
| 496 | obtain ⟨a, c, hc⟩ : ∃ (a : 𝓞 E) (c : Ô E), |
| 497 | algebraMap (𝓞 E) (Ô E) a - x = algebraMap (𝓞 E) (Ô E) d * c := |
| 498 | exists_dvd_algebraMap_sub hd₀ x |
| 499 | have hfd : f (d : 𝔪.ResidueRing) = 0 := by simp [eq_zero_iff_mem.2 hd_mem] |
| 500 | rw [← sub_eq_iff_comm.1 hc] |
| 501 | simp [← h_agree, hfd] |
| 502 | |
| 503 | /-- If `𝔪` divides `𝔫`, reduction modulo `𝔫` followed by `𝔫.ResidueRing → 𝔪.ResidueRing` is |
| 504 | reduction modulo `𝔪`. -/ |
| 505 | @[simp] |
| 506 | lemma factor_reduction {𝔫 : Modulus E} (h_le : 𝔫.ideal ≤ 𝔪.ideal) : |
| 507 | factor h_le (reduction 𝔫 x) = 𝔪.reduction x := |
| 508 | 𝔫.apply_reduction_eq_of_algebraMap x fun a ↦ by rw [factor_mk, reduction_algebraMap] |
| 509 | |
| 510 | end |
| 511 | |
| 512 | variable {E : Type _} [Field E] [CMType E] {n : Type _} [Fintype n] [DecidableEq n] (𝔪 : Modulus E) |
| 513 | (Ψ : (n → 𝔪.ResidueRing) → ℂ) (x : Ô E) [WeilData E] |
| 514 | |
| 515 | open scoped Classical in |
| 516 | /-- The lift of any function Ψ on (O_E/𝔪)^n to finite adelic vectors is Schwartz–Bruhat on the |
| 517 | places dividing 𝔪: it depends only on the components at these places, it is locally constant, and |
| 518 | those components stay in a compact set on its support. -/ |
| 519 | instance isSchwartzBruhat_liftFn : IsSchwartzBruhat 𝔪.places (𝔪.liftFn Ψ) where |
| 520 | idem_smul := by simp [← mul_assoc, idem_mul_self, mem_Ô, liftFn_apply] |
| 521 | locally_constant := by |
| 522 | -- `Ψ` is a combination of point masses, and these lift to coset functions. |
| 523 | rw [pi_eq_sum_univ' Ψ, map_sum] |
| 524 | refine sum_induction _ _ IsLocallyConstant.add (.const 0) fun y _ ↦ ?_ |
| 525 | obtain ⟨x₀, rfl⟩ := 𝔪.reduction_surjective.comp_left y |
| 526 | rw [map_smul, liftFn_single] |
| 527 | exact (IsSchwartzBruhat.locally_constant 𝔪.places).comp (Ψ (𝔪.reduction ∘ x₀) * ·) |
| 528 | compact_support := by |
| 529 | -- The lift vanishes off the box, so the compact set of the box indicator serves. |
| 530 | obtain ⟨C, hC_compact, hC_mem⟩ := |
| 531 | (isSchwartzBruhat_boxIndicator (n := n) (S := 𝔪.places)).compact_support |
| 532 | refine ⟨C, hC_compact, fun x hx ↦ hC_mem x ?_⟩ |
| 533 | obtain ⟨hx_int, -⟩ := by simpa [liftFn_apply] using hx |
| 534 | simp [mem_integralBox, hx_int] |
| 535 | |
| 536 | /-- For a modulus `𝔪` (a nonzero ideal of O_E prime to its conjugate), `𝔪.liftFn Ψ` reads a function |
| 537 | `Ψ` of vectors modulo `𝔪` on finite adelic vectors `x`: it keeps the components of `x` at the primes |
| 538 | dividing `𝔪`, and takes `Ψ` of the reduction if the result is integral and `0` otherwise. The |
| 539 | theorem says that `localInner 𝔪.places` of two such lifts is the mean of `conj (Ψ y) * Ψ' y` over |
| 540 | all vectors `y` modulo `𝔪`. Here `localInner 𝔪.places` is `∫ conj(Φ) Φ'` over the finite adelic |
| 541 | vectors integral off `𝔪.places`, for the Haar measure giving `Ô^n` mass one. -/ |
| 542 | lemma localInner_liftFn (Ψ' : (n → 𝔪.ResidueRing) → ℂ) : |
| 543 | localInner 𝔪.places (𝔪.liftFn Ψ) (𝔪.liftFn Ψ') = |
| 544 | star Ψ ⬝ᵥ Ψ' / Fintype.card (n → 𝔪.ResidueRing) := by |
| 545 | classical |
| 546 | -- Average `F = star Ψ * Ψ'` over translates; the sum is constant and each translate has the same |
| 547 | -- integral by translation invariance of the Haar measure on `Ô^n`. |
| 548 | let F : (n → 𝔪.ResidueRing) → ℂ := star Ψ * Ψ' |
| 549 | let μ : Measure (n → 𝔸f E) := (latticeMeasure E n).restrict (integralBox n 𝔪.placesᶜ) |
| 550 | have h_avg : boxIndicator n 𝔪.places.conjClosure 0 * ∑ y : n → 𝔪.ResidueRing, F y = |
| 551 | Fintype.card (n → 𝔪.ResidueRing) • ∫ x, 𝔪.liftFn F x ∂μ := |
| 552 | calc _ |
| 553 | _ = ∫ x, ∑ y, 𝔪.liftFn (fun z ↦ F (y + z)) x ∂μ := by |
| 554 | refine (fourier_boxIndicator 0 0 _ fun x ↦ ?_).symm |
| 555 | simp [(AddGroup.addRight_bijective _).sum_comp, mem_integralBox, liftFn_apply] |
| 556 | _ = ∑ y, ∫ x, 𝔪.liftFn (fun z ↦ F (y + z)) x ∂μ := integral_finsetSum _ fun y _ ↦ by |
| 557 | simpa [IntegrableOn, μ] using |
| 558 | (isSchwartzBruhat_liftFn 𝔪 _).integrableOn_mul (continuous_const (y := 1)) |
| 559 | _ = _ := sum_eq_card_nsmul fun y _ ↦ by |
| 560 | obtain ⟨z, rfl⟩ := 𝔪.reduction_surjective.comp_left y |
| 561 | simpa [𝔪.liftFn_reduction_add F z] using setIntegral_add_left_eq_self_of_mem (𝔪.liftFn F) |
| 562 | (by simp [mem_integralBox, mul_mem] : (fun i : n ↦ (z i : 𝔸f E)) ∈ _) |
| 563 | rw [eq_div_iff (by simp), mul_comm, ← nsmul_eq_mul] |
| 564 | simpa +contextual [localInner, F, μ, liftFn_apply, dotProduct, boxIndicator] using h_avg.symm |
| 565 | |
| 566 | /-! ### The primitive character modulo `𝔪` -/ |
| 567 | |
| 568 | /-- Let 𝔪 be a modulus of the CM field E, where E carries Weil data. There is a primitive additive |
| 569 | character ψ′ of the residue ring `𝔪.ResidueRing` = O_E/𝔪 with ψ′(x mod 𝔪) = ψ₀(t⁻¹x) for all `x` in |
| 570 | `Ô E`. Here `t = 𝔪.generator` is the chosen finite idele generating 𝔪 in `Ô E`, and ψ₀ is the |
| 571 | character `selfDualAddChar E` of the finite adeles, z ↦ ψ_f(ȷαᾱz), built from the Weil data, for |
| 572 | which `Ô E` is self-dual. -/ |
| 573 | lemma exists_isPrimitive_addChar : |
| 574 | ∃ ψ' : AddChar 𝔪.ResidueRing ℂ, ψ'.IsPrimitive ∧ |
| 575 | ∀ x : Ô E, ψ' (𝔪.reduction x) = selfDualAddChar E (𝔪.generator⁻¹.val * x) := |
| 576 | exists_primitive_residue_addChar |
| 577 | ⟨𝔪.reduction_surjective, 𝔪.reduction_eq_zero_iff_generator_inv_mul_mem⟩ |
| 578 | forall_selfDualAddChar_mul_eq_one_iff |
| 579 | |
| 580 | /-- The character ψ′ of `𝔪.ResidueRing` with ψ′(x mod 𝔪) = ψ₀(t⁻¹x) for `x` in `Ô E`, where |
| 581 | `t = 𝔪.generator` (`New.Modulus.primAddChar_reduction`). It is primitive |
| 582 | (`New.Modulus.isPrimitive_primAddChar`) because `Ô E` is self-dual for ψ₀ |
| 583 | (`forall_selfDualAddChar_mul_eq_one_iff`). -/ |
| 584 | noncomputable def primAddChar : AddChar 𝔪.ResidueRing ℂ := 𝔪.exists_isPrimitive_addChar.choose |
| 585 | |
| 586 | /-- For a modulus 𝔪 of the CM field E with Weil data, the character ψ′ = `𝔪.primAddChar` of O_E/𝔪 |
| 587 | satisfies ψ′(x mod 𝔪) = ψ₀(t⁻¹x) for `x` in `Ô E`. Here `t = 𝔪.generator` is the chosen finite idele |
| 588 | generating 𝔪 in `Ô E`, and ψ₀ = `selfDualAddChar E` is the character z ↦ ψ_f(ȷαᾱz) of the finite |
| 589 | adeles given by the Weil data. -/ |
| 590 | @[simp] |
| 591 | lemma primAddChar_reduction : |
| 592 | 𝔪.primAddChar (𝔪.reduction x) = selfDualAddChar E (𝔪.generator⁻¹ * x) := |
| 593 | 𝔪.exists_isPrimitive_addChar.choose_spec.right x |
| 594 | |
| 595 | /-- The additive character ψ′ = `New.Modulus.primAddChar` of O_E/𝔪 is primitive: for every nonzero a |
| 596 | in O_E/𝔪, the character x ↦ ψ′(ax) is nontrivial. -/ |
| 597 | lemma isPrimitive_primAddChar : 𝔪.primAddChar.IsPrimitive := |
| 598 | 𝔪.exists_isPrimitive_addChar.choose_spec.left |
| 599 | |
| 600 | /-- Let `V` be a space, `f` a vector of `𝒮 V` and `y` a finite adelic vector. Translate the mean |
| 601 | `V.projOn 𝔪.places f` of `f` over integral translations by the part of `y` above the conjugates of |
| 602 | the primes dividing `𝔪`, using the Heisenberg operator `V.ϱ`. The result is `V.schrodingerOp` |
| 603 | applied to `f` with the function x ↦ ψ₀(y* x)·1(x). Here ψ₀ is `selfDualAddChar E` and 1 |
| 604 | (`boxIndicator`) is the indicator of the vectors integral at every prime dividing `𝔪`. Only the part |
| 605 | `idem 𝔪.places • x` of `x` above those primes enters. -/ |
| 606 | lemma rho_star_idem_smul_projOn {s : n → ℤˣ} (V : Space E n s) (f : 𝒮 V) (y : n → 𝔸f E) : |
| 607 | V.ϱ (finVec (star (idem 𝔪.places) • y)) (V.projOn 𝔪.places f) = |
| 608 | V.schrodingerOp 𝔪.places |
| 609 | (fun x : n → 𝔸f E ↦ selfDualAddChar E (star y ⬝ᵥ idem 𝔪.places • x) * |
| 610 | boxIndicator n 𝔪.places x) f := by |
| 611 | -- the vector is supported on the conjugate places, which lie in `𝔪.places.conjClosure` |
| 612 | have h_idem : star (idem 𝔪.places) = idem 𝔪.places.conjClosure * star (idem 𝔪.places) := by |
| 613 | rw [idem_conjClosure_eq_add_star 𝔪.isConjDisjoint_places, add_mul, |
| 614 | idem_mul_star 𝔪.isConjDisjoint_places, zero_add, ← star_mul', idem_mul_self] |
| 615 | calc _ = V.ϱ (finVec (idem 𝔪.places.conjClosure • star (idem 𝔪.places) • y)) |
| 616 | (V.projOn 𝔪.places f) := by rw [← mul_smul, ← h_idem] |
| 617 | _ = V.schrodingerOp 𝔪.places |
| 618 | (schrodingerAct 𝔪.places (star (idem 𝔪.places) • y) (boxIndicator n 𝔪.places)) f := |
| 619 | (V.schrodingerOp_schrodingerAct_boxIndicator 𝔪.isConjDisjoint_places _ f).symm |
| 620 | _ = _ := by rw [IsSchwartzBruhat.schrodingerAct_star_idem_smul 𝔪.isConjDisjoint_places] |
| 621 | |
| 622 | /-- Let `u` be an integral vector, and let `Ψ x = ψ′(x ⬝ᵥ (u mod 𝔪))`, where ψ′(x mod 𝔪) = ψ₀(t⁻¹x) |
| 623 | is `𝔪.primAddChar` and `t = 𝔪.generator`. Then the operator `V.schrodingerOp` on 𝒮(V) attached to |
| 624 | the lift `𝔪.liftFn Ψ` sends `f` to `V.ϱ` applied to `V.projOn 𝔪.places f`. Here `V.ϱ` is taken at |
| 625 | the adelic vector with zero real part and finite part α times the conjugate of the part of `t⁻¹ u` |
| 626 | at the primes dividing `𝔪`. The map `𝔪.liftFn Ψ` is `Ψ` of the reduction of the part at those primes |
| 627 | when integral and `0` otherwise, and `projOn` is the mean of the finite Heisenberg operators over |
| 628 | integral vectors supported at the primes dividing `𝔪` and their conjugates. -/ |
| 629 | lemma schrodingerOp_char_eq_translate_projOn {s : n → ℤˣ} (V : Space E n s) {f : 𝒮 V} |
| 630 | (u : n → Ô E) : |
| 631 | V.schrodingerOp 𝔪.places (𝔪.liftFn fun x : n → 𝔪.ResidueRing ↦ |
| 632 | 𝔪.primAddChar (x ⬝ᵥ 𝔪.reduction ∘ u)) f = |
| 633 | V.ϱ (finVec (star (idem 𝔪.places • 𝔪.generator⁻¹.val • (↑) ∘ u))) (V.projOn 𝔪.places f) := by |
| 634 | -- the lift of the character is an adelic character times the box function |
| 635 | have h_lift : (𝔪.liftFn fun x ↦ 𝔪.primAddChar (x ⬝ᵥ 𝔪.reduction ∘ u)) = |
| 636 | fun x : n → 𝔸f E ↦ selfDualAddChar E ((𝔪.generator⁻¹.val • (↑) ∘ u) ⬝ᵥ idem 𝔪.places • x) * |
| 637 | boxIndicator n 𝔪.places x := by |
| 638 | ext x |
| 639 | by_cases hx : ∀ i : n, idem 𝔪.places * x i ∈ Ô E |
| 640 | · have h_dot : (fun i : n ↦ 𝔪.reduction ⟨idem 𝔪.places * x i, hx i⟩) ⬝ᵥ 𝔪.reduction ∘ u = |
| 641 | 𝔪.reduction (∑ i : n, ⟨idem 𝔪.places * x i, hx i⟩ * u i) := by |
| 642 | simp [dotProduct] |
| 643 | have h_arg : 𝔪.generator⁻¹.val * ↑(∑ i : n, (⟨idem 𝔪.places * x i, hx i⟩ * u i : Ô E)) = |
| 644 | (𝔪.generator⁻¹.val • (↑) ∘ u : n → 𝔸f E) ⬝ᵥ idem 𝔪.places • x := by |
| 645 | simp [dotProduct, mul_sum, mul_assoc, mul_comm, mul_left_comm] |
| 646 | rw [liftFn_apply, dite_eq_left hx, h_dot, primAddChar_reduction, h_arg, boxIndicator_apply, |
| 647 | ite_eq_left (mem_integralBox.2 hx), mul_one] |
| 648 | · simp [liftFn_apply, hx, mem_integralBox] |
| 649 | -- a translation above the conjugate places multiplies the box function by the character |
| 650 | rw [h_lift, star_smul, 𝔪.rho_star_idem_smul_projOn V, star_star] |
| 651 | |
| 652 | /-- The operator named by the indicator of a class `a` modulo `𝔪` is a weighted mean of translates. |
| 653 | Choose for every class `b` of vectors modulo `𝔪` an integral vector `u b` in it, and let `y b` be |
| 654 | the conjugate of the part of `t⁻¹ u b` at the places dividing `𝔪`, where `t = 𝔪.generator`. Then the |
| 655 | operator `V.schrodingerOp` attached to the lift of the point mass at `a` sends `f` to the mean over |
| 656 | `b` of `ψ′(-a ⬝ b)` times the translate of `V.projOn 𝔪.places f` by the finite Heisenberg operator |
| 657 | `V.finHeisenbergOp (y b)`, which equals `V.ϱ (finVec (y b))` because `y b` has norm zero. Here ψ′ is |
| 658 | `New.Modulus.primAddChar`, and `V.projOn 𝔪.places f` is the mean of `f` over integral translations |
| 659 | at those places and their conjugates. -/ |
| 660 | lemma schrodingerOp_single_eq_mean_translate_projOn {s : n → ℤˣ} (V : Space E n s) (f : 𝒮 V) |
| 661 | (a : n → 𝔪.ResidueRing) {u : (n → 𝔪.ResidueRing) → n → Ô E} |
| 662 | (hu : ∀ b : n → 𝔪.ResidueRing, 𝔪.reduction ∘ u b = b) : |
| 663 | V.schrodingerOp 𝔪.places (𝔪.liftFn (Pi.single a 1)) f = |
| 664 | ∑ b : n → 𝔪.ResidueRing, (Fintype.card (n → 𝔪.ResidueRing) : ℂ)⁻¹ • 𝔪.primAddChar (-a ⬝ᵥ b) • |
| 665 | V.finHeisenbergOp (star (idem 𝔪.places • 𝔪.generator⁻¹.val • (↑) ∘ u b)) |
| 666 | (V.projOn 𝔪.places f) := by |
| 667 | -- Fourier inversion writes the point mass as a mean of characters, and each character names a |
| 668 | -- translate (`schrodingerOp_char_eq_translate_projOn`). |
| 669 | have h_inv : (Pi.single a 1 : (n → 𝔪.ResidueRing) → ℂ) = |
| 670 | ∑ b : n → 𝔪.ResidueRing, (Fintype.card (n → 𝔪.ResidueRing) : ℂ)⁻¹ • 𝔪.primAddChar (-a ⬝ᵥ b) • |
| 671 | fun y : n → 𝔪.ResidueRing ↦ 𝔪.primAddChar (y ⬝ᵥ b) := by |
| 672 | ext y |
| 673 | simp [← Finset.mul_sum, ← AddChar.map_add_eq_mul, neg_add_eq_sub, ← sub_dotProduct, |
| 674 | sum_addChar_dotProduct 𝔪.isPrimitive_primAddChar, sub_eq_zero, Pi.single_apply] |
| 675 | -- A vector supported at the places conjugate to those of `𝔪` has norm zero. |
| 676 | have h_norm (w : n → 𝔸f E) : |
| 677 | star (star (idem 𝔪.places • w)) ⬝ᵥ star (idem 𝔪.places • w) = 0 := by |
| 678 | rw [star_star, star_smul, smul_dotProduct, dotProduct_smul, smul_smul, |
| 679 | idem_mul_star 𝔪.isConjDisjoint_places, zero_smul] |
| 680 | have h_term (b : n → 𝔪.ResidueRing) : |
| 681 | V.schrodingerOp 𝔪.places (𝔪.liftFn fun y ↦ 𝔪.primAddChar (y ⬝ᵥ b)) f = |
| 682 | V.finHeisenbergOp (star (idem 𝔪.places • 𝔪.generator⁻¹.val • (↑) ∘ u b)) |
| 683 | (V.projOn 𝔪.places f) := by |
| 684 | rw [V.finHeisenbergOp_eq_rho_of_dotProduct_self_eq_zero (h_norm _), |
| 685 | ← 𝔪.schrodingerOp_char_eq_translate_projOn V (u b), hu b] |
| 686 | simp only [h_inv, map_smul, map_sum, _root_.smul_apply, |
| 687 | _root_.sum_apply, h_term] |
| 688 | |
| 689 | end New.Modulus |
| 690 | |
| 691 | /-! |
| 692 | ## Kronecker products of rational matrices in the coordinates of Hom(V,T) |
| 693 | |
| 694 | `New.Space.hom_point_inv_mul_kronecker` reads a Kronecker product A ⊗ Bᵀ of rational matrices in the |
| 695 | adelic coordinates of Hom(V,T): it is (x_T⁻¹A) ⊗ (Bx_V)ᵀ, x_V and x_T being the points of V and T. |
| 696 | -/ |
| 697 | |
| 698 | section PairRationalMaps |
| 699 | |
| 700 | open Matrix Kronecker |
| 701 | |
| 702 | namespace New.Space |
| 703 | |
| 704 | variable {E : Type*} [Field E] [CMType E] |
| 705 | |
| 706 | /-- Let `E` be a CM number field with a chosen embedding at each infinite place (`CMType E` contains |
| 707 | `NumberField E` and `IsCMField E`), and `V`, `T` hermitian spaces over `E` with points x_V, x_T |
| 708 | (the adelic matrices `V.x`, `T.x`). For matrices A, B over E, read adelically by `toAdele`, the |
| 709 | inverse of the point of Hom(V,T) times A ⊗ Bᵀ is (x_T⁻¹A) ⊗ (Bx_V)ᵀ. -/ |
| 710 | lemma hom_point_inv_mul_kronecker {n n' : Type} [Fintype n] [DecidableEq n] [Fintype n'] |
| 711 | [DecidableEq n'] {s : n → ℤˣ} {s' : n' → ℤˣ} {V : Space E n s} (T : Space E n' s') |
| 712 | {m m' : Type*} (A : Matrix n' m' E) (B : Matrix m n E) : |
| 713 | (V.hom T).x⁻¹.val * (A ⊗ₖ Bᵀ).map toAdele = |
| 714 | (T.x⁻¹.val * A.map toAdele) ⊗ₖ (B.map toAdele * V.x.val)ᵀ := by |
| 715 | simp [hom, map_kronecker, transpose_map, ← mul_kronecker_mul] |
| 716 | |
| 717 | variable {n : Type*} [Fintype n] [DecidableEq n] {s : n → ℤˣ} {V : Space E n s} |
| 718 | |
| 719 | /-- The Gram matrix of a hermitian space is invertible. -/ |
| 720 | noncomputable instance : Invertible V.J := V.isUnit_J.invertible |
| 721 | |
| 722 | end New.Space |
| 723 | |
| 724 | end PairRationalMaps |
| 725 | |
| 726 | end |