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.Weil.CompactLift.ThetaKernelDefs |
| 4 | public import Lib.Weil.DualPair.Flip |
| 5 | import Lib.Adelic.Unitary.RationalPoints |
| 6 | import Lib.Cohomology.Etale.Basic |
| 7 | import Lib.General.LinearAlgebra.TensorChains |
| 8 | |
| 9 | /-! |
| 10 | # Two edges V → V′ → V″ joined into one datum of the pair (V′, V⁻ ⊕ V″) |
| 11 | |
| 12 | This file joins data on two consecutive edges V → V′ → V″ into one datum of the pair |
| 13 | (V′, V⁻ ⊕ V″), where V⁻ ⊕ V″ is `New.Seesaw.flipSum`. A datum on `Hom(V, V′)` is carried by the |
| 14 | adjoint to `Hom(V′, V⁻)` and multiplied with a datum on `Hom(V′, V″)`. The joining map is |
| 15 | compatible with the theta functional `New.Space.θ`, with translations and with the Weil actions, |
| 16 | which become `New.Seesaw.tripleWeil`. On the finite parts `New.Space.finitePart`, the spans of the |
| 17 | finite translates of the vacuum, it induces an injective map from the tensor product onto the |
| 18 | finite part. |
| 19 | |
| 20 | ## Main definitions and results |
| 21 | |
| 22 | * `New.Seesaw.arrowProduct`: for two consecutive edges V → V′ → V″, the bounded bilinear map that |
| 23 | joins data on Hom(V, V′) and Hom(V′, V″) into one datum of the pair (V′, V⁻ ⊕ V″). It is |
| 24 | compatible with the theta functional up to a nonzero constant (`New.Seesaw.theta_arrowProduct`) |
| 25 | and with the Weil actions (`New.Seesaw.arrowProduct_twistedPairWeil`). |
| 26 | * `New.Seesaw.homHeisenbergOp_arrowProduct`, `New.Seesaw.finHeisenbergOp_arrowProduct`: the |
| 27 | joining map is compatible with translations. |
| 28 | * `New.Seesaw.arrowTensor`: the induced map on the tensor product of the finite parts. It is |
| 29 | injective (`New.Seesaw.injective_arrowTensor`), with a left inverse |
| 30 | (`New.Seesaw.leftInverse_arrowTensor`), and its range is the finite part |
| 31 | (`New.Seesaw.range_arrowTensor`). |
| 32 | * `New.Seesaw.theta_tripleWeil_rat_mul`: `θ` of `New.Seesaw.tripleWeil` is invariant under rational |
| 33 | points in the first two groups. |
| 34 | |
| 35 | Notions from other files: |
| 36 | * `New.WeilData`: Weil data on a stably unramified E. They consist of ȷ in E with ȷ = −ȷ̄, Im τȷ > 0 |
| 37 | for every τ in the CM type and (1 − ȷ⁻¹)/2 integral; a finite idele α for which the completed |
| 38 | integers Ô are self-dual under (z, u) ↦ ψ_f(ȷαᾱzu); and a splitting character υ equal to −1 at |
| 39 | uniformisers of the places w with w = w̄; its restriction to the norm-one ideles is |
| 40 | `New.WeilData.upsilonU1`. |
| 41 | * `New.Space`: a hermitian space with a point, given by a matrix J over E and x in GL_n(𝔸) with xᴴJx |
| 42 | equal to the diagonal matrix of its signs at the infinite places and 1 at the finite places. |
| 43 | * `New.𝒮`: The Banach space 𝒮(V) of integrable functions c on 𝔸^n with c(x) = ∫ c(y)β(y,x)e(x−y) dy, |
| 44 | under the L¹ norm; β is the adelic bicharacter and e the vacuum function `New.vacuumFn`. |
| 45 | * `New.pairWeil`: The action ω_{a,b}(g, h) = χ_{a,b}(g, h) ω(x ↦ hxg⁻¹) on 𝒮(Hom(S, T)), where |
| 46 | χ_{a,b}(g, h) = a(det h) b(det g)⁻¹ is `New.pairChar`. The theta kernel `New.pairTheta` S T a b f |
| 47 | (g, h) is θ(ω_{a,b}(g, h) f), where θ is the theta functional `New.Space.θ`. |
| 48 | * `New.Seesaw.flipSpace` (in `Lib.Weil.DualPair.Flip`): the opposite space V⁻ of V, with matrix −J |
| 49 | and the opposite signs. |
| 50 | |
| 51 | ## Relation to the literature |
| 52 | |
| 53 | Known; see `Lib.Weil.DualPair.ThetaLiftConvergence` for sources. |
| 54 | -/ |
| 55 | |
| 56 | @[expose] public section |
| 57 | |
| 58 | noncomputable section |
| 59 | |
| 60 | namespace New.Seesaw |
| 61 | |
| 62 | open Prod Matrix TensorProduct Space WeilData Submodule Fintype LinearMap Weil |
| 63 | |
| 64 | variable {E ι ι' ι'' : Type} [Field E] [CMType E] [WeilData E] [Fintype ι] [DecidableEq ι] |
| 65 | [Fintype ι'] [DecidableEq ι'] [Fintype ι''] [DecidableEq ι''] |
| 66 | {ε : ι → ℤˣ} {ε' : ι' → ℤˣ} {ε'' : ι'' → ℤˣ} {V : Space E ι ε} {V' : Space E ι' ε'} |
| 67 | {V'' : Space E ι'' ε''} (f : 𝒮 (V.hom V')) (f' : 𝒮 (V'.hom V'')) (a b : AutChar E) (g : G E ε) |
| 68 | (t : (V.hom V').finitePart ⊗[ℂ] (V'.hom V'').finitePart) |
| 69 | |
| 70 | /-- For hermitian spaces V and V'', the orthogonal sum V⁻ ⊕ V'' of the opposite space |
| 71 | V⁻ = `New.Seesaw.flipSpace V` and V''. -/ |
| 72 | abbrev flipSum (V : Space E ι ε) (V'' : Space E ι'' ε'') : Space E (ι ⊕ ι'') (-ε ⊕ᵥ ε'') := |
| 73 | (flipSpace V).sum V'' |
| 74 | |
| 75 | /-- The bounded bilinear map combining data on Hom(V,V') and Hom(V',V'') into one datum on |
| 76 | Hom(V', V⁻ ⊕ V''), the first being carried to Hom(V', V⁻) by a scaled adjoint. -/ |
| 77 | def arrowProduct : 𝒮 (V.hom V') →L[ℂ] 𝒮 (V'.hom V'') →L[ℂ] 𝒮 (V'.hom (flipSum V V'')) := |
| 78 | (V'.hom (flipSum V V'')).boxProd (homSigns_sum_target signs_comp_refl) (V₂ := V'.hom V'') ∘L |
| 79 | (flipCoords star_normNegOne_mul_self rfl).map (V₁ := V.hom V') (V := V'.hom (flipSpace V)) |
| 80 | |
| 81 | /-- For g = (g₁,g₂,g₃), the Weil operator of (g₂, g₁ ⊕ g₃) on Hom(V', V⁻ ⊕ V''), times the product |
| 82 | of `pairChar` for `rankTwist a` at (g₁,g₂), `pairChar` for `rankTwist b` at (g₂,g₃) and `pairChar` |
| 83 | for (υ^{rk V'}, υ^{rk V}) at (g₂,g₁). -/ |
| 84 | def tripleWeil (g : G E ε × G E ε' × G E ε'') : |
| 85 | 𝒮 (V'.hom (flipSum V V'')) →L[ℂ] 𝒮 (V'.hom (flipSum V V'')) := |
| 86 | (pairChar (rankTwist a ι) (rankTwist a ι') (Prod.fst g, g.2.1) * |
| 87 | pairChar (rankTwist b ι') (rankTwist b ι'') g.2 * |
| 88 | pairChar (upsilonU1 ^ card ι') (upsilonU1 ^ card ι) (g.2.1, g.1)) • |
| 89 | (V'.hom (flipSum V V'')).ω (G.onHom (g.2.1, G.sum (g.1.neg, g.2.2))) |
| 90 | |
| 91 | /-- The linear map induced by `New.Seesaw.arrowProduct` from the tensor product of the finite parts |
| 92 | 𝒮_f of Hom(V,V') and Hom(V',V'') to the data on Hom(V', V⁻ ⊕ V''). -/ |
| 93 | def arrowTensor : |
| 94 | (V.hom V').finitePart ⊗[ℂ] (V'.hom V'').finitePart →ₗ[ℂ] 𝒮 (V'.hom (flipSum V V'')) := |
| 95 | TensorProduct.lift arrowProduct.toLinearMap₁₂ ∘ₗ |
| 96 | mapIncl (V.hom V').finitePart (V'.hom V'').finitePart |
| 97 | |
| 98 | /-- The Weil representation of the finite adelic U(V) × U(V') on finite data for Hom(V,V'), |
| 99 | normalised by the characters `rankTwist a` for the ranks of V and V'. -/ |
| 100 | abbrev liftWeilFin : Gf E ι × Gf E ι' →* Module.End ℂ ↥(V.hom V').finitePart := |
| 101 | pairWeilFinite V V' (rankTwist a ι) (rankTwist a ι') |
| 102 | |
| 103 | /-- The entries of a block matrix `fromRows A B` over the first block of rows are those of A. -/ |
| 104 | private lemma matrixToVec_fromRows_comp_inl {R m₁ m₂ k : Type*} (A : Matrix m₁ k R) |
| 105 | (B : Matrix m₂ k R) : |
| 106 | matrixToVec (fromRows A B) ∘ (Equiv.sumProdDistrib m₁ m₂ k).symm ∘ Sum.inl = matrixToVec A := |
| 107 | rfl |
| 108 | |
| 109 | /-- The entries of a block matrix `fromRows A B` over the second block of rows are those of B. -/ |
| 110 | private lemma matrixToVec_fromRows_comp_inr {R m₁ m₂ k : Type*} (A : Matrix m₁ k R) |
| 111 | (B : Matrix m₂ k R) : |
| 112 | matrixToVec (fromRows A B) ∘ (Equiv.sumProdDistrib m₁ m₂ k).symm ∘ Sum.inr = matrixToVec B := |
| 113 | rfl |
| 114 | |
| 115 | @[simp] |
| 116 | lemma ratCoordMatrix_flipSpace : (flipSpace V).ratCoordMatrix g.neg = V.ratCoordMatrix g := by |
| 117 | simp [ratCoordMatrix_eq, ← star_mul, flipSpace_x, ← smul_eq_diagonal_mul, ← map_inv, |
| 118 | ← smul_eq_mul_diagonal, Matrix.mul_assoc, ← mul_smul] |
| 119 | |
| 120 | /-! ### Compatibility of the joining map with `θ`, translations and the Weil action -/ |
| 121 | |
| 122 | variable (V V' V'') in |
| 123 | /-- There is a constant `z ≠ 0` such that the theta functional of the joined datum |
| 124 | `New.Seesaw.arrowProduct f f'` is `z` times the product of the theta functionals of `f` and `f'`. -/ |
| 125 | lemma theta_arrowProduct : |
| 126 | ∃ z ≠ (0 : ℂ), ∀ (f : 𝒮 (V.hom V')) (f' : 𝒮 (V'.hom V'')), |
| 127 | (V'.hom (flipSum V V'')).θ (arrowProduct f f') = |
| 128 | z * ((V.hom V').θ f * (V'.hom V'').θ f') := by |
| 129 | -- `arrowProduct f f'` is the product of the flip of `f` with `f'`; `θ` is multiplicative on such |
| 130 | -- products, and the flip multiplies `θ f` by a constant `z` of modulus one. |
| 131 | obtain ⟨z, hz, h_flip⟩ := exists_pairTheta_flip star_normNegOne_mul_self rfl V V' (flipSpace V) 1 |
| 132 | (by simp [flipSpace_x, ← smul_eq_diagonal_mul]) 1 |
| 133 | refine ⟨z, fun hz_zero ↦ by simp [hz_zero] at hz, fun f f' ↦ ?_⟩ |
| 134 | -- At the identity the theta kernels are the values of `θ`. |
| 135 | have h_one : |
| 136 | (V'.hom (flipSpace V)).θ |
| 137 | ((flipCoords star_normNegOne_mul_self rfl).map (V := V'.hom (flipSpace V)) f) = |
| 138 | z * (V.hom V').θ f := by |
| 139 | simpa [pairTheta, mk_one_one] using h_flip 1 f 1 1 1 (by simp) |
| 140 | rw [arrowProduct, ContinuousLinearMap.comp_apply, theta_boxProd_target rfl _ rfl, h_one, |
| 141 | mul_assoc] |
| 142 | |
| 143 | /-- Translating the joined datum by the block matrix with rows `w*` (the adjoint of `w`) and `w'` |
| 144 | is the same as translating `f` by `w` and `f'` by `w'` before joining. -/ |
| 145 | lemma homHeisenbergOp_arrowProduct (w : Matrix ι' ι (𝔸 E)) (w' : Matrix ι'' ι' (𝔸 E)) : |
| 146 | homHeisenbergOp (fromRows (V.formAdjoint V' w) w') (arrowProduct f f') = |
| 147 | arrowProduct (homHeisenbergOp w f) (homHeisenbergOp w' f') := by |
| 148 | -- The action passes through the product and the flip; the second blocks agree at once. On the |
| 149 | -- first block the flip takes the adjoint again, which undoes `formAdjoint`. |
| 150 | simp [homHeisenbergOp, homAtPoint, sum, flipSpace_x, ← map_inv, ← smul_eq_mul_diagonal, |
| 151 | Matrix.mul_assoc, fromBlocks_mul_fromRows, arrowProduct, rho_boxProd, ← CoordChange.map_rho, |
| 152 | matrixToVec_fromRows_comp_inl, matrixToVec_fromRows_comp_inr, formAdjoint, map_J_inv, V'.map_J, |
| 153 | ← mul_smul, flipCoords_apply, vecToMatrix_matrixToVec, -matrixToVec_smul] |
| 154 | |
| 155 | /-- The finite Heisenberg operator of `y` on the joined datum acts on `f'` by the second block of |
| 156 | `y` and on `f` by `normNegOne` (the fixed unit u of Ô with ūu = −1) times the conjugate transpose of |
| 157 | the first block. The scalar is `stdLattice.semichar` of the first block, squared. -/ |
| 158 | lemma finHeisenbergOp_arrowProduct (y : (ι ⊕ ι'') × ι' → 𝔸f E) : |
| 159 | finHeisenbergOp (V'.hom (flipSum V V'')) y (arrowProduct f f') = |
| 160 | stdLattice.semichar (fun q : ι' × ι ↦ y (Sum.inl q.2, q.1)) ^ 2 • |
| 161 | arrowProduct |
| 162 | (finHeisenbergOp (V.hom V') |
| 163 | (fun q : ι' × ι ↦ ((normNegOne : (Ô E)ˣ) : 𝔸f E) * star (y (Sum.inl q.2, q.1))) f) |
| 164 | (finHeisenbergOp (V'.hom V'') (fun q : ι'' × ι' ↦ y (Sum.inr q.1, q.2)) f') := by |
| 165 | -- `stdLattice.semichar y` is an additive character at a multiple of the norm form `y* y`, the sum |
| 166 | -- over the two blocks. The flip changes the sign of the first block; the square corrects it. |
| 167 | have h_scalar : |
| 168 | stdLattice.semichar y = |
| 169 | (stdLattice.semichar fun q : ι' × ι ↦ y (Sum.inl q.2, q.1)) ^ 2 * |
| 170 | ((stdLattice.semichar fun q : ι'' × ι' ↦ y (Sum.inr q.1, q.2)) * |
| 171 | stdLattice.semichar fun q : ι' × ι ↦ |
| 172 | ((normNegOne : (Ô E)ˣ) : 𝔸f E) * star (y (Sum.inl q.2, q.1))) := by |
| 173 | simp [stdLattice.semichar, dotProduct, sum_prod_type, sq, ← AddChar.map_add_eq_mul, |
| 174 | mul_mul_mul_comm _ (y _), Finset.sum_comm (γ := ι)] |
| 175 | -- Without -two_mul_half, grind rewrites 2 * half = 1 first and misses the ring identity. |
| 176 | grind [-stdLattice.two_mul_half] |
| 177 | -- The action passes through the product and the flip; it remains to compare the scalars. |
| 178 | simp only [finHeisenbergOp, arrowProduct, Equiv.prodCongr_refl_refl, Equiv.trans_refl, |
| 179 | ContinuousLinearMap.comp_apply, _root_.smul_apply, rho_boxProd, ← CoordChange.map_rho, map_smul, |
| 180 | ← mul_smul] |
| 181 | have h_vec : (flipCoords star_normNegOne_mul_self rfl (t := ε) (s := ε')).φ |
| 182 | (finVec y ∘ (Equiv.sumProdDistrib ι ι'' ι').symm ∘ Sum.inl) = |
| 183 | finVec (fun q : ι' × ι ↦ ((normNegOne : (Ô E)ˣ) : 𝔸f E) * star (y (Sum.inl q.2, q.1))) := |
| 184 | CoordChange.apply_finVec _ (fun q : ι × ι' ↦ y (Sum.inl q.1, q.2)) |
| 185 | rw [h_vec, h_scalar] |
| 186 | rfl -- The second-block vectors agree by the definition of `finVec`. |
| 187 | |
| 188 | @[simp] |
| 189 | lemma arrowProduct_vacElem : |
| 190 | arrowProduct (V.hom V').vacElem (V'.hom V'').vacElem = (V'.hom (flipSum V V'')).vacElem := by |
| 191 | simp [arrowProduct] |
| 192 | |
| 193 | /-- Acting on `f` by `(g, g')` and on `f'` by `(g', g'')` and then joining is the same as joining |
| 194 | and then acting by `New.Seesaw.tripleWeil` at `(g, g', g'')`. -/ |
| 195 | lemma arrowProduct_twistedPairWeil (g' : G E ε') (g'' : G E ε'') : |
| 196 | arrowProduct (twistedPairWeil (rankTwist a) (g, g') f) |
| 197 | (twistedPairWeil (rankTwist b) (g', g'') f') = |
| 198 | tripleWeil a b (g, g', g'') (arrowProduct f f') := by |
| 199 | -- `flipCoords_map_omega` moves the first action through the flip; `omega_boxProd` joins the two |
| 200 | -- Weil actions. |
| 201 | simp [pairWeil, flipCoords_map_omega, arrowProduct, ← mul_smul, tripleWeil] |
| 202 | rw [omega_boxProd (g₁ := .onHom (g', g.neg)) (g₂ := .onHom (g', g''))] |
| 203 | · -- The scalars on the two sides are the same product of character values. |
| 204 | module |
| 205 | · -- The matrix of `(g', g.neg ⊕ g'')` on `Hom(V', V⁻ ⊕ V'')` is block diagonal. |
| 206 | ext i j : 1 |
| 207 | rcases i with i | i <;> rcases j with j | j <;> simp |
| 208 | |
| 209 | /-! ### The joining map on finite parts -/ |
| 210 | |
| 211 | /-- The induced map `New.Seesaw.arrowTensor` on the tensor product of the finite parts is |
| 212 | injective. -/ |
| 213 | lemma injective_arrowTensor : |
| 214 | Function.Injective (arrowTensor (V := V) (V' := V') (V'' := V'')) := by |
| 215 | -- The value of `arrowTensor t` at a point `(x, x')` is, up to the constant of |
| 216 | -- `theta_arrowProduct`, the value at `x'` of `t` contracted with the evaluation at the flip of |
| 217 | -- `x`; the point evaluations separate, so contract with each. |
| 218 | refine LinearMap.ker_eq_bot.mp (ker_eq_bot'.mpr fun t ht ↦ ?_) |
| 219 | obtain ⟨z, hz_ne, hz⟩ := theta_arrowProduct V V' V'' |
| 220 | refine tensor_eq_zero_of_separating |
| 221 | (f := fun x ↦ ((V.hom V').θ ∘L (V.hom V').ϱ x).toLinearMap.domRestrict (V.hom V').finitePart) |
| 222 | (fun h ↦ Subtype.ext ((V.hom V').data_ext fun x ↦ by simpa [theta_rho] using h x)) t |
| 223 | fun x ↦ ?_ |
| 224 | -- Write the point `x` as the flip of a point `y`. |
| 225 | obtain ⟨y, rfl⟩ := (flipCoords star_normNegOne_mul_self rfl (t := ε) (s := ε')).φ.surjective x |
| 226 | ext x' |
| 227 | replace ht : arrowTensor t ((y ⊕ᵥ x') ∘ Equiv.sumProdDistrib ι ι'' ι') = 0 := by simp [ht] |
| 228 | obtain ⟨S, rfl⟩ := t.exists_finset |
| 229 | rw [← theta_rho] at ht ⊢ |
| 230 | simp_all [Function.comp_def, ← Finset.mul_sum, arrowProduct, arrowTensor, rho_boxProd, |
| 231 | ← CoordChange.map_rho] |
| 232 | |
| 233 | lemma leftInverse_arrowTensor : arrowTensor.leftInverse (arrowTensor t) = t := |
| 234 | leftInverse_apply_of_inj (LinearMap.ker_eq_bot.mpr injective_arrowTensor) t |
| 235 | |
| 236 | /-- The range of `arrowTensor`, the linear map induced by `arrowProduct` from 𝒮_f(Hom(V, |
| 237 | V')) ⊗ 𝒮_f(Hom(V', V'')) to 𝒮(Hom(V', V⁻ ⊕ V'')), is exactly the finite part 𝒮_f of the target. Here |
| 238 | V⁻ ⊕ V'' = `flipSum V V''`, with V⁻ the opposite space of V. -/ |
| 239 | lemma range_arrowTensor : arrowTensor.range = (V'.hom (flipSum V V'')).finitePart := by |
| 240 | -- Both sides are spans. By `finHeisenbergOp_arrowProduct` each generator |
| 241 | -- `finHeisenbergOp _ y vacElem` of `finitePart` is a nonzero multiple of `arrowProduct` of two |
| 242 | -- generators; what is left is that every pair of generators arises from some `y`. |
| 243 | suffices h : ∀ (x : ι' × ι → 𝔸f E) (x' : ι'' × ι' → 𝔸f E), |
| 244 | arrowProduct ((V.hom V').finHeisenbergOp x (V.hom V').vacElem) |
| 245 | ((V'.hom V'').finHeisenbergOp x' (V'.hom V'').vacElem) ∈ |
| 246 | span ℂ (Set.range fun z : (ι ⊕ ι'') × ι' → 𝔸f E ↦ |
| 247 | (stdLattice.semichar fun q : ι' × ι ↦ z (Sum.inl q.2, q.1)) ^ 2 • |
| 248 | arrowProduct |
| 249 | ((V.hom V').finHeisenbergOp |
| 250 | (fun q : ι' × ι ↦ ((normNegOne : (Ô E)ˣ) : 𝔸f E) * star (z (Sum.inl q.2, q.1))) |
| 251 | (V.hom V').vacElem) |
| 252 | ((V'.hom V'').finHeisenbergOp (fun q : ι'' × ι' ↦ z (Sum.inr q.1, q.2)) |
| 253 | (V'.hom V'').vacElem)) by |
| 254 | simpa [← map₂_eq_range_lift_comp_mapIncl, finitePart, map₂_span_span, ← arrowProduct_vacElem, |
| 255 | finHeisenbergOp_arrowProduct, le_antisymm_iff, span_le, smul_mem, mem_span_of_mem, |
| 256 | arrowTensor, Set.range_subset_iff] using h |
| 257 | intro x x' |
| 258 | -- Conjugation followed by multiplication by the unit `normNegOne` is onto. |
| 259 | obtain ⟨y, rfl⟩ : |
| 260 | ∃ y : ι' × ι → 𝔸f E, (fun q ↦ ((normNegOne : (Ô E)ˣ) : 𝔸f E) * star (y q)) = x := |
| 261 | (starMulAut.toEquiv.trans |
| 262 | (normNegOne.map (Ô E).subtype.toMonoidHom).mulLeft).surjective.comp_left x |
| 263 | -- The witness has blocks `y` and `x'`; its generator is the given product times a nonzero scalar. |
| 264 | let z₀ : (ι ⊕ ι'') × ι' → 𝔸f E := matrixToVec (flip y.curry ⊕ᵥ vecToMatrix x') |
| 265 | exact (smul_mem_iff _ (by simp)).mp (subset_span ⟨z₀, rfl⟩) |
| 266 | |
| 267 | /-- `New.Seesaw.arrowTensor` intertwines the normalised Weil representations |
| 268 | `New.Seesaw.liftWeilFin` of finite adelic points on the two factors with `New.Seesaw.tripleWeil` |
| 269 | at the same points, for characters `a` and `b`. -/ |
| 270 | lemma arrowTensor_map_liftWeilFin (p : Gf E ι) (q : Gf E ι') (r : Gf E ι'') : |
| 271 | arrowTensor (TensorProduct.map (liftWeilFin a (p, q)) (liftWeilFin b (q, r)) t) = |
| 272 | tripleWeil a b ((1, p), (1, q), 1, r) (arrowTensor t) := by |
| 273 | -- Both sides are linear in `t`; on pure tensors this is `arrowProduct_twistedPairWeil`. |
| 274 | induction t with |
| 275 | | tmul u u' => simp [arrowProduct_twistedPairWeil, arrowTensor] |
| 276 | | add u u' hu hu' => simp_all [arrowTensor] |
| 277 | |
| 278 | /-- The theta functional of `tripleWeil a b (g, g', k) f` is unchanged when `g` is multiplied on the |
| 279 | left by a rational point `γ` of `U(V)` and `g'` by a rational point `δ` of `U(V')`. -/ |
| 280 | lemma theta_tripleWeil_rat_mul (f : 𝒮 (V'.hom (flipSum V V''))) {γ : G E ε} |
| 281 | (hγ : γ ∈ V.Γ) {δ : G E ε'} (hδ : δ ∈ V'.Γ) (g : G E ε) (g' : G E ε') (k : G E ε'') : |
| 282 | (V'.hom (flipSum V V'')).θ (tripleWeil a b (γ * g, δ * g', k) f) = |
| 283 | (V'.hom (flipSum V V'')).θ (tripleWeil a b (g, g', k) f) := by |
| 284 | -- Automorphy of the theta kernel of `V'` and `flipSum V V''` with trivial characters. |
| 285 | have hγ_sum : G.sum (γ.neg, 1) ∈ (flipSum V V'').Γ := |
| 286 | (sum_mem_Gamma _ _).mpr ⟨by simpa [mem_Gamma_iff_ratCoordMatrix] using hγ, one_mem _⟩ |
| 287 | have h_aut : pairTheta V' (flipSum V V'') 1 1 f (δ * g', .sum (γ.neg, 1) * .sum (g.neg, k)) = |
| 288 | pairTheta V' (flipSum V V'') 1 1 f (g', .sum (g.neg, k)) := |
| 289 | (pairThetaKer V' (flipSum V V'') 1 1).rat_mul hδ hγ_sum g' _ f |
| 290 | -- The characters in `tripleWeil` are trivial on the determinants of rational points. |
| 291 | obtain ⟨γ, rfl⟩ := hγ |
| 292 | obtain ⟨δ, rfl⟩ := hδ |
| 293 | simpa [pairTheta, pairWeil, ← G.sum.map_mul, tripleWeil] using h_aut |
| 294 | |
| 295 | end New.Seesaw |
| 296 | |
| 297 | end |