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 New.Determinant.AuxiliaryForms.PathData |
| 4 | public import Lib.SiegelWeil.RallisInner.Doubling |
| 5 | import Lib.SiegelWeil.RallisInner.SharpData |
| 6 | import New.Determinant.Exchange.RemovingPlanes |
| 7 | |
| 8 | /-! |
| 9 | # Theta lifts as a triangle of arrows: spaces, lifts, descents and the first lift |
| 10 | |
| 11 | This file arranges the theta lifts between the hermitian spaces `D.gridSpace i z 0 n` in a triangle |
| 12 | of positions `(i, n)`. The flag `z` selects one of two chains of spaces; see |
| 13 | `New.Determinant.Chain.ChainNorms`. The lift and the transposed lift of forms along an edge |
| 14 | (`New.Exchange.IsEdgeFamily`) with a finite datum modulo a modulus are `New.Exchange.modLift` and |
| 15 | `New.Exchange.modTransposedLift`, and this file writes them as integrals and treats the opposite |
| 16 | space. It defines the spaces and lifts of the triangle, and it proves, for `i < m`, the injectivity |
| 17 | and the norm of the first lift of row `i` on the subspace of fixed level. It also defines the left |
| 18 | and reversed pairs, the descents `New.Data.triangleTransposedLift` from `(i, n + 1)` to `(i + 1, n)` |
| 19 | along a left pair, and the ascents `New.Data.triangleReversedLift` from `(i + 1, n)` to `(i, n + 1)` |
| 20 | along the reversed pair. |
| 21 | |
| 22 | ## Main definitions and results |
| 23 | |
| 24 | * `New.Data.TriangleForm`, `New.Data.triangleLift`, `New.Data.triangleNegEquiv`, |
| 25 | `New.Data.triangleBase`, `New.Data.triangleEmbedding`: the forms at `(i, n)`, the lift to |
| 26 | `(i, n + 1)`, the copies at `(i, 0)` of the forms at `(0, 0)`, the subspace of fixed level, and |
| 27 | its embedding at `(i, 0)`. |
| 28 | * `New.Data.triangleFirstLift`, `New.Data.exists_hasSum_inner_triangleFirstLift`: the first lift of |
| 29 | a row, read on forms at `(0, 0)`; for `i < m`, its injectivity and norm on the subspace of fixed |
| 30 | level, by Rallis' formula `New.SiegelWeil.rallis_inner_product_cosetTerm`. |
| 31 | |
| 32 | Notions from other files: |
| 33 | * `New.Data.gridSpace`: The hermitian space at the node (i, j) of grid z with offset o, for the |
| 34 | signs `New.Data.gridSigns`. |
| 35 | * `New.Data.chosenLevel`: The level J_M consists of the elements of K₀ = `New.stdLevel` that are 1 |
| 36 | modulo the chosen places `New.Data.chosenPlace`. |
| 37 | * `New.Data.triangleModulus`, `New.Data.triangleGLCard`: the modulus 𝔪 of the triangle, and the |
| 38 | order of the general linear group of a node modulo 𝔪. A lift times this order is the lift for the |
| 39 | measure that gives the principal level of 𝔪 the volume 1. |
| 40 | |
| 41 | ## Relation to the literature |
| 42 | |
| 43 | See `New.Determinant.Chain.ChainNorms` for related work. |
| 44 | -/ |
| 45 | |
| 46 | @[expose] public section |
| 47 | |
| 48 | noncomputable section |
| 49 | |
| 50 | section TriangleArrows |
| 51 | |
| 52 | open MeasureTheory Matrix Complex ComplexConjugate Fintype LinearMap |
| 53 | |
| 54 | namespace New |
| 55 | |
| 56 | open Rows Exchange WeilData Space Modulus SiegelWeil ComplexInnerProductSpace |
| 57 | |
| 58 | variable {E N N' : Type} [Field E] [CMType E] [WeilData E] [Fintype N] [DecidableEq N] [Fintype N'] |
| 59 | [DecidableEq N'] {s : N → ℤˣ} {s' : N' → ℤˣ} (S : Space E N s) (T : Space E N' s') {I : Type*} |
| 60 | |
| 61 | /-! ### The opposite space; lifts and transposed lifts as integrals -/ |
| 62 | |
| 63 | /-- An integral over the automorphic quotient of the opposite space `S.neg` is the integral over |
| 64 | that of `S`, after pull-back along the identification `G.neg` of the two unitary groups. -/ |
| 65 | lemma integral_neg_quotMeasure (F : G E (-s) → ℂ) : |
| 66 | ∫ g : G E (-s), F g ∂S.neg.quotMeasure = ∫ g : G E s, F (G.neg g) ∂S.quotMeasure := |
| 67 | (isForm_neg_iff_and_integral_neg S S.neg (neg_mem_neg_Gamma_iff S)).right F |
| 68 | |
| 69 | /-- The linear isometry from forms of parameter `l` on `S` to forms of parameter `l` on the opposite |
| 70 | space `S.neg`, by the identification `G.neg` of the two unitary groups. -/ |
| 71 | def formNegEquiv (l : NumberField.InfinitePlace E → N → ℤ) : |
| 72 | S.Form (typeKernel l s) ≃ₗᵢ[ℂ] S.neg.Form (typeKernel l (-s)) := |
| 73 | -- the inverse map is the pull-back of functions along `G.neg` |
| 74 | LinearIsometryEquiv.symm <| LinearEquiv.isometryOfInner |
| 75 | -- a function is a form on `S.neg` if and only if its pull-back is a form on `S` |
| 76 | (LinearEquiv.ofEq _ _ (Submodule.ext fun F ↦ by |
| 77 | exact ((isForm_neg_iff_and_integral_neg S S.neg (neg_mem_neg_Gamma_iff S)).left l F).symm) |
| 78 | ≪≫ₗ |
| 79 | LinearEquiv.ofSubmodule' (LinearEquiv.funCongrLeft ℂ ℂ G.neg.toEquiv) _) |
| 80 | -- the integrals defining the two inner products agree under the pull-back |
| 81 | fun F F' : S.neg.Form (typeKernel l (-s)) ↦ |
| 82 | (integral_neg_quotMeasure S fun g : G E (-s) ↦ conj (F.val g) * F'.val g).symm |
| 83 | |
| 84 | lemma formNegEquiv_apply_neg (l : NumberField.InfinitePlace E → N → ℤ) |
| 85 | (y : S.Form (typeKernel l s)) (g : G E s) : |
| 86 | (formNegEquiv S l y).val (G.neg g) = y.val g := by |
| 87 | have h_symm (F : S.neg.Form (typeKernel l (-s))) : |
| 88 | ((formNegEquiv S l).symm F).val g = F.val (G.neg g) := rfl |
| 89 | rw [← h_symm, LinearIsometryEquiv.symm_apply_apply] |
| 90 | |
| 91 | /-- The isometry `formNegEquiv` commutes with right translation by the finite adelic group. -/ |
| 92 | lemma formNegEquiv_formRep (l : NumberField.InfinitePlace E → N → ℤ) (k : Gf E N) |
| 93 | (y : S.Form (typeKernel l s)) : |
| 94 | formNegEquiv S l (S.formRep (typeKernel l s) k y) = |
| 95 | S.neg.formRep (typeKernel l (-s)) k (formNegEquiv S l y) := |
| 96 | rfl |
| 97 | |
| 98 | /-- The transposed lift `modTransposedLift S T α Φ Ψ e' e y` is linear in `Ψ`: it is the sum over |
| 99 | matrices `x` of `Ψ x` times the transposed lift for the indicator function `Pi.single x 1` of |
| 100 | `x`. -/ |
| 101 | lemma Exchange.modTransposedLift_eq_sum (α : ∀ (M : Type) [Fintype M], AutChar E) {𝔪 : Modulus E} |
| 102 | (Φ : MvPolynomial (NumberField.InfinitePlace E × N' × N) ℂ) (Ψ : Matrix N' N 𝔪.ResidueRing → ℂ) |
| 103 | (e' : GInf E s' → ℂ) (e : GInf E s → ℂ) (y : T.Form e') : |
| 104 | modTransposedLift S T α Φ Ψ e' e y = |
| 105 | ∑ x : Matrix N' N 𝔪.ResidueRing, Ψ x • modTransposedLift S T α Φ (Pi.single x 1) e' e y := by |
| 106 | rw [modTransposedLift, modDatum_eq_sum] |
| 107 | simp |
| 108 | |
| 109 | /-- When `conj (K a) = c * K' a`, conjugating the integral of `K * f` gives `c` times |
| 110 | the integral of `K'` against the conjugate of `f`. -/ |
| 111 | lemma Exchange.conj_integral_mul {α : Type*} [MeasurableSpace α] {c : ℂ} {K K' : α → ℂ} |
| 112 | (hK : ∀ a, conj (K a) = c * K' a) (μ : Measure α) (f : α → ℂ) : |
| 113 | conj (∫ a, K a * f a ∂μ) = c * ∫ a, K' a * conj (f a) ∂μ := by |
| 114 | simp [← integral_conj, hK, mul_assoc, integral_const_mul] |
| 115 | |
| 116 | /-- The theta lift of a function `y`, with finite datum `Ψ` modulo `𝔪` and polynomial `Φ` at |
| 117 | infinity, is the integral of `y` against the theta kernel `modKernel`. -/ |
| 118 | lemma Exchange.lift_modDatum_apply (α β : AutChar E) {𝔪 : Modulus E} |
| 119 | (Φ : MvPolynomial (NumberField.InfinitePlace E × N' × N) ℂ) (Ψ : Matrix N' N 𝔪.ResidueRing → ℂ) |
| 120 | (y : G E s → ℂ) (h : G E s') : |
| 121 | Space.lift (pairThetaKer S T α β) |
| 122 | (modDatum S T 𝔪 Ψ (Fock.polyVector (realSigns E (homSigns s s')) Φ)) y h = |
| 123 | ∫ g : G E s, modKernel S T α β 𝔪 Ψ Φ g h * y g ∂S.quotMeasure := |
| 124 | rfl |
| 125 | |
| 126 | /-- Let `Φ` make an edge (`IsEdgeFamily`) with types `k` on `S`, `k'` on `T` and flag `d`. The |
| 127 | transposed lift to `S` of a form `x` on `T` of the conjugate type `k' !d` is the integral of `x` |
| 128 | over the quotient of `T` against the theta kernel `modKernel`. -/ |
| 129 | lemma Exchange.IsEdgeFamily.modTransposedLift_apply {α : I → ∀ (M : Type) [Fintype M], AutChar E} |
| 130 | {k : Bool → GInf E s → ℂ} {k' : Bool → GInf E s' → ℂ} {d : Bool} |
| 131 | {Φ : MvPolynomial (NumberField.InfinitePlace E × N' × N) ℂ} (h_edge : IsEdgeFamily α k k' d Φ) |
| 132 | (j : I) {𝔪 : Modulus E} (Ψ : Matrix N' N 𝔪.ResidueRing → ℂ) (x : T.Form (k' !d)) (g : G E s) : |
| 133 | (modTransposedLift S T (α j) Φ Ψ (k' !d) (k !d) x).val g = |
| 134 | ∫ h : G E s', modKernel S T (α j N) (α j N') 𝔪 Ψ Φ g h * x.val h ∂T.quotMeasure := |
| 135 | congrFun ((h_edge.isArrow_swap S T Ψ j).coe_formLift x) g |
| 136 | |
| 137 | /-- Let the polynomial `Φ` make an edge (`IsEdgeFamily`) for the characters `α j`, `j : I`, and the |
| 138 | pairs `k`, `k'` of conjugate cuspidal types: its Fock vector matches the types `k d` and `k' d` in |
| 139 | the real Weil representation. Fix `j`, a function `Ψ` on matrices modulo `𝔪`, a finite adelic point |
| 140 | `u` of the group of `T` and a form `x` on `T` of type `k' !d`. The transposed lift to `S` of the |
| 141 | right translate (`formRep`) of `x` by `u⁻¹` is the integral of `x` over the automorphic quotient of |
| 142 | `T` against the right translate by `u` of `modKernel`, the theta kernel with characters `α j N`, |
| 143 | `α j N'` of the Schwartz function that is `Φ` at infinity, `Ψ` at `𝔪` and the vacuum elsewhere. -/ |
| 144 | lemma Exchange.IsEdgeFamily.modTransposedLift_formRep_inv_apply |
| 145 | {α : I → ∀ (M : Type) [Fintype M], AutChar E} |
| 146 | {k : Bool → GInf E s → ℂ} {k' : Bool → GInf E s' → ℂ} {d : Bool} |
| 147 | {Φ : MvPolynomial (NumberField.InfinitePlace E × N' × N) ℂ} (h_edge : IsEdgeFamily α k k' d Φ) |
| 148 | (j : I) {𝔪 : Modulus E} (Ψ : Matrix N' N 𝔪.ResidueRing → ℂ) (u : Gf E N') (x : T.Form (k' !d)) |
| 149 | (g : G E s) : |
| 150 | (modTransposedLift S T (α j) Φ Ψ (k' !d) (k !d) (T.formRep (k' !d) u⁻¹ x)).val g = |
| 151 | ∫ h : G E s', modKernel S T (α j N) (α j N') 𝔪 Ψ Φ g (h * (1, u)) * x.val h |
| 152 | ∂T.quotMeasure := by |
| 153 | rw [(h_edge.isArrow_swap S T Ψ j).coe_formLift, |
| 154 | show (T.formRep (k' !d) u⁻¹ x).val = fun h ↦ x.val (h * (1, u)⁻¹) from |
| 155 | funext fun h ↦ by simp [formRep_apply], |
| 156 | ← ThetaKernel.lift_omega_left _ x.prop.toIsAutomorphic (1, u)] |
| 157 | simp [Space.lift, modKernel, pairTheta, rep_apply_apply] |
| 158 | |
| 159 | /-- The pair of central elements `𝔪.flipScalar` of the unitary groups of `S` and `T` acts on a datum |
| 160 | `φ`, in the Weil representation `pairWeil`, by the value of the character `pairChar`. -/ |
| 161 | lemma pairWeil_flipScalar (α β : AutChar E) (𝔪 : Modulus E) (φ : 𝒮 (S.hom T)) : |
| 162 | pairWeil S T α β ((1, 𝔪.flipScalar N), 1, 𝔪.flipScalar N') φ = |
| 163 | pairChar (s := s) (s' := s') α β ((1, 𝔪.flipScalar N), 1, 𝔪.flipScalar N') • φ := by |
| 164 | rw [pairWeil_apply, Modulus.flipScalar, Modulus.flipScalar, G.onHom_scalarFin] |
| 165 | simp [Prod.mk_one_one] |
| 166 | |
| 167 | /-- The character `(α M)⁻¹ υⁿ` on a space with index type `M` of cardinality `n`, where |
| 168 | `υ = upsilonU1` is the splitting character of the Weil data, restricted to the norm-one ideles. The |
| 169 | conjugate of a theta kernel with characters `α` is a multiple of a kernel from the opposite space |
| 170 | with these characters (`New.exists_conj_modKernel_eq_mul_modKernel_neg`). -/ |
| 171 | abbrev oppositeChar (α : ∀ (M : Type) [Fintype M], AutChar E) (M : Type) [Fintype M] : AutChar E := |
| 172 | (α M)⁻¹ * upsilonU1 ^ card M |
| 173 | |
| 174 | /-- Let `Φ` make an edge from `S` to `T` with characters `a j`, `j : I`, and flag `false`, and `Φ'` |
| 175 | an edge from the opposite space `S.neg` to `T` with the characters `oppositeChar (a j)` and flag |
| 176 | `true`. The pair on `S` and `S.neg` is `kernelPair l`, the discrete series kernels `typeKernel` of |
| 177 | the parameters `l` (at `false`) and `-l` (at `true`); the pair on `T` is `k'`. For every function |
| 178 | `Ψ` on matrices modulo `𝔪` there is a `Ψ'` such that the transposed theta lift `modTransposedLift` |
| 179 | from `T` to `S.neg` with `Φ'`, `Ψ'` is the adjoint of the theta lift `modLift` from `S` to `T` with |
| 180 | `Φ`, `Ψ`, once forms on `S` and on `S.neg` are identified by `formNegEquiv`. -/ |
| 181 | theorem Exchange.IsEdgeFamily.exists_inner_modLift_eq_inner_modTransposedLift |
| 182 | {l : NumberField.InfinitePlace E → N → ℤ} {a : I → ∀ (M : Type) [Fintype M], AutChar E} |
| 183 | {k' : Bool → GInf E s' → ℂ} {Φ Φ' : MvPolynomial (NumberField.InfinitePlace E × N' × N) ℂ} |
| 184 | (h_edge : IsEdgeFamily a (kernelPair l s) k' false Φ) |
| 185 | (h_neg_edge : IsEdgeFamily (fun j : I ↦ oppositeChar (a j)) (kernelPair l (-s)) k' true Φ') |
| 186 | (j : I) {𝔪 : Modulus E} (Ψ : Matrix N' N 𝔪.ResidueRing → ℂ) : |
| 187 | ∃ Ψ' : Matrix N' N 𝔪.ResidueRing → ℂ, ∀ (y : S.Form (typeKernel l s)) (x : T.Form (k' false)), |
| 188 | ⟪x, modLift S T (a j) Φ Ψ (typeKernel l s) (k' false) y⟫ = |
| 189 | ⟪modTransposedLift S.neg T (oppositeChar (a j)) Φ' Ψ' (k' false) (typeKernel l (-s)) x, |
| 190 | formNegEquiv S l y⟫ := by |
| 191 | -- Negating `S` conjugates the theta kernel up to a factor `c`, at the price of replacing `Ψ` by |
| 192 | -- `Ψ₀` and `Φ` by its conjugate; that polynomial is traded for `Φ'` and a factor `κ`. |
| 193 | let b : ∀ (M : Type) [Fintype M], AutChar E := oppositeChar (a j) |
| 194 | obtain ⟨c, -, h_neg⟩ := exists_conj_modKernel_eq_mul_modKernel_neg S T |
| 195 | obtain ⟨κ, hκ⟩ := h_neg_edge.petersson_lift_eq_mul_inner_modTransposedLift (Φ.map conj) |
| 196 | let Ψ₀ (x : Matrix N' N 𝔪.ResidueRing) : ℂ := conj (Ψ (𝔪.normNegOne⁻¹ • x)) |
| 197 | refine ⟨c • conj κ • Ψ₀, fun y x ↦ ?_⟩ |
| 198 | let y' : S.neg.Form (typeKernel l (-s)) := formNegEquiv S l y |
| 199 | -- `L` is the lift of the conjugate of `y'` from `S.neg`, with `Ψ₀` and the conjugate of `Φ` |
| 200 | let L : G E s' → ℂ := Space.lift (pairThetaKer S.neg T (b N) (b N')) |
| 201 | (modDatum S.neg T 𝔪 Ψ₀ (Fock.polyVector (realSigns E (homSigns (-s) s')) (Φ.map conj))) |
| 202 | (star y'.val) |
| 203 | have h_conj (g : G E s') : |
| 204 | conj ((modLift S T (a j) Φ Ψ (typeKernel l s) (k' false) y).val g) = c * L g := by |
| 205 | have h_kernel : (modLift S T (a j) Φ Ψ (typeKernel l s) (k' false) y).val g = |
| 206 | ∫ g' : G E s, modKernel S T (a j N) (a j N') 𝔪 Ψ Φ g' g * y.val g' ∂S.quotMeasure := |
| 207 | congrFun ((h_edge.isArrow_lift S T Ψ j).coe_formLift y) g |
| 208 | rw [h_kernel, conj_integral_mul (fun g' ↦ h_neg (a j N) (a j N') 𝔪 Ψ Φ g' g)] |
| 209 | simp [L, b, Ψ₀, y', lift_modDatum_apply, integral_neg_quotMeasure, formNegEquiv_apply_neg] |
| 210 | have h_trade : T.petersson x.val (star L) = |
| 211 | κ * ⟪modTransposedLift S.neg T b Φ' Ψ₀ (k' false) (typeKernel l (-s)) x, y'⟫ := |
| 212 | hκ j S.neg T 𝔪 Ψ₀ y' x |
| 213 | calc ⟪x, modLift S T (a j) Φ Ψ (typeKernel l s) (k' false) y⟫ |
| 214 | = conj c * T.petersson x.val (star L) := by |
| 215 | rw [← inner_conj_symm, ← conj_petersson, ← map_mul] |
| 216 | simp [inner_eq_petersson, petersson, h_conj, mul_assoc, integral_const_mul] |
| 217 | _ = ⟪(c * conj κ) • modTransposedLift S.neg T b Φ' Ψ₀ (k' false) (typeKernel l (-s)) x, |
| 218 | y'⟫ := by |
| 219 | rw [h_trade, inner_smul_left, map_mul, conj_conj, mul_assoc] |
| 220 | _ = _ := by simp [b, y', modTransposedLift, modDatum, Pi.smul_comp, smul_smul] |
| 221 | |
| 222 | namespace Data |
| 223 | |
| 224 | section Nodes |
| 225 | |
| 226 | variable {P : Parameters} (D : Data P) (z : Bool) (ϑ : D.MFoldTwist) (i n : ℕ) |
| 227 | |
| 228 | /-! ### The spaces and lifts of the triangle -/ |
| 229 | |
| 230 | /-- The space of forms on the hermitian space `D.gridSpace i z 0 n` at position `(i, n)` of the |
| 231 | triangle. Their type at infinity is `typeKernel`, the product over the infinite places of the |
| 232 | discrete series kernels, for `D.gridParam z i 0 n`, which is twice the discrete series parameter. -/ |
| 233 | abbrev TriangleForm : Type := |
| 234 | (D.gridSpace i z 0 n).Form (typeKernel (D.gridParam z i 0 n) (D.gridSigns z i 0 n)) |
| 235 | |
| 236 | /-- The action of the finite adelic unitary group by right translation on the forms at position |
| 237 | `(i, n)` of the triangle. -/ |
| 238 | abbrev triangleRep : Representation ℂ (Gf D.E (D.GridIndex z 0 n)) (D.TriangleForm z i n) := |
| 239 | formRep (D.gridSpace i z 0 n) (typeKernel (D.gridParam z i 0 n) (D.gridSigns z i 0 n)) |
| 240 | |
| 241 | /-- Finite data for an edge from a node in column `n` to a node in column `n'`. -/ |
| 242 | abbrev EdgeDatum (n' : ℕ) : Type := |
| 243 | Matrix (D.GridIndex z 0 n') (D.GridIndex z 0 n) (triangleModulus z ϑ).ResidueRing → ℂ |
| 244 | |
| 245 | /-- The theta lift from the node `(i, n)` to the node `(i, n + 1)` with an arbitrary finite datum |
| 246 | `Ψ`; `triangleLift` is the case of the point datum `pointDatum`. -/ |
| 247 | abbrev triangleDatumLift (Ψ : D.EdgeDatum z ϑ n (n + 1)) : |
| 248 | D.TriangleForm z i n →ₗ[ℂ] D.TriangleForm z i (n + 1) := |
| 249 | modLift (D.gridSpace i z 0 n) (D.gridSpace i z 0 (n + 1)) (gridChar ϑ (!z) (n + i)) |
| 250 | (D.gridHarmonic i false (!z) (n + i) z 0 n 0 (n + 1)) Ψ |
| 251 | (typeKernel (D.gridParam z i 0 n) (D.gridSigns z i 0 n)) |
| 252 | (typeKernel (D.gridParam z i 0 (n + 1)) (D.gridSigns z i 0 (n + 1))) |
| 253 | |
| 254 | /-- The theta lift from the forms at position `(i, n)` of the triangle to those at `(i, n + 1)`, |
| 255 | for the twist `ϑ`. It adds the block `n + i + 1`. Its character `gridChar ϑ (!z) (n + i)` is the |
| 256 | character `liftChar` of index `n + i + 1`, twisted by `ϑ ^ (n + i + 1)` if `z` is false, times a |
| 257 | power of `upsilonU1`. Its polynomial at infinity `gridHarmonic` is the joint harmonic for the |
| 258 | weights of this character and the parameters of the two nodes, not negated (flag `false`). Its |
| 259 | finite datum is the point datum `New.Exchange.pointDatum` modulo `New.Data.triangleModulus`. -/ |
| 260 | def triangleLift : D.TriangleForm z i n →ₗ[ℂ] D.TriangleForm z i (n + 1) := |
| 261 | D.triangleDatumLift z ϑ i n (pointDatum (triangleModulus z ϑ).ResidueRing) |
| 262 | |
| 263 | /-- For each `i`, the linear isometric isomorphism from forms at `(0, 0)` to forms at `(i, 0)`, |
| 264 | composed of `i` passages `New.formNegEquiv` to the opposite hermitian space. -/ |
| 265 | def triangleNegEquiv : ∀ i : ℕ, D.TriangleForm z 0 0 ≃ₗᵢ[ℂ] D.TriangleForm z i 0 |
| 266 | | 0 => LinearIsometryEquiv.refl ℂ (D.TriangleForm z 0 0) |
| 267 | -- each row is the opposite space of the row before it |
| 268 | | i + 1 => (triangleNegEquiv i).trans (formNegEquiv (D.gridSpace i z 0 0) (D.gridParam z i 0 0)) |
| 269 | |
| 270 | /-- The isometry to row `i + 1` is the one to row `i` followed by passage to the opposite space. -/ |
| 271 | lemma triangleNegEquiv_succ_apply (y : D.TriangleForm z 0 0) : |
| 272 | D.triangleNegEquiv z (i + 1) y = |
| 273 | formNegEquiv (D.gridSpace i z 0 0) (D.gridParam z i 0 0) (D.triangleNegEquiv z i y) := |
| 274 | rfl |
| 275 | |
| 276 | /-- The level at the base corner of the triangle: the level `D.chosenLevel` on Y₀ if `z` is false; |
| 277 | if `z` is true, the principal level of `D.gridLevelGen`, the power `ϖ ^ D.natB` of the generator `ϖ` |
| 278 | of the product of the chosen places. -/ |
| 279 | abbrev triangleBaseLevel : ∀ z : Bool, Subgroup (Gf D.E (D.GridIndex z 0 0)) |
| 280 | | false => D.chosenLevel |
| 281 | | true => principalLevel (D.GridIndex true 0 0) D.gridLevelGen |
| 282 | |
| 283 | /-- The space of forms at the base corner of the triangle that are fixed by the level |
| 284 | `New.Data.triangleBaseLevel`. -/ |
| 285 | def triangleBase : Submodule ℂ (D.TriangleForm z 0 0) := |
| 286 | levelSpace (D.triangleRep z 0 0) (D.triangleBaseLevel z) |
| 287 | |
| 288 | lemma mem_triangleBase_iff (v : D.TriangleForm z 0 0) : |
| 289 | v ∈ D.triangleBase z ↔ ∀ u ∈ D.triangleBaseLevel z, D.triangleRep z 0 0 u v = v := by |
| 290 | change (∀ u : D.triangleBaseLevel z, D.triangleRep z 0 0 u.val v = (1 : ℂ) • v) ↔ _ |
| 291 | simp |
| 292 | |
| 293 | /-- The isometric embedding of `New.Data.triangleBase` in the forms at `(i, 0)`, through |
| 294 | `New.Data.triangleNegEquiv`. -/ |
| 295 | abbrev triangleEmbedding : D.triangleBase z →ₗᵢ[ℂ] D.TriangleForm z i 0 := |
| 296 | (D.triangleNegEquiv z i).toLinearIsometry.comp (D.triangleBase z).subtypeₗᵢ |
| 297 | |
| 298 | /-- The isometries `New.Data.triangleNegEquiv` commute with right translation by the finite adelic |
| 299 | group. -/ |
| 300 | theorem triangleNegEquiv_triangleRep (k : Gf D.E (D.GridIndex z 0 0)) (y : D.TriangleForm z 0 0) |
| 301 | (i : ℕ) : |
| 302 | D.triangleNegEquiv z i (D.triangleRep z 0 0 k y) = D.triangleRep z i 0 k |
| 303 | (D.triangleNegEquiv z i y) := by |
| 304 | induction i with |
| 305 | | zero => rfl |
| 306 | | succ i ih => |
| 307 | rw [triangleNegEquiv_succ_apply, triangleNegEquiv_succ_apply, ih] |
| 308 | exact formNegEquiv_formRep (D.gridSpace i z 0 0) (D.gridParam z i 0 0) k |
| 309 | (D.triangleNegEquiv z i y) |
| 310 | |
| 311 | /-! ### The first lift -/ |
| 312 | |
| 313 | lemma triangleBaseLevel_le_stdLevel : D.triangleBaseLevel z ≤ stdLevel D.E (D.GridIndex z 0 0) := by |
| 314 | cases z |
| 315 | · exact levelOf_le_stdLevel |
| 316 | · exact principalLevel_le_stdLevel |
| 317 | |
| 318 | /-- For a form `y` of `New.Data.triangleBase`, its image `D.triangleNegEquiv z i y` in row `i` is |
| 319 | fixed by `D.triangleRep z i 0 u` for every `u` in `New.Data.triangleBaseLevel`. -/ |
| 320 | lemma triangleRep_triangleNegEquiv_of_mem_triangleBaseLevel (y : D.triangleBase z) |
| 321 | {u : Gf D.E (D.GridIndex z 0 0)} (hu : u ∈ D.triangleBaseLevel z) : |
| 322 | D.triangleRep z i 0 u (D.triangleNegEquiv z i y) = D.triangleNegEquiv z i y := by |
| 323 | rw [← triangleNegEquiv_triangleRep, (D.mem_triangleBase_iff z y).mp y.prop u hu] |
| 324 | |
| 325 | /-- The principal level of the modulus of the triangle is contained in the base level. -/ |
| 326 | lemma levelOfSubgroup_bot_le_triangleBaseLevel : |
| 327 | (triangleModulus z ϑ).levelOfSubgroup ⊥ ≤ D.triangleBaseLevel z := by |
| 328 | rintro _ ⟨u, hu_one : (triangleModulus z ϑ).reductionGL u = 1, rfl⟩ |
| 329 | cases z |
| 330 | · exact D.levelY_le_chosenLevel ϑ 0 ⟨u, (LevelPlaces.ker_reductionGL_eq _).le hu_one, rfl⟩ |
| 331 | · exact (mem_principalLevel_iff gridModulus_one_ideal _).mpr hu_one |
| 332 | |
| 333 | /-- The copy in row `i` of a form of `New.Data.triangleBase` is fixed by the principal level of the |
| 334 | modulus `New.Data.triangleModulus z ϑ`. -/ |
| 335 | lemma hasLevel_triangleNegEquiv (y : D.triangleBase z) : |
| 336 | HasLevel (D.triangleNegEquiv z i y).val ((triangleModulus z ϑ).levelOfSubgroup ⊥) := |
| 337 | fun _ hu ↦ congrFun <| congrArg Subtype.val <| |
| 338 | D.triangleRep_triangleNegEquiv_of_mem_triangleBaseLevel z i y |
| 339 | (D.levelOfSubgroup_bot_le_triangleBaseLevel z ϑ hu) |
| 340 | |
| 341 | end Nodes |
| 342 | |
| 343 | /-- Let `i < D.m`, the number of lifts of the data `D`, and let `triangleLift z ϑ i 0` be the theta |
| 344 | lift, for the twist `ϑ`, from forms at the node `(i, 0)` of the triangle `z` to forms at `(i, 1)`. |
| 345 | For an integral point `u` (`stdLevel`) of the finite adelic unitary group at `(i, 0)` there is a |
| 346 | finite adelic point `g` at `(i, 1)` such that the lift intertwines the right translations |
| 347 | `triangleRep` by `u` and `g` up to a scalar `c` of absolute value `1`. -/ |
| 348 | lemma exists_triangleRep_triangleLift_eq_smul {P : Parameters} (D : Data P) (z : Bool) |
| 349 | (ϑ : D.MFoldTwist) (i : ℕ) (hi : i < D.m) (u : stdLevel D.E (D.GridIndex z 0 0)) : |
| 350 | ∃ (g : Gf D.E (D.GridIndex z 0 (0 + 1))) (c : ℂ), ‖c‖ = 1 ∧ ∀ f : D.TriangleForm z i 0, |
| 351 | D.triangleRep z i (0 + 1) g (D.triangleLift z ϑ i 0 f) = |
| 352 | c • D.triangleLift z ϑ i 0 (D.triangleRep z i 0 u.val f) := by |
| 353 | -- Choose `g` integral with reduction `u ⊕ 1`. The pair `(u, g)` fixes the inclusion matrix `x₀`, |
| 354 | -- the support of `pointDatum`, so it acts on the datum through the character `pairChar`. |
| 355 | let 𝔪 : Modulus D.E := triangleModulus z ϑ |
| 356 | let B : Type := Fin (D.t - z.toNat) |
| 357 | obtain ⟨g, hg⟩ : ∃ g : stdLevel D.E (D.GridIndex z 0 0 ⊕ B), |
| 358 | 𝔪.reductionGL g = blockGL (𝔪.reductionGL u, (1 : GL B 𝔪.ResidueRing)) := |
| 359 | reductionGL_surjective _ |
| 360 | let x₀ : Matrix (D.GridIndex z 0 0 ⊕ B) (D.GridIndex z 0 0) 𝔪.ResidueRing := inclMatrix _ .inl |
| 361 | have h_fix : x₀ = (𝔪.reductionGL g)⁻¹.val * x₀ * (𝔪.reductionGL u).val := by |
| 362 | rw [hg, ← map_inv] |
| 363 | simp [x₀, inclMatrix_inl, fromBlocks_mul_fromRows] |
| 364 | -- the data of the lift form an edge, because the parameters at its two ends correspond |
| 365 | have h_edge := isEdgeFamily_of_paramsCorrespond (fun ϑ : D.MFoldTwist ↦ D.gridChar ϑ (!z) (0 + i)) |
| 366 | false (fun ϑ ↦ gridChar_hasWeight ϑ (!z) (0 + i) _) |
| 367 | (fun ϑ ↦ gridChar_hasWeight ϑ (!z) (0 + i) _) |
| 368 | (D.paramsCorrespond_grid_succ_right z i 0 0 D.m.zero_le (by omega) (.inr rfl)) |
| 369 | exact ⟨g.val, pairChar _ _ _, Circle.norm_coe _, (h_edge.isArrow_lift _ _ (pointDatum _) |
| 370 | ϑ).formRep_formLift_of_eq_smul (pairWeil_modDatum_single u g h_fix)⟩ |
| 371 | |
| 372 | /-- Let `F` be the finite datum of the theta lift from the hermitian space `gridSpace` at the node |
| 373 | `(i, 0)` of the triangle `z` to that at `(i, 1)`: the indicator function `pointDatum` of the |
| 374 | inclusion matrix modulo `𝔪 = triangleModulus z ϑ`, and the vacuum off `𝔪` (`vacuumDatum`). For the |
| 375 | character `gridChar` of the lift on the target, `F` is sharp for the principal level |
| 376 | `J = 𝔪.levelOfSubgroup ⊥`: at the places of `𝔪` its matrix coefficient is `⟨F, F⟩` times the |
| 377 | indicator function of `J`. Its mass `⟨F, F⟩ / [K₀ : J]`, with `K₀ = stdLevel` the integral points, |
| 378 | is the inverse of the number of matrices of this size modulo `𝔪`, divided by `triangleGLCard z ϑ 0`, |
| 379 | the order of the general linear group of the source modulo `𝔪`. -/ |
| 380 | lemma isSharp_pointDatum {P : Parameters} (D : Data P) (z : Bool) (ϑ : D.MFoldTwist) (i : ℕ) : |
| 381 | IsSharp (D.gridChar ϑ (!z) (0 + i) (D.GridIndex z 0 (0 + 1))) |
| 382 | (triangleModulus z ϑ).places.conjClosure |
| 383 | (vacuumDatum (D.gridSpace i z 0 0) (D.gridSpace i z 0 (0 + 1)) (triangleModulus z ϑ) |
| 384 | (pointDatum (triangleModulus z ϑ).ResidueRing)).val |
| 385 | ((triangleModulus z ϑ).levelOfSubgroup ⊥) |
| 386 | (1 / card (D.GridIndex z 0 (0 + 1) × D.GridIndex z 0 0 → (triangleModulus z ϑ).ResidueRing) / |
| 387 | triangleGLCard z ϑ 0) := by |
| 388 | let 𝔪 : Modulus D.E := triangleModulus z ϑ |
| 389 | let M : Type := Matrix (D.GridIndex z 0 0 ⊕ Fin (D.t - z.toNat)) (D.GridIndex z 0 0) 𝔪.ResidueRing |
| 390 | let x₀ : M := inclMatrix _ .inl |
| 391 | let F : M → ℂ := Pi.single x₀ 1 |
| 392 | -- on the support of the datum, the transpose of the inclusion is a left inverse |
| 393 | have h_left_inv (x : M) (hx : F x ≠ 0) : x₀ᵀ * x = 1 := by |
| 394 | obtain rfl : x = x₀ := by simpa [F, Pi.single_apply] using hx |
| 395 | exact inclMatrix_transpose_mul_self .inl |
| 396 | have h_norm : star F ⬝ᵥ F = 1 := by simp [F] |
| 397 | rw [← h_norm] |
| 398 | refine isSharp_vacuumDatum_of_mul_eq_one (D.gridSpace i z 0 (0 + 1)) _ |
| 399 | (.inr nonempty_modulus_places) x₀ᵀ |
| 400 | h_left_inv (fun w hw ↦ ?_) (h_norm.trans_ne one_ne_zero) |
| 401 | -- the character has trivial tame part off the modulus |
| 402 | cases z <;> exact (descentPair ..).tame_eq_one w fun hw' ↦ hw (places_levelModulus.ge hw') |
| 403 | |
| 404 | /-- The first lift of row `i`, read on forms at the base corner: the copy of `y` at `(i, 0)` |
| 405 | (`New.Data.triangleNegEquiv`) is lifted to `(i, 1)`. -/ |
| 406 | abbrev triangleFirstLift {P : Parameters} (D : Data P) (z : Bool) (ϑ : D.MFoldTwist) (i : ℕ) |
| 407 | (y : D.TriangleForm z 0 0) : D.TriangleForm z i (0 + 1) := |
| 408 | D.triangleLift z ϑ i 0 (D.triangleNegEquiv z i y) |
| 409 | |
| 410 | /-- The cosets, in the finite adelic group at the base corner, of the points that are integral off |
| 411 | the places of `New.Data.triangleModulus z ϑ` and their conjugates. -/ |
| 412 | abbrev TriangleCoset {P : Parameters} (D : Data P) (z : Bool) (ϑ : D.MFoldTwist) : Type := |
| 413 | Gf D.E (D.GridIndex z 0 0) ⧸ |
| 414 | localLevel (D.GridIndex z 0 0) (triangleModulus z ϑ).places.conjClosureᶜ |
| 415 | |
| 416 | /-- The term at the coset `γ` of the series for the inner product of two first lifts of row `i`. |
| 417 | It is `New.SiegelWeil.cosetTerm M b`, the number `⟪x, g y⟫` times `vacuumCoeff M b g` at the |
| 418 | representative `g` of `γ`, for the rank `M` and the character `b` of the target of the lift, divided |
| 419 | by the number of maps from `GridIndex z 0 1 × GridIndex z 0 0` to the residue ring of the |
| 420 | modulus. -/ |
| 421 | abbrev triangleRallisTerm {P : Parameters} (D : Data P) (z : Bool) (ϑ : D.MFoldTwist) (i : ℕ) |
| 422 | (x y : D.TriangleForm z 0 0) (γ : D.TriangleCoset z ϑ) : ℂ := |
| 423 | cosetTerm (card (D.GridIndex z 0 1)) (D.gridChar ϑ (!z) i (D.GridIndex z 0 1)) |
| 424 | (triangleModulus z ϑ).places.conjClosureᶜ x y γ / |
| 425 | card (D.GridIndex z 0 1 × D.GridIndex z 0 0 → (triangleModulus z ϑ).ResidueRing) |
| 426 | |
| 427 | /-- For either grid `z`, the index set `D.GridIndex z 0 1` of the node `(0, 1)` has more than twice |
| 428 | as many elements as the index set of the node `(0, 0)`, so Rallis' formula applies to the first lift |
| 429 | of each row. -/ |
| 430 | lemma two_mul_card_gridIndex_zero_lt {P : Parameters} (D : Data P) (z : Bool) : |
| 431 | 2 * card (D.GridIndex z 0 0) < card (D.GridIndex z 0 1) := by |
| 432 | rw [card_gridIndex, card_gridIndex] |
| 433 | grind [Bool.toNat_le] |
| 434 | |
| 435 | /-- Let `i < D.m`, the number of lifts of the data `D`. Let `a = triangleFirstLift z ϑ i` copy a |
| 436 | form from the corner `(0, 0)` of the triangle `z` to `(i, 0)` and lift it to `(i, 1)`, and let `y` |
| 437 | lie in `triangleBase`, the forms at the corner fixed by `triangleBaseLevel`. A form `v` at the |
| 438 | corner with `⟪v, x⟫ = ⟪a y, a x⟫` for all `x` lies in `triangleBase`. -/ |
| 439 | lemma mem_triangleBase_of_inner_eq_inner_triangleFirstLift {P : Parameters} (D : Data P) (z : Bool) |
| 440 | (ϑ : D.MFoldTwist) (i : ℕ) (hi : i < D.m) (y : D.triangleBase z) {v : D.TriangleForm z 0 0} |
| 441 | (hv : ∀ x : D.TriangleForm z 0 0, ⟪v, x⟫ = ⟪D.triangleFirstLift z ϑ i y, |
| 442 | D.triangleFirstLift z ϑ i x⟫) : |
| 443 | v ∈ D.triangleBase z := by |
| 444 | -- Test `u v = v` against all translates `u x`, and move `u` across the lift. |
| 445 | refine (D.mem_triangleBase_iff z v).mpr fun u hu ↦ ?_ |
| 446 | obtain ⟨g, c, hc, h_law⟩ := |
| 447 | D.exists_triangleRep_triangleLift_eq_smul z ϑ i hi ⟨u, D.triangleBaseLevel_le_stdLevel z hu⟩ |
| 448 | let a : D.TriangleForm z 0 0 → D.TriangleForm z i (0 + 1) := D.triangleFirstLift z ϑ i |
| 449 | let π : Representation ℂ (Gf D.E (D.GridIndex z 0 0)) (D.TriangleForm z 0 0) := |
| 450 | D.triangleRep z 0 0 |
| 451 | have h_move (x : D.TriangleForm z 0 0) : D.triangleRep z i (0 + 1) g (a x) = c • a (π u x) := by |
| 452 | rw [h_law, ← triangleNegEquiv_triangleRep] |
| 453 | have h_fixed : π u y = y := (D.mem_triangleBase_iff z y).mp y.prop u hu |
| 454 | -- `π u` is surjective, so it is enough to test against the translates `π u x` |
| 455 | refine ext_inner_right ℂ ((π.apply_bijective u).surjective.forall.mpr fun x ↦ ?_) |
| 456 | calc ⟪π u v, π u x⟫ = ⟪a y, a x⟫ := by rw [inner_formRep, hv] |
| 457 | _ = ⟪c • a (π u y), c • a (π u x)⟫ := by rw [← h_move, ← h_move, inner_formRep] |
| 458 | _ = ⟪a y, a (π u x)⟫ := by |
| 459 | simp [h_fixed, mul_comm _ (conj c), ← mul_assoc, conj_mul', hc] |
| 460 | _ = ⟪v, π u x⟫ := (hv _).symm |
| 461 | |
| 462 | /-- The inner product formula for `a = triangleFirstLift z ϑ i`, which copies a form from the corner |
| 463 | `(0, 0)` of the triangle `z` to `(i, 0)` and lifts it to `(i, 1)`. Here `i < D.m`, the number of |
| 464 | lifts of the data `D`. There is a constant `C` such that for every twist `ϑ` and every form `y` at |
| 465 | the corner fixed by the base level (`triangleBase`), the lift vanishes only if `y = 0`. For each |
| 466 | form `x` at the corner, the series of the terms `C * triangleRallisTerm` converges to |
| 467 | `triangleGLCard z ϑ 0 * ⟪a x, a y⟫`; the first factor is the order of the general linear group of |
| 468 | the corner modulo `𝔪 = triangleModulus z ϑ`. -/ |
| 469 | lemma exists_hasSum_triangleRallisTerm {P : Parameters} (D : Data P) (z : Bool) (i : ℕ) |
| 470 | (hi : i < D.m) : |
| 471 | ∃ C : ℂ, ∀ (ϑ : D.MFoldTwist) (y : D.triangleBase z), |
| 472 | (D.triangleFirstLift z ϑ i y = 0 → y = 0) ∧ ∀ x : D.TriangleForm z 0 0, |
| 473 | HasSum (fun γ : D.TriangleCoset z ϑ ↦ C * D.triangleRallisTerm z ϑ i x y γ) |
| 474 | (triangleGLCard z ϑ 0 * ⟪D.triangleFirstLift z ϑ i x, D.triangleFirstLift z ϑ i y⟫) := by |
| 475 | -- Apply Rallis' inner product formula to the first edge of row `i` with the point datum |
| 476 | -- `pointDatum`, which is sharp for a level that fixes the copy of `y`. |
| 477 | obtain ⟨C, -, h_rallis⟩ := |
| 478 | rallis_inner_product_cosetTerm (S := D.gridSpace i z 0 0) (T := D.gridSpace i z 0 (0 + 1)) |
| 479 | (D.paramsCorrespond_grid_succ_right z i 0 0 D.m.zero_le (by omega) |
| 480 | (.inr rfl)).isEdge_jointHarmonic |
| 481 | (D.two_mul_card_gridIndex_zero_lt z) |
| 482 | refine ⟨C, fun ϑ y ↦ ?_⟩ |
| 483 | obtain ⟨h_inj, h_series⟩ := |
| 484 | h_rallis (D.gridChar ϑ (!z) (0 + i) (D.GridIndex z 0 0)) _ (D.isSharp_pointDatum z ϑ i) _ |
| 485 | (D.hasLevel_triangleNegEquiv z ϑ i y) |
| 486 | refine ⟨fun hy ↦ ?_, fun x ↦ ?_⟩ |
| 487 | · have h_copy : D.triangleNegEquiv z i y = 0 := h_inj hy |
| 488 | simpa using h_copy |
| 489 | · let term (γ : D.TriangleCoset z ϑ) : ℂ := |
| 490 | cosetTerm (card (D.GridIndex z 0 (0 + 1))) |
| 491 | (D.gridChar ϑ (!z) (0 + i) (D.GridIndex z 0 (0 + 1))) |
| 492 | (triangleModulus z ϑ).places.conjClosureᶜ (D.triangleNegEquiv z i x) |
| 493 | (D.triangleNegEquiv z i y) γ |
| 494 | have h_sum : HasSum |
| 495 | (fun γ : D.TriangleCoset z ϑ ↦ C * (1 / card (D.GridIndex z 0 (0 + 1) × D.GridIndex z 0 0 → |
| 496 | (triangleModulus z ϑ).ResidueRing) / triangleGLCard z ϑ 0) * term γ) |
| 497 | ⟪D.triangleFirstLift z ϑ i x, D.triangleFirstLift z ϑ i y⟫ := |
| 498 | h_series _ |
| 499 | -- multiply by `triangleGLCard z ϑ 0`, which cancels against the mass of the datum |
| 500 | refine (h_sum.mul_left (triangleGLCard z ϑ 0 : ℂ)).congr_fun fun γ ↦ ?_ |
| 501 | simp [term, cosetTerm, ← triangleNegEquiv_triangleRep, field, -Bool.cond_eq_ite] |
| 502 | |
| 503 | /-- Injectivity and inner product formula for `a = triangleFirstLift z ϑ i`, which copies a form |
| 504 | from the corner `(0, 0)` of the triangle `z` to `(i, 0)` and lifts it to `(i, 1)`. Here `i < D.m`, |
| 505 | the number of lifts of the data `D`. There is a constant `C` such that for every twist `ϑ` and every |
| 506 | form `y` at the corner fixed by `triangleBaseLevel` (`triangleBase`) two statements hold. (a) If `v` |
| 507 | satisfies `⟪v, x⟫ = ⟪a y, a x⟫` for all `x`, then `v` lies in `triangleBase`, and `v = 0` implies |
| 508 | `y = 0`. (b) For every form `x` at the corner, the series of the terms `C * triangleRallisTerm`, |
| 509 | multiples of `⟪x, g y⟫`, over the cosets `TriangleCoset` of the finite points `g` modulo those |
| 510 | integral off `𝔪 = triangleModulus z ϑ` and its conjugate, converges to |
| 511 | `triangleGLCard z ϑ 0 * ⟪a x, a y⟫`; the first factor is the order of the general linear group of |
| 512 | the corner modulo `𝔪`. -/ |
| 513 | theorem exists_hasSum_inner_triangleFirstLift {P : Parameters} (D : Data P) (z : Bool) (i : ℕ) |
| 514 | (hi : i < D.m) : |
| 515 | ∃ C : ℂ, ∀ (ϑ : D.MFoldTwist) (y : D.triangleBase z), |
| 516 | (∀ v : D.TriangleForm z 0 0, |
| 517 | (∀ x : D.TriangleForm z 0 0, ⟪v, x⟫ = ⟪D.triangleFirstLift z ϑ i y, |
| 518 | D.triangleFirstLift z ϑ i x⟫) → |
| 519 | v ∈ D.triangleBase z ∧ (v = 0 → y = 0)) ∧ |
| 520 | ∀ x : D.TriangleForm z 0 0, |
| 521 | HasSum (fun γ : D.TriangleCoset z ϑ ↦ C * D.triangleRallisTerm z ϑ i x y γ) |
| 522 | (triangleGLCard z ϑ 0 * ⟪D.triangleFirstLift z ϑ i x, D.triangleFirstLift z ϑ i y⟫) := by |
| 523 | obtain ⟨C, h_rallis⟩ := D.exists_hasSum_triangleRallisTerm z i hi |
| 524 | refine ⟨C, fun ϑ y ↦ ⟨fun v hv ↦ ⟨?_, fun hv_zero ↦ ?_⟩, (h_rallis ϑ y).2⟩⟩ |
| 525 | · exact D.mem_triangleBase_of_inner_eq_inner_triangleFirstLift z ϑ i hi y hv |
| 526 | · -- if `v = 0` then the lift of `y` has norm zero |
| 527 | apply (h_rallis ϑ y).1 |
| 528 | rw [← inner_self_eq_zero (𝕜 := ℂ), ← hv, hv_zero, inner_zero_left] |
| 529 | |
| 530 | omit [CMType E] [WeilData E] [Fintype N] [DecidableEq N] [Fintype N'] [DecidableEq N'] in |
| 531 | /-- Every polynomial `P` is the signed transpose `flipPoly s t` of the polynomial obtained from some |
| 532 | `Q` by conjugating the coefficients. -/ |
| 533 | lemma exists_flipPoly_map_conj_eq (s : N → ℤˣ) (t : N' → ℤˣ) |
| 534 | (P : MvPolynomial (NumberField.InfinitePlace E × N × N') ℂ) : |
| 535 | ∃ Q : MvPolynomial (NumberField.InfinitePlace E × N' × N) ℂ, |
| 536 | flipPoly s t (MvPolynomial.map conj Q) = P := by |
| 537 | -- The same map with the two sign vectors exchanged undoes it, because the signs square to `1`. |
| 538 | refine ⟨flipPoly t s (P.map conj), ?_⟩ |
| 539 | induction P using MvPolynomial.induction_on with |
| 540 | | C c => simp |
| 541 | | add p q hp hq => simp [hp, hq] |
| 542 | | mul_X p v hp => |
| 543 | have h_var : flipPoly s t (.map conj (flipPoly t s (.map conj (.X v)))) = .X v := by |
| 544 | -- `zsmul_eq_mul` is excluded so that the two signs meet in one scalar |
| 545 | simp [flipPoly, Int.cast_smul_eq_zsmul, pairSign, -zsmul_eq_mul, smul_smul, ← Units.val_mul, |
| 546 | mul_comm (t _), MvPolynomial.aeval_X] |
| 547 | simp only [map_mul, hp, h_var] |
| 548 | |
| 549 | /-! ### Left and reversed pairs, descents and ascents -/ |
| 550 | |
| 551 | variable {P : Parameters} (D : Data P) (z : Bool) (ϑ : D.MFoldTwist) (i n : ℕ) |
| 552 | |
| 553 | /-- The kernels at infinity of the node `(i, n)` of the triangle: that of the parameter `gridParam` |
| 554 | for `b = false`, and that of its negative for `b = true`. -/ |
| 555 | abbrev triangleKernel (b : Bool) : GInf D.E (D.gridSigns z i 0 n) → ℂ := |
| 556 | kernelPair (D.gridParam z i 0 n) (D.gridSigns z i 0 n) b |
| 557 | |
| 558 | /-- The character of the left pairs that add the block `i + 1`, on a space with index type `M`: the |
| 559 | inverse of the character `gridChar ϑ (!z) (0 + i)` of the first lift `triangleLift z ϑ i 0` of row |
| 560 | `i`, times `upsilonU1` (the splitting character on the norm-one ideles) to the rank of the space. -/ |
| 561 | abbrev leftPairChar (M : Type) [Fintype M] : AutChar D.E := |
| 562 | (D.gridChar ϑ (!z) (0 + i) M)⁻¹ * upsilonU1 ^ card M |
| 563 | |
| 564 | /-- Polynomial data at infinity for an edge from a node in column `n` to a node in column `n'`. -/ |
| 565 | abbrev EdgePoly (n' : ℕ) : Type := |
| 566 | MvPolynomial (NumberField.InfinitePlace D.E × D.GridIndex z 0 n' × D.GridIndex z 0 n) ℂ |
| 567 | |
| 568 | /-- The polynomial `Φ` makes an edge (`IsEdgeFamily`) along the left pair, from the node |
| 569 | `(i + 1, n)` to the node `(i, n + 1)`, with the characters `leftPairChar` of row `i`. -/ |
| 570 | abbrev IsLeftPair (Φ : D.EdgePoly z n (n + 1)) : Prop := |
| 571 | IsEdgeFamily (fun ϑ : D.MFoldTwist ↦ D.leftPairChar z ϑ i) (D.triangleKernel z (i + 1) n) |
| 572 | (D.triangleKernel z i (n + 1)) true Φ |
| 573 | |
| 574 | /-- The polynomial `Φ` makes an edge along the reversed pair, from the node `(i, n + 1)` to the |
| 575 | node `(i + 1, n)`, each space with its character in `IsLeftPair`. -/ |
| 576 | abbrev IsReversedPair (Φ : D.EdgePoly z (n + 1) n) : Prop := |
| 577 | IsEdgeFamily (fun ϑ : D.MFoldTwist ↦ D.leftPairChar z ϑ i) (D.triangleKernel z i (n + 1)) |
| 578 | (D.triangleKernel z (i + 1) n) true Φ |
| 579 | |
| 580 | /-- The transposed lift along the left pair, from forms at the node `(i, n + 1)` to forms at the |
| 581 | node `(i + 1, n)`, with polynomial `Φ` and finite datum `Ψ`. -/ |
| 582 | abbrev triangleTransposedLift (Φ : D.EdgePoly z n (n + 1)) (Ψ : D.EdgeDatum z ϑ n (n + 1)) : |
| 583 | D.TriangleForm z i (n + 1) →ₗ[ℂ] D.TriangleForm z (i + 1) n := |
| 584 | modTransposedLift (D.gridSpace (i + 1) z 0 n) (D.gridSpace i z 0 (n + 1)) (D.leftPairChar z ϑ i) Φ |
| 585 | Ψ |
| 586 | (typeKernel (D.gridParam z i 0 (n + 1)) (D.gridSigns z i 0 (n + 1))) |
| 587 | (typeKernel (D.gridParam z (i + 1) 0 n) (D.gridSigns z (i + 1) 0 n)) |
| 588 | |
| 589 | /-- The transposed lift along the reversed pair, from forms at the node `(i + 1, n)` to forms at the |
| 590 | node `(i, n + 1)`, with polynomial `Φ` and finite datum `Ψ`. -/ |
| 591 | abbrev triangleReversedLift (Φ : D.EdgePoly z (n + 1) n) (Ψ : D.EdgeDatum z ϑ (n + 1) n) : |
| 592 | D.TriangleForm z (i + 1) n →ₗ[ℂ] D.TriangleForm z i (n + 1) := |
| 593 | modTransposedLift (D.gridSpace i z 0 (n + 1)) (D.gridSpace (i + 1) z 0 n) (D.leftPairChar z ϑ i) Φ |
| 594 | Ψ |
| 595 | (typeKernel (D.gridParam z (i + 1) 0 n) (D.gridSigns z (i + 1) 0 n)) |
| 596 | (typeKernel (D.gridParam z i 0 (n + 1)) (D.gridSigns z i 0 (n + 1))) |
| 597 | |
| 598 | lemma triangleLift_eq_triangleDatumLift : |
| 599 | D.triangleLift z ϑ i n = D.triangleDatumLift z ϑ i n |
| 600 | (pointDatum (triangleModulus z ϑ).ResidueRing) := |
| 601 | rfl |
| 602 | |
| 603 | variable {i n} |
| 604 | |
| 605 | /-- The transposed lift `triangleTransposedLift` with finite datum `Ψ` equals the sum, over matrices |
| 606 | `η` modulo `triangleModulus z ϑ`, of `Ψ η` times the lift with the datum `Pi.single η 1`. -/ |
| 607 | lemma triangleTransposedLift_eq_sum (Φ : D.EdgePoly z n (n + 1)) (Ψ : D.EdgeDatum z ϑ n (n + 1)) |
| 608 | (y : D.TriangleForm z i (n + 1)) : |
| 609 | D.triangleTransposedLift z ϑ i n Φ Ψ y = |
| 610 | ∑ η : Matrix (D.GridIndex z 0 (n + 1)) (D.GridIndex z 0 n) (triangleModulus z ϑ).ResidueRing, |
| 611 | Ψ η • D.triangleTransposedLift z ϑ i n Φ (Pi.single η 1) y := by |
| 612 | apply modTransposedLift_eq_sum |
| 613 | |
| 614 | /-- The reversed lift `triangleReversedLift` with finite datum `Ψ` equals the sum, over matrices `η` |
| 615 | modulo `triangleModulus z ϑ`, of `Ψ η` times the lift with the datum `Pi.single η 1`. -/ |
| 616 | lemma triangleReversedLift_eq_sum (Φ : D.EdgePoly z (n + 1) n) (Ψ : D.EdgeDatum z ϑ (n + 1) n) |
| 617 | (y : D.TriangleForm z (i + 1) n) : |
| 618 | D.triangleReversedLift z ϑ i n Φ Ψ y = |
| 619 | ∑ η : Matrix (D.GridIndex z 0 n) (D.GridIndex z 0 (n + 1)) (triangleModulus z ϑ).ResidueRing, |
| 620 | Ψ η • D.triangleReversedLift z ϑ i n Φ (Pi.single η 1) y := by |
| 621 | apply modTransposedLift_eq_sum |
| 622 | |
| 623 | /-- The Fourier transform of the complex conjugate of a finite datum, a datum for the edge read |
| 624 | backwards. -/ |
| 625 | abbrev fourierDatum {n' : ℕ} (Ψ : D.EdgeDatum z ϑ n n') : D.EdgeDatum z ϑ n' n := |
| 626 | matrixFourier (triangleModulus z ϑ).primAddChar (star Ψ) |
| 627 | |
| 628 | /-- For `i + n < D.m`, the kernels, characters and polynomial of the lift from the node `(i, n)` to |
| 629 | the node `(i, n + 1)` form an edge (`IsEdgeFamily`). -/ |
| 630 | lemma isEdgeFamily_triangleKernel (h_lt : i + n < D.m) : |
| 631 | IsEdgeFamily (fun ϑ : D.MFoldTwist ↦ D.gridChar ϑ (!z) (n + i)) (D.triangleKernel z i n) |
| 632 | (D.triangleKernel z i (n + 1)) false (D.gridHarmonic i false (!z) (n + i) z 0 n 0 (n + 1)) := |
| 633 | isEdgeFamily_of_paramsCorrespond _ false (fun ϑ ↦ gridChar_hasWeight ϑ (!z) (n + i) _) |
| 634 | (fun ϑ ↦ gridChar_hasWeight ϑ (!z) (n + i) _) |
| 635 | (D.paramsCorrespond_grid_succ_right z i 0 n D.m.zero_le (by omega) (.inr rfl)) |
| 636 | |
| 637 | lemma exists_isLeftPair (h_lt : i + n < D.m) : |
| 638 | ∃ Φ : D.EdgePoly z n (n + 1), D.IsLeftPair z i n Φ := by |
| 639 | refine ⟨_, isEdgeFamily_of_paramsCorrespond _ true (fun _ ↦ inferInstance) |
| 640 | (fun _ ↦ inferInstance) ?_⟩ |
| 641 | rw [zero_add] |
| 642 | exact D.paramsCorrespond_neg_gridParam_insert_first h_lt |
| 643 | |
| 644 | lemma exists_isReversedPair (h_lt : i + n < D.m) : |
| 645 | ∃ Φ : D.EdgePoly z (n + 1) n, D.IsReversedPair z i n Φ := by |
| 646 | refine ⟨_, isEdgeFamily_of_paramsCorrespond _ true (fun _ ↦ inferInstance) |
| 647 | (fun _ ↦ inferInstance) ?_⟩ |
| 648 | rw [zero_add] |
| 649 | exact (D.paramsCorrespond_neg_gridParam_insert_first h_lt).symm |
| 650 | |
| 651 | end Data |
| 652 | |
| 653 | end New |
| 654 | |
| 655 | end TriangleArrows |
| 656 | |
| 657 | end |