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.General.Analysis.FiniteFourier |
| 4 | public import Lib.Weil.DualPair.FiniteAction |
| 5 | import Lib.Adelic.Unitary.WeakApproximation |
| 6 | import Lib.Cohomology.Etale.Basic |
| 7 | import Lib.Weil.Construction.CanonicalTheta |
| 8 | import Lib.Weil.DualPair.KernelLaws |
| 9 | import Lib.Weil.DualPair.WeilAction |
| 10 | |
| 11 | /-! |
| 12 | # Flipping a dual pair by adjoints: Weil actions and theta kernels modulo ideals |
| 13 | |
| 14 | For hermitian spaces `V`, `W`, the Weil representation on the data space of `Hom(V, W)` gives the |
| 15 | action `New.pairWeil V W` of the two unitary groups and the theta kernel `New.pairTheta V W`. |
| 16 | Taking adjoints identifies this pair with the pair `(W, V⁻)`, where `V⁻ = New.Seesaw.flipSpace V` |
| 17 | has the signs opposite to those of `V`. This file gives the effect of the adjoint on Weil actions, |
| 18 | on theta kernels and on the polynomial vectors of the Fock model (`New.flipPoly`). For theta |
| 19 | kernels `New.modKernel` built from functions on matrices modulo an ideal `𝔪`, the flip is expressed |
| 20 | by a finite Fourier transform. |
| 21 | |
| 22 | ## Main definitions and results |
| 23 | |
| 24 | * `New.flipCoords`: the adjoint, twisted by the idele `New.flipIdele`, as a change of coordinates |
| 25 | `New.CoordChange`; it depends on a unit `c` of `Ô` with `c̄ c = -1`. `New.Seesaw.flipSpace` is the |
| 26 | opposite space `V⁻`. |
| 27 | * `New.flipCoords_map_pairWeil`, `New.exists_theta_flipCoords_map_eq_mul`, |
| 28 | `New.flipCoords_map_schrodingerOp`: it intertwines the actions of the pairs once the characters |
| 29 | are changed, keeps the theta functional up to a number of modulus one, and moves a datum to the |
| 30 | conjugate places. |
| 31 | * `New.exists_pairTheta_flip`: the resulting identity of theta kernels, after a change of point. |
| 32 | * `New.Modulus.exists_modKernel_flip`: a kernel `New.modKernel` of (V, S) as a constant times a |
| 33 | kernel of (S, T), where V has the signs opposite to T. |
| 34 | * `New.Exchange.exists_conj_modKernel_eq_swap`: the complex conjugate of a kernel of (S, T) as a |
| 35 | kernel of (T, S). |
| 36 | |
| 37 | Notions from other files: |
| 38 | * `New.WeilData`: Weil data on a stably unramified E. They consist of ȷ in E with ȷ = −ȷ̄, Im τȷ > 0 |
| 39 | for every τ in the CM type and (1 − ȷ⁻¹)/2 integral; a finite idele α for which the completed |
| 40 | integers Ô are self-dual under (z, u) ↦ ψ_f(ȷαᾱzu); and a splitting character υ equal to −1 at |
| 41 | uniformisers of the places w with w = w̄; its restriction to the norm-one ideles is |
| 42 | `New.WeilData.upsilonU1`. |
| 43 | * `New.Modulus`: a nonzero ideal 𝔪 of O_E prime to its complex conjugate; `𝔪.ResidueRing` is O_E/𝔪, |
| 44 | `𝔪.generator` a finite idele generating 𝔪 in Ô, equal to 1 off 𝔪, and `𝔪.primAddChar` the |
| 45 | primitive additive character x ↦ ψ_f(ȷαᾱ x / 𝔪.generator) of O_E/𝔪. |
| 46 | * `New.Space`: a hermitian space with a point, given by a matrix J over E and x in GL_n(𝔸) with xᴴJx |
| 47 | equal to the diagonal matrix of its signs at the infinite places and 1 at the finite places. |
| 48 | * `New.𝒮`: The Banach space 𝒮(V) of integrable functions c on 𝔸^n with c(x) = ∫ c(y)β(y,x)e(x−y) dy, |
| 49 | under the L¹ norm; β is the adelic bicharacter and e the vacuum function `New.vacuumFn`. |
| 50 | * `New.pairWeil`: The action ω_{a,b}(g, h) = χ_{a,b}(g, h) ω(x ↦ hxg⁻¹) on 𝒮(Hom(S, T)), where |
| 51 | χ_{a,b}(g, h) = a(det h) b(det g)⁻¹ is `New.pairChar`. The theta kernel `New.pairTheta` S T a b f |
| 52 | (g, h) is θ(ω_{a,b}(g, h) f), where θ is the theta functional `New.Space.θ`. |
| 53 | |
| 54 | ## Relation to the literature |
| 55 | |
| 56 | Known; see `Lib.Weil.DualPair.ThetaLiftConvergence` for sources. |
| 57 | -/ |
| 58 | |
| 59 | @[expose] public section |
| 60 | |
| 61 | noncomputable section |
| 62 | |
| 63 | namespace New |
| 64 | |
| 65 | /-! |
| 66 | ## The adjoint flip on Weil actions and theta kernels |
| 67 | |
| 68 | The change of coordinates `New.flipCoords`, its effect on Weil actions and theta kernels, the |
| 69 | opposite space `New.Seesaw.flipSpace`, and its effect on the polynomial vectors of the Fock model |
| 70 | (`New.flipPoly`, `New.realMap_flipCoords_polyVector`). |
| 71 | -/ |
| 72 | |
| 73 | section Flip |
| 74 | |
| 75 | open NumberField Matrix WeilData Fock stdLattice Fintype CoordChange G Int Weil MvPolynomial |
| 76 | |
| 77 | variable {E : Type} [Field E] [CMType E] [WeilData E] |
| 78 | {n a : Type} [Fintype n] [DecidableEq n] [Fintype a] [DecidableEq a] |
| 79 | {s : n → ℤˣ} {t t' : a → ℤˣ} {c : (Ô E)ˣ} (hc : star (c : 𝔸f E) * c = -1) (ht : t' = -t) |
| 80 | (V : Space E a t) (W : Space E n s) (V' : Space E a t') |
| 81 | |
| 82 | /-- For a unit `c` of `Ô` and a sign `t`, the idele with component `t` at every infinite place and |
| 83 | finite part `c α / ᾱ`, where `α` is the finite idele of the Weil data. -/ |
| 84 | @[simps! -isSimp val] |
| 85 | def flipIdele (c : (Ô E)ˣ) (t : ℤˣ) : (𝔸 E)ˣ := |
| 86 | MulEquiv.prodUnits.symm (t.map (castRingHom (InfinitePlace E → ℂ)).1, c.map (Ô E).subtype * α * |
| 87 | star α⁻¹) |
| 88 | |
| 89 | /-- For a unit c of Ô with c̄c = −1 (hypothesis `hc`) and signs t′ = −t (hypothesis `ht`), the |
| 90 | change of coordinates x ↦ (1, cα/ᾱ) ε_s xᴴ ε_t, where ε_s, ε_t are the standard diagonal forms of |
| 91 | the signs (`New.flipCoords_apply`). On points it goes from signs t′_i s_j to signs s_j t_i. It |
| 92 | carries functions from signs s_j t_i to signs t′_i s_j. -/ |
| 93 | def flipCoords : CoordChange E (.id ℂ) (homSigns t s) (homSigns s t') where |
| 94 | φ := starCoordEquiv (.prodComm ..) (flipIdele c ∘ homSigns t s) |
| 95 | realEquiv := |
| 96 | starCoordEquiv (.prodCongr 1 (.prodComm ..)) fun i ↦ .map (castRingHom ℂ) (homSigns t s i.2) |
| 97 | finEquiv := starCoordEquiv (.prodComm ..) fun _ ↦ c.map (Ô E).subtype |
| 98 | apply_adelicSum := by |
| 99 | -- In the finite part the factors `star α` and `star α⁻¹` cancel. |
| 100 | simp [adelicSum, val_scaleIdele_fst, val_scaleIdele_snd, ← mul_assoc, |
| 101 | starCoordEquiv, val_flipIdele, _root_.funext_iff, Prod.ext_iff] |
| 102 | grind [star_mul', star_one, α.mul_inv] |
| 103 | beta_realEquiv := by |
| 104 | -- Conjugation exchanges the two sums in the exponent, and `t' = -t` changes their signs. |
| 105 | simp [ht, realHeisenberg, signMatrix, dotProduct, Finset.sum_comm (γ := a), ← mul_assoc, |
| 106 | ← cast_mul, |
| 107 | mul_comm, pairSign, mulVec_diagonal, sum_prod_type, starCoordEquiv] |
| 108 | grind |
| 109 | vac_realEquiv := by |
| 110 | simp [dotProduct, Finset.sum_comm (γ := a), ← mul_assoc, ← cast_mul, mul_comm, realVac, |
| 111 | starCoordEquiv, sum_prod_type] |
| 112 | selfDualAddChar_finEquiv := by |
| 113 | -- The sign from `star c * c = -1` is made up for by `selfDualAddChar_star`. |
| 114 | simp_all [dotProduct, Finset.sum_comm (γ := a), mul_right_comm _ _ (star c.val.val), |
| 115 | ← mul_assoc, mul_comm, ← selfDualAddChar_star, star_half, starCoordEquiv, sum_prod_type] |
| 116 | dot_finEquiv := by |
| 117 | simp_all [dotProduct, Finset.sum_comm (γ := a), mul_right_comm _ _ (star c.val.val), |
| 118 | ← mul_assoc, mul_comm, starCoordEquiv, sum_prod_type] |
| 119 | finEquiv_mem x := by |
| 120 | -- Both the unit `c` and conjugation preserve `Ô E`. |
| 121 | refine (Submodule.smul_mem_iff' _ c).trans ?_ |
| 122 | simp [intVectors, stdLattice] |
| 123 | grind [star_star, star_mem_Ô] |
| 124 | |
| 125 | /-- For a unit `c` of `Ô E` with c̄c = −1 and signs `t' = -t`, the map `φ` of the change of |
| 126 | coordinates `flipCoords` is computed as follows. It reads a vector `x` on pairs in `a × n` as a |
| 127 | matrix and sends it to ε_s xᴴ ε_t, where ε_s = `stdForm E s` and ε_t = `stdForm E t` are diag(s) and |
| 128 | diag(t) at the infinite places and the identity at the finite places. It then scales by the idele |
| 129 | `flipIdele c 1` (1 at the infinite places, cα/ᾱ at the finite places, α from the Weil data) and |
| 130 | reads the result back as a vector on pairs. -/ |
| 131 | lemma flipCoords_apply (hc : star (c : 𝔸f E) * c = -1) (ht : t' = -t) (x : a × n → 𝔸 E) : |
| 132 | (flipCoords (s := s) hc ht).φ x = |
| 133 | matrixToVec ((flipIdele c 1).val • (stdForm E s * (vecToMatrix x)ᴴ * stdForm E t)) := by |
| 134 | simp [flipCoords, stdForm, matrixToVec, vecToMatrix, field, starCoordEquiv, pairSign, |
| 135 | val_flipIdele, _root_.funext_iff, Prod.ext_iff] |
| 136 | |
| 137 | /-- Let `g` be in `G E t` and `h` in `G E s`. Then `onHom (h, neg g)` is the reindexed transpose of |
| 138 | `neg (onHom (g, h))⁻¹`, so they have the same `weilMultiplier`: its finite factor and the principal |
| 139 | minors of its real factors do not see transposition or reindexing. -/ |
| 140 | private lemma weilMultiplier_onHom_swap_neg (g : G E t) (h : G E s) : |
| 141 | weilMultiplier (onHom (h, neg g)) = weilMultiplier (neg (onHom (g, h))⁻¹) := by |
| 142 | let swap : Matrix (n × a) (n × a) (𝔸f E) →+* Matrix (a × n) (a × n) (𝔸f E) := |
| 143 | (reindexRingEquiv (𝔸f E) (Equiv.prodComm n a)).toRingHom |
| 144 | have h_fin_eq : (((onHom (h, neg g)).2 : GL (a × n) (𝔸f E)) : Matrix (a × n) (a × n) (𝔸f E)) = |
| 145 | ((Units.map swap.toMonoidHom ((neg (onHom (g, h))⁻¹).2 : GL (n × a) (𝔸f E)) : |
| 146 | GL (a × n) (𝔸f E)) : Matrix (a × n) (a × n) (𝔸f E))ᵀ := ext fun _ _ ↦ mul_comm .. |
| 147 | have h_le : (Ô E).matrix ≤ (Ô E).matrix.comap swap := by tauto |
| 148 | rw [weilMultiplier, finMultiplier, IsSaturating.glMultiplier_transpose |
| 149 | ((saturatingElem _).property.map_of_le_comap swap h_le) h_fin_eq] |
| 150 | congrm (∏ w, starRingEnd ℂ ?_) * chiFin $(Units.ext (det_reindex_self ..)) |
| 151 | rw [← principalMinor_submatrix (.prodComm ..), ← principalMinor_transpose] |
| 152 | congr! |
| 153 | · exact ext fun _ _ ↦ mul_comm .. |
| 154 | · simp [mul_comm, pairSign] |
| 155 | |
| 156 | /-- Let V, W be spaces of ranks |a| and |n|, let V' have the signs opposite to those of V, and let c |
| 157 | be a unit of Ô with c̄c = −1. Transport by `New.flipCoords` is the change of coordinates x ↦ (1, |
| 158 | cα/ᾱ) ε_s xᴴ ε_t, where α is the idele of the Weil data and ε are the diagonal sign forms. It sends |
| 159 | ω(g, h) f of the pair (V, W) to the value at (h, g) of `New.pairChar` for υ^|n| and υ^|a|, times |
| 160 | ω(h, g⁻) of the pair (W, V') applied to the transported f. Here ω(g, h) is the Weil action of |
| 161 | `New.G.onHom` (g, h), υ is `New.WeilData.upsilonU1`, and g⁻ = `New.G.neg` g has the matrix of g, in |
| 162 | the group of the opposite signs. -/ |
| 163 | lemma flipCoords_map_omega (hc : star (c : 𝔸f E) * c = -1) (V : Space E a t) (W : Space E n s) |
| 164 | {V' : Space E a (-t)} (g : G E t) (h : G E s) (f : 𝒮 (V.hom W)) : |
| 165 | (flipCoords hc rfl).map ((V.hom W).ω (onHom (g, h)) f) = |
| 166 | pairChar (upsilonU1 ^ card n) (upsilonU1 ^ card a) (h, g) • |
| 167 | (W.hom V').ω (onHom (h, G.neg g)) ((flipCoords hc rfl).map f) := by |
| 168 | -- The flip turns `onHom (h, neg g)` into `onHom (g, h)`, so by `map_omega` it intertwines the two |
| 169 | -- Weil representations up to the ratio of the multipliers `weilMultiplier`. |
| 170 | have h_mulVec (x : a × n → 𝔸 E) : |
| 171 | (flipCoords (s := s) (t := t) hc rfl).φ ((onHom (h, neg g)).adeleMatrix *ᵥ x) = |
| 172 | (onHom (g, h)).adeleMatrix *ᵥ (flipCoords (s := s) (t := t) hc rfl).φ x := by |
| 173 | -- `↓`: `onHom_mulVec` must apply before the simp set unfolds `onHom` to a Kronecker product. |
| 174 | simp [↓onHom_mulVec, flipCoords_apply, adeleMatrix_inv, Matrix.mul_assoc, -matrixToVec_smul] |
| 175 | suffices h_ratio : weilMultiplier (onHom (g, h)) = |
| 176 | pairChar (upsilonU1 ^ card n) (upsilonU1 ^ card a) (h, g) * |
| 177 | weilMultiplier (onHom (h, neg g)) from |
| 178 | map_omega _ h_mulVec h_ratio f |
| 179 | -- `onHom (h, neg g)` is the reindexed transpose of `neg (onHom (g, h))⁻¹`, so they have the same |
| 180 | -- `weilMultiplier`: its finite factor and the principal minors of its real factors do not see |
| 181 | -- transposition or reindexing. |
| 182 | have Δ_transpose : weilMultiplier (onHom (h, neg g)) = weilMultiplier (neg (onHom (g, h))⁻¹) := |
| 183 | weilMultiplier_onHom_swap_neg g h |
| 184 | -- So `conj_weilMultiplier_of_eq_neg` at `(onHom (g, h))⁻¹` is the required ratio, as inversion |
| 185 | -- conjugates `weilMultiplier`. |
| 186 | simpa [Δ_transpose, det_onHom, weilMultiplier_inv] |
| 187 | using conj_weilMultiplier_of_eq_neg rfl (onHom (g, h))⁻¹.adeleMatrix_neg |
| 188 | |
| 189 | /-- The opposite space of the space V with matrix J and point x: it has matrix −J and the opposite |
| 190 | signs. Its point is x scaled by the idele (1, ūᾱ/α), where u = `New.Weil.normNegOne` is a fixed |
| 191 | unit of Ô with ūu = −1. -/ |
| 192 | @[simps -isSimp] |
| 193 | def Seesaw.flipSpace : Space E a (-t) where |
| 194 | J := -V.J |
| 195 | x := .scalar a (star (flipIdele normNegOne 1)) * V.x |
| 196 | gram_point := by |
| 197 | -- The scalar is `1` at the infinite places, where the signs change with `J`; its finite part |
| 198 | -- has norm `-1`, which makes up for the sign of `-J`. |
| 199 | simp [Matrix.map_neg, V.gram_point, stdForm, ← smul_eq_diagonal_mul, ← diagonal_smul, |
| 200 | val_flipIdele, Prod.ext_iff, _root_.funext_iff] |
| 201 | grind [star_normNegOne_mul_self, star_mul, star_one, α.mul_inv] |
| 202 | |
| 203 | /-- The adjoint intertwines the actions of the pairs. Let V, W be spaces of ranks |a| and |n|, and |
| 204 | let V' have the signs opposite to those of V. Transport by `New.flipCoords` takes ω_{a',b}(g, h) of |
| 205 | the pair (V, W) to ω_{b⁻¹υ^|n|, a'⁻¹υ^|a|}(h, g⁻) of the pair (W, V'); these are the characters that |
| 206 | belong to the inverse splitting characters. Here ω is `New.pairWeil`, υ is |
| 207 | `New.WeilData.upsilonU1` and g⁻ = `New.G.neg` g has the matrix of g. -/ |
| 208 | lemma flipCoords_map_pairWeil (hc : star (c : 𝔸f E) * c = -1) (V : Space E a t) (W : Space E n s) |
| 209 | (V' : Space E a (-t)) (a' b : AutChar E) (g : G E t) (h : G E s) (f : 𝒮 (V.hom W)) : |
| 210 | (flipCoords hc rfl).map (pairWeil V W a' b (g, h) f) = |
| 211 | pairWeil W V' (b⁻¹ * upsilonU1 ^ card n) (a'⁻¹ * upsilonU1 ^ card a) (h, G.neg g) |
| 212 | ((flipCoords hc rfl).map f) := by |
| 213 | -- The powers of `upsilonU1` in the new characters give the factor of `flipCoords_map_omega`. |
| 214 | have h_char : pairChar a' b (g, h) * pairChar (upsilonU1 ^ card n) (upsilonU1 ^ card a) (h, g) = |
| 215 | pairChar (b⁻¹ * upsilonU1 ^ card n) (a'⁻¹ * upsilonU1 ^ card a) (h, G.neg g) := by |
| 216 | simp [field] |
| 217 | rw [pairWeil_apply, pairWeil_apply, map_smul, flipCoords_map_omega, smul_smul, h_char] |
| 218 | |
| 219 | /-- The adjoint keeps the theta functional up to a number of modulus one. Let E be a CM field with |
| 220 | Weil data and finite idele α, and let c be a unit of Ô with c̄c = −1. Let V' have the signs t′ = −t |
| 221 | opposite to those of V, and let its point be `star (flipIdele c 1) • x_V`, that is, x_V multiplied |
| 222 | by 1 at the infinite places and by conj(cα/ᾱ) at the finite places. |
| 223 | |
| 224 | Then there is z ∈ ℂ with ‖z‖ = 1 such that θ(f^φ) = z θ(f) for all f in 𝒮(Hom(V, W)). Here f^φ on |
| 225 | Hom(W, V') is the transport of f by φ = `New.flipCoords`. -/ |
| 226 | lemma exists_theta_flipCoords_map_eq_mul |
| 227 | (hV' : (V'.x : Matrix a a (𝔸 E)) = star (flipIdele c 1 : 𝔸 E) • V.x) : |
| 228 | ∃ z : ℂ, ‖z‖ = 1 ∧ |
| 229 | ∀ f : 𝒮 (V.hom W), (W.hom V').θ ((flipCoords hc ht).map f) = z * (V.hom W).θ f := by |
| 230 | -- The flip matches rational points: the adjoint of a rational matrix `ξ` is `V.J⁻¹ * ξᴴ * W.J`. |
| 231 | have h_ratVectors (x : a × n → 𝔸 E) |
| 232 | (hx : (flipCoords (s := s) hc ht).φ x ∈ (V.hom W).ratVectors) : |
| 233 | (1 : G E (homSigns s t')) • x ∈ (W.hom V').ratVectors := by |
| 234 | obtain ⟨ξ, hξ⟩ := V.mem_ratVectors_hom.1 hx |
| 235 | refine W.mem_ratVectors_hom.2 ⟨V.J⁻¹ * ξᴴ * W.J, ?_⟩ |
| 236 | simp_all [← conjTranspose_map_toAdele, V.map_J_inv, W.map_J, flipCoords_apply, |
| 237 | conjTranspose_nonsing_inv, Matrix.mul_assoc, -matrixToVec_smul] |
| 238 | -- Hence the two theta functionals are proportional, by the uniqueness of theta functionals. |
| 239 | obtain ⟨z, hz, hθ⟩ := |
| 240 | (flipCoords hc ht).exists_theta_omega_map (V.hom W) (W.hom V') 1 h_ratVectors |
| 241 | have hz_ne : z ≠ 0 := fun hz_zero ↦ by simp [hz_zero] at hz |
| 242 | refine ⟨z⁻¹, by rw [norm_inv, hz, inv_one], fun f ↦ ?_⟩ |
| 243 | simpa [eq_inv_mul_iff_mul_eq₀ hz_ne] using (hθ f).symm |
| 244 | |
| 245 | /-- The adjoint moves a datum to the conjugate places. Let `A` be a set of finite places disjoint |
| 246 | from its conjugate and `Ψ` a Schwartz–Bruhat function above `A`. Transport by `New.flipCoords` |
| 247 | sends the vector named by `Ψ` at `A` on the vacuum of Hom(V, W) to the vector named by |
| 248 | `y ↦ Ψ (c yᴴ)` at the conjugate of `A` on the vacuum of Hom(W, V'). -/ |
| 249 | lemma flipCoords_map_schrodingerOp {A : Set (FinPlace E)} (hA : A.IsConjDisjoint) |
| 250 | (Ψ : (n × a → 𝔸f E) → ℂ) [hΨ : IsSchwartzBruhat A Ψ] : |
| 251 | (flipCoords hc ht).map ((V.hom W).schrodingerOp A Ψ (V.hom W).vacElem) = |
| 252 | (W.hom V').schrodingerOp (star ⁻¹' A) |
| 253 | (fun y : a × n → 𝔸f E ↦ Ψ (matrixToVec ((c : 𝔸f E) • (vecToMatrix y)ᴴ))) |
| 254 | (W.hom V').vacElem := by |
| 255 | have h_apply (y : a × n → 𝔸f E) : |
| 256 | (flipCoords (s := s) hc ht).finEquiv y = matrixToVec ((c : 𝔸f E) • (vecToMatrix y)ᴴ) := rfl |
| 257 | have hA_star : (star ⁻¹' A).IsConjDisjoint := by |
| 258 | open scoped Pointwise in |
| 259 | simpa [Set.IsConjDisjoint, Set.preimage_preimage] using Disjoint.symm hA |
| 260 | -- The finite part carries the part at the conjugate of a set of places to the part at that set. |
| 261 | have h_idem (B : Set (FinPlace E)) (y : a × n → 𝔸f E) : |
| 262 | (flipCoords (s := s) hc ht).finEquiv (idem (star ⁻¹' B) • y) = |
| 263 | idem B • (flipCoords (s := s) hc ht).finEquiv y := by |
| 264 | open scoped Pointwise in |
| 265 | simp [h_apply, matrixToVec, vecToMatrix, _root_.funext_iff, mul_left_comm, star_idem] |
| 266 | have h_conjClosure : (star ⁻¹' A).conjClosure = star ⁻¹' A.conjClosure := by |
| 267 | simp [Set.conjClosure] |
| 268 | refine map_schrodingerOp _ (h_idem A) (fun y ↦ ?_) hA hA_star |
| 269 | rw [h_conjClosure, h_idem] |
| 270 | |
| 271 | /-- The adjoint followed by a change of point. Let V, W be spaces of ranks |a| and |n|, let V' be a |
| 272 | space with the signs t′ = −t opposite to those of V, and let l in the group of V' satisfy |
| 273 | x_{V'} l = (1, conj(cα/ᾱ)) x_V on the points. For each character b there is a z of modulus one such |
| 274 | that θ^{W,V'}_{b⁻¹υ^|n|, a'⁻¹υ^|a|}(f^φ)(h, g') = z θ^{V,W}_{a',b}(f)(g, h) |
| 275 | for all characters a', data f, and g, h, g' where g' has the matrix l g. Here θ is `New.pairTheta`, |
| 276 | υ is `New.WeilData.upsilonU1` and f^φ is the transport of f by φ = `New.flipCoords`. -/ |
| 277 | lemma exists_pairTheta_flip (l : G E t') |
| 278 | (hl : (V'.x : Matrix a a (𝔸 E)) * l.adeleMatrix = star (flipIdele c 1 : 𝔸 E) • V.x) |
| 279 | (b : AutChar E) : |
| 280 | ∃ z : ℂ, ‖z‖ = 1 ∧ |
| 281 | ∀ (a' : AutChar E) (f : 𝒮 (V.hom W)) (g : G E t) (h : G E s) (g' : G E t'), |
| 282 | g'.adeleMatrix = l.adeleMatrix * g.adeleMatrix → |
| 283 | pairTheta W V' (b⁻¹ * upsilonU1 ^ card n) (a'⁻¹ * upsilonU1 ^ card a) |
| 284 | ((flipCoords hc ht).map f) (h, g') = |
| 285 | z * pairTheta V W a' b f (g, h) := by |
| 286 | subst ht |
| 287 | -- The space `V'.move l` has the point that the adjoint asks for. |
| 288 | obtain ⟨z, hz, hθ⟩ := exists_theta_flipCoords_map_eq_mul hc rfl V W (V'.move l) hl |
| 289 | let b' : AutChar E := b⁻¹ * upsilonU1 ^ card n |
| 290 | refine ⟨b'.val l.det * z, by simp [Circle.norm_coe, hz], fun a' f g h g' hg' ↦ ?_⟩ |
| 291 | let a'' : AutChar E := a'⁻¹ * upsilonU1 ^ card a |
| 292 | let f' : 𝒮 (W.hom V') := (flipCoords hc rfl).map f |
| 293 | obtain rfl : g' = l * neg g := ext_adeleMatrix (by simpa using hg') |
| 294 | have h_adjoint : |
| 295 | pairTheta W (V'.move l) b' a'' f' (h, neg g) = z * pairTheta V W a' b f (g, h) := by |
| 296 | unfold pairTheta |
| 297 | rw [← hθ, flipCoords_map_pairWeil] |
| 298 | rfl |
| 299 | -- Move the point back by `l`. |
| 300 | have hW : W.move 1 = W := by simp [Space.move] |
| 301 | have h_move : pairTheta (W.move 1) (V'.move l) b' a'' f' (h, neg g) = |
| 302 | (b'.val l.det : ℂ)⁻¹ * pairTheta W V' b' a'' f' (h, l * neg g) := by |
| 303 | simpa using Space.pairTheta_move W V' b' a'' 1 h l (neg g) f' |
| 304 | rw [hW] at h_move |
| 305 | rw [mul_assoc, ← h_adjoint, h_move, mul_inv_cancel_left₀ (Circle.coe_ne_zero _)] |
| 306 | |
| 307 | /-- The ℂ-algebra map on polynomials sending the variable X_(τ,i,j) to −s_i t_j X_(τ,j,i): |
| 308 | transposition with signs. -/ |
| 309 | def flipPoly (t : a → ℤˣ) (s : n → ℤˣ) : |
| 310 | MvPolynomial (InfinitePlace E × n × a) ℂ →ₐ[ℂ] MvPolynomial (InfinitePlace E × a × n) ℂ := |
| 311 | aeval fun p : InfinitePlace E × n × a ↦ (homSigns (-t) s p.2 : ℂ) • X (R := ℂ) (p.1, p.2.swap) |
| 312 | |
| 313 | /-- The archimedean part `New.CoordChange.realMap` of `New.flipCoords` sends the Fock vector of a |
| 314 | polynomial `P` to the Fock vector of `New.flipPoly t' s P`. -/ |
| 315 | lemma realMap_flipCoords_polyVector (hc : star (c : 𝔸f E) * c = -1) (ht : t' = -t) |
| 316 | (P : MvPolynomial (InfinitePlace E × n × a) ℂ) : |
| 317 | (flipCoords (s := s) hc ht).realMap (polyVector (realSigns E (homSigns t s)) P) = |
| 318 | polyVector (realSigns E (homSigns s t')) (flipPoly t' s P) := by |
| 319 | -- The real part of `flipCoords` fixes the Gaussian, so it suffices to compare the points at which |
| 320 | -- `P` is evaluated: the coordinates `holomorphicCoord` are swapped and multiplied by signs. |
| 321 | ext x |
| 322 | have h_coord : |
| 323 | holomorphicCoord (realSigns E (homSigns t s)) ((flipCoords (s := s) hc ht).realEquiv x) = |
| 324 | fun i ↦ -(s i.2.1 * t' i.2.2 * |
| 325 | holomorphicCoord (realSigns E (homSigns s t')) x (i.1, i.2.swap)) := by |
| 326 | aesop (add simp [holomorphicCoord_eq, flipCoords, mul_comm, starCoordEquiv, pairSign, |
| 327 | units_ne_iff_eq_neg]) |
| 328 | simp only [realMap, Heisenberg.IsVacuum.transport_apply, polyVector_apply, ← aeval_eq_eval, |
| 329 | flipPoly, comp_aeval_apply] |
| 330 | simp [↓vac_realEquiv, h_coord, pairSign] |
| 331 | |
| 332 | end Flip |
| 333 | |
| 334 | /-! |
| 335 | ## Flipped and conjugate theta kernels modulo an ideal |
| 336 | |
| 337 | A theta kernel `New.modKernel` S T a b 𝔪 D P g h is attached to spaces S, T, characters a, b of |
| 338 | [U(1)], a function D on matrices modulo 𝔪 and a polynomial P. A kernel of one pair is written as a |
| 339 | constant times a kernel of the reversed pair. |
| 340 | |
| 341 | The idea: the indicator of a class modulo 𝔪 comes from a translate of the vacuum, and after the flip |
| 342 | this translate is the datum of an additive character modulo 𝔪. Throughout υ is |
| 343 | `New.WeilData.upsilonU1`, and a constant is controlled only through the square of its modulus. |
| 344 | -/ |
| 345 | |
| 346 | section KernelFlip |
| 347 | |
| 348 | open NumberField Matrix ComplexConjugate WeilData Space Fintype G Gf CoordChange Weil Exchange |
| 349 | |
| 350 | variable {E n m : Type} [Field E] [CMType E] [Fintype n] [DecidableEq n] |
| 351 | [Fintype m] [DecidableEq m] {s : n → ℤˣ} {t : m → ℤˣ} [WeilData E] |
| 352 | (𝔪 : Modulus E) (S : Space E n s) (T : Space E m t) |
| 353 | |
| 354 | /-- The scalar matrix ū / u in the finite adelic unitary group `Gf E n` of rank n, where u is α |
| 355 | times the chosen idele generating 𝔪. The index type n defaults to `Unit`: a bare `𝔪.flipScalar` |
| 356 | is the rank-one case `𝔪.flipScalar Unit`. -/ |
| 357 | noncomputable def Modulus.flipScalar (n := Unit) [Fintype n] [DecidableEq n] : Gf E n := |
| 358 | scalarFin n (divStar (star (𝔪.generator * α))) |
| 359 | |
| 360 | /-- The Heisenberg translate of the vacuum of a space `X` by the finite vector with entries |
| 361 | −α w_i / 𝔪.generator at the places dividing 𝔪 and 0 at the other places (`New.finVec` multiplies |
| 362 | by α), for an integral vector `w`. -/ |
| 363 | private def Modulus.vacTranslate {ι : Type} [Fintype ι] [DecidableEq ι] {r : ι → ℤˣ} |
| 364 | (X : Space E ι r) (w : ι → Ô E) : 𝒮 X := |
| 365 | X.ϱ (finVec (idem 𝔪.places • -(↑𝔪.generator⁻¹ : 𝔸f E) • Subtype.val ∘ w)) X.vacElem |
| 366 | |
| 367 | /-- The translate of the vacuum by a vector above 𝔪 is the operator named by the indicator of the |
| 368 | translated integral box, applied to the vacuum. -/ |
| 369 | private lemma Modulus.vacTranslate_eq_schrodingerOp_boxIndicator {ι : Type} [Fintype ι] |
| 370 | [DecidableEq ι] {r : ι → ℤˣ} (X : Space E ι r) (w : ι → Ô E) : |
| 371 | 𝔪.vacTranslate X w = |
| 372 | X.schrodingerOp 𝔪.places |
| 373 | (fun x : ι → 𝔸f E ↦ |
| 374 | boxIndicator ι 𝔪.places (x + -(↑𝔪.generator⁻¹ : 𝔸f E) • Subtype.val ∘ w)) |
| 375 | X.vacElem := by |
| 376 | have h_idem : idem 𝔪.places.conjClosure * idem 𝔪.places = idem 𝔪.places := by |
| 377 | grind [idem_mul_self, idem_mul_star, idem_conjClosure_eq_add_star, 𝔪.isConjDisjoint_places] |
| 378 | rw [vacTranslate, ← isSchwartzBruhat_boxIndicator.schrodingerAct_idem 𝔪.isConjDisjoint_places, |
| 379 | schrodingerOp_schrodingerAct_boxIndicator 𝔪.isConjDisjoint_places, projOn_vacElem, |
| 380 | smul_smul _ (idem _), h_idem] |
| 381 | |
| 382 | variable {E : Type} [Field E] [NumberField E] [IsCMField E] (𝔪 : Modulus E) in |
| 383 | /-- The module of the idele `𝔪.generator` is the inverse of the number N𝔪 of elements of O_E/𝔪. -/ |
| 384 | lemma Modulus.finIdeleAbs_generator : |
| 385 | finIdeleAbs 𝔪.generator = (card 𝔪.ResidueRing : ℝ)⁻¹ := by |
| 386 | -- The idele generates the kernel of the reduction of `Ô E` onto `𝔪.ResidueRing`. |
| 387 | have h_ker : Ideal.span {(⟨𝔪.generator.val, 𝔪.generator_mem⟩ : Ô E)} = |
| 388 | RingHom.ker 𝔪.reduction := by |
| 389 | ext x |
| 390 | rw [RingHom.mem_ker, reduction_eq_zero_iff_generator_inv_mul_mem, Ideal.mem_span_singleton] |
| 391 | exact ⟨fun ⟨y, hy⟩ ↦ by simp [hy], fun hx ↦ ⟨⟨_, hx⟩, Subtype.ext (by simp)⟩⟩ |
| 392 | have h_index : genIndex 𝔪.generator.val = card 𝔪.ResidueRing := by |
| 393 | rw [genIndex_eq_card isOpen_Ô isCompact_Ô 𝔪.generator_mem (Units.isUnit _), h_ker, |
| 394 | Nat.card_congr (RingHom.quotientKerEquivOfSurjective 𝔪.reduction_surjective).toEquiv, |
| 395 | Nat.card_eq_fintype_card] |
| 396 | rw [← h_index, genIndex_eq_inv_finIdeleAbs, inv_inv] |
| 397 | |
| 398 | /-- Let u = ḡ / g for the generator g of 𝔪, as a scalar in the finite unitary group of rank m. |
| 399 | For a space V of rank m with signs −t, a space S of rank n and characters a, b there is one |
| 400 | constant C, with |C|² = N𝔪^(mn), such that ω_{a,b}(u, 1) sends the vacuum translate |
| 401 | (`New.Modulus.vacTranslate`) by every integral w to C times the operator named by the lift of the |
| 402 | point mass at the class of w modulo 𝔪, applied to the vacuum. Here ω_{a,b} is `New.pairWeil` of the |
| 403 | pair (V, S), and N𝔪 is the number of elements of O_E/𝔪. -/ |
| 404 | private lemma Modulus.exists_pairWeil_vacTranslate (V : Space E m (-t)) (a b : AutChar E) : |
| 405 | ∃ C : ℂ, ‖C‖ ^ 2 = card 𝔪.ResidueRing ^ (card m * card n) ∧ ∀ w : n × m → Ô E, |
| 406 | pairWeil V S a b ((1, scalarFin m (divStar (star 𝔪.generator))), 1, 1) |
| 407 | (𝔪.vacTranslate (V.hom S) w) = |
| 408 | C • (V.hom S).schrodingerOp 𝔪.places (𝔪.liftFn (Pi.single (𝔪.reduction ∘ w) 1)) |
| 409 | (V.hom S).vacElem := by |
| 410 | classical |
| 411 | have h_disj : 𝔪.places.IsConjDisjoint := 𝔪.isConjDisjoint_places |
| 412 | let u : Gf E m := scalarFin m (divStar (star 𝔪.generator)) |
| 413 | have hu : u ∈ supportedOn m 𝔪.places := by |
| 414 | simp_all [u, atPlace, scalarFin, generator_spec, map_mul, Units.ext_iff, map_zero, coe_divStar] |
| 415 | -- `C` is the factor in `pairWeil_schrodingerOp_of_mem_supportedOn`. Above `𝔪` the determinant of |
| 416 | -- `u` is `g⁻¹ ^ m`, of module `N𝔪 ^ m`. |
| 417 | let C : ℂ := (a.spaceChar (card m)).val (detOn 𝔪.places (1 : Gf E n).val) / |
| 418 | (b.spaceChar (card n)).val (detOn 𝔪.places u.val) * |
| 419 | √(ideleAbs (detOn 𝔪.places u.val)) ^ card n / |
| 420 | √(ideleAbs (detOn 𝔪.places (1 : Gf E n).val)) ^ card m |
| 421 | have h_det : detOn 𝔪.places u.val * finIdeleIncl (𝔪.generator ^ card m) = 1 := by |
| 422 | ext w |
| 423 | · simp |
| 424 | · have h_ne : 𝔪.generator.val w ≠ 0 := (𝔪.generator.isUnit.map (evalAt w)).ne_zero |
| 425 | rw [Units.val_mul, Prod.snd_mul, ← evalAt_apply, map_mul, evalAt_apply, detOn_apply] |
| 426 | split_ifs with hw |
| 427 | · simp [u, atPlace, scalarFin, coe_divStar, map_zero, map_mul, h_ne, |
| 428 | 𝔪.generator_apply_of_notMem (𝔪.not_le_star w hw)] |
| 429 | · simp [𝔪.generator_apply_of_notMem hw] |
| 430 | have h_abs : ideleAbs (detOn 𝔪.places u.val) = card 𝔪.ResidueRing ^ card m := by |
| 431 | rw [eq_inv_of_mul_eq_one_left h_det, map_inv] |
| 432 | change (finIdeleAbs (𝔪.generator ^ card m))⁻¹ = _ |
| 433 | rw [map_pow, finIdeleAbs_generator, inv_pow, inv_inv] |
| 434 | have h_norm : ‖C‖ ^ 2 = card 𝔪.ResidueRing ^ (card m * card n) := by |
| 435 | simp [C, h_abs, Circle.norm_coe, ← pow_mul, mul_comm _ 2, pow_mul _ 2] |
| 436 | simp only [vacTranslate_eq_schrodingerOp_boxIndicator] |
| 437 | -- `pairWeil_schrodingerOp_of_mem_supportedOn`: `u` acts on a named function by `x ↦ x u`, up to a |
| 438 | -- constant; the congruence term leaves the equation of the two functions. |
| 439 | refine ⟨C, h_norm, fun w ↦ (pairWeil_schrodingerOp_of_mem_supportedOn |
| 440 | h_disj hu (one_mem _) _).trans congr(_ • schrodingerOp _ _ $(?_) _)⟩ |
| 441 | -- Above `𝔪` the scalar `u` is `𝔪.generator⁻¹`, so the box moved by `u` is the coset of `w`: |
| 442 | -- after unfolding, both sides are indicators, of x u − w / 𝔪.generator and of |
| 443 | -- (x − w) / 𝔪.generator being integral above 𝔪, and `generator_spec` matches the two conditions. |
| 444 | rw [𝔪.liftFn_single] |
| 445 | ext |
| 446 | simp [u, boxIndicator, mem_integralBox, mem_Ô, vecToMatrix, scalarFin, idem_apply, coe_divStar, |
| 447 | matrixToVec] |
| 448 | congr! 6 |
| 449 | split_ifs with hw |
| 450 | · rw [𝔪.generator_apply_of_notMem (𝔪.not_le_star _ hw), map_one] |
| 451 | ring |
| 452 | · rfl |
| 453 | |
| 454 | /-- Let c be a unit of Ô such that −c satisfies c̄c = −1 (the form in which the flip takes it), V a |
| 455 | space of rank m with signs −t, and v an integral n × m matrix. The flip φ = `New.flipCoords` for |
| 456 | the unit −c carries the vacuum translate by v (`New.Modulus.vacTranslate`) of Hom(V, S) to the |
| 457 | operator of Hom(S, T) named by the lift of the character ρ ↦ ψ(tr(ρ v)) modulo 𝔪, applied to the |
| 458 | vacuum; here ψ is `New.Modulus.primAddChar` shifted by −c̄. -/ |
| 459 | private lemma Modulus.flipCoords_map_vacTranslate {c : (Ô E)ˣ} |
| 460 | (hc_neg : star ((-c : (Ô E)ˣ) : 𝔸f E) * ((-c : (Ô E)ˣ) : 𝔸f E) = -1) (V : Space E m (-t)) |
| 461 | (v : Matrix n m (Ô E)) : |
| 462 | (flipCoords (s := s) hc_neg (neg_neg t).symm).map (𝔪.vacTranslate (V.hom S) (matrixToVec v)) = |
| 463 | (S.hom T).schrodingerOp 𝔪.places |
| 464 | (𝔪.liftFn ((fun ρ : Matrix m n 𝔪.ResidueRing ↦ |
| 465 | 𝔪.primAddChar.mulShift (𝔪.reduction (-star c)) |
| 466 | (ρ * of fun (i : n) (j : m) ↦ 𝔪.reduction (v i j)).trace) ∘ vecToMatrix)) |
| 467 | (S.hom T).vacElem := by |
| 468 | -- The flipped translate is again a translate of the vacuum, by a vector at the conjugate places, |
| 469 | -- and the character names it (`schrodingerOp_char_eq_translate_projOn`). |
| 470 | have hc : star (c : 𝔸f E) * c = -1 := by simpa using hc_neg |
| 471 | let y : m × n → Ô E := -star (c : Ô E) • matrixToVec v ∘ .swap |
| 472 | have h_vec : idem 𝔪.places • -(↑𝔪.generator⁻¹ : 𝔸f E) • Subtype.val ∘ matrixToVec v = |
| 473 | (flipCoords (s := s) hc_neg (neg_neg t).symm).finEquiv |
| 474 | (star (idem 𝔪.places • (↑𝔪.generator⁻¹ : 𝔸f E) • Subtype.val ∘ y)) := by |
| 475 | simp [y, flipCoords, starCoordEquiv, funext_iff, matrixToVec] |
| 476 | intro i j |
| 477 | linear_combination (-(idem 𝔪.places * ((↑𝔪.generator⁻¹ : 𝔸f E) * (v i j : 𝔸f E)))) * hc |
| 478 | rw [vacTranslate, h_vec, ← apply_finVec, map_rho, map_vacElem, ← projOn_vacElem (S := 𝔪.places), |
| 479 | ← 𝔪.schrodingerOp_char_eq_translate_projOn, projOn_vacElem] |
| 480 | congr with x |
| 481 | simp [y, vecToMatrix, trace, Matrix.mul_apply, dotProduct, sum_prod_type, mul_left_comm (x _), |
| 482 | ← Finset.mul_sum, matrixToVec] |
| 483 | |
| 484 | /-- Flip of a pair. Let c be a unit of Ô with c̄c = −1, T a space of rank m, V a space with the |
| 485 | opposite signs whose point is (1, c) times that of T (hypothesis `hV`), and S a space of rank n. |
| 486 | Thus T has the negated form of V and the point of V times (1, c⁻¹), where c⁻¹ = −c̄. For characters |
| 487 | a, b of [U(1)] there is a complex C such that (a) |C|² · N𝔪^(mn) = 1, N𝔪^(mn) being the number of |
| 488 | m × n matrices over O_E/𝔪, and (b) θ^{V,S}_{a,b}[D,P](g⁻,h) = C θ^{S,T}_{b⁻¹υⁿ,a⁻¹υᵐ}[D̂,P′](h,gu) |
| 489 | for all D, P, g, h. Here θ[D,P] is the kernel `New.modKernel` of the function D modulo 𝔪 and the |
| 490 | polynomial P, and g⁻ = `New.G.neg` g is g in the group of V. The character υ is the splitting |
| 491 | character restricted to the norm-one ideles. D̂(ρ) = ∑_v D(v)ψ(−c̄ tr ρv), where |
| 492 | ψ = `New.Modulus.primAddChar` is the primitive character of O_E/𝔪. P′ = `New.flipPoly` of P sends |
| 493 | X_(τ,i,j) to −s_i t_j X_(τ,j,i). u = `New.Modulus.flipScalar` of rank m is the scalar ū₀/u₀, with u₀ |
| 494 | equal to α times the idele generating 𝔪, placed at the finite places. -/ |
| 495 | lemma Modulus.exists_modKernel_flip (c : (Ô E)ˣ) (hc : star (c : 𝔸f E) * c = -1) |
| 496 | (V : Space E m (-t)) (hV : ((1, c) : 𝔸 E) • (T.x : Matrix m m (𝔸 E)) = V.x) (a b : AutChar E) : |
| 497 | ∃ C : ℂ, |
| 498 | ‖C‖ ^ 2 * card 𝔪.ResidueRing ^ (card m * card n) = 1 ∧ |
| 499 | ∀ (D : Matrix n m 𝔪.ResidueRing → ℂ) (P : MvPolynomial (InfinitePlace E × n × m) ℂ) |
| 500 | (g : G E t) (h : G E s), |
| 501 | modKernel V S a b 𝔪 D P (G.neg g) h = |
| 502 | C * modKernel S T (b⁻¹ * upsilonU1 ^ card n) (a⁻¹ * upsilonU1 ^ card m) 𝔪 |
| 503 | (matrixFourier (𝔪.primAddChar.mulShift (𝔪.reduction (-star c))) D) (flipPoly t s P) h |
| 504 | (g * (1, 𝔪.flipScalar m)) := by |
| 505 | classical |
| 506 | -- By linearity take for `D` the indicator of one class `v`. The scalar `u` carries a translate |
| 507 | -- of the vacuum to `C` times the datum of `D`; `exists_pairTheta_flip` flips the kernel of that |
| 508 | -- translate, and the flipped translate is the datum of the character `ρ ↦ ψ (tr (ρ v))`. |
| 509 | let u : Gf E m := scalarFin m (divStar (star 𝔪.generator)) |
| 510 | obtain ⟨C, hC_norm, hC⟩ := 𝔪.exists_pairWeil_vacTranslate S V a b |
| 511 | -- The scalar `l = ᾱ / α` links the points of `T` and `V` as the flip requires. |
| 512 | let l : G E t := (1, scalarFin m (divStar (star α))) |
| 513 | have h_point : (T.x : Matrix m m (𝔸 E)) * l.adeleMatrix = star (flipIdele (-c) 1 : 𝔸 E) • |
| 514 | V.x := by |
| 515 | simp [l, ← hV, val_flipIdele, smul_smul, Prod.star_def, adeleMatrix_scalarFin, coe_divStar] |
| 516 | congr 2 |
| 517 | linear_combination (star ((α : (𝔸f E)ˣ) : 𝔸f E) * ↑(α : (𝔸f E)ˣ)⁻¹) * hc |
| 518 | have hc_neg : star ((-c : (Ô E)ˣ) : 𝔸f E) * ((-c : (Ô E)ˣ) : 𝔸f E) = -1 := by simpa using hc |
| 519 | -- `exists_pairTheta_flip`: a number `z` of modulus one relates the theta function of `(V, S)` at |
| 520 | -- `(g, h)` to that of `(S, T)` at `(h, l g)`, for the datum moved by `flipCoords`. |
| 521 | obtain ⟨z, hz, h_flip⟩ := exists_pairTheta_flip hc_neg (neg_neg t).symm V S T l h_point b |
| 522 | have h_norm : ‖(z * C)⁻¹‖ ^ 2 * card 𝔪.ResidueRing ^ (card m * card n) = 1 := by |
| 523 | rw [norm_inv, norm_mul, hz, one_mul, inv_pow, hC_norm, inv_mul_cancel₀ (by positivity)] |
| 524 | refine ⟨(z * C)⁻¹, h_norm, fun D P g h ↦ ?_⟩ |
| 525 | let ψ : AddChar 𝔪.ResidueRing ℂ := 𝔪.primAddChar.mulShift (𝔪.reduction (-star c)) |
| 526 | have h_single (v : Matrix n m 𝔪.ResidueRing) : |
| 527 | z * C * modKernel V S a b 𝔪 (Pi.single v 1) P (.neg g) h = |
| 528 | modKernel S T (b⁻¹ * upsilonU1 ^ card n) (a⁻¹ * upsilonU1 ^ card m) 𝔪 |
| 529 | (fun ρ ↦ ψ (ρ * v).trace) (flipPoly t s P) h (g * (1, 𝔪.flipScalar m)) := by |
| 530 | obtain ⟨v, rfl⟩ := 𝔪.reduction_surjective.comp_left.comp_left v |
| 531 | have h_mat : (g * (1, 𝔪.flipScalar m)).adeleMatrix = l.adeleMatrix * |
| 532 | (G.neg g * (1, u)).adeleMatrix := by |
| 533 | -- `-map_mul` keeps the image of a product whole, in the form that `ring` closes. |
| 534 | simp [l, u, flipScalar, -map_mul, smul_smul, adeleMatrix_scalarFin, coe_divStar] |
| 535 | congr 2 |
| 536 | ring |
| 537 | -- Move `(1, u)` from the datum into the group argument (`hC`, `pairTheta_mul`), then flip. |
| 538 | calc |
| 539 | _ = z * pairTheta V S a b |
| 540 | (integrated _ (Fock.polyVector _ P) (𝔪.vacTranslate (V.hom S) (matrixToVec v))) |
| 541 | (G.neg g * (1, u), h) := by |
| 542 | -- Identify the matrix indicator in vector coordinates before applying linearity. |
| 543 | let v₀ : Matrix n m 𝔪.ResidueRing := Matrix.of fun i j ↦ 𝔪.reduction (v i j) |
| 544 | have h_indicator : Pi.single v₀ (1 : ℂ) ∘ vecToMatrix = |
| 545 | Pi.single (𝔪.reduction ∘ matrixToVec v) 1 := |
| 546 | Pi.single_comp_equiv (.curry ..) v₀ 1 |
| 547 | let theta (f : (n × m → 𝔪.ResidueRing) → ℂ) := |
| 548 | pairTheta V S a b |
| 549 | (integrated _ (Fock.polyVector _ P) |
| 550 | ((V.hom S).schrodingerOp 𝔪.places (𝔪.liftFn f) (V.hom S).vacElem)) |
| 551 | (G.neg g, h) |
| 552 | change z * C * theta (Pi.single v₀ 1 ∘ vecToMatrix) = _ |
| 553 | rw [h_indicator] |
| 554 | dsimp only [theta] |
| 555 | rw [mul_assoc, ← smul_eq_mul C] |
| 556 | nth_rw 1 [pairTheta] |
| 557 | rw [← map_smul, ← map_smul, ← map_smul, ← hC, ← pairWeil_integrated_fin, ← pairTheta, |
| 558 | ← pairTheta_mul, Prod.mk_mul_mk, show h * (1, 1) = h from mul_one h] |
| 559 | _ = _ := by |
| 560 | refine (h_flip a _ (G.neg g * (1, u)) h (g * (1, 𝔪.flipScalar m)) h_mat).symm.trans ?_ |
| 561 | rw [map_integrated, realMap_flipCoords_polyVector, |
| 562 | 𝔪.flipCoords_map_vacTranslate S T hc_neg V v] |
| 563 | rfl |
| 564 | -- Expand `D` in indicators of classes; both kernels are linear in their datum. |
| 565 | have h_ft : matrixFourier ψ D = ∑ v, D v • fun ρ ↦ ψ (ρ * v).trace := (Finset.sum_fn ..).symm |
| 566 | have hzC_ne : z * C ≠ 0 := fun h0 ↦ by simp [h0] at h_norm |
| 567 | nth_rw 1 [eq_inv_mul_iff_mul_eq₀ hzC_ne, pi_eq_sum_univ' D, h_ft, ← modKernelBilin_apply, |
| 568 | ← modKernelBilin_apply] |
| 569 | simp [Finset.mul_sum, mul_left_comm _ (D _), h_single] |
| 570 | |
| 571 | /-- Reversal of a pair. For spaces S, T of ranks n, m and characters a, b there is a complex c |
| 572 | such that (a) |c|² · N𝔪^(nm) = 1, with N𝔪 the number of elements of O_E/𝔪, and (b) for all |
| 573 | D, P, g, h the complex conjugate of θ^{S,T}_{a,b}[D,P](g,h) is c θ^{T,S}_{b,a}[D′,P′](h,gu). |
| 574 | Here D′ is the Fourier transform of D̄ for `New.Modulus.primAddChar`, P′ is the signed transpose |
| 575 | `New.flipPoly` of P̄ (the polynomial with conjugate coefficients) and u = `New.Modulus.flipScalar`, |
| 576 | placed at the finite places. -/ |
| 577 | lemma Exchange.exists_conj_modKernel_eq_swap (a b : AutChar E) : |
| 578 | ∃ c : ℂ, |
| 579 | ‖c‖ ^ 2 * card 𝔪.ResidueRing ^ (card n * card m) = 1 ∧ |
| 580 | ∀ (D : Matrix m n 𝔪.ResidueRing → ℂ) (P : MvPolynomial (InfinitePlace E × m × n) ℂ) |
| 581 | (g : G E s) (h : G E t), |
| 582 | conj (modKernel S T a b 𝔪 D P g h) = |
| 583 | c * modKernel T S b a 𝔪 |
| 584 | (matrixFourier 𝔪.primAddChar fun v : Matrix m n 𝔪.ResidueRing ↦ conj (D v)) |
| 585 | (flipPoly s t (P.map conj)) h (g * 𝔪.flipScalar n) := by |
| 586 | -- Conjugation passes to `S.neg` (`exists_conj_modKernel_eq_mul_modKernel_neg`, at the cost of a |
| 587 | -- phase `c` and of the factor `𝔪.normNegOne⁻¹` in `D`), and the flip comes back to `S` on the |
| 588 | -- other side. |
| 589 | obtain ⟨c, hc_norm, h_neg⟩ := exists_conj_modKernel_eq_mul_modKernel_neg S T |
| 590 | -- `h_flip`: the flip of a pair for (S.neg, T) and the characters a⁻¹υⁿ, b⁻¹υᵐ, with the unit |
| 591 | -- `normNegOne`. |
| 592 | obtain ⟨C, hC_norm, h_flip⟩ := |
| 593 | 𝔪.exists_modKernel_flip T S normNegOne star_normNegOne_mul_self S.neg rfl |
| 594 | (a⁻¹ * upsilonU1 ^ card n) (b⁻¹ * upsilonU1 ^ card m) |
| 595 | refine ⟨c * C, by simp [hc_norm, hC_norm], fun D P g h ↦ ?_⟩ |
| 596 | -- In the Fourier transform substitute `v ↦ 𝔪.normNegOne⁻¹ • v`; the inverse of `normNegOne` is |
| 597 | -- `-star normNegOne`. |
| 598 | have h_ft : matrixFourier (𝔪.primAddChar.mulShift (𝔪.reduction (-(star normNegOne : (Ô E)ˣ)))) |
| 599 | (fun v ↦ conj (D (𝔪.normNegOne⁻¹ • v))) = matrixFourier 𝔪.primAddChar fun v ↦ conj (D v) := by |
| 600 | ext ρ |
| 601 | apply sum_equiv (MulAction.toPerm 𝔪.normNegOne⁻¹) |
| 602 | simp only [Units.coe_star, AddChar.mulShift_apply, MulAction.toPerm_apply, Matrix.mul_smul, |
| 603 | trace_smul, mul_eq_mul_left_iff, map_eq_zero] |
| 604 | -- Termwise the characters agree: `𝔪.normNegOne⁻¹` is the class of `-star normNegOne`. |
| 605 | exact fun v ↦ Or.inl rfl |
| 606 | rw [h_neg a b 𝔪, h_flip, h_ft, mul_assoc] |
| 607 | simp [inv_mul_cancel_comm] |
| 608 | |
| 609 | /-- Flip for lines. Let S have rank n, let ε = ±1 in ℤˣ, and let L, L′ be the standard lines |
| 610 | `New.signedSpace` of signs −ε and ε. For every modulus 𝔪, characters b, a′ and k in the finite |
| 611 | unitary group of rank one there are an additive character ψ of O_E/𝔪 and a nonzero c such that |
| 612 | (a) |c|² · N𝔪ⁿ = 1, N𝔪ⁿ being the number of columns of length n over O_E/𝔪, and |
| 613 | (b) θ^{L,S}_{1,b}[D,P](k,h) = c θ^{S,L′}_{a′,υ}[D̂,P′](h,kf) for all P, D, h. |
| 614 | Here θ[D,P] is `New.modKernel`, υ is `New.WeilData.upsilonU1`, D̂ is the Fourier transform |
| 615 | `New.Exchange.matrixFourier` of D for ψ, P′ is the signed transpose `New.flipPoly` of P, |
| 616 | f = `New.Modulus.flipScalar`, and k, kf are placed at the finite places. Any a′ is allowed since c |
| 617 | may depend on k. -/ |
| 618 | lemma exists_modKernel_flip_line (ε : ℤˣ) (𝔪 : Modulus E) (b a' : AutChar E) (k : Gf E Unit) : |
| 619 | ∃ ψ : AddChar 𝔪.ResidueRing ℂ, ∃ c : ℂˣ, |
| 620 | ‖(c : ℂ)‖ ^ 2 * card (n → 𝔪.ResidueRing) = 1 ∧ |
| 621 | ∀ (P : MvPolynomial (InfinitePlace E × n × Unit) ℂ) (D : Matrix n Unit 𝔪.ResidueRing → ℂ) |
| 622 | (h : G E s), |
| 623 | modKernel (signedSpace E fun _ : Unit ↦ -ε) S 1 b 𝔪 D P (1, k) h = |
| 624 | c * modKernel S (signedSpace E fun _ : Unit ↦ ε) a' upsilonU1 𝔪 (matrixFourier ψ D) |
| 625 | (flipPoly (fun _ : Unit ↦ ε) s P) h (1, k * 𝔪.flipScalar Unit) := by |
| 626 | -- The line of sign `-ε` is the flip of the line of sign `ε` for the unit `c₀ = normNegOne ^ ε`; |
| 627 | -- passing to an arbitrary character `a'` costs a phase by `modKernel_twist`. |
| 628 | let c₀ : (Ô E)ˣ := normNegOne ^ (ε : ℤ) |
| 629 | have h_star_c₀ : star (c₀ : 𝔸f E) * c₀ = -1 := by |
| 630 | fin_cases ε <;> simp [c₀, normNegOne_inv, mul_comm ((normNegOne : (Ô E)ˣ) : 𝔸f E)] |
| 631 | have h_point : |
| 632 | ((1, c₀) : 𝔸 E) • ((signedSpace E fun _ : Unit ↦ ε).x : Matrix Unit Unit (𝔸 E)) = |
| 633 | (signedSpace E fun _ : Unit ↦ -ε).x := by |
| 634 | fin_cases ε <;> simp [c₀, signedSpace, ← ext_iff, normNegOneIdele, normNegOne_inv] |
| 635 | -- The flip of a pair, for T the line of sign `ε` and V the line of sign `-ε`. |
| 636 | obtain ⟨C, hC, h_flip⟩ := 𝔪.exists_modKernel_flip S _ c₀ h_star_c₀ _ h_point 1 b |
| 637 | have hC_ne : C ≠ 0 := fun hC_zero ↦ by simp [hC_zero] at hC |
| 638 | let μ : AutChar E := b⁻¹ * upsilonU1 ^ card n / a' |
| 639 | let g : G E fun _ : Unit ↦ ε := (1, k * 𝔪.flipScalar Unit) |
| 640 | let c : ℂˣ := Units.mk0 C hC_ne * Circle.toUnits (μ.val g.det) |
| 641 | refine ⟨𝔪.primAddChar.mulShift (𝔪.reduction (-star c₀)), c, |
| 642 | by simpa [c, Circle.norm_coe] using hC, fun P D h ↦ (h_flip D P (1, k) h).trans ?_⟩ |
| 643 | rw [← mul_div_cancel a' (_ * _), inv_one, mul_comm 1, modKernel_twist] |
| 644 | simp [c, μ, g, field] |
| 645 | |
| 646 | end KernelFlip |
| 647 | |
| 648 | end New |
| 649 | |
| 650 | end |