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 Lib.Adelic.Adeles.SemilocalProducts |
| 4 | public import Lib.Weil.DualPair.Defs |
| 5 | public import Lib.Adelic.Reduction.FiniteVolume |
| 6 | public import Lib.ClassField.HeckeL.EulerProduct |
| 7 | import Lib.Adelic.Unitary.CongruenceLevels |
| 8 | |
| 9 | /-! |
| 10 | # Splitting character on U(1), characters tamely ramified at split places, theta integrals |
| 11 | |
| 12 | The subject is continuous characters of U(1)(𝔸), the norm-one adeles of a CM field E, with their |
| 13 | weights and tame parts (`New.AutChar.HasWeight`). Write x̄ for complex conjugation, w̄ for the place |
| 14 | conjugate to w, and υ for the splitting character of the Weil data (`New.WeilData`). The file first |
| 15 | computes the base change x ↦ μ(x / x̄) on local units. It then introduces characters tamely ramified |
| 16 | exactly at a set of split places, and defines the theta integral of a datum for an arbitrary pair |
| 17 | of characters. |
| 18 | |
| 19 | ## Main definitions and results |
| 20 | |
| 21 | * `New.AutChar.HasWeight.baseChange_finPart_locIdele`: if μ has tame part ψ, w̄ ≠ w and ψ is trivial |
| 22 | at w̄, the base change x ↦ μ(x / x̄) is given on local units at w by ψ_w. |
| 23 | * `New.AutChar.HasWeight.baseChange_finPart_locIdele_eq_one`: if w̄ = w and ψ_w is trivial, the |
| 24 | base change is trivial on E_w^×. |
| 25 | * `New.WeilData.upsilonU1_hasWeight`, `New.WeilData.baseChange_upsilonU1`: on U(1), υ has weight 1 |
| 26 | and trivial tame part, and its base change is υ². |
| 27 | * `New.Exchange.SplitTameChar`: a character of positive weight, tamely ramified exactly on a |
| 28 | nonempty set S of split places. `New.Exchange.SplitTameChar.semilocalChar` is its character at S. |
| 29 | * `New.Exchange.SplitTameChar.tameLocalChar`: the character at S is tame in the sense of |
| 30 | `New.TameLocalChar`. |
| 31 | * `New.Exchange.thetaIntegral`: the integral over [U(T)] of the theta kernel of the dual pair |
| 32 | (U(S), U(T)), for arbitrary characters a and b of U(1)(𝔸). |
| 33 | |
| 34 | Notions from other files: |
| 35 | * `New.AutChar`: The group of continuous circle-valued characters of U(1)(𝔸), the norm-one adeles of |
| 36 | the CM field E, trivial on elements coming from E. |
| 37 | * `New.divStar`: The map x ↦ x / x̄ from ideles to norm-one adeles. |
| 38 | |
| 39 | ## Relation to the literature |
| 40 | |
| 41 | The results of this file are known; see `Lib.ClassField.Global.CMSplittingCharacters` and |
| 42 | `Lib.Weil.MixedModel.ZeroTerm` for sources. |
| 43 | -/ |
| 44 | |
| 45 | @[expose] public section |
| 46 | |
| 47 | noncomputable section |
| 48 | |
| 49 | /-! |
| 50 | ## Base change at local units and the splitting character on U(1) |
| 51 | |
| 52 | `New.locIdele` places any element of E_w^× at w in the ideles, with 1 at all other places. |
| 53 | -/ |
| 54 | |
| 55 | section SplittingCharOnU1 |
| 56 | |
| 57 | open NumberField Finset Valued Complex OneMemClass |
| 58 | |
| 59 | namespace New |
| 60 | |
| 61 | variable {E : Type*} [Field E] [CMType E] |
| 62 | {w : FinPlace E} {μ : AutChar E} {e : InfinitePlace E → ℤ} |
| 63 | {ψ : (w : FinPlace E) → MulChar (ResField w) ℂ} |
| 64 | |
| 65 | /-! ### Base change at local units -/ |
| 66 | |
| 67 | lemma WeilData.charUnramifiedAt_upsilon [SplittingChar E] (v : FinPlace E) : |
| 68 | CharUnramifiedAt υ.finPart v := by |
| 69 | simp_all [CharUnramifiedAt, HeckeChar.finPart, upsilon_eq_atUniformizer_zpow v] |
| 70 | |
| 71 | lemma AutChar.HasWeight.of_weight_eq (h : μ.HasWeight e ψ) {e' : InfinitePlace E → ℤ} |
| 72 | (he : e = e') : μ.HasWeight e' ψ := by |
| 73 | rwa [← he] |
| 74 | |
| 75 | /-- For a CM field `E`, a finite place `w` of `E`, and an element `x` of `(LocField w)ˣ` viewed as |
| 76 | the idele `locFullIdele w x`, if `x` is a local unit (`v x = 1`) whenever `w` is split |
| 77 | (`w.IsSplit`, i.e., `star w ≠ w`), then the finite part of `divStar (locFullIdele w x)` lies in the |
| 78 | integral finite adeles `Ô E`. -/ |
| 79 | private lemma divStar_locFullIdele_snd_mem_Ô (x : (LocField w)ˣ) (hx : w.IsSplit → v x.val = 1) : |
| 80 | (divStar (locFullIdele w x) : 𝔸 E).snd ∈ Ô E := by |
| 81 | classical |
| 82 | -- `x / x̄` has component `1` at infinity and at all finite places other than `w` and `w̄`. |
| 83 | have h_val (y : (LocField w)ˣ) (u : FinPlace E) : |
| 84 | v ((locFullIdele w y : 𝔸 E).snd u) = if u = w then v (y : LocField w) else 1 := by |
| 85 | aesop (add simp locFullIdele) |
| 86 | -- It is integral: the valuations cancel if `w̄ = w`, and `x` is a unit otherwise. |
| 87 | suffices h_le : ∀ u : FinPlace E, |
| 88 | (if star u = w then if u = w then 1 else (v (x : LocField w))⁻¹ |
| 89 | else if u = w then v (x : LocField w) else 1) ≤ 1 by |
| 90 | simpa [mem_Ô, h_val, ← map_inv, coe_divStar] using h_le |
| 91 | -- If `w` is split, `v x = 1` and every value is `1`. Otherwise `w̄ = w`, so `star u = w` |
| 92 | -- exactly when `u = w`, and the two valuations cancel at `w`. |
| 93 | intro u |
| 94 | by_cases h_split : w.IsSplit |
| 95 | · simp [hx h_split] |
| 96 | · have h_star_w : star w = w := not_not.mp h_split |
| 97 | have h_star_iff : star u = w ↔ u = w := by rw [← h_star_w, star_inj, h_star_w] |
| 98 | by_cases hu_eq : u = w <;> simp [hu_eq, h_star_iff, h_star_w] |
| 99 | |
| 100 | /-- Let `μ` be an automorphic character of `U(1)(𝔸)` for the CM field `E`, of weight `e` with tame |
| 101 | part `ψ` (residue characters `ψ_w` with `μ u = ∏_v u_v^{e(v)} · ∏_w ψ_w(u mod w)` for `u` with |
| 102 | integral finite part), and suppose `ψ` is trivial at the conjugate place `w̄` (`star w`). Let |
| 103 | `x ∈ E_w^×` be viewed as an idele at `w`, with `x` a local unit if `w` is split (`w̄ ≠ w`). Then |
| 104 | `x/x̄` has integral finite part, and the finite part of the base change `y ↦ μ(y/ȳ)` evaluated at |
| 105 | the finite idele `x` equals `ψ_w` of the finite part of `x/x̄` reduced mod `w`. -/ |
| 106 | lemma AutChar.HasWeight.exists_baseChange_finPart_locIdele (hμ : μ.HasWeight e ψ) |
| 107 | (hψ : ψ (star w) = 1) (x : (LocField w)ˣ) (hx : w.IsSplit → v x.val = 1) : |
| 108 | ∃ h_int : (divStar (locFullIdele w x) : 𝔸 E).snd ∈ Ô E, |
| 109 | μ.baseChange.finPart (locIdele w x) = |
| 110 | ψ w (reduceAt w ⟨(divStar (locFullIdele w x) : 𝔸 E).snd, h_int⟩) := by |
| 111 | have h_int : (divStar (locFullIdele w x) : 𝔸 E).snd ∈ Ô E := |
| 112 | divStar_locFullIdele_snd_mem_Ô x hx |
| 113 | -- In the product that gives `μ (x / x̄)`, only the factor at `w` is left. |
| 114 | have h_inf : ∏ u : InfinitePlace E, (divStar (locFullIdele w x) : 𝔸 E).fst u ^ e u = 1 := by |
| 115 | simp [locFullIdele, ← map_inv, coe_divStar] |
| 116 | have h_fin (u : FinPlace E) (hu : u ≠ w) : |
| 117 | ψ u (reduceAt u ⟨(divStar (locFullIdele w x) : 𝔸 E).snd, h_int⟩) = 1 := by |
| 118 | obtain rfl | hu_ne_star := eq_or_ne u (star w) |
| 119 | · -- `ψ` is trivial at `w̄`, and the reduction is a unit (`isUnit_reduceAt_unitary`) |
| 120 | simp [hψ, MulChar.one_apply] |
| 121 | · simp [reduceAt, locFullIdele, ← map_inv, ← one_def, hu, hu_ne_star, RingHom.codRestrict, |
| 122 | coe_divStar, star_singleAdele] |
| 123 | refine ⟨h_int, (hμ.apply_eq _ h_int).trans ?_⟩ |
| 124 | rw [h_inf, one_mul, finprod_eq_single _ w h_fin] |
| 125 | |
| 126 | /-- Let μ have weight e and tame part ψ, and let w be a finite place with w̄ ≠ w and ψ_{w̄} |
| 127 | trivial. Then the base change y ↦ μ(y/ȳ), at a local unit x placed at w, equals ψ_w(x mod |
| 128 | w). -/ |
| 129 | lemma AutChar.HasWeight.baseChange_finPart_locIdele (hμ : μ.HasWeight e ψ) (hw : w.IsSplit) |
| 130 | (hψ : ψ (star w) = 1) {x : (LocField w)ˣ} (hx : v x.val = 1) : |
| 131 | μ.baseChange.finPart (locIdele w x) = ψ w (IsLocalRing.residue (LocInt w) ⟨x, hx.le⟩) := by |
| 132 | obtain ⟨h_int, h_eq⟩ := hμ.exists_baseChange_finPart_locIdele hψ x fun _ ↦ hx |
| 133 | -- As `w̄ ≠ w`, the component of `x / x̄` at `w` is `x`. |
| 134 | have h_comp : reduceAt w ⟨(divStar (locFullIdele w x) : 𝔸 E).2, h_int⟩ = |
| 135 | IsLocalRing.residue (LocInt w) ⟨x, hx.le⟩ := by |
| 136 | simp [reduceAt, locFullIdele, ← map_inv, hw.symm, RingHom.codRestrict, coe_divStar, |
| 137 | star_singleAdele] |
| 138 | rw [h_eq, h_comp] |
| 139 | |
| 140 | /-- Let μ be a continuous circle-valued character of U(1)(𝔸), the norm-one adeles of the CM field E, |
| 141 | trivial on elements of E. Suppose μ has weight e and tame part ψ, i.e. μ(u) = ∏_v u_v^{e(v)} · ∏_w |
| 142 | ψ_w(u mod w) when u has integral finite part. If w is a finite place with w̄ = w and ψ_w trivial, |
| 143 | then the base change y ↦ μ(y/ȳ) is trivial on E_w^×, viewed as finite ideles supported at w. -/ |
| 144 | lemma AutChar.HasWeight.baseChange_finPart_locIdele_eq_one (hμ : μ.HasWeight e ψ) |
| 145 | (hw : star w = w) (hψ : ψ w = 1) (x : (LocField w)ˣ) : |
| 146 | μ.baseChange.finPart (locIdele w x) = 1 := by |
| 147 | have hψ_star : ψ (star w) = 1 := by rwa [hw] |
| 148 | obtain ⟨h_int, h_eq⟩ := |
| 149 | hμ.exists_baseChange_finPart_locIdele hψ_star x fun h_split ↦ absurd hw h_split |
| 150 | -- The value is that of the trivial character `ψ w` at the reduction of `x / x̄`, a unit. |
| 151 | exact Units.ext (by simpa [hψ, MulChar.one_apply] using h_eq) |
| 152 | |
| 153 | namespace WeilData |
| 154 | |
| 155 | variable [WeilData E] |
| 156 | |
| 157 | /-! ### The splitting character on U(1) -/ |
| 158 | |
| 159 | /-- The restriction to U(1)(𝔸) of the splitting character υ of the Weil data has weight 1 at |
| 160 | every infinite place and trivial tame part. -/ |
| 161 | instance upsilonU1_hasWeight : upsilonU1.HasWeight (E := E) 1 1 where |
| 162 | finite_ramification := by simp |
| 163 | apply_eq _ h := (υ_unit _ ⟨h, star_mem_Ô h⟩).trans (by simp [MulChar.one_apply]) |
| 164 | |
| 165 | /-- For every integer z, υ^z on U(1)(𝔸) has weight z at every infinite place and trivial tame |
| 166 | part. -/ |
| 167 | instance hasWeight_upsilonU1_zpow (z : ℤ) : |
| 168 | (upsilonU1 ^ z : AutChar E).HasWeight (fun _ : InfinitePlace E ↦ z) 1 := by |
| 169 | -- `z • 1` is the constant weight `z`, and `1 ^ z = 1`. |
| 170 | have h_zpow : (upsilonU1 ^ z : AutChar E).HasWeight (z • 1) 1 := by |
| 171 | simpa only [one_zpow] using upsilonU1_hasWeight.zpow z |
| 172 | exact h_zpow.of_weight_eq (funext fun _ ↦ by simp) |
| 173 | |
| 174 | /-- For every natural number n, υ^n on U(1)(𝔸) has weight n at every infinite place and trivial tame |
| 175 | part. -/ |
| 176 | instance hasWeight_upsilonU1_pow (n : ℕ) : |
| 177 | (upsilonU1 ^ n : AutChar E).HasWeight (fun _ : InfinitePlace E ↦ (n : ℤ)) 1 := |
| 178 | hasWeight_upsilonU1_zpow n |
| 179 | |
| 180 | /-- If μ has weight e and tame part ψ, then μ·υ^n has weight n + e and tame part ψ. -/ |
| 181 | instance _root_.New.AutChar.HasWeight.mul_upsilonU1_pow [h : μ.HasWeight e ψ] (n : ℕ) : |
| 182 | (μ * upsilonU1 ^ n).HasWeight (fun v : InfinitePlace E ↦ (n : ℤ) + e v) ψ := by |
| 183 | have h_mul : (μ * upsilonU1 ^ n).HasWeight (e + fun _ ↦ (n : ℤ)) ψ := by |
| 184 | simpa only [mul_one] using h.mul (hasWeight_upsilonU1_pow n) |
| 185 | exact h_mul.of_weight_eq (funext fun _ ↦ add_comm _ _) |
| 186 | |
| 187 | /-- If μ has weight e and tame part ψ, and n is a finite type with #n elements, then the character |
| 188 | μ·υ^⌊#n/2⌋ (`New.rankTwist μ n`) has weight e + ⌊#n/2⌋ at every infinite place and tame part ψ. -/ |
| 189 | instance _root_.New.AutChar.HasWeight.hasWeight_rankTwist [h : μ.HasWeight e ψ] {n : Type*} |
| 190 | [Fintype n] : |
| 191 | (rankTwist μ n).HasWeight (fun v : InfinitePlace E ↦ ((Fintype.card n / 2 : ℕ) : ℤ) + e v) ψ := |
| 192 | h.mul_upsilonU1_pow (Fintype.card n / 2) |
| 193 | |
| 194 | /-- The base change x ↦ υ(x/x̄) of the restriction of the splitting character υ to U(1)(𝔸) |
| 195 | equals the Hecke character υ². -/ |
| 196 | @[simp] |
| 197 | lemma baseChange_upsilonU1 : upsilonU1.baseChange = υ (E := E) ^ 2 := by |
| 198 | -- `υ (x / x̄) = υ x ^ 2`, since `υ x̄ = (υ x)⁻¹`. |
| 199 | ext x : 2 |
| 200 | have h_div : Unitary.toUnits (divStar x) = x / star x := by aesop |
| 201 | change upsilonU1.val (divStar x) = υ.val x ^ 2 |
| 202 | rw [upsilonU1_apply, h_div, map_div, υ_star, div_inv_eq_mul, sq] |
| 203 | |
| 204 | end WeilData |
| 205 | |
| 206 | end New |
| 207 | |
| 208 | end SplittingCharOnU1 |
| 209 | |
| 210 | /-! |
| 211 | ## Characters tamely ramified at split places, local data and theta integrals |
| 212 | |
| 213 | The theta integral is defined for an arbitrary pair of characters of U(1)(𝔸). For a character |
| 214 | tamely ramified at split places, its character at the ramified places is shown to be tame. |
| 215 | -/ |
| 216 | |
| 217 | namespace New.Exchange |
| 218 | |
| 219 | open NumberField Pi Space SemilocalField IsLocalRing WithZero MulChar |
| 220 | |
| 221 | variable (E : Type) [Field E] [CMType E] [WeilData E] |
| 222 | {F n n' : Type} [Fintype n] [DecidableEq n] [Fintype n'] [DecidableEq n'] {s : n → ℤˣ} |
| 223 | {s' : n' → ℤˣ} [SemilocalField F] |
| 224 | (A : Set (FinPlace E)) (π : 𝔸f E →+* F) (S : Space E n s) (T : Space E n' s') |
| 225 | (P : Finset (FinPlace E)) |
| 226 | |
| 227 | /-- A character ν (`character`) of [U(1)] of weight e, with e(v) > 0 for every v, and with tame part |
| 228 | ψ (`tamePart`) non-trivial exactly on a non-empty finite set S (`ramifiedPlaces`) of places disjoint |
| 229 | from its conjugate. -/ |
| 230 | structure SplitTameChar (e : InfinitePlace E → ℤ) where |
| 231 | /-- The character of the norm-one adeles. -/ |
| 232 | character : AutChar E |
| 233 | /-- The tame part of `character`: a character of the residue field at each finite place. -/ |
| 234 | tamePart (w : FinPlace E) : MulChar (ResField w) ℂ |
| 235 | /-- `character` has weight `e` and tame part `tamePart`. -/ |
| 236 | hasWeight : character.HasWeight e tamePart |
| 237 | /-- The set of ramified places. -/ |
| 238 | ramifiedPlaces : Finset (FinPlace E) |
| 239 | /-- At least one place is ramified. -/ |
| 240 | nonempty : ramifiedPlaces.Nonempty |
| 241 | /-- The conjugate of a place of `ramifiedPlaces` is not in `ramifiedPlaces`; in particular these |
| 242 | places are split. -/ |
| 243 | star_notMem : ∀ w ∈ ramifiedPlaces, star w ∉ ramifiedPlaces |
| 244 | /-- The residue character `tamePart w` is non-trivial exactly when `w` is in `ramifiedPlaces`. -/ |
| 245 | ne_one_iff (w : FinPlace E) : tamePart w ≠ 1 ↔ w ∈ ramifiedPlaces |
| 246 | /-- Every component of the weight `e` is positive. -/ |
| 247 | weight_pos (v : InfinitePlace E) : 0 < e v |
| 248 | |
| 249 | attribute [instance] SplitTameChar.hasWeight |
| 250 | |
| 251 | variable {E} |
| 252 | |
| 253 | /-! ### Reading the components at a set of places -/ |
| 254 | |
| 255 | /-- π reads the components at A: A is disjoint from its conjugate, π is continuous with a |
| 256 | continuous additive section σ, σ(πx) being the A-part of x, and π(x) ∈ O iff x is integral |
| 257 | at A. -/ |
| 258 | structure ReadsAt {E : Type} [Field E] [NumberField E] [IsCMField E] (A : Set (FinPlace E)) |
| 259 | (π : 𝔸f E →+* F) where |
| 260 | /-- No place of `A` has its conjugate in `A`. -/ |
| 261 | disjoint_star : A.IsConjDisjoint |
| 262 | /-- `π x` lies in the subring `SemilocalField.O` exactly when `x` is integral at the places of |
| 263 | `A`. -/ |
| 264 | mem_iff (x : 𝔸f E) : π x ∈ O ↔ idem A * x ∈ Ô E |
| 265 | /-- `π` is continuous and has a continuous additive section `σ`, with `σ (π x)` the part of `x` at |
| 266 | the places of `A`. -/ |
| 267 | exists_section : |
| 268 | Continuous π ∧ |
| 269 | ∃ σ : F →+ 𝔸f E, Continuous σ ∧ (∀ y : F, π (σ y) = y) ∧ ∀ x : 𝔸f E, σ (π x) = idem A * x |
| 270 | |
| 271 | /-- The multiplicative character of ∏_{w∈P} E_w that is t ↦ ξ(t)|t|^{k/2} on invertible |
| 272 | elements, t read as an idele, and 0 on the others. -/ |
| 273 | def localChar (ξ : HeckeChar E) (k : ℤ) : MulChar (∀ i : P, LocField i.val) ℂ := |
| 274 | MulChar.ofUnitHom <| |
| 275 | ∏ i : P, |
| 276 | (ξ.finPart.comp (locIdele i) * |
| 277 | MonoidHom.toHomUnits |
| 278 | { toFun (t : (LocField i.val)ˣ) := (√‖t.val‖ : ℂ) |
| 279 | map_one' := by simp |
| 280 | map_mul' := by simp } ^ k).comp (Units.map (evalMonoidHom _ i)) |
| 281 | |
| 282 | variable {μ : InfinitePlace E → ℤ} {P A π} (𝔠 : SplitTameChar E μ) (a b : AutChar E) |
| 283 | (f : 𝒮 (S.hom T)) (v : Heisenberg.IsVacuum.Model |
| 284 | (Fock.realHeisenberg (realSigns E (homSigns s s')))) |
| 285 | (Ψ : _ → ℂ) (i : P) |
| 286 | |
| 287 | omit [WeilData E] in |
| 288 | /-- If `π` reads the components at `A`, then `π` composed with complex conjugation reads the |
| 289 | components at the conjugate places `star ⁻¹' A`. -/ |
| 290 | lemma ReadsAt.star (h_read : ReadsAt A π) : ReadsAt (star ⁻¹' A) (π.comp (starRingEnd (𝔸f E))) := by |
| 291 | -- the new section is the conjugate of the old one; conjugation moves `idem A` to the |
| 292 | -- idempotent of the conjugate places (`star_idem`) |
| 293 | obtain ⟨h_dis, h_mem, hπ, σ, hσ, h_sect⟩ := h_read |
| 294 | have h_dis_star : (Star.star ⁻¹' A).IsConjDisjoint := by grind |
| 295 | refine ⟨h_dis_star, ?_, hπ.comp continuous_star, .comp (starRingEnd (𝔸f E)) σ, hσ.star, ?_⟩ |
| 296 | · -- `star x` is integral at `w` exactly when `x` is integral at `star w` |
| 297 | grind [idem_mul_mem_Ô, v_star_apply, star_star, starRingEnd_apply, π.comp_apply] |
| 298 | · simp [h_sect, star_idem, starRingEnd_apply] |
| 299 | |
| 300 | omit [WeilData E] in |
| 301 | /-- The projection to the ramified places of `𝔠` reads the components there. -/ |
| 302 | lemma SplitTameChar.readsAt : ReadsAt 𝔠.ramifiedPlaces (evalPlaces 𝔠.ramifiedPlaces) := by |
| 303 | -- the section is extension by zero |
| 304 | have h_dis : (𝔠.ramifiedPlaces : Set (FinPlace E)).IsConjDisjoint := by grind [star_notMem] |
| 305 | refine ⟨h_dis, ?_, by fun_prop, adeleOfLocal 𝔠.ramifiedPlaces, continuous_adeleOfLocal _, |
| 306 | evalPlaces_adeleOfLocal _, adeleOfLocal_evalPlaces _⟩ |
| 307 | simp [mem_O_locProd, idem_mul_mem_Ô] |
| 308 | |
| 309 | /-- The ring map from the integers of ∏_{w∈P} E_w to the residue field at the place i of P. -/ |
| 310 | def residueAt {E : Type} [Field E] [NumberField E] {P : Finset (FinPlace E)} (i : P) : |
| 311 | O (F := LocProd P) →+* ResField i.val := |
| 312 | (residue (LocInt i.val)).comp |
| 313 | ((evalRingHom (fun w : P ↦ LocField w.val) i).restrict O (LocInt i.val) (by aesop (add simp |
| 314 | mem_O_locProd))) |
| 315 | |
| 316 | /-- The vector of 𝒮(Hom(S,T)) obtained from the vacuum by applying the operator |
| 317 | `New.Space.schrodingerOp`, for the places A, of the function y ↦ Ψ(π y) on finite adelic matrices, |
| 318 | π acting entrywise. The argument of type `ReadsAt A π` only records that `π` reads the components |
| 319 | at `A`. -/ |
| 320 | abbrev namedVector (Ψ : Matrix n' n F → ℂ) (_h_read : ReadsAt A π) : 𝒮 (S.hom T) := |
| 321 | (S.hom T).schrodingerOp A (fun y ↦ Ψ ((vecToMatrix y).map π)) (S.hom T).vacElem |
| 322 | |
| 323 | /-- The datum in 𝒮(Hom(S,T)) with real part v, the function Ψ of the components at the places A read |
| 324 | through π, and the vacuum elsewhere. -/ |
| 325 | abbrev localDatum (Ψ : Matrix n' n F → ℂ) (r : ReadsAt A π) : 𝒮 (S.hom T) := |
| 326 | (S.hom T).integrated v (delta% namedVector S T Ψ r) |
| 327 | |
| 328 | /-- The function g ↦ ∫ θ^{S,T}_{a,b}(f)(g,h) dh on U(S) = G E s, for f in 𝒮(Hom(S,T)). Here h runs |
| 329 | over U(T) = G E s', and dh is the measure `T.quotMeasure` on [U(T)]. It is the integral of the theta |
| 330 | kernel `New.pairTheta` over [U(T)], for arbitrary characters a and b of U(1)(𝔸). -/ |
| 331 | def thetaIntegral (g : G E s) : ℂ := ∫ h : G E s', pairTheta S T a b f (g, h) ∂T.quotMeasure |
| 332 | |
| 333 | omit [WeilData E] |
| 334 | |
| 335 | lemma evalPlaces_mem_O : ∀ x ∈ Ô E, evalPlaces P x ∈ O := |
| 336 | fun _ hx ↦ mem_O_locProd.mpr fun i ↦ mem_Ô.mp hx i |
| 337 | |
| 338 | /-! ### Units at the places of P -/ |
| 339 | |
| 340 | @[simp] |
| 341 | lemma isUnit_iff_residueAt_ne_zero {u : O} : IsUnit u ↔ ∀ i : P, residueAt i u ≠ 0 := by |
| 342 | simp [residueAt, ResField, Subtype.ext_iff, isUnit_iff_exists_inv, Classical.skolem, funext_iff, |
| 343 | mem_O_locProd, forall_and] |
| 344 | rfl |
| 345 | |
| 346 | /-- The residue at `i` of an integral `u` is zero exactly when the component `u i` has valuation |
| 347 | below `1`. -/ |
| 348 | @[local simp] |
| 349 | lemma residueAt_eq_zero {u : O} : residueAt i u = 0 ↔ Valued.v (u.val i) < 1 := |
| 350 | residue_eq_iff_valuation_sub_lt_one.trans (by simp) |
| 351 | |
| 352 | /-- An element of ∏_{w∈P} E_w is an integral unit exactly when each component has valuation 1. -/ |
| 353 | lemma isIntegralUnit_iff_v_eq_one {t : LocProd P} : |
| 354 | IsIntegralUnit t ↔ ∀ i : P, Valued.v (t i) = 1 := by |
| 355 | -- Integral means `v ≤ 1` at each place, a residue that is not zero means `1 ≤ v`. |
| 356 | have h_unit_iff (ht : t ∈ O) : IsIntegralUnit t ↔ ∀ i : P, 1 ≤ Valued.v (t i) := by |
| 357 | simpa only [ne_eq, residueAt_eq_zero, not_lt] using |
| 358 | (isIntegralUnit_iff_isUnit (u := ⟨t, ht⟩)).trans isUnit_iff_residueAt_ne_zero |
| 359 | constructor |
| 360 | · rintro ⟨ht_O, ht_inv⟩ i |
| 361 | exact le_antisymm (mem_O_locProd.mp ht_O i) ((h_unit_iff ht_O).mp ⟨ht_O, ht_inv⟩ i) |
| 362 | · intro h_val |
| 363 | exact (h_unit_iff (mem_O_locProd.mpr fun i ↦ (h_val i).le)).mpr fun i ↦ (h_val i).ge |
| 364 | |
| 365 | namespace SplitTameChar |
| 366 | |
| 367 | /-- The character t ↦ ν(t/t̄) of ∏_{w∈S} E_w, t read as an idele supported on S, extended by 0 |
| 368 | to non-invertible elements. -/ |
| 369 | abbrev semilocalChar : MulChar ((i : 𝔠.ramifiedPlaces) → LocField (i : FinPlace E)) ℂ := |
| 370 | localChar 𝔠.ramifiedPlaces 𝔠.character.baseChange 0 |
| 371 | |
| 372 | /-! ### The character at the ramified places through its residue characters -/ |
| 373 | |
| 374 | /-- On a unit u of the ring of integers at S, the character `New.Exchange.localChar` of the base |
| 375 | change of ν is, for every k, the product over S of the residue characters ψ_w at the residues of |
| 376 | u. -/ |
| 377 | lemma localChar_apply_of_isUnit (k : ℤ) (u : O (F := LocProd 𝔠.ramifiedPlaces)) (hu : IsUnit u) : |
| 378 | localChar 𝔠.ramifiedPlaces 𝔠.character.baseChange k u.val = ∏ i : 𝔠.ramifiedPlaces, |
| 379 | 𝔠.tamePart i (residueAt i u) := by |
| 380 | have h_val : ∀ i : 𝔠.ramifiedPlaces, Valued.v (u.val i) = 1 := |
| 381 | isIntegralUnit_iff_v_eq_one.mp (isIntegralUnit_iff_isUnit.mpr hu) |
| 382 | have h_unit : (↑(hu.map O.subtype).unit : LocProd 𝔠.ramifiedPlaces) = u.val := |
| 383 | (hu.map O.subtype).unit_spec |
| 384 | unfold localChar |
| 385 | rw [← h_unit, ofUnitHom_coe] |
| 386 | -- The components of `u` have absolute value one, so the factors `√‖u i‖ ^ k` drop out; it |
| 387 | -- remains to compare the factors at each `i ∈ S`. |
| 388 | simp [FinitePlace.norm_def, h_val] |
| 389 | refine Finset.prod_congr rfl fun i _ ↦ ?_ |
| 390 | -- At `i`, `ν (x / x̄)` for the unit `x = u i` is `ψ i` at the residue of `u` |
| 391 | -- (`baseChange_finPart_locIdele`, which applies since `star i ∉ S`, so `ψ` is trivial there). |
| 392 | have h_conj : star (i : FinPlace E) ∉ 𝔠.ramifiedPlaces := 𝔠.star_notMem i i.prop |
| 393 | have hψ_conj : 𝔠.tamePart (star (i : FinPlace E)) = 1 := (𝔠.ne_one_iff _).not_right.mpr h_conj |
| 394 | have h_split : (i : FinPlace E).IsSplit := fun h_eq ↦ h_conj (by simp [h_eq]) |
| 395 | -- `baseChange_finPart_locIdele` applies with these facts and `h_val`. |
| 396 | apply_rules [𝔠.hasWeight.baseChange_finPart_locIdele] |
| 397 | |
| 398 | /-- On a norm-one adele u with integral finite part, ν(u) is the weight factor ∏_v u_v^{μ(v)} times |
| 399 | the character `New.Exchange.SplitTameChar.semilocalChar` at the components of u at S. -/ |
| 400 | lemma character_apply_of_integral (u : unitary (𝔸 E)) (hu : (u : 𝔸 E).2 ∈ Ô E) : |
| 401 | 𝔠.character.val u = |
| 402 | (∏ v : InfinitePlace E, (u : 𝔸 E).1 v ^ μ v) * 𝔠.semilocalChar |
| 403 | (evalPlaces 𝔠.ramifiedPlaces (u : 𝔸 E).2) := by |
| 404 | have h_mem : evalPlaces 𝔠.ramifiedPlaces (u : 𝔸 E).2 ∈ O := evalPlaces_mem_O _ hu |
| 405 | have h_unit : IsUnit (⟨_, h_mem⟩ : O (F := LocProd 𝔠.ramifiedPlaces)) := |
| 406 | isUnit_iff_residueAt_ne_zero.mpr fun i ↦ (isUnit_reduceAt_unitary u hu i).ne_zero |
| 407 | -- Both sides are the weight factor times the product over `S` of `ψ` at the residues of `u`. |
| 408 | have hψ_off : ∀ w ∉ 𝔠.ramifiedPlaces, 𝔠.tamePart w = 1 := fun w ↦ (𝔠.ne_one_iff w).not_right.mpr |
| 409 | -- `erw`: `𝔠.semilocalChar` at `evalPlaces 𝔠.ramifiedPlaces u.2` is `localChar … 0` at the value |
| 410 | -- of the unit `⟨evalPlaces 𝔠.ramifiedPlaces u.2, h_mem⟩` only up to unfolding. |
| 411 | rw [𝔠.hasWeight.apply_eq u hu, finprod_tame_eq_prod_reduceU1 _ hψ_off, |
| 412 | ← 𝔠.ramifiedPlaces.prod_attach, |
| 413 | localChar_apply_of_isUnit 𝔠 0 ⟨evalPlaces 𝔠.ramifiedPlaces (u : 𝔸 E).2, h_mem⟩ h_unit] |
| 414 | -- The reductions of `u` at each `i` by `reduceU1` and by `residueAt` agree by definition. |
| 415 | have h_red : ∀ i : 𝔠.ramifiedPlaces, |
| 416 | ((reduceU1 (i : FinPlace E) ⟨u, hu, nofun⟩ : (ResField i.val)ˣ) : ResField i.val) = |
| 417 | residueAt i ⟨evalPlaces 𝔠.ramifiedPlaces (u : 𝔸 E).2, h_mem⟩ := |
| 418 | fun i ↦ rfl |
| 419 | simp only [h_red, Finset.univ_eq_attach] |
| 420 | |
| 421 | open scoped Classical in |
| 422 | /-- The tameness data (`New.TameLocalChar`) of t ↦ ν(t/t̄)|t|^{k/2} on ∏_{w∈S} E_w: the product of |
| 423 | the residue fields at S, with the character ∏ψ_w⁻¹ on it. -/ |
| 424 | instance tameLocalChar (k := 0) : TameLocalChar |
| 425 | (localChar 𝔠.ramifiedPlaces 𝔠.character.baseChange k) where |
| 426 | -- the product over `S` of the residue fields |
| 427 | ResidueRing := _ |
| 428 | reduction := .pi residueAt |
| 429 | resChar := ⟨∏ i : 𝔠.ramifiedPlaces, (𝔠.tamePart i)⁻¹.comp (evalMonoidHom _ i), by |
| 430 | simp [isUnit_iff, Finset.prod_eq_zero_iff, apply_eq_zero_iff]⟩ |
| 431 | reduction_surjective_and_eq_zero_iff := by |
| 432 | constructor |
| 433 | · -- Lift each component of `r` from the residue field. |
| 434 | intro r |
| 435 | simpa [Classical.skolem, funext_iff, mem_O_locProd] using! fun i ↦ residue_surjective (r i) |
| 436 | · simp [ϖ, ← lt_mul_exp_iff_le, funext_iff, mem_O_locProd] |
| 437 | isPrimitive_resChar_and_invOnUnits_eq := by |
| 438 | constructor |
| 439 | · -- Primitivity: if `a i ≠ 0`, solve `1 + a y = x` at `i` for a unit `x` with `ψ i x ≠ 1`. |
| 440 | intro a ha |
| 441 | obtain ⟨i, hi⟩ := Function.ne_iff.1 ha |
| 442 | obtain ⟨x, hx⟩ := MulChar.ne_one_iff.1 ((𝔠.ne_one_iff i).2 i.property) |
| 443 | exact ⟨(mulSingle i x - 1) / a, by |
| 444 | simp_all [Finset.prod_eq_single i, inv_apply_eq_inv', apply_eq_zero_iff]⟩ |
| 445 | · -- On units this is `localChar_apply_of_isUnit`; a non-unit has residue `0` at some place, so |
| 446 | -- both sides are `0`. |
| 447 | simp_all [invOnUnits, ↓isIntegralUnit_iff_isUnit, localChar_apply_of_isUnit, @eq_comm ℂ 0, |
| 448 | inv_apply_eq_inv', Finset.prod_eq_zero_iff, apply_eq_zero_iff] |
| 449 | |
| 450 | end SplitTameChar |
| 451 | |
| 452 | end New.Exchange |
| 453 | |
| 454 | /-! ## Characters of given weight on determinants of integral unitary points -/ |
| 455 | |
| 456 | namespace New.AutChar.HasWeight |
| 457 | |
| 458 | open Matrix Prod IsIntMatrix |
| 459 | |
| 460 | variable {E n : Type _} [Field E] [CMType E] [Fintype n] [DecidableEq n] |
| 461 | {μ : AutChar E} {e : NumberField.InfinitePlace E → ℤ} |
| 462 | {ψ : (w : FinPlace E) → MulChar (ResField w) ℂ} {s : n → ℤˣ} |
| 463 | |
| 464 | /-- Let `μ` have weight `e` and tame part `ψ` (`μ.HasWeight e ψ`, with `ψ u` a character of the |
| 465 | residue field at `u`), and let `ψ` be trivial outside the distinct places `w i`. Then for `k` in the |
| 466 | stabiliser `K₀ = stdLevel E n` of the standard lattice, `μ (det k) = ∏ i, ψ (w i) (det (k mod w |
| 467 | i))`, where `detFin s k` is the determinant of `k` as a norm-one adele. -/ |
| 468 | lemma apply_det_eq_prod (h : μ.HasWeight e ψ) {ι : Type*} [Fintype ι] {w : ι → FinPlace E} |
| 469 | (hw : w.Injective) (hψ : ∀ u : FinPlace E, u ∉ Set.range w → ψ u = 1) (k : stdLevel E n) : |
| 470 | μ.val (detFin s k.val) = ∏ i : ι, ψ (w i) (stdLevel.reduceAt (w i) k).val.det := by |
| 471 | -- Reduction modulo a place is a ring homomorphism on `Ô E`, so it commutes with `det`. |
| 472 | have h_red (u : FinPlace E) (h_int : (G.adeleMatrix (s := s) (1, k.val)).det.snd ∈ Ô E) : |
| 473 | reduceAt u ⟨_, h_int⟩ = (stdLevel.reduceAt u k).val.det := by |
| 474 | -- `convert!` matches `RingHom.map_det` across the coercions between `Ô E`, `𝔸f E` and the |
| 475 | -- finite part of `(1, k)`; the remaining goal is the finite part of the determinant. |
| 476 | convert! RingHom.map_det .. |
| 477 | -- `simp` reduces both sides to the entries of `k`; they agree up to the coercion into `Ô E`. |
| 478 | simp [det_apply', snd_sum, snd_prod] |
| 479 | rfl |
| 480 | -- `μ (det k)` is the archimedean part, which is `1`, times the tame product, which is a product |
| 481 | -- over the places `w i` because `ψ` is trivial elsewhere. |
| 482 | have hψ_map : ∀ u : FinPlace E, u ∉ Finset.univ.map ⟨w, hw⟩ → ψ u = 1 := by simpa using hψ |
| 483 | have h_int : (detFin s k.val : 𝔸 E).snd ∈ Ô E := by simp [det_mem (mem_stdLevel.mp k.property)] |
| 484 | rw [h.apply_eq _ h_int, finprod_tame_eq_prod_reduceU1 (u := detFin s k.val) hψ_map h_int] |
| 485 | simp [reduceU1, -snd_det, h_red] |
| 486 | |
| 487 | /-- A character `μ` with trivial tame part (`μ.HasWeight e 1`) is trivial on the determinant |
| 488 | `detFin s k` of every `k` in the stabiliser `stdLevel E n` of the standard lattice. -/ |
| 489 | lemma apply_det_eq_one (h : μ.HasWeight e 1) {k : Gf E n} (hk : k ∈ stdLevel E n) : |
| 490 | μ.val (detFin s k) = 1 := by |
| 491 | -- The archimedean part of `det (1, k)` is `1`, and the tame part is trivial at every place. |
| 492 | ext |
| 493 | -- `↓` turns the tame product into a product over `∅` before simp unfolds it; without it |
| 494 | -- `∏ᶠ w, 1 (reduceAt w (det k))` is left. |
| 495 | simp [h.apply_eq, det_mem (mem_stdLevel.mp hk), ↓finprod_tame_eq_prod_reduceU1 (S := ∅)] |
| 496 | |
| 497 | /-- Let `μ` have weight `e` and tame part `ψ`, trivial at the places of `A` and their conjugates. |
| 498 | Then `μ` is trivial on `det k` for every integral point `k` supported on `A` and its conjugate. -/ |
| 499 | lemma apply_det_eq_one_of_supportedOn (h : μ.HasWeight e ψ) {A : Set (FinPlace E)} |
| 500 | (hψ : ∀ w ∈ A.conjClosure, ψ w = 1) {k : Gf E n} (hk : k ∈ stdLevel E n ⊓ Gf.supportedOn n A) : |
| 501 | μ.val (detFin s k) = 1 := by |
| 502 | -- `μ (det k)` is a product over the places where `ψ` is not trivial, and there `k` is `1`. |
| 503 | obtain ⟨k_int, k_supp⟩ := hk |
| 504 | let : Fintype {w : FinPlace E | ψ w ≠ 1} := h.finite_ramification.fintype |
| 505 | have h_red (w : FinPlace E) (hw : ψ w ≠ 1) : stdLevel.reduceAt w ⟨k, k_int⟩ = 1 := by |
| 506 | obtain ⟨h_not, h_star_not⟩ : w ∉ A ∧ star w ∉ A := not_or.1 fun h_mem ↦ hw (hψ w h_mem) |
| 507 | exact stdLevel.reduceAt_eq_one_of_atPlace (Gf.mem_supportedOn.1 k_supp w h_not h_star_not) |
| 508 | have h_prod : (μ.val (detFin s k) : ℂ) = |
| 509 | ∏ w : {w : FinPlace E | ψ w ≠ 1}, ψ w (stdLevel.reduceAt w.val ⟨k, k_int⟩).val.det := |
| 510 | h.apply_det_eq_prod Subtype.val_injective (by simp) ⟨k, k_int⟩ |
| 511 | exact Circle.ext (h_prod.trans (Finset.prod_eq_one fun w _ ↦ by simp [h_red w.val w.property])) |
| 512 | |
| 513 | end New.AutChar.HasWeight |
| 514 | |
| 515 | end |