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.DualPair.WeilAction |
| 4 | public import Lib.Adelic.Reduction.DefiniteClassSums -- shake: keep (needed public by an exposed definition) |
| 5 | import Lib.Cohomology.Etale.Basic |
| 6 | import Lib.DiscreteSeries.Holomorphic.MaximalCompactMinors |
| 7 | import Mathlib.Topology.Algebra.MvPolynomial |
| 8 | import TauCeti.RingTheory.MvPolynomial.DirectionalOrder |
| 9 | |
| 10 | /-! |
| 11 | # The jet matrix of a definite pair is a kernel for algebraic forms |
| 12 | |
| 13 | An abstract theta kernel is an action of `G × G'` on a space of data, with a jet matrix for each |
| 14 | datum that is equivariant for the rational points. Such a kernel lifts algebraic forms from rank `n` |
| 15 | to rank `n'`. |
| 16 | |
| 17 | * `New.IsLiftWeight`: the condition on ranks and weights under which the lift exists. |
| 18 | * `New.Kernel`: the abstract theta kernel. |
| 19 | * `New.Kernel.lift`, `New.Kernel.lift_equivariant`: the theta lift of a kernel and its equivariance |
| 20 | under `G × G'`. |
| 21 | * `New.schurCoeffPoly`: the polynomial `Aᵀ S(z) ξ`, with `S = schur κ`. |
| 22 | `New.dotProduct_schurJet_mulVec` writes the entries of the jet matrix as jets along it. |
| 23 | `New.realPairWeil_schurCoeffPoly` gives the action of the real points on it, and |
| 24 | `New.theta_pairWeil_schurCoeffPoly` its theta function as a coefficient of the jet matrix. |
| 25 | * `New.thetaKernel`: the kernel of the definite pair, which sends `f` to |
| 26 | `schurJet κ (jetSeries _ c f)`. |
| 27 | |
| 28 | Notions from other files: |
| 29 | * `New.𝒮`: The Banach space 𝒮(V) of integrable functions c on 𝔸^n with c(x) = ∫ c(y)β(y,x)e(x−y) dy, |
| 30 | under the L¹ norm; β is the adelic bicharacter and e the vacuum function `New.vacuumFn`. |
| 31 | * `New.Space.finitePart`: The finite part 𝒮_f: the subspace of 𝒮(V) spanned by the translates of the |
| 32 | vacuum under the finite Heisenberg operators `New.Space.finHeisenbergOp`. |
| 33 | * `New.rightStabilizer`: The subgroup of k in G with f(gk) = f(g) for all g. |
| 34 | * `New.AlgForm`: Smooth algebraic forms of weight (κ, e): functions φ on G_f with values in vectors |
| 35 | indexed by `New.WeylIndex n κ`, with φ(γg) = ρ(γ)φ(g) for rational γ and an open stabiliser. |
| 36 | * `New.schurJet`: The matrix of jets of a power series along the entries of `schur κ`. |
| 37 | |
| 38 | ## Relation to the literature |
| 39 | |
| 40 | Known; see `Lib.Weil.CompactLift.DefiniteThetaLift` for sources. |
| 41 | -/ |
| 42 | |
| 43 | @[expose] public section |
| 44 | |
| 45 | noncomputable section |
| 46 | |
| 47 | namespace New |
| 48 | |
| 49 | open NumberField Matrix MvPolynomial Space Fock Finset GeneralLinearGroup G Fintype Subgroup |
| 50 | |
| 51 | /-- A complex polynomial is homogeneous of degree `d` exactly when multiplying the variables by |
| 52 | any `t ≠ 0` multiplies it by `t ^ d`. -/ |
| 53 | lemma isHomogeneous_iff_aeval_smul_X {σ : Type*} {Q : MvPolynomial σ ℂ} {d : ℕ} : |
| 54 | Q.IsHomogeneous d ↔ ∀ t : ℂ, t ≠ 0 → Q.aeval (fun x : σ ↦ t • X x) = t ^ d • Q := by |
| 55 | refine ⟨fun hQ t _ ↦ ?_, fun hQ ↦ ?_⟩ |
| 56 | · simpa [aeval_X_left_apply, Pi.smul_def] using hQ.aeval_smul t (X (R := ℂ)) |
| 57 | · apply isHomogeneous_iff_forall_eval_smul.mpr |
| 58 | intro t x |
| 59 | -- The scaling identity extends from nonzero scalars to all scalars by continuity. |
| 60 | have h_eval : Set.EqOn (fun a : ℂ ↦ eval (a • x) Q) |
| 61 | (fun a ↦ a ^ d • eval x Q) ({0}ᶜ : Set ℂ) := by |
| 62 | intro a ha |
| 63 | have h := congrArg (eval x) (hQ a (by simpa using ha)) |
| 64 | rw [aeval_def, MvPolynomial.algebraMap_eq, ← eval_assoc] at h |
| 65 | simpa [Function.comp_def, Pi.smul_def] using h |
| 66 | have h_left : Continuous (fun a : ℂ ↦ eval (a • x) Q) := |
| 67 | Q.continuous_eval.comp (continuous_id.smul continuous_const) |
| 68 | have h_right : Continuous (fun a : ℂ ↦ a ^ d • eval x Q) := |
| 69 | (continuous_id.pow d).smul continuous_const |
| 70 | exact congrFun (Continuous.ext_on (dense_compl_singleton 0) h_left h_right h_eval) t |
| 71 | |
| 72 | /-- The weight `(κ, e)` of rank `n` goes up to rank `n'` along the exponent `eb`. Here `κ τ h` is |
| 73 | the number of columns of height `h` at the place `τ`. There are three conditions: no column has |
| 74 | height strictly between `card n` and `card n'`, and `card n ≤ card n'` (`New.FitsRanks`); the |
| 75 | rank grows, `card n < card n'`; and `e τ = eb τ + κ τ (card n)`, since in rank `n` the columns of |
| 76 | height `card n` give a power of the determinant, whose exponent is added to `eb τ`. -/ |
| 77 | def IsLiftWeight {Φ : Type} (n n' : Type) [Fintype n] [Fintype n'] (κ : Φ → ℕ → ℕ) (eb e : Φ → ℤ) : |
| 78 | Prop := |
| 79 | -- `FitsRanks`: no column has a height strictly between the two ranks, and `card n ≤ card n'`. |
| 80 | FitsRanks (fun _ ↦ n) (fun _ ↦ n') κ ∧ |
| 81 | Fintype.card n < Fintype.card n' ∧ |
| 82 | -- The columns of height `card n` are added to the exponent of the determinant. |
| 83 | e = fun τ ↦ eb τ + κ τ (Fintype.card n) |
| 84 | |
| 85 | section |
| 86 | |
| 87 | variable {E n n' : Type} [Field E] [CMType E] [WeilData E] [Fintype n] |
| 88 | [DecidableEq n] [Fintype n'] [DecidableEq n'] |
| 89 | {s : n → ℤˣ} {s' : n' → ℤˣ} {κ : InfinitePlace E → ℕ → ℕ} {eb e : InfinitePlace E → ℤ} |
| 90 | (V : Space E n s) (T : Space E n' s') (a b : AutChar E) (ea : InfinitePlace E → ℤ) |
| 91 | (A : WeylIndex n' κ → ℂ) (ξ : WeylIndex n κ → ℂ) |
| 92 | |
| 93 | /-! ### The Fock polynomial and the finite Weil representation -/ |
| 94 | |
| 95 | /-- For a covector A and a vector ξ, the polynomial Aᵀ S_κ(z) ξ in the entries of the n′ × n |
| 96 | matrices z_τ, one for each infinite place τ, where S_κ = `schur κ`. S_κ(z) has rows indexed by |
| 97 | `WeylIndex n' κ` and columns by `WeylIndex n κ`, and its entries are polynomials in the z_τ. -/ |
| 98 | def schurCoeffPoly {E : Type} [Field E] [NumberField E] {κ : InfinitePlace E → ℕ → ℕ} |
| 99 | (A : WeylIndex n' κ → ℂ) (ξ : WeylIndex n κ → ℂ) : MvPolynomial (InfinitePlace E × n' × n) ℂ := |
| 100 | C ∘ A ⬝ᵥ schur κ (fun τ : InfinitePlace E ↦ of fun (b : n') (c : n) ↦ X (τ, b, c)) *ᵥ C ∘ ξ |
| 101 | |
| 102 | /-- The finite Heisenberg operator `New.Space.finHeisenbergOp` of a vector x over the finite adeles, |
| 103 | restricted to the finite part 𝒮_f of 𝒮(V). -/ |
| 104 | @[simps! apply_coe] |
| 105 | def Space.heisenbergFinPart (x : n → 𝔸f E) : Module.End ℂ V.finitePart := |
| 106 | LinearMap.restrict (V.finHeisenbergOp x) fun _ ↦ finHeisenbergOp_mem_finitePart x |
| 107 | |
| 108 | /-- The Weil representation `pairWeil V T a b` at the finite points, restricted to the finite part |
| 109 | of 𝒮(Hom(V, T)). -/ |
| 110 | @[simps! apply_apply_coe] |
| 111 | def pairWeilFinite : Gf E n × Gf E n' →* Module.End ℂ (V.hom T).finitePart where |
| 112 | toFun p := |
| 113 | LinearMap.restrict (pairWeil V T a b ((1, p.1), 1, p.2)).toLinearMap fun f hf ↦ by |
| 114 | -- Up to a scalar, `pairWeil` is `ω` at a point whose infinite part is trivial (`onHom_fin`). |
| 115 | refine (finitePart _).smul_mem _ ?_ |
| 116 | rw [onHom_fin] |
| 117 | exact omega_mem_finitePart _ hf |
| 118 | map_one' := by |
| 119 | ext |
| 120 | simp [Prod.mk_one_one] |
| 121 | map_mul' p q := by |
| 122 | ext f : 2 |
| 123 | change _ = pairWeil V T a b _ (pairWeil V T a b _ f) |
| 124 | simp [rep_apply_apply] |
| 125 | |
| 126 | variable (n n' κ e) in |
| 127 | /-- An abstract theta kernel with data in S. It consists of a representation ω of G_f × G'_f on S, |
| 128 | and a linear map `jetMap` from S to linear maps from functions on `WeylIndex n κ` to functions on |
| 129 | `WeylIndex n' κ`, equivariant for the rational points Γ × Γ' in weight e on the source and ea on |
| 130 | the target; every datum has an open stabiliser. The subgroup K does not enter the fields: it is the |
| 131 | level at which `New.Kernel.lift` integrates. -/ |
| 132 | structure Kernel (K : Subgroup (Gf E n)) (S : Type*) [AddCommGroup S] [Module ℂ S] where |
| 133 | /-- The action of the finite points `G_f × G'_f` on the data. -/ |
| 134 | ω : Representation ℂ (Gf E n × Gf E n') S |
| 135 | /-- The jet map of a datum, a linear map from vectors of rank `n` to vectors of rank `n'`. -/ |
| 136 | jetMap : S →ₗ[ℂ] (WeylIndex n κ → ℂ) →ₗ[ℂ] WeylIndex n' κ → ℂ |
| 137 | /-- The jet map is equivariant for the rational points `Γ × Γ'`: |
| 138 | `jetMap (ω (γ, δ) Φ) (weightRep κ e γ v) = weightRep κ ea δ (jetMap Φ v)`. -/ |
| 139 | equivariant (γ : U (stdSpace E n).J) (δ : U (stdSpace E n').J) (Φ : S) (v : WeylIndex n κ → ℂ) : |
| 140 | jetMap (ω (stdEmbFin γ, stdEmbFin δ) Φ) ((stdSpace E n).weightRep κ e γ v) = |
| 141 | (stdSpace E n').weightRep κ ea δ (jetMap Φ v) |
| 142 | /-- Every datum Φ has an open stabiliser: `g ↦ ω g Φ` is invariant under an open subgroup. -/ |
| 143 | isOpen_stabilizer (Φ : S) : (rightStabilizer (ω · Φ)).IsOpen |
| 144 | |
| 145 | end |
| 146 | |
| 147 | variable {E n n' : Type} [Field E] [CMType E] [Fintype n] |
| 148 | [DecidableEq n] [Fintype n'] [DecidableEq n'] {κ : InfinitePlace E → ℕ → ℕ} |
| 149 | {eb e ea : InfinitePlace E → ℤ} {K : Subgroup (Gf E n)} {S : Type*} [AddCommGroup S] [Module ℂ S] |
| 150 | (k : Kernel n n' κ e ea K S) |
| 151 | |
| 152 | @[local simp] |
| 153 | lemma Kernel.omega_omega (p q : Gf E n × Gf E n') (Φ : S) : k.ω p (k.ω q Φ) = k.ω (p * q) Φ := by |
| 154 | simp |
| 155 | |
| 156 | /-- Let `k` be an abstract theta kernel (`New.Kernel`) over a CM field `E`, with a representation |
| 157 | `ω` of `G_f × G'_f` on the data `S` and a jet map `jetMap` from data to linear maps from functions |
| 158 | on `WeylIndex n κ` to functions on `WeylIndex n' κ`. For a datum `Φ`, an algebraic form `φ` of |
| 159 | weight `(κ, e)` and `h ∈ G'_f`, the integrand `g ↦ jetMap(ω(g, h)Φ)(φ(g))` of the theta lift lies in |
| 160 | `New.smoothInvariants stdRatPoints`. In words, it is left invariant under the rational points |
| 161 | `U_n(E)`, and its stabiliser under right translation is open. -/ |
| 162 | @[simp] |
| 163 | lemma Kernel.integrand_mem_smoothInvariants (Φ : S) (φ : AlgForm n κ e) (h : Gf E n') : |
| 164 | (fun g : Gf E n ↦ k.jetMap (k.ω (g, h) Φ) (φ.val g)) ∈ smoothInvariants stdRatPoints := by |
| 165 | -- Left invariance follows from `equivariant` at `(γ, 1)`; openness from intersecting stabilisers. |
| 166 | refine ⟨?_, (rightStabilizer φ.val ⊓ |
| 167 | comap (.inl _ _) (rightStabilizer fun g ↦ k.ω g Φ)).isOpen_mono |
| 168 | (fun a ⟨ha_φ, ha_Φ⟩ ↦ mem_rightStabilizer.2 fun g ↦ by |
| 169 | simpa [mem_rightStabilizer.1 ha_φ g] using |
| 170 | congrArg (k.jetMap · (φ.val g)) (mem_rightStabilizer.1 (mem_comap.1 ha_Φ) (g, h))) |
| 171 | (.inter φ.property.1 ((k.isOpen_stabilizer Φ).preimage (.prodMk_left 1)))⟩ |
| 172 | rintro _ ⟨γ, rfl⟩ g |
| 173 | simpa [φ.property.2 γ] using k.equivariant γ 1 (k.ω (g, h) Φ) (φ.val g) |
| 174 | |
| 175 | variable [IsLevel K] |
| 176 | |
| 177 | /-- The theta lift with datum Φ. An algebraic form φ of weight (κ, e) goes to the algebraic form |
| 178 | h ↦ ∫ jetMap(ω(g,h)Φ)(φ(g)) dg of weight (κ, ea). The integral is over Γ\G_f, Γ the rational |
| 179 | points, for the Haar measure with vol K = 1 (`New.classIntegral`). -/ |
| 180 | def Kernel.lift : S →ₗ[ℂ] AlgForm n κ e →ₗ[ℂ] AlgForm n' κ ea := by |
| 181 | refine LinearMap.mk₂ ℂ |
| 182 | (fun Φ φ ↦ |
| 183 | ⟨fun h ↦ classIntegral stdRatPoints K fun g ↦ k.jetMap (k.ω (g, h) Φ) (φ.val g), ?_, |
| 184 | fun γ h ↦ ?_⟩) |
| 185 | (fun Φ Φ' φ ↦ ?addDatum) (fun c Φ φ ↦ ?smulDatum) |
| 186 | (fun Φ φ φ' ↦ ?addForm) fun c Φ φ ↦ ?smulForm |
| 187 | · -- Smoothness: the lift is fixed by the open subgroup of the `a` with `(1, a)` fixing `Φ`. |
| 188 | refine (comap (.inr _ _) (rightStabilizer fun g ↦ k.ω g Φ)).isOpen_mono (fun a ha h ↦ ?_) |
| 189 | ((k.isOpen_stabilizer Φ).preimage (.prodMk_right 1)) |
| 190 | simp [← (ha ⟨·, h⟩)] |
| 191 | · -- Equivariance: the action of `γ` commutes with the integral, and `equivariant` at `(1, γ)` |
| 192 | -- moves it into `k.ω`. |
| 193 | exact classIntegral_map_mul_right (weightRep κ ea _ γ).toAddMonoidHom 1 |
| 194 | (k.integrand_mem_smoothInvariants Φ φ h) (by simp [← k.equivariant 1]) |
| 195 | case addDatum | addForm => |
| 196 | ext : 2 |
| 197 | simp [classIntegral_add, ← Pi.add_def] |
| 198 | case smulDatum | smulForm => |
| 199 | ext h : 2 |
| 200 | exact classIntegral_map_mul_right (DistribSMul.toAddMonoidHom _ c) 1 |
| 201 | (k.integrand_mem_smoothInvariants Φ φ h) (by simp) |
| 202 | |
| 203 | /-- Equivariance of the theta lift: the lift with datum ω(a,b)Φ of the right translate of φ by a |
| 204 | is the right translate by b of the lift of φ with datum Φ. -/ |
| 205 | lemma Kernel.lift_equivariant (a : Gf E n) (b : Gf E n') (Φ : S) (φ : AlgForm n κ e) : |
| 206 | k.lift (k.ω (a, b) Φ) (algFormRep κ e a φ) = algFormRep κ ea b (k.lift Φ φ) := by |
| 207 | -- The integral over `g` is invariant under the right translation `g ↦ g * a`. |
| 208 | ext h : 2 |
| 209 | have h_shift (g : Gf E n) : k.jetMap (k.ω (g, h) (k.ω (a, b) Φ)) |
| 210 | ((algFormRep κ e a φ).val g) = k.jetMap (k.ω (g * a, h * b) Φ) (φ.val (g * a)) := by simp |
| 211 | exact classIntegral_map_mul_right (.id _) a (k.integrand_mem_smoothInvariants Φ φ (h * b)) h_shift |
| 212 | |
| 213 | lemma coe_map_conj_inv_eq_transpose (u : USign (1 : n → ℤˣ)) : |
| 214 | (u.val⁻¹.map (starRingEnd ℂ)).val = uᵀ := by |
| 215 | -- For the identity form the inverse of `u` is its conjugate transpose. |
| 216 | have h_inv : ((u.val⁻¹ : GL n ℂ) : Matrix n n ℂ) = ((u.val : GL n ℂ) : Matrix n n ℂ)ᴴ := by |
| 217 | simpa [signMatrix_one] using U.coe_inv (signMatrix_mul_self (ε := (1 : n → ℤˣ))) u |
| 218 | change ((u.val⁻¹ : GL n ℂ) : Matrix n n ℂ).map (starRingEnd ℂ) = uᵀ |
| 219 | ext i j |
| 220 | simp [h_inv] |
| 221 | |
| 222 | omit [DecidableEq n] [DecidableEq n'] in |
| 223 | /-- For a covector A, a vector ξ and a power series F, A paired with the Schur jet matrix of F |
| 224 | applied to ξ is the jet of F along the polynomial Aᵀ S_κ(z) ξ. -/ |
| 225 | lemma dotProduct_schurJet_mulVec (A : WeylIndex n' κ → ℂ) (ξ : WeylIndex n κ → ℂ) |
| 226 | (F : MvPowerSeries (InfinitePlace E × n' × n) ℂ) : |
| 227 | A ⬝ᵥ schurJet κ F *ᵥ ξ = jetPairing (schurCoeffPoly A ξ) F := by |
| 228 | simp [schurCoeffPoly, schurJet, dotProduct, mulVec, C_mul', mul_comm] |
| 229 | |
| 230 | omit [DecidableEq n'] in |
| 231 | /-- Assume `IsLiftWeight n n' κ eb e`, i.e. the weight `(κ, e)` of rank `n` goes up to rank `n'` |
| 232 | along `eb`. Then applying a ring homomorphism `φ` to an entry of the Schur jet matrix of a power |
| 233 | series `F` gives the same entry of the Schur jet matrix of the power series obtained by applying `φ` |
| 234 | to the coefficients of `F`. -/ |
| 235 | lemma map_schurJet (hκ : IsLiftWeight n n' κ eb e) {R S : Type} [CommRing R] [CommRing S] |
| 236 | (i' : WeylIndex n' κ) (i : WeylIndex n κ) (φ : R →+* S) |
| 237 | (F : MvPowerSeries (InfinitePlace E × n' × n) R) : |
| 238 | φ (schurJet κ F i' i) = schurJet κ (F.map φ) i' i := by |
| 239 | simp [schurJet, map_jetPairing, map_schur hκ.1] |
| 240 | |
| 241 | omit [DecidableEq n'] in |
| 242 | /-- Under `IsLiftWeight n n' κ eb e`, evaluating `schurCoeffPoly A ξ` at z gives Aᵀ S_κ(z) ξ, for |
| 243 | the matrices z_τ with entries z(τ, b, c). -/ |
| 244 | lemma eval_schurCoeffPoly (hκ : IsLiftWeight n n' κ eb e) (z : InfinitePlace E × n' × n → ℂ) |
| 245 | (A : WeylIndex n' κ → ℂ) (ξ : WeylIndex n κ → ℂ) : |
| 246 | eval z (schurCoeffPoly A ξ) = |
| 247 | A ⬝ᵥ schur κ (fun τ : InfinitePlace E ↦ of fun (b : n') (c : n) ↦ z ⟨τ, b, c⟩) *ᵥ ξ := by |
| 248 | simp [schurCoeffPoly, dotProduct, mulVec, map_schur hκ.1] |
| 249 | |
| 250 | /-- Let `E` be a CM field, and assume `IsLiftWeight n n' κ eb e`: `card n < card n'`, |
| 251 | no column has height strictly between them, and `e τ = eb τ + κ τ (card n)`. For real points `x` of |
| 252 | U(n) and `y` of U(n') (signs `1`), the real Weil representation `realPairWeil ea eb` acts by |
| 253 | `∏_w (det y_w)^{ea_w} (det x_w)^{−eb_w}` times the Fock operator of `z ↦ y z x⁻¹`, and it sends |
| 254 | `schurCoeffPoly A ξ = Aᵀ S_κ(z) ξ` to `schurCoeffPoly (A ᵥ* conjWeylMatrix κ ea y⁻¹) (conjWeylRep κ |
| 255 | e x ξ)`. That is, `y⁻¹` acts on the covector `A` and `x` acts on the vector `ξ` by the conjugate |
| 256 | Weyl representations of weights `(κ, ea)` and `(κ, e)`. -/ |
| 257 | lemma realPairWeil_schurCoeffPoly (hκ : IsLiftWeight n n' κ eb e) {ea : InfinitePlace E → ℤ} |
| 258 | (x : GInf E (1 : n → ℤˣ)) (y : GInf E (1 : n' → ℤˣ)) (A : WeylIndex n' κ → ℂ) |
| 259 | (ξ : WeylIndex n κ → ℂ) : |
| 260 | realPairWeil (s := 1) (s' := 1) ea eb (x, y) (schurCoeffPoly A ξ) = |
| 261 | schurCoeffPoly (A ᵥ* conjWeylMatrix κ ea y⁻¹) (conjWeylRep κ e x ξ) := by |
| 262 | -- By `realPairWeil_polyVector`, `(x⁻¹, y)` substitutes `yᵀ z xᵀ` for `z`, times powers of `det x` |
| 263 | -- and `det y`; `schur κ` turns this product into the actions on `A` and on `ξ`. |
| 264 | obtain ⟨x, rfl⟩ := inv_surjective x |
| 265 | have h_parts : FitsRanks (fun _ ↦ n) (fun _ ↦ n') κ ∧ card n < card n' ∧ |
| 266 | e = fun τ ↦ eb τ + κ τ (card n) := hκ |
| 267 | obtain ⟨h_fits, h_lt, rfl⟩ := h_parts |
| 268 | -- `schur_mul_right`, with its exponent of `det (g τ)` computed from `card n < card n'`. |
| 269 | have h_schur_mul (z : InfinitePlace E → Matrix n' n ℂ) (g : InfinitePlace E → Matrix n n ℂ) : |
| 270 | schur κ (fun τ ↦ z τ * g τ) = (∏ τ, (g τ).det ^ κ τ (card n)) • (schur κ z * schur κ g) := by |
| 271 | simpa [schurDetExp, h_lt] using schur_mul_right h_fits z g |
| 272 | -- The double sums that the substitution produces are the entries of `yᵀ w xᵀ`. |
| 273 | have h_entry (w : InfinitePlace E × n' × n → ℂ) (τ : InfinitePlace E) : |
| 274 | (of fun (b : n') (c : n) ↦ ∑ i : n', ∑ j : n, ((y τ : GL n' ℂ) : Matrix n' n' ℂ) i b * |
| 275 | (((x τ : GL n ℂ) : Matrix n n ℂ) c j * w (τ, i, j))) = |
| 276 | ((y τ : GL n' ℂ) : Matrix n' n' ℂ)ᵀ * |
| 277 | ((of fun (b : n') (c : n) ↦ w (τ, b, c)) * ((x τ : GL n ℂ) : Matrix n n ℂ)ᵀ) := by |
| 278 | ext b c |
| 279 | simp only [of_apply, Matrix.mul_apply, transpose_apply, Finset.mul_sum] |
| 280 | exact sum_congr rfl fun i _ ↦ sum_congr rfl fun j _ ↦ by ring |
| 281 | ext w |
| 282 | -- Evaluate both polynomials at `w` and collect the Schur matrices on the right into one; |
| 283 | -- determinants of transposes are left for the next step. `aeval_def` must act first (`↓`): |
| 284 | -- otherwise the substitution stays unexpanded. Without `-map_inv` and `-val_map_apply` the |
| 285 | -- conjugated inverses leave the form that `coe_map_conj_inv_eq_transpose` rewrites. |
| 286 | simp [realPairWeil_polyVector, ↓aeval_def, ← eval_assoc, eval_schurCoeffPoly hκ, |
| 287 | conjWeylRep, weylRep, -map_inv, mul_smul, coe_map_conj_inv_eq_transpose, Units.smul_def, |
| 288 | -val_map_apply, _root_.zpow_add, -det_transpose, -map_smul, dotProduct_mulVec, |
| 289 | ← h_schur_mul, prod_mul_distrib, principalMinor_of_forall, |
| 290 | DiscreteSeries.principalMinor_of_forall_not] |
| 291 | -- Both sides are now the same multiple of `Aᵀ S_κ(yᵀ w xᵀ) ξ`. |
| 292 | simp [h_entry, vecMul_smul, field, ← schur_mul_left h_fits] |
| 293 | |
| 294 | variable [WeilData E] |
| 295 | |
| 296 | /-- If the ranks fit `κ` (`New.FitsRanks`), scaling the entries of the variable matrices `z τ` by |
| 297 | `c` multiplies each entry of `schur κ z` by `c` to the number of boxes in the columns of height |
| 298 | below `card n'`. -/ |
| 299 | lemma aeval_smul_X_schur {Φ : Type} [Fintype Φ] [DecidableEq Φ] {κ : Φ → ℕ → ℕ} |
| 300 | (h_fits : FitsRanks (fun _ ↦ n) (fun _ ↦ n') κ) (c : ℂ) (i' : WeylIndex n' κ) |
| 301 | (i : WeylIndex n κ) : |
| 302 | aeval (R := ℂ) (fun x : Φ × n' × n ↦ c • X (R := ℂ) x) |
| 303 | (schur κ (fun τ : Φ ↦ of fun (b : n') (a : n) ↦ X (τ, b, a)) i' i) = |
| 304 | c ^ boxes κ (card n') • |
| 305 | schur κ (fun τ : Φ ↦ of fun (b : n') (a : n) ↦ X (τ, b, a)) i' i := by |
| 306 | let R : Type := MvPolynomial (Φ × n' × n) ℂ |
| 307 | have h_smul : schur κ (fun τ ↦ (C c : R) • of fun (b : n') (a : n) ↦ (X (τ, b, a) : R)) = |
| 308 | (C c : R) ^ boxes κ (card n') • schur κ fun τ ↦ of fun b a ↦ (X (τ, b, a) : R) := by |
| 309 | rw [schur_smul h_fits, prod_pow_eq_pow_sum] |
| 310 | simpa [map_schur h_fits, ← C_mul', smul_of, Pi.smul_def] using congrFun₂ h_smul i' i |
| 311 | |
| 312 | /-- If the ranks fit `κ` (`New.FitsRanks`), the entries of `schur κ z` are homogeneous polynomials |
| 313 | in the entries of the variable matrices `z τ`. The degree is the number of boxes in the columns of |
| 314 | height below `card n'`. -/ |
| 315 | lemma isHomogeneous_schur {Φ : Type} [Fintype Φ] [DecidableEq Φ] {κ : Φ → ℕ → ℕ} |
| 316 | (h_fits : FitsRanks (fun _ ↦ n) (fun _ ↦ n') κ) (i' : WeylIndex n' κ) (i : WeylIndex n κ) : |
| 317 | (schur κ (fun τ : Φ ↦ of fun (b : n') (a : n) ↦ X (τ, b, a)) i' i : |
| 318 | MvPolynomial (Φ × n' × n) ℂ).IsHomogeneous (boxes κ (card n')) := |
| 319 | isHomogeneous_iff_aeval_smul_X.2 fun c _ ↦ aeval_smul_X_schur h_fits c i' i |
| 320 | |
| 321 | /-- Assume `IsLiftWeight n n' κ eb e`. Scaling the variables of the Taylor series of f by `c` |
| 322 | multiplies its Schur jet matrix by `c` to the number of boxes in the columns of height below |
| 323 | `card n'`. -/ |
| 324 | lemma schurJet_jetSeries_eq_smul (hκ : IsLiftWeight n n' κ eb e) (c : ℂ) |
| 325 | (f : 𝒮 ((stdSpace E n).hom (stdSpace E n'))) : |
| 326 | schurJet κ (jetSeries ((stdSpace E n).hom (stdSpace E n')) c f) = |
| 327 | c ^ boxes κ (Fintype.card n') • |
| 328 | schurJet κ (jetSeries ((stdSpace E n).hom (stdSpace E n')) 1 f) := by |
| 329 | -- An entry of the jet matrix is the theta functional at the Fock vector of an entry of |
| 330 | -- `schur κ (c • z)`, and `c` comes out of that entry. |
| 331 | ext i' i |
| 332 | simp [schurJet, aeval_smul_X_schur hκ.1 c, aeval_X_left_apply] |
| 333 | |
| 334 | /-- The theta function of a Schur coefficient is a matrix coefficient of the jet matrix. Assume |
| 335 | `IsLiftWeight n n' κ eb e`, and let the characters `a`, `b` have weights `ea`, `eb`, with ψ, ψ' the |
| 336 | attached characters of the residue fields at the finite places. Let `v` be the Fock vector of |
| 337 | `schurCoeffPoly A ξ`, and move `v ⊗ f` by the adelic points `(x, g)` and `(y, h)`. The theta |
| 338 | functional of the result, times `c` to the number of boxes, is `Aᵀ y⁻¹ k x ξ`. Here `k` is the jet |
| 339 | matrix at the scale `c` of the translate of `f` by the finite parts `(g, h)`, and the real parts |
| 340 | `x`, `y` act in the weights `(κ, e)`, `(κ, ea)`. -/ |
| 341 | lemma theta_pairWeil_schurCoeffPoly (hκ : IsLiftWeight n n' κ eb e) (c : ℂ) {a b : AutChar E} |
| 342 | {ψ ψ' : (w : FinPlace E) → MulChar (ResField w) ℂ} (ha : a.HasWeight ea ψ) |
| 343 | (hb : b.HasWeight eb ψ') (x : GInf E (1 : n → ℤˣ)) (g : Gf E n) (y : GInf E (1 : n' → ℤˣ)) |
| 344 | (h : Gf E n') (A : WeylIndex n' κ → ℂ) (ξ : WeylIndex n κ → ℂ) |
| 345 | (f : 𝒮 ((stdSpace E n).hom (stdSpace E n'))) : |
| 346 | c ^ boxes κ (card n') * ((stdSpace E n).hom (stdSpace E n')).θ |
| 347 | (pairWeil (stdSpace E n) (stdSpace E n') a b ((x, g), y, h) |
| 348 | (integrated ((stdSpace E n).hom (stdSpace E n')) |
| 349 | (polyVector (realSigns E (homSigns 1 1)) (schurCoeffPoly A ξ)) f)) = |
| 350 | A ⬝ᵥ conjWeylRep κ ea y⁻¹ |
| 351 | (schurJet κ (jetSeries ((stdSpace E n).hom (stdSpace E n')) c |
| 352 | (pairWeil (stdSpace E n) (stdSpace E n') a b ((1, g), 1, h) f)) *ᵥ |
| 353 | conjWeylRep κ e x ξ) := by |
| 354 | -- The real parts act on the polynomial through `A` and `ξ`, the finite parts act on `f`, and the |
| 355 | -- theta functional of a polynomial tensored with a datum is a jet of its Taylor series. |
| 356 | rw [pairWeil_integrated_all, realPairWeil_schurCoeffPoly hκ, schurJet_jetSeries_eq_smul hκ c] |
| 357 | simp [conjWeylRep, dotProduct_mulVec, ↓dotProduct_schurJet_mulVec, -mulVec_mulVec, smul_mulVec, |
| 358 | aeval_X_left_apply] |
| 359 | |
| 360 | /-- The theta kernel of the definite pair `stdSpace E n`, `stdSpace E n'`, for characters `a`, `b` |
| 361 | of weights `ea`, `eb` and a subgroup `K` of the finite points. The data are the finite part of |
| 362 | 𝒮(Hom), with the action `pairWeilFinite (stdSpace E n) (stdSpace E n') a b` of the finite points. A |
| 363 | datum `f` gives a linear map from vectors of weight `(κ, e)` in rank `n` to those of weight |
| 364 | `(κ, ea)` in rank `n'`. Its matrix is `schurJet κ (jetSeries _ c f)`: the jets along `schur κ` of |
| 365 | the Taylor series of the theta function of `f`, with derivatives scaled by `c`. -/ |
| 366 | def thetaKernel (hκ : IsLiftWeight n n' κ eb e) (c : ℂ) {a b : AutChar E} {ea : InfinitePlace E → ℤ} |
| 367 | {ψ ψ' : (w : FinPlace E) → MulChar (ResField w) ℂ} (ha : a.HasWeight ea ψ) |
| 368 | (hb : b.HasWeight eb ψ') (K : Subgroup (Gf E n)) : |
| 369 | Kernel n n' κ e ea K ((stdSpace E n).hom (stdSpace E n')).finitePart where |
| 370 | ω := pairWeilFinite (stdSpace E n) (stdSpace E n') a b |
| 371 | jetMap := Matrix.toLin'.1 ∘ₗ schurJet κ ∘ₗ jetSeries ((stdSpace E n).hom (stdSpace E n')) c ∘ₗ |
| 372 | (finitePart ((stdSpace E n).hom (stdSpace E n'))).subtype |
| 373 | equivariant γ γ' f v := by |
| 374 | -- Pair both sides with a covector `A`. By `theta_pairWeil_schurCoeffPoly` the theta function |
| 375 | -- of `schurCoeffPoly A v` tensored with `f` is a coefficient of the jet matrix at `(γ, γ')` |
| 376 | -- and at `(1, 1)`, and the two values agree because `γ` and `γ'` are rational. |
| 377 | let V : Space E (n' × n) (homSigns 1 1) := (stdSpace E n).hom (stdSpace E n') |
| 378 | have h_inv (F : 𝒮 V) : |
| 379 | V.θ (pairWeil (stdSpace E n) (stdSpace E n') a b |
| 380 | ((stdSpace E n).ratEmbed γ, (stdSpace E n').ratEmbed γ') F) = V.θ F := by |
| 381 | simpa using pairWeil_of_mem_Gamma _ _ a b ⟨γ, rfl⟩ ⟨γ', rfl⟩ F 0 |
| 382 | let x : GInf E (1 : n → ℤˣ) := ((stdSpace E n).ratEmbed γ).1 |
| 383 | let y : GInf E (1 : n' → ℤˣ) := ((stdSpace E n').ratEmbed γ').1 |
| 384 | let f' : 𝒮 V := |
| 385 | pairWeil (stdSpace E n) (stdSpace E n') a b ((1, stdEmbFin γ), 1, stdEmbFin γ') f.val |
| 386 | have h_coeff (A : WeylIndex n' κ → ℂ) : |
| 387 | A ⬝ᵥ conjWeylRep κ ea y⁻¹ (schurJet κ (V.jetSeries c f') *ᵥ conjWeylRep κ e x v) = |
| 388 | A ⬝ᵥ schurJet κ (V.jetSeries c f.val) *ᵥ v := by |
| 389 | let F : 𝒮 V := V.integrated (polyVector (realSigns E (homSigns 1 1)) (schurCoeffPoly A v)) f |
| 390 | calc |
| 391 | _ = c ^ boxes κ (card n') * V.θ (pairWeil (stdSpace E n) (stdSpace E n') a b |
| 392 | ((stdSpace E n).ratEmbed γ, (stdSpace E n').ratEmbed γ') F) := |
| 393 | (theta_pairWeil_schurCoeffPoly hκ c ha hb x (stdEmbFin γ) y (stdEmbFin γ') A v f).symm |
| 394 | _ = c ^ boxes κ (card n') * V.θ F := by rw [h_inv] |
| 395 | _ = _ := by |
| 396 | simpa only [Prod.mk_one_one, map_one, inv_one, one_apply_eq_self] |
| 397 | using theta_pairWeil_schurCoeffPoly hκ c ha hb 1 1 1 1 A v f |
| 398 | change schurJet κ (V.jetSeries c f') *ᵥ conjWeylRep κ e x v = |
| 399 | conjWeylRep κ ea y (schurJet κ (V.jetSeries c f.val) *ᵥ v) |
| 400 | have h_eq : conjWeylRep κ ea y⁻¹ (schurJet κ (V.jetSeries c f') *ᵥ conjWeylRep κ e x v) = |
| 401 | schurJet κ (V.jetSeries c f.val) *ᵥ v := |
| 402 | dotProduct_eq _ _ fun A ↦ by rw [dotProduct_comm, h_coeff, dotProduct_comm] |
| 403 | rw [← h_eq, Representation.self_inv_apply] |
| 404 | isOpen_stabilizer f := by |
| 405 | -- The stabiliser of `f` contains an open subgroup `L × L'`. |
| 406 | obtain ⟨L, L', h_fix⟩ := exists_level_pairWeil a b f.property |
| 407 | refine isOpen_mono ?_ (L.prod L').isOpen' |
| 408 | simp_all [LE.le, mem_prod, Subtype.ext_iff] |
| 409 | |
| 410 | end New |
| 411 | |
| 412 | end |