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 | import TauCeti.Topology.Instances.Matrix |
| 4 | public import Lib.Adelic.Adeles.LocalFactors |
| 5 | public import Lib.SiegelWeil.SingularForms.UnimodularCoefficients |
| 6 | public import Lib.Weil.MixedModel.Slices |
| 7 | public import Lib.General.LinearAlgebra.PartnerAlgebra |
| 8 | import Lib.Adelic.Witt.WittTheorem |
| 9 | import Lib.ClassField.HeckeCharacter.TameModulus |
| 10 | |
| 11 | /-! |
| 12 | # Standard partners, shear invariance, Gauss sums along lines and coefficients of lifts |
| 13 | |
| 14 | Let `s` be an integral `b × n` matrix over a semilocal field (`New.SemilocalField`) with compact |
| 15 | open subring `O`, and let `χ` be a character; where `χ` is tame (`TameLocalChar`), `invOnUnits χ` is |
| 16 | locally constant and `χ` has absolute value one on units of `O`. The file constructs the standard |
| 17 | pair of partners attached to `s`. Finally it describes the Fourier coefficients `H.centerCoeff T` |
| 18 | along a splitting `H` of a hermitian space `X` of an equivariant lift `𝒟` |
| 19 | (`New.Exchange.IsEquivariantLift`) on a space `M` of local data. |
| 20 | |
| 21 | ## Main definitions and results |
| 22 | |
| 23 | * `New.stdColDatum`: `y ↦ χ⁻¹ (det (s y))` for integral `y` with `det (s y)` a unit of `O`, else |
| 24 | zero. |
| 25 | * `New.stdRowDatum`: `x ↦ χ⁻¹ (det (s; x))` if `s` stacked on `x` lies in `GL_n(O)`, else zero. |
| 26 | * `New.areMatched_stdRowDatum_stdColDatum`: these two are partners (`New.AreMatched`): they are |
| 27 | carried by the blocks of rows of `k⁻¹` and of columns of `k`, for `k ∈ GL_n(O)`, and their values |
| 28 | there differ by the factor `χ (det k)`. |
| 29 | * `New.Exchange.map_shear_stdColDatum_eq`: if a linear form is invariant, on a space `M` of |
| 30 | Schwartz–Bruhat functions, under the shears `y ↦ y + u z s y`, then it takes the same value on the |
| 31 | standard datum `New.stdColDatum χ s` and on its composite with `y ↦ y + u r y`, when both lie in |
| 32 | `M`, `s` is integral, `s u = 0` and `r u = 0`. |
| 33 | * `New.Exchange.exists_lineTerm_localDatum`: the operator `New.Exchange.lineTerm`, the term along a |
| 34 | line split off each of two hermitian spaces, sends a standard datum for the large pair of spaces |
| 35 | to a scalar times a standard datum for the small pair. The scalar at the adele `x` depends on |
| 36 | `a = x κ⁻¹`, where κ is a fixed idele. It is zero unless `a` is integral outside `S ∪ S̄` and both |
| 37 | `a` and `ϖ ā` are units of `O` at the set `S` of places where `χ` is read. Then it is |
| 38 | `l β * γ * χ⁻¹(a) * χ(ϖ ā)`, where `l β` is a nonzero constant for each of the two terms `β` and |
| 39 | `|γ|²` is the inverse of the order of the residue ring. |
| 40 | * `New.Exchange.IsEquivariantLift.exists_linear_centreCoeff`: the coefficient at a point is a linear |
| 41 | functional of the datum. A shear of the datum by `z` along the centre of the radical multiplies it |
| 42 | by the additive character at `S` of `tr (T_S z)`, where `T_S` is the component at `S` of the |
| 43 | product of `T` with the inverse of the idele `invDifferentIdele E`. |
| 44 | |
| 45 | Notions from other files: |
| 46 | * `New.SemilocalField`: Conditions met by a finite product of non-archimedean local fields: a |
| 47 | locally compact ring with Haar measure, compact open subring O of volume one, a topologically |
| 48 | nilpotent invertible ϖ in O, and `New.IsValuationPair O`. |
| 49 | * `New.schwartzBruhat`: The space of locally constant, compactly supported complex functions that |
| 50 | vanish outside a given set. |
| 51 | * `New.invOnUnits`: `χ⁻¹` on the units of `O`, zero elsewhere. |
| 52 | * `New.Space.Splitting.centerCoeff`: `H.centerCoeff T D g` is the mean of |
| 53 | `ψ (tr (T M)) * D (H.radicalCenter M * g)` over adelic matrices `M` modulo rational ones; |
| 54 | `H.radicalCenter M` has matrix `1 + H.kAdelic * (M - Mᴴ) * H.lCoord`. |
| 55 | * `New.Exchange.SplitTameChar`: A character ν of the idele classes of norm one with positive weight |
| 56 | at every infinite place, whose tame part is non-trivial exactly on a non-empty finite set S of |
| 57 | places disjoint from its conjugate. |
| 58 | |
| 59 | ## Relation to the literature |
| 60 | |
| 61 | Known; see `Lib.SiegelWeil.Tower.LargeSideConstantTerm` and |
| 62 | `Lib.SiegelWeil.SingularForms.UnimodularCoefficients` for sources. |
| 63 | -/ |
| 64 | |
| 65 | @[expose] public section |
| 66 | |
| 67 | noncomputable section |
| 68 | |
| 69 | /-! ## The standard pair of partners attached to an integral matrix -/ |
| 70 | |
| 71 | namespace New |
| 72 | |
| 73 | open Matrix SemilocalField schwartzBruhat |
| 74 | |
| 75 | variable {F : Type _} [SemilocalField F] {a b n : Type} [Fintype b] [DecidableEq b] |
| 76 | [Fintype n] [DecidableEq n] (e : b ⊕ a ≃ n) (χ : MulChar F ℂ) (s : Matrix b n F) |
| 77 | |
| 78 | /-! ### The standard functions -/ |
| 79 | |
| 80 | open scoped Classical in |
| 81 | /-- For a matrix `s` with rows indexed by `b`, the function sending an integral `y` with `det (s y)` |
| 82 | a unit of `O` to `χ⁻¹ (det (s y))`, and every other `y` to zero. -/ |
| 83 | def stdColDatum (y : Matrix n b F) : ℂ := if IsIntMatrix O y then invOnUnits χ (s * y).det else 0 |
| 84 | |
| 85 | /-- The function sending `x` to `χ⁻¹` of the determinant of the square matrix with rows those of |
| 86 | `s` and `x`, ordered by `e`, if that matrix lies in `GL_n(O)`, and to zero otherwise. -/ |
| 87 | def stdRowDatum (x : Matrix a n F) : ℂ := stdColDatum χ 1 ((s.fromRows x).submatrix e.symm id) |
| 88 | |
| 89 | variable {χ : MulChar F ℂ} {s : Matrix b n F} {Ψ : Matrix n b F → ℂ} |
| 90 | |
| 91 | /-! ### Supports, and the identity of partners -/ |
| 92 | |
| 93 | /-- If `t` is a unit of `O`, then `invOnUnits χ x = χ t * invOnUnits χ (x * t)`: the element `x` is |
| 94 | a unit of `O` if and only if `x * t` is one. -/ |
| 95 | lemma invOnUnits_eq_mul_of_unit {t x : F} (h : IsIntegralUnit t) : |
| 96 | invOnUnits χ x = χ t * invOnUnits χ (x * t) := by |
| 97 | obtain ⟨ht, c, hc, hct⟩ := h |
| 98 | have h_iff : IsIntegralUnit (x * t) ↔ IsIntegralUnit x := by |
| 99 | -- If `w` inverts `x * t`, then `w * t` inverts `x`; if `w` inverts `x`, then `w * c` inverts |
| 100 | -- `x * t`. |
| 101 | refine ⟨fun ⟨hxt, w, hw, hwx⟩ ↦ ⟨?_, w * t, mul_mem hw ht, by grind⟩, |
| 102 | fun ⟨hx, w, hw, hwx⟩ ↦ ⟨mul_mem hx ht, w * c, mul_mem hw hc, by grind⟩⟩ |
| 103 | have hx_eq : x * t * c = x := by grind |
| 104 | simpa [hx_eq] using mul_mem hxt hc |
| 105 | have hχt : χ t ≠ 0 := ((IsUnit.of_mul_eq_one_right c hct).map χ).ne_zero |
| 106 | by_cases hx : IsIntegralUnit x <;> simp [invOnUnits, h_iff, hx, hχt] |
| 107 | |
| 108 | omit [DecidableEq n] in |
| 109 | /-- If the standard datum of an integral `s` does not vanish at `y`, then `y` is integral and |
| 110 | `s * y` is primitive: integral, with an integral inverse. -/ |
| 111 | lemma isIntMatrix_of_stdColDatum_ne_zero (hs : IsIntMatrix O s) {y : Matrix n b F} |
| 112 | (hy : stdColDatum χ s y ≠ 0) : |
| 113 | IsIntMatrix O y ∧ IsPrimitiveMatrix O (s * y) := by |
| 114 | obtain ⟨y_int, det_unit⟩ : IsIntMatrix O y ∧ IsIntegralUnit (s * y).det := by |
| 115 | grind [stdColDatum, invOnUnits] |
| 116 | exact ⟨y_int, isPrimitiveMatrix_iff_int_and_unit_det.2 ⟨hs.mul y_int, det_unit⟩⟩ |
| 117 | |
| 118 | omit [DecidableEq n] in |
| 119 | /-- The standard datum of an integral `s` vanishes off the primitive matrices. -/ |
| 120 | lemma isPrimitiveMatrix_of_stdColDatum_ne_zero (hs : IsIntMatrix O s) (y : Matrix n b F) |
| 121 | (hy : stdColDatum χ s y ≠ 0) : |
| 122 | IsPrimitiveMatrix O y := by |
| 123 | obtain ⟨y_int, -, L, L_int, hL⟩ := isIntMatrix_of_stdColDatum_ne_zero hs hy |
| 124 | -- `L` is an integral left inverse of `s * y`, so `L * s` is one of `y`. |
| 125 | exact ⟨y_int, L * s, L_int.mul hs, by rwa [L.mul_assoc]⟩ |
| 126 | |
| 127 | /-- For integral `s`, the row datum `stdRowDatum e χ s` and the column datum `stdColDatum χ s` are |
| 128 | partners for `χ` over `O`. The row datum sends `x` to `χ⁻¹ (det (s; x))` (rows ordered by `e`) if |
| 129 | `(s; x)` lies in `GL_n(O)`, and to `0` otherwise. The column datum sends an integral `y` with |
| 130 | `det (s y)` a unit to `χ⁻¹ (det (s y))`, and every other `y` to `0`. Being partners means: they |
| 131 | vanish off the last rows `a` of `k⁻¹`, resp. the first columns `b` of `k`, for `k ∈ GL_n(O)`, and |
| 132 | the first at `invLastRows e k` is `χ (det k)` times the second at `firstCols e k`. -/ |
| 133 | lemma areMatched_stdRowDatum_stdColDatum [Fintype a] (hs : IsIntMatrix O s) : |
| 134 | AreMatched O e χ (stdRowDatum e χ s) (stdColDatum χ s) := by |
| 135 | classical |
| 136 | refine ⟨fun x (hx : stdColDatum χ 1 ((s.fromRows x).submatrix e.symm id) ≠ 0) ↦ ?_, |
| 137 | fun y hy ↦ ?_, fun k hk ↦ ?_⟩ |
| 138 | · -- The matrix with rows `s` and `x` is some `g` in `intGL n O`; take `k = g⁻¹`. |
| 139 | obtain ⟨g, hg, g_eq : g.val = 1 * (s.fromRows x).submatrix e.symm id⟩ := |
| 140 | isPrimitiveMatrix_iff.1 (isIntMatrix_of_stdColDatum_ne_zero .one hx).2 |
| 141 | exact ⟨g⁻¹, inv_mem hg, by ext; simp [g_eq]⟩ |
| 142 | · -- A primitive matrix is a block of columns of an element of `GL_n(O)`. |
| 143 | exact (isValuationPair.exists_firstCols_iff e).2 |
| 144 | (isPrimitiveMatrix_of_stdColDatum_ne_zero hs y hy) |
| 145 | · -- Let `A` have rows `s` and `invLastRows e k`. It is integral, and |
| 146 | -- `A.det * k.det = (s * firstCols e k).det` with `k.det` a unit of `O`. |
| 147 | let A : Matrix n n F := (s.fromRows (invLastRows e k)).submatrix e.symm id |
| 148 | obtain ⟨k_int, -⟩ := mem_intGL.1 hk |
| 149 | have A_int : IsIntMatrix O A := by simp_all [A, IsIntMatrix, reindex_equiv e, mem_intGL] |
| 150 | have y_int : IsIntMatrix O (firstCols e k) := fun i j ↦ k_int i _ |
| 151 | have k_det : IsIntegralUnit k.val.det := |
| 152 | (isPrimitiveMatrix_iff_int_and_unit_det.1 ((isPrimitiveMatrix_iff_mem_intGL k).2 hk)).2 |
| 153 | calc stdRowDatum e χ s (invLastRows e k) |
| 154 | _ = invOnUnits χ A.det := by simp [stdRowDatum, stdColDatum, A, A_int] |
| 155 | _ = χ k.val.det * invOnUnits χ (A.det * k.val.det) := invOnUnits_eq_mul_of_unit k_det |
| 156 | _ = χ k.val.det * stdColDatum χ s (firstCols e k) := by |
| 157 | rw [det_fromRows_invLastRows, stdColDatum, ite_eq_left y_int] |
| 158 | |
| 159 | variable (χ) [hχ : TameLocalChar χ] |
| 160 | |
| 161 | /-! ### The tame case: local constancy and compact support -/ |
| 162 | |
| 163 | omit [DecidableEq n] in |
| 164 | /-- For tame `χ` and integral `s`, the standard datum `y ↦ χ⁻¹ (det (s y))` is locally constant with |
| 165 | compact support in the matrices that have a left inverse: it is a locally constant function cut off |
| 166 | by the clopen set of integral matrices, and it vanishes off the primitive ones. -/ |
| 167 | lemma stdColDatum_mem_schwartzBruhat (hs : IsIntMatrix O s) : |
| 168 | stdColDatum χ s ∈ schwartzBruhat {y | HasLeftInv y} := by |
| 169 | have h_loc : IsLocallyConstant fun y : Matrix n b F ↦ invOnUnits χ (s * y).det := |
| 170 | hχ.isLocallyConstant_invOnUnits.comp_continuous (by fun_prop) |
| 171 | have h_clopen : IsClopen {y : Matrix n b F | IsIntMatrix O y} := |
| 172 | ⟨isCompact_O.matrix.isClosed, isOpen_O.matrix⟩ |
| 173 | exact mem_of_support_isPrimitiveMatrix (LocallyConstant.indicator ⟨_, h_loc⟩ |
| 174 | h_clopen).isLocallyConstant |
| 175 | (isPrimitiveMatrix_of_stdColDatum_ne_zero hs) |
| 176 | |
| 177 | omit [Fintype b] [DecidableEq b] in |
| 178 | /-- For tame χ, the datum `stdRowDatum e χ s`, that is `x ↦ χ⁻¹ (det (s; x))`, is locally constant |
| 179 | with compact support in the matrices that have a right inverse. -/ |
| 180 | lemma stdRowDatum_mem [DecidableEq a] : |
| 181 | stdRowDatum e χ s ∈ schwartzBruhat {x : Matrix a n F | HasLeftInv xᵀ} := by |
| 182 | -- `stdRowDatum e χ s` is `stdColDatum χ 1` composed with the map that stacks `x` under `s`; |
| 183 | -- this map is continuous, and taking the rows `a` is a left inverse of it. |
| 184 | let rows (M : Matrix n n F) : Matrix a n F := M.submatrix (e ∘ .inr) id |
| 185 | -- Rows of an invertible matrix have a right inverse. |
| 186 | have rows_full : Set.MapsTo rows {M | HasLeftInv M} {x | HasLeftInv xᵀ} := fun M ⟨L, hL⟩ ↦ |
| 187 | hasLeftInv_invLastRows_transpose e (.mkOfMulEqOne L M hL) |
| 188 | have stack_cont : Continuous fun x : Matrix a n F ↦ (s.fromRows x).submatrix e.symm id := by |
| 189 | refine (continuous_matrix fun i j ↦ ?_).matrix_submatrix _ _ |
| 190 | cases i <;> simp only [fromRows_apply_inl, fromRows_apply_inr] <;> fun_prop |
| 191 | exact comp (stdColDatum_mem_schwartzBruhat χ .one) rows |
| 192 | (fun x ↦ by ext; simp [rows]) rows_full stack_cont |
| 193 | |
| 194 | end New |
| 195 | |
| 196 | /-! ## Shear invariance of linear forms on the standard datum -/ |
| 197 | |
| 198 | section ShearInvariance |
| 199 | |
| 200 | open MeasureTheory New SemilocalField |
| 201 | |
| 202 | /-- Let `F` be a semilocal field with integer ring `O`, and `χ` a multiplicative character of `F`. |
| 203 | Let `s` be a `b × n` matrix over `O`, and `u` a column and `r` a row with `s u = 0` and `r u = 0`. |
| 204 | `stdColDatum χ s` sends an integral `y` with `det (s y)` a unit of `O` to `χ⁻¹ (det (s y))`, and |
| 205 | every other `y` to `0`. Suppose the linear form `Λ` is invariant under all shears `y ↦ y + u z s y` |
| 206 | on a space `M` of locally constant, compactly supported functions vanishing outside `U`. Then `Λ` |
| 207 | takes the same value on `stdColDatum χ s` and on its composite with `y ↦ y + u r y`, when both lie |
| 208 | in `M`. -/ |
| 209 | lemma New.Exchange.map_shear_stdColDatum_eq {F b n : Type} [V : SemilocalField F] [Fintype b] |
| 210 | [DecidableEq b] |
| 211 | [Fintype n] {χ : MulChar F ℂ} {M : Submodule ℂ (Matrix n b F → ℂ)} {U : Set (Matrix n b F)} |
| 212 | {s : Matrix b n F} (hs : IsIntMatrix O s) {u : Matrix n Unit F} {r : Matrix Unit n F} |
| 213 | (hsu : s * u = 0) (hru : r * u = 0) {Λ : (Matrix n b F → ℂ) →ₗ[ℂ] ℂ} (hM : M ≤ schwartzBruhat U) |
| 214 | (hΛ : ∀ Ψ ∈ M, ∀ z : Matrix Unit b F, |
| 215 | Λ (fun y : Matrix n b F ↦ Ψ (y + u * (z * (s * y)))) = Λ Ψ) |
| 216 | (h_std : stdColDatum χ s ∈ M) |
| 217 | (h_shear : (fun y : Matrix n b F ↦ stdColDatum χ s (y + u * (r * y))) ∈ M) : |
| 218 | Λ (fun y : Matrix n b F ↦ stdColDatum χ s (y + u * (r * y))) = Λ (stdColDatum χ s) := by |
| 219 | classical |
| 220 | -- Average over the shears `τ t`, for `t` an integral matrix. This does not change `Λ`, and the |
| 221 | -- two functions have the same average. |
| 222 | let Ψ (y : Matrix n b F) : ℂ := stdColDatum χ s (y + u * (r * y)) |
| 223 | let S : AddSubgroup (Matrix n b F) := V.O.toAddSubgroup.matrix |
| 224 | have : CompactSpace S := isCompact_iff_compactSpace.1 isCompact_O.matrix |
| 225 | let τ (t : S) (y : Matrix n b F) : Matrix n b F := y + u * (r * t.val * (s * y)) |
| 226 | let mean (Φ : Matrix n b F → ℂ) (y : Matrix n b F) : ℂ := ⨍ t, Φ (τ t y) ∂.addHaar |
| 227 | have h_mean {Φ : Matrix n b F → ℂ} (hΦ : Φ ∈ M) : Λ (mean Φ) = Λ Φ := by |
| 228 | have h_loc : IsLocallyConstant fun (t : S) (y : Matrix n b F) ↦ Φ (τ t y) := |
| 229 | schwartzBruhat.isLocallyConstant_curry (hM hΦ) τ (fun t ↦ τ (-t)) |
| 230 | fun t y ↦ by simp [τ, s.mul_add, ← s.mul_assoc, hsu] |
| 231 | have h_int (y : Matrix n b F) : Integrable (fun t ↦ Φ (τ t y)) (.addHaar : Measure S) := |
| 232 | (h_loc.comp (· y)).continuous.integrable_of_hasCompactSupport (.of_compactSpace _) |
| 233 | have h_diff : mean Φ - Φ = fun y ↦ ⨍ t, (Φ (τ t y) - Φ y) ∂.addHaar := by |
| 234 | simp [funext_iff, mean, average, integral_sub (h_int _).to_average (integrable_const _)] |
| 235 | -- The mean of a locally constant family in the kernel of `Λ` lies in this kernel. |
| 236 | have h_ker (t : S) : (fun y ↦ Φ (τ t y)) - Φ ∈ LinearMap.ker Λ := by simp [τ, hΛ Φ hΦ] |
| 237 | rw [← sub_eq_zero, ← map_sub, h_diff] |
| 238 | exact integral_mem_of_isLocallyConstant _ (h_loc.comp (· - Φ)) h_ker |
| 239 | suffices h_eq : mean Ψ = mean (stdColDatum χ s) by |
| 240 | calc Λ Ψ = Λ (mean Ψ) := (h_mean h_shear).symm |
| 241 | _ = Λ (mean (stdColDatum χ s)) := by rw [h_eq] |
| 242 | _ = Λ (stdColDatum χ s) := h_mean h_std |
| 243 | funext y |
| 244 | by_cases hy : ∃ ρ : Matrix Unit b F, stdColDatum χ s (y + u * ρ) ≠ 0 |
| 245 | · -- Here `s * y` has an integral left inverse `g`, and the shear of `τ t y` is `τ (t + t₀) y` for |
| 246 | -- the integral matrix `t₀ = (y + u * ρ) * g`. |
| 247 | obtain ⟨ρ, hρ⟩ := hy |
| 248 | obtain ⟨h_int, -, g, hg, hgy : g * (s * (y + u * ρ)) = 1⟩ := |
| 249 | isIntMatrix_of_stdColDatum_ne_zero hs hρ |
| 250 | let t₀ : S := ⟨(y + u * ρ) * g, h_int.mul hg⟩ |
| 251 | have hsy : g * (s * y) = 1 := by simpa [s.mul_add, ← s.mul_assoc, hsu] using hgy |
| 252 | have h_shift (t : S) : Ψ (τ t y) = stdColDatum χ s (τ (t + t₀) y) := by |
| 253 | simp [Ψ, τ, t₀, Matrix.mul_assoc _ g, ← Matrix.mul_assoc _ u, hsy, hru, add_assoc, |
| 254 | Matrix.mul_assoc, Matrix.mul_add, Matrix.add_mul] |
| 255 | simp [mean, h_shift, average, integral_add_right_eq_self fun t ↦ stdColDatum χ s (τ t y)] |
| 256 | · -- Otherwise both integrands vanish. |
| 257 | have h_zero (ρ : Matrix Unit b F) : stdColDatum χ s (y + u * ρ) = 0 := |
| 258 | not_not.1 (not_exists.1 hy ρ) |
| 259 | simp [mean, Ψ, τ, h_zero, add_assoc, ← Matrix.mul_add] |
| 260 | |
| 261 | end ShearInvariance |
| 262 | |
| 263 | /-! ## Terms along a line as Gauss sums -/ |
| 264 | |
| 265 | namespace New.Exchange |
| 266 | |
| 267 | open Matrix WeilData MeasureTheory SemilocalField Space Splitting Fintype |
| 268 | |
| 269 | variable {E n n' r r' b : Type} {s : n → ℤˣ} {s' : n' → ℤˣ} {t : r → ℤˣ} {t' : r' → ℤˣ} [Field E] |
| 270 | [CMType E] [WeilData E] [Fintype n] [DecidableEq n] [Fintype n'] [DecidableEq n'] [Fintype r] |
| 271 | [DecidableEq r] [Fintype r'] [DecidableEq r'] {W : Space E n s} {W' : Space E n' s'} |
| 272 | {V : Space E r t} {V' : Space E r' t'} [Fintype b] [DecidableEq b] (A : W'.Splitting W Unit) |
| 273 | (σ' : b ⊕ r' ≃ n') (σ : b ⊕ r ≃ n) |
| 274 | |
| 275 | section Local |
| 276 | |
| 277 | variable {F : Type} [SemilocalField F] {χ : MulChar F ℂ} |
| 278 | |
| 279 | /-- The matrix with rows indexed by `n' ≃ b ⊕ r'` and columns by `Unit ⊕ (b ⊕ r) ⊕ Unit`, where |
| 280 | `n ≃ b ⊕ r`: on the rows `b` it is `(0, (1 0), 0)` and on the rows `r'` it is `(K, (0 I), L)`. -/ |
| 281 | noncomputable def frameMatrix (K L : Matrix r' Unit F) (I : Matrix r' r F) : |
| 282 | Matrix n' (Unit ⊕ n ⊕ Unit) F := |
| 283 | ((fromRows 0 K).fromCols |
| 284 | (((fromBlocks 1 0 0 I).submatrix id σ.symm).fromCols (fromRows 0 L))).submatrix σ'.symm id |
| 285 | |
| 286 | omit [Fintype n] [DecidableEq n'] in |
| 287 | /-- For an integral frame `Q` (blocks `K`, `I`, `L` of columns with dual blocks of rows, integral |
| 288 | and inverse to each other), the matrix `frameMatrix σ' σ Q.K Q.L Q.I` is primitive: integral, with |
| 289 | an integral left inverse, which is built from the dual blocks. -/ |
| 290 | lemma isPrimitiveMatrix_frameMatrix (Q : IntegralFrame F r' r Unit) : |
| 291 | IsPrimitiveMatrix O (frameMatrix σ' σ Q.K Q.L Q.I) := by |
| 292 | obtain ⟨basis_int, dual_int, -, h_dual⟩ := Q.isIntMatrix_and_mul_eq_one |
| 293 | have basis_blocks : (∀ i j, Q.K i j ∈ O) ∧ (∀ i j, Q.I i j ∈ O) ∧ ∀ i j, Q.L i j ∈ O := by |
| 294 | simpa [IsIntMatrix, forall_and] using basis_int |
| 295 | have dual_blocks : (∀ i j, Q.dualK i j ∈ O) ∧ (∀ i j, Q.dualI i j ∈ O) ∧ ∀ i j, |
| 296 | Q.dualL i j ∈ O := by |
| 297 | simpa [IsIntMatrix, forall_and] using dual_int |
| 298 | refine ⟨?_, (frameMatrix σ' σ Q.dualKᵀ Q.dualLᵀ Q.dualIᵀ)ᵀ, ?_, ?_⟩ |
| 299 | · simp [frameMatrix, ite_mem, IsIntMatrix, reindex_equiv σ, reindex_equiv σ', forall_and, |
| 300 | basis_blocks, Matrix.one_apply] |
| 301 | · simp [frameMatrix, ite_mem, IsIntMatrix, reindex_equiv σ, reindex_equiv σ', forall_and, |
| 302 | dual_blocks, Matrix.one_apply] |
| 303 | · -- Entry by entry, this follows from the nine block equations in `h_dual`. |
| 304 | simp [← ext_iff, forall_and, Matrix.mul_apply, Matrix.one_apply] at h_dual |
| 305 | simp [← ext_iff, frameMatrix, eq_comm, reindex_equiv σ, forall_and, h_dual, |
| 306 | Matrix.mul_apply, Matrix.one_apply] |
| 307 | |
| 308 | /-- If `G` is primitive (integral with an integral left inverse) and `P`, `R` are integral matrices |
| 309 | inverse to each other, then the standard datum `χ⁻¹ (det ·)` at `G * T * R` is the constant |
| 310 | `χ⁻¹ (det (R * G))` times its value at `T`. -/ |
| 311 | lemma stdColDatum_one_mul_mul {m : Type} [Fintype m] [DecidableEq m] {G P : Matrix n' m F} |
| 312 | {R : Matrix m n' F} |
| 313 | (hG : IsPrimitiveMatrix O G) (hP : IsIntMatrix O P) (hR : IsIntMatrix O R) (hPR : P * R = 1) |
| 314 | (hRP : R * P = 1) (T : Matrix m m F) : |
| 315 | stdColDatum χ 1 (G * T * R) = invOnUnits χ (R * G).det * stdColDatum χ 1 T := by |
| 316 | classical |
| 317 | have G_int := hG.1 |
| 318 | have h_det : (G * T * R).det = (R * G).det * T.det := by |
| 319 | rw [← det_comm' hRP hPR, ← Matrix.mul_assoc, det_mul] |
| 320 | have h_int : IsIntMatrix O (G * T * R) ↔ IsIntMatrix O T := by |
| 321 | rw [Matrix.mul_assoc, hG.isIntMatrix_mul_iff] |
| 322 | refine ⟨fun hT ↦ ?_, fun hT ↦ hT.mul hR⟩ |
| 323 | simpa [Matrix.mul_assoc, hRP] using hT.mul hP |
| 324 | -- `invOnUnits χ` is multiplicative on `O`. |
| 325 | simp only [stdColDatum, h_int, Matrix.one_mul, h_det] |
| 326 | grind [invOnUnits_mul, IsIntMatrix.det_mem, IsIntMatrix.mul] |
| 327 | |
| 328 | /-- The matrix under the determinant of the datum, in the frames of the two isotropic lines. It is |
| 329 | block upper triangular; its diagonal blocks are `c`, the matrix with rows `p` and `y`, and the last |
| 330 | coordinate `z (.inr 0)` of `z`, in this order (`LineIndex n r` indexes coordinates by `n` and one |
| 331 | more coordinate, then by `r`, then one last coordinate) if `β = true` and in the opposite order if |
| 332 | `β = false`. -/ |
| 333 | noncomputable def triangularForm (β : Bool) (c : F) (p : Matrix b n F) (y : Matrix r n F) |
| 334 | (z : LineIndex n r → F) : Matrix (Unit ⊕ n ⊕ Unit) (Unit ⊕ n ⊕ Unit) F := |
| 335 | fromBlocks (cond β c (z (.inr 0)) • 1) (vecToMatrix (z ∘ .inl ∘ .inl)) 0 |
| 336 | (((p.fromRows y).submatrix σ.symm id).fromBlocks |
| 337 | ((fromRows 0 (vecToMatrix (z ∘ .inl ∘ .inr))).submatrix σ.symm id) 0 |
| 338 | (cond β (z (.inr 0)) c • 1)) |
| 339 | |
| 340 | open scoped Classical in |
| 341 | omit [DecidableEq r] [Fintype b] [DecidableEq b] in |
| 342 | /-- The standard datum at `triangularForm σ β c p y z`, times `ε`, is a product over the coordinates |
| 343 | of `z` times the standard datum `stdRowDatum σ χ p y`. Each coordinate contributes the indicator |
| 344 | function of `O`; the last one has the further factor `ε * χ⁻¹(c) * χ⁻¹(z i)` on units. -/ |
| 345 | lemma mul_stdColDatum_triangularForm (ε : ℂ) (β : Bool) (c : F) (p : Matrix b n F) |
| 346 | (y : Matrix r n F) (z : LineIndex n r → F) : |
| 347 | let f : LineIndex n r → F → ℂ := |
| 348 | 1 ⊕ᵥ fun (_ : Unit × Unit) (x : F) ↦ ε * invOnUnits χ c * invOnUnits χ x |
| 349 | ε * stdColDatum χ 1 (triangularForm σ β c p y z) = |
| 350 | (∏ i : LineIndex n r, if z i ∈ O then f i (z i) else 0) * stdRowDatum σ χ p y := by |
| 351 | intro f |
| 352 | let M : Matrix n n F := (p.fromRows y).submatrix σ.symm id |
| 353 | have h_int : IsIntMatrix O (triangularForm σ β c p y z) ↔ |
| 354 | IsIntMatrix O M ∧ c ∈ O ∧ ∀ i, z i ∈ O := by |
| 355 | cases β <;> simp [triangularForm, M, IsIntMatrix, reindex_equiv σ, Unique.forall_iff, |
| 356 | vecToMatrix] <;> |
| 357 | simp only [show (0 : Unit × Unit) = (PUnit.unit, PUnit.unit) from rfl] at * <;> grind |
| 358 | have h_det : (triangularForm σ β c p y z).det = c * z (.inr 0) * M.det := by |
| 359 | cases β <;> simp [triangularForm, M, det_fromBlocks_zero₂₁] <;> ring |
| 360 | have h_prod : (∏ i, if z i ∈ O then f i (z i) else 0) = |
| 361 | if ∀ i, z i ∈ O then ε * invOnUnits χ c * invOnUnits χ (z (.inr 0)) else 0 := by |
| 362 | simp [f, prod_ite_zero, prod_prod_type] |
| 363 | -- It remains that `invOnUnits χ` is multiplicative on `O` and vanishes off `O`. |
| 364 | simp only [h_prod, stdRowDatum, stdColDatum, Matrix.one_mul, h_int, h_det, |
| 365 | show (p.fromRows y).submatrix σ.symm id = M from rfl] |
| 366 | clear_value M |
| 367 | by_cases hM : IsIntMatrix O M |
| 368 | · by_cases hc : c ∈ O |
| 369 | · by_cases hz : ∀ i, z i ∈ O |
| 370 | · rw [ite_eq_left ⟨hM, hc, hz⟩, ite_eq_left hz, ite_eq_left hM, |
| 371 | invOnUnits_mul (mul_mem hc (hz _)) hM.det_mem, invOnUnits_mul hc (hz _)] |
| 372 | ring |
| 373 | · rw [ite_eq_right fun h ↦ hz h.2.2, ite_eq_right hz] |
| 374 | simp |
| 375 | · have h0 : invOnUnits χ c = 0 := ite_eq_right fun h ↦ hc h.1 |
| 376 | rw [ite_eq_right fun h ↦ hc h.2.1] |
| 377 | split_ifs <;> simp [h0] |
| 378 | · rw [ite_eq_right fun h ↦ hM h.1, ite_eq_right hM] |
| 379 | simp |
| 380 | |
| 381 | /-- The quotient `invOnUnits χ x / invOnUnits χ y` is `χ⁻¹(x) χ(y)` if `x` and `y` are units of |
| 382 | `O`. Otherwise it is `0`, as its numerator or its denominator is `0`. The lemma states this under |
| 383 | a further condition `q`. -/ |
| 384 | lemma ite_isIntegralUnit_eq_ite_invOnUnits_div (q : Prop) (x y : F) [Decidable q] |
| 385 | [Decidable (q ∧ IsIntegralUnit x ∧ IsIntegralUnit y)] : |
| 386 | (if q ∧ IsIntegralUnit x ∧ IsIntegralUnit y then (χ x)⁻¹ * χ y else 0) = |
| 387 | if q then invOnUnits χ x / invOnUnits χ y else 0 := by |
| 388 | simp only [invOnUnits] |
| 389 | split_ifs <;> simp_all |
| 390 | |
| 391 | end Local |
| 392 | |
| 393 | /-- In the frame of `lineTermSplitting A X β` (the matrix `frameAt` of its basis, with coordinates |
| 394 | indexed by `LineIndex n r` and by `r × n`), at the point with line coordinate `a` and other |
| 395 | coordinates `z` and `y`, the standard datum of `p * I'` equals `stdColDatum χ 1` (`χ⁻¹ det` if |
| 396 | integral with unit determinant, else `0`) at the product of `G` (built by `σ'`, `σ` from the frame |
| 397 | of `X`), the block triangular matrix `triangularForm` and the inverse frame `R` of `A`. -/ |
| 398 | lemma stdRowDatum_frameAt_lineTermSplitting (X : V'.Splitting V Unit) [IsBaseAdapted A] |
| 399 | [IsBaseAdapted X] {F : Type} [SemilocalField F] {S : Set (FinPlace E)} {π : 𝔸f E →+* F} |
| 400 | {χ : MulChar F ℂ} (rd : ReadsAt S π) (a : 𝔸 E) (p : Matrix b n F) (β : Bool) |
| 401 | (y : Matrix r n F) (z : LineIndex n r → F) : |
| 402 | let w (i : LineIndex n r) : 𝔸 E := a * i.isRight.toNat |
| 403 | let R : Matrix (Unit ⊕ n ⊕ Unit) n' F := |
| 404 | fromRows (adaptedFrame rd A).dualK (fromRows (adaptedFrame rd A).dualI |
| 405 | (adaptedFrame rd A).dualL) |
| 406 | let G : Matrix n' (Unit ⊕ n ⊕ Unit) F := |
| 407 | frameMatrix σ' σ (adaptedFrame rd X).K (adaptedFrame rd X).L (adaptedFrame rd X).I |
| 408 | let πf (c : 𝔸 E) : F := π c.2 |
| 409 | stdRowDatum σ' χ (p * (adaptedFrame rd A).dualI) |
| 410 | (vecToMatrix (((lineTermSplitting A X β).frameAt 1 (lineTermBasis W V)).map πf *ᵥ |
| 411 | (πf ∘ w ⊕ᵥ z ⊕ᵥ matrixToVec y))) = |
| 412 | stdColDatum χ 1 (G * triangularForm σ β (π a.2) p y z * R) := by |
| 413 | intro w R G πf |
| 414 | -- It suffices to compare the two matrices. Insert the Kronecker form of the frame of the line |
| 415 | -- term (`↓`: before its factors are rewritten) and multiply out the blocks. |
| 416 | refine congrArg (stdColDatum χ 1) ?_ |
| 417 | simp +zetaDelta [↓frameAt_lineTermSplitting, frameMatrix, triangularForm, stdForm, |
| 418 | adaptedFrame, mulVec, dotProduct, iCoord, sum_prod_type, vecToMatrix, matrixToVec, mul_assoc, |
| 419 | Matrix.mul_apply, Matrix.mul_assoc, Finset.sum_add_distrib, submatrix_id_mul, |
| 420 | fromCols_mul_fromBlocks, fromBlocks_mul_fromRows, fromCols_mul_fromRows, Matrix.add_mul] |
| 421 | -- It remains to rearrange the products and sums in each entry. |
| 422 | cases β <;> congr with ⟨⟩ <;> |
| 423 | simp [Finset.mul_sum, diagonal, mul_add, mul_assoc, Matrix.mul_apply] |
| 424 | all_goals simp only [show (0 : Unit × Unit) = (PUnit.unit, PUnit.unit) from rfl] at * |
| 425 | all_goals grind |
| 426 | |
| 427 | open scoped Classical in |
| 428 | /-- Let `A` and `X` be adapted splittings of a hyperbolic plane off `W'` and `V'`, leaving `W` and |
| 429 | `V`. `lineTerm A X β x` maps data on `Hom(W', V')` to data on `Hom(W, V)`, and `β` picks one of two |
| 430 | models. A datum `localDatum W' V' v Φ rd` has real part `v` (in the Fock space `PairFock`). At a set |
| 431 | `S` of places it is `Φ`, read through `π` into the semilocal field `F` (subring `O`, element `ϖ`), |
| 432 | and elsewhere it is the vacuum. `stdRowDatum σ χ p y` is `χ⁻¹ det` of the rows of `p` and `y` |
| 433 | ordered by `σ` if that matrix is in `GL(O)`, else `0`. There are nonzero constants `l β` such that |
| 434 | for every tame `χ` there is a number `γ` with (a) `|γ|²` the inverse of the order of the residue |
| 435 | ring and (b) the following. The term at `x = scaleIdele E * a` (a fixed idele times `a`) maps the |
| 436 | datum with real part `v` and, at `S`, `stdRowDatum σ' χ (p * I')` (`I'` reads the coordinates of `W` |
| 437 | in the frame of `A`) to a scalar times the datum with real part `lineTermReal A X β a.1 v` and, at |
| 438 | `S`, `stdRowDatum σ χ p`. Here `a.1` and `a.2` are the infinite and finite parts of `a`. The scalar |
| 439 | is `l β * γ * χ⁻¹(a) * χ(ϖ ā)`, read at `S`, if `a.2` is integral at every finite place outside `S` |
| 440 | and its conjugate and both `a` and `ϖ ā` are units of `O` at `S`; otherwise it is `0`. -/ |
| 441 | lemma exists_lineTerm_localDatum (X : V'.Splitting V Unit) [IsBaseAdapted A] [IsBaseAdapted X] : |
| 442 | ∃ l : Bool → ℂˣ, ∀ {F : Type} [SemilocalField F] {S : Set (FinPlace E)} {π : 𝔸f E →+* F} |
| 443 | {χ : MulChar F ℂ} (rd : ReadsAt S π) (hχ : TameLocalChar χ), ∃ γ : ℂ, |
| 444 | -- (a) |
| 445 | ‖γ‖ ^ 2 = (Nat.card hχ.ResidueRing : ℝ)⁻¹ ∧ |
| 446 | -- (b) |
| 447 | ∀ (p : Matrix b n F) (β : Bool) (v : PairFock E s' t') (x : 𝔸 E), |
| 448 | let a : 𝔸 E := x * (scaleIdele E)⁻¹.val |
| 449 | lineTerm A X β x (localDatum W' V' v (stdRowDatum σ' χ (p * (adaptedFrame rd A).dualI)) rd) |
| 450 | = |
| 451 | (l β * γ * if idem S.conjClosureᶜ * a.2 ∈ Ô E ∧ IsIntegralUnit (π a.2) ∧ |
| 452 | IsIntegralUnit (π (star a.2) * ϖ.val) then |
| 453 | (χ (π a.2))⁻¹ * χ (π (star a.2) * ϖ.val) else 0) • |
| 454 | localDatum W V (lineTermReal A X β a.1 v) (stdRowDatum σ χ p) rd := by |
| 455 | -- `lineTerm A X β` is the mixed term of a splitting with an explicit adapted frame, so |
| 456 | -- `slice_localDatum` computes it once the datum is factored along that frame. One factor |
| 457 | -- integrates to a Gauss sum, the others to `1`. |
| 458 | refine ⟨fun β ↦ vacuumFactor (isAdapted_lineTermSplitting A X β), fun {F} _ {S π χ} rd hχ ↦ ?_⟩ |
| 459 | obtain ⟨γ, hγ, h_gauss⟩ : ∃ γ : ℂ, ‖γ‖ ^ 2 = (Nat.card hχ.ResidueRing : ℝ)⁻¹ ∧ ∀ c : F, |
| 460 | ∫ x in (O : Subring F), invOnUnits χ x * rd.ψ (c * x) = γ / invOnUnits χ (ϖ.val * c) := by |
| 461 | simpa only [div_invOnUnits] using exists_local_gauss_sum hχ rd.hasIntegralConductor_psi |
| 462 | -- `P` and `R` are the integral frame of `A` and its inverse, `G` is built from the frame of `X`. |
| 463 | let Q : IntegralFrame F n' n Unit := adaptedFrame rd A |
| 464 | let P : Matrix n' (Unit ⊕ n ⊕ Unit) F := fromCols Q.K (fromCols Q.I Q.L) |
| 465 | let R : Matrix (Unit ⊕ n ⊕ Unit) n' F := fromRows Q.dualK (fromRows Q.dualI Q.dualL) |
| 466 | obtain ⟨P_int, R_int, hPR : P * R = 1, hRP : R * P = 1⟩ := Q.isIntMatrix_and_mul_eq_one |
| 467 | let G : Matrix n' (Unit ⊕ n ⊕ Unit) F := |
| 468 | frameMatrix σ' σ (adaptedFrame rd X).K (adaptedFrame rd X).L (adaptedFrame rd X).I |
| 469 | have G_prim : IsPrimitiveMatrix O G := isPrimitiveMatrix_frameMatrix σ' σ _ |
| 470 | -- `R * G` is primitive, so `ε = χ⁻¹ (det (R * G))` has absolute value one. |
| 471 | obtain ⟨-, det_unit : IsIntegralUnit (R * G).det⟩ := isPrimitiveMatrix_iff_int_and_unit_det.1 |
| 472 | ((IsPrimitiveMatrix.mul_iff ⟨R_int, P, P_int, hPR⟩).2 G_prim) |
| 473 | let ε : ℂ := invOnUnits χ (R * G).det |
| 474 | refine ⟨ε * γ, by simp [ε, invOnUnits, det_unit, hχ.norm_eq_one, hγ], ?_⟩ |
| 475 | intro p β v x a |
| 476 | -- The point of translation is `scaleIdele E • w`, with `w` zero except in the last coordinate. |
| 477 | let w (i : LineIndex n r) : 𝔸 E := a * i.isRight.toNat |
| 478 | have h_point : (0 ⊕ᵥ matrixToVec (scalar Unit x) : LineIndex n r → 𝔸 E) = scaleIdele E • w := by |
| 479 | simp [funext_iff, w, a, Units.smul_def, mul_comm x, matrixToVec, mul_assoc] |
| 480 | let πf (c : 𝔸 E) : F := π c.2 |
| 481 | -- The factors of the datum: `1` in all coordinates but the last. |
| 482 | let f : LineIndex n r → F → ℂ := |
| 483 | 1 ⊕ᵥ fun (_ : Unit × Unit) (c : F) ↦ ε * invOnUnits χ (π a.2) * invOnUnits χ c |
| 484 | have h_factor (y : Matrix r n F) (z : LineIndex n r → F) : |
| 485 | stdRowDatum σ' χ (p * Q.dualI) (vecToMatrix (((lineTermSplitting A X β).frameAt 1 |
| 486 | (lineTermBasis W V)).map πf *ᵥ (πf ∘ w ⊕ᵥ z ⊕ᵥ matrixToVec y))) = |
| 487 | (∏ i, if z i ∈ O then f i (z i) else 0) * stdRowDatum σ χ p y := by |
| 488 | rw [stdRowDatum_frameAt_lineTermSplitting, |
| 489 | stdColDatum_one_mul_mul G_prim P_int R_int hPR hRP, mul_stdColDatum_triangularForm] |
| 490 | -- `slice_localDatum` leaves one integral for each `f i`; the last one is given by `h_gauss`. |
| 491 | have h_integrals : ∏ i, ∫ t in (O : Subring F), rd.ψ (π (star (w i).2) * t) * f i t = |
| 492 | ε * γ * (invOnUnits χ (π a.2) / invOnUnits χ (π (star a.2) * ϖ.val)) := by |
| 493 | simp [w, f, integral_const_mul, Set.univ_inter _, volume_O, Measure.real, h_gauss, |
| 494 | mul_comm (rd.ψ _), mul_assoc, |
| 495 | mul_comm ϖ.val, mul_div_left_comm] |
| 496 | rw [ite_isIntegralUnit_eq_ite_invOnUnits_div, lineTermReal, lineTerm_eq_slice, h_point, |
| 497 | slice_localDatum rd (isAdapted_lineTermSplitting A X β) (stdRowDatum_mem _ _) w v f h_factor, |
| 498 | h_integrals] |
| 499 | simp [w, mul_assoc] |
| 500 | |
| 501 | end New.Exchange |
| 502 | |
| 503 | /-! |
| 504 | ## Fourier coefficients of an equivariant lift as functionals of the datum |
| 505 | |
| 506 | Here `S = 𝔠.ramifiedPlaces`, and `componentsAt 𝔠` takes the components of an adele at `S`. |
| 507 | |
| 508 | * `New.Exchange.IsEquivariantLift.apply_shear`: translation by an element supported on `S ∪ S̄` that |
| 509 | is a shear at `S` corresponds to a shear of the datum. |
| 510 | -/ |
| 511 | |
| 512 | namespace New.Exchange.IsEquivariantLift |
| 513 | |
| 514 | open Matrix G Space.Splitting |
| 515 | |
| 516 | variable {E n₀ a b m p : Type} [Field E] [CMType E] [WeilData E] [Fintype a] [Fintype b] |
| 517 | [DecidableEq b] [Fintype m] [DecidableEq m] {μ : NumberField.InfinitePlace E → ℤ} |
| 518 | {𝔠 : SplitTameChar E μ} {r : m → ℤˣ} {X : Space E m r} |
| 519 | {M : Submodule ℂ (Matrix m b (LocProd 𝔠.ramifiedPlaces) → ℂ)} |
| 520 | {𝒟 : (Matrix m b (LocProd 𝔠.ramifiedPlaces) → ℂ) →ₗ[ℂ] G E r → ℂ} |
| 521 | |
| 522 | omit [WeilData E] in |
| 523 | /-- An element of the adelic unitary group with matrix `1 + (e C - ē C')`, where `e` is the |
| 524 | idempotent of `S`, is trivial at infinity, is supported on `S ∪ S̄` and has component `1 + C` |
| 525 | at `S`. -/ |
| 526 | lemma components_of_mat_eq_one_add (g : G E r) (C C' : Matrix m m (𝔸 E)) |
| 527 | (hg : g.adeleMatrix = 1 + ((idemAdele 𝔠.ramifiedPlaces : 𝔸 E) • C - star |
| 528 | (idemAdele 𝔠.ramifiedPlaces : 𝔸 E) • C')) : |
| 529 | ((1, g.2) : G E r) = g ∧ g.2 ∈ New.Gf.supportedOn m 𝔠.ramifiedPlaces ∧ |
| 530 | (atPlaces 𝔠.ramifiedPlaces g.2).val = (1 + C).map (componentsAt 𝔠) := by |
| 531 | refine ⟨?_, ?_, ?_⟩ |
| 532 | · -- both idempotents vanish at infinity |
| 533 | aesop (add simp [Prod.ext_iff, funext_iff, Matrix.one_apply, ext_iff.symm]) |
| 534 | · -- both idempotents vanish at the places outside `S ∪ S̄` |
| 535 | aesop (add simp [Gf.supportedOn, Gf.atPlace, star_idem, Matrix.one_apply, ext_iff.symm, |
| 536 | Prod.ext_iff, funext_iff]) |
| 537 | · -- at the places of `S` the first idempotent is `1` and the second is `0` |
| 538 | aesop (add simp [atPlaces, 𝔠.star_notMem, funext_iff, star_idem, Matrix.one_apply, ext_iff.symm, |
| 539 | Prod.ext_iff]) |
| 540 | |
| 541 | /-- Let `𝒟` be an equivariant lift on `M` and let `ν` in the unitary group have matrix |
| 542 | `1 + e c k - ē B` (`e` the idempotent of `S`), so that it is `1 + c k` at `S`, with `k c = 0`. |
| 543 | Shearing a datum in `M` by the components at `S` (`componentsAt`) of `x⁻¹ ν x` keeps it in `M`, and |
| 544 | the lift of the sheared datum at `y x` is the lift of the datum at `y ν⁻¹ x`. -/ |
| 545 | lemma apply_shear (h𝒟 : IsEquivariantLift 𝔠 X M 𝒟) {Ψ : Matrix m b (LocProd 𝔠.ramifiedPlaces) → ℂ} |
| 546 | (hΨ : Ψ ∈ M) {ν : G E r} {c : Matrix m a (𝔸 E)} {k : Matrix a m (𝔸 E)} {B : Matrix m m (𝔸 E)} |
| 547 | (hν : adeleMatrix ν = 1 + ((idemAdele 𝔠.ramifiedPlaces : 𝔸 E) • (c * k) - star |
| 548 | (idemAdele 𝔠.ramifiedPlaces : 𝔸 E) • B)) |
| 549 | (hkc : k * c = 0) (x : G E r) : |
| 550 | let Ψ' (y : Matrix m b (LocProd 𝔠.ramifiedPlaces)) : ℂ := Ψ (y + |
| 551 | (adeleMatrix x⁻¹ * c).map (componentsAt 𝔠) * ((k * adeleMatrix x).map (componentsAt 𝔠) * y)) |
| 552 | Ψ' ∈ M ∧ ∀ y : G E r, 𝒟 Ψ' (y * x) = 𝒟 Ψ (y * (ν⁻¹ * x)) := by |
| 553 | classical |
| 554 | -- The conjugate `g = x⁻¹ ν x` is supported on S ∪ S̄, and its component at S is the shear |
| 555 | -- `1 + (x⁻¹ c) (k x)`, of determinant 1 since `k * c = 0`. The law `h𝒟.map_translate` for g at |
| 556 | -- the points `y * (ν⁻¹ * x)` is the claim, because `y * (ν⁻¹ * x) * g = y * x`. |
| 557 | intro Ψ' |
| 558 | let g : G E r := x⁻¹ * (ν * x) |
| 559 | let e : 𝔸 E := idemAdele 𝔠.ramifiedPlaces |
| 560 | have h_mat : g.adeleMatrix = 1 + (e • (x⁻¹.adeleMatrix * c * (k * x.adeleMatrix)) - |
| 561 | star e • (x⁻¹.adeleMatrix * (B * x.adeleMatrix))) := by |
| 562 | simp [g, e, adeleMatrix_mul, hν, mul_add, add_mul, mul_sub, sub_mul, Matrix.mul_assoc, |
| 563 | ← adeleMatrix_mul x⁻¹] |
| 564 | obtain ⟨h_fin, h_supp, h_at⟩ := components_of_mat_eq_one_add g _ _ h_mat |
| 565 | have h_det : (atPlaces 𝔠.ramifiedPlaces g.2).val.det = 1 := by |
| 566 | rw [h_at, ← RingHom.mapMatrix_apply, ← RingHom.map_det, det_one_add_mul_comm] |
| 567 | simp [← Matrix.mul_assoc, k.mul_assoc, ← adeleMatrix_mul, hkc] |
| 568 | have h_shear : (fun y ↦ Ψ ((atPlaces 𝔠.ramifiedPlaces g.2).val * y)) = Ψ' := by |
| 569 | simp [Ψ', h_at, Matrix.map_add, Matrix.add_mul, Matrix.mul_assoc] |
| 570 | obtain ⟨h_mem, h_law⟩ := h𝒟.map_translate hΨ g.2 h_supp |
| 571 | simp only [h_shear, h_det, h_fin] at h_mem h_law |
| 572 | exact ⟨h_mem, fun y ↦ by simpa [g, mul_assoc] using h_law (y * (ν⁻¹ * x))⟩ |
| 573 | |
| 574 | /-- Let `𝒟` be an equivariant lift on `M` and let `ν` in the unitary group have matrix |
| 575 | `1 + e c k - ē B` (`e` the idempotent of `S`), so that it is `1 + c k` at `S`, with `k c = 0`. |
| 576 | Shearing a datum in `M` by the components at `S` (`componentsAt`) of `x⁻¹ ν x` keeps it in `M` and |
| 577 | moves the point at which the Fourier coefficient `H.centerCoeff T` of its lift is taken from |
| 578 | `ν⁻¹ x` to `x`. -/ |
| 579 | lemma centreCoeff_shear (h𝒟 : IsEquivariantLift 𝔠 X M 𝒟) [Fintype p] [DecidableEq p] [Fintype n₀] |
| 580 | [DecidableEq n₀] {s₀ : n₀ → ℤˣ} {X₀ : Space E n₀ s₀} (H : X.Splitting X₀ p) (T : Matrix p p E) |
| 581 | {Ψ : Matrix m b (LocProd 𝔠.ramifiedPlaces) → ℂ} (hΨ : Ψ ∈ M) {ν : G E r} {c : Matrix m a (𝔸 E)} |
| 582 | {k : Matrix a m (𝔸 E)} {B : Matrix m m (𝔸 E)} |
| 583 | (hν : adeleMatrix ν = 1 + ((idemAdele 𝔠.ramifiedPlaces : 𝔸 E) • (c * k) - star |
| 584 | (idemAdele 𝔠.ramifiedPlaces : 𝔸 E) • B)) |
| 585 | (hkc : k * c = 0) (x : G E r) : |
| 586 | let Ψ' (y : Matrix m b (LocProd 𝔠.ramifiedPlaces)) : ℂ := Ψ (y + |
| 587 | (adeleMatrix x⁻¹ * c).map (componentsAt 𝔠) * ((k * adeleMatrix x).map (componentsAt 𝔠) * y)) |
| 588 | Ψ' ∈ M ∧ H.centerCoeff T (𝒟 Ψ') x = H.centerCoeff T (𝒟 Ψ) (ν⁻¹ * x) := |
| 589 | (h𝒟.apply_shear hΨ hν hkc x).imp_right fun h_shift ↦ by simp only [centerCoeff, h_shift] |
| 590 | |
| 591 | /-- Let `𝒟` be an equivariant lift on `M` (functions of `m × b` matrices over the completions at the |
| 592 | ramified places `S` of `𝔠`) to functions on the unitary group of `X`, and let `H` split `X` over |
| 593 | `X₀`. Fix `T` a `p × p` matrix over `E`. (a) At each point `x`, the `T`-th Fourier coefficient |
| 594 | `Ψ ↦ H.centerCoeff T (𝒟 Ψ) x` along the centre of the radical of `H` is, on `M`, the restriction of |
| 595 | a linear functional `L`. Here `H.kAdelic` is the adelic frame of the isotropic subspace of `H` and |
| 596 | `H.lCoord` its conjugate transpose times the form, a matrix of coordinates. (b) The shear of `Ψ` by |
| 597 | `z` along this frame at `x` stays in `M` and multiplies `L Ψ` by `ψ_S (tr (T_S z))`, with `ψ_S` the |
| 598 | additive character at `S` and `T_S` the matrix of components at `S` of `δ⁻¹ T`, where `δ` is the |
| 599 | idele `invDifferentIdele E`. -/ |
| 600 | lemma exists_linear_centreCoeff (h𝒟 : IsEquivariantLift 𝔠 X M 𝒟) [Fintype p] [DecidableEq p] |
| 601 | [Fintype n₀] [DecidableEq n₀] {s₀ : n₀ → ℤˣ} {X₀ : Space E n₀ s₀} (H : X.Splitting X₀ p) |
| 602 | (T : Matrix p p E) (x : G E r) : |
| 603 | ∃ L : (Matrix m b (LocProd 𝔠.ramifiedPlaces) → ℂ) →ₗ[ℂ] ℂ, ∀ Ψ ∈ M, |
| 604 | -- (a) |
| 605 | L Ψ = H.centerCoeff T (𝒟 Ψ) x ∧ |
| 606 | -- (b) |
| 607 | ∀ z : Matrix p p (LocProd 𝔠.ramifiedPlaces), |
| 608 | let Ψ' (y : Matrix m b (LocProd 𝔠.ramifiedPlaces)) : ℂ := |
| 609 | Ψ (y + (x⁻¹.adeleMatrix * H.kAdelic).map (componentsAt 𝔠) * z * |
| 610 | ((H.lCoord * x.adeleMatrix).map (componentsAt 𝔠) * y)) |
| 611 | Ψ' ∈ M ∧ L Ψ' = 𝔠.readsAt.ψ |
| 612 | (((invDifferentIdele E)⁻¹.val • T.map toAdele).map (componentsAt 𝔠) * z).trace • L Ψ := by |
| 613 | -- The coefficient is linear on M; extend it to a functional on all functions. |
| 614 | let L₀ : M →ₗ[ℂ] ℂ := |
| 615 | { toFun Ψ := H.centerCoeff T (𝒟 Ψ) x |
| 616 | map_add' Ψ Φ := by |
| 617 | simpa using H.centreCoeff_add (h𝒟.isAutFunction Ψ.2) (h𝒟.isAutFunction Φ.2) T x |
| 618 | map_smul' := by simp [centerCoeff, mul_left_comm] } |
| 619 | obtain ⟨L, hL₀ : L ∘ₗ M.subtype = L₀⟩ := L₀.exists_extend |
| 620 | have hL Φ (hΦ : Φ ∈ M) : L Φ = H.centerCoeff T (𝒟 Φ) x := LinearMap.congr_fun hL₀ ⟨Φ, hΦ⟩ |
| 621 | refine ⟨L, fun Ψ hΨ ↦ ⟨hL Ψ hΨ, fun z ↦ ?_⟩⟩ |
| 622 | -- Lift z to an adelic matrix N. The shear by z is the one of `centreCoeff_shear` for the central |
| 623 | -- element `ν = H.radicalCenter (idemAdele S • N)`. |
| 624 | obtain ⟨N, rfl⟩ : ∃ N : Matrix p p (𝔸 E), N.map (componentsAt 𝔠) = z := |
| 625 | ⟨z.map (0, adeleOfLocal _ ·), ext fun i j ↦ evalPlaces_adeleOfLocal _ (z i j)⟩ |
| 626 | let e : 𝔸 E := idemAdele 𝔠.ramifiedPlaces |
| 627 | have h_mat : (H.radicalCenter (e • N)).adeleMatrix = 1 + |
| 628 | (e • (H.kAdelic * N * H.lCoord) - star e • (H.kAdelic * Nᴴ * H.lCoord)) := by |
| 629 | rw [H.adeleMatrix_radicalCenter] |
| 630 | simp [Matrix.mul_sub, Matrix.sub_mul] |
| 631 | obtain ⟨h_mem, h_cf⟩ := h𝒟.centreCoeff_shear H T hΨ h_mat (by simp [← Matrix.mul_assoc]) x |
| 632 | -- The coefficient at `ν⁻¹ * x` is `ψ (tr (T * idemAdele S • N))` times the coefficient at `x`. |
| 633 | rw [← H.centreCoeff_radicalCentre_mul (h𝒟.isAutFunction hΨ) (e • N) (_ * x), |
| 634 | mul_inv_cancel_left] at h_cf |
| 635 | -- The character at S is `ψf` twisted by the finite part of `invDifferentIdele E`, which cancels |
| 636 | -- `(invDifferentIdele E)⁻¹`. |
| 637 | have h_char : 𝔠.readsAt.ψ (((invDifferentIdele E)⁻¹.val • T.map toAdele * N).map |
| 638 | (componentsAt 𝔠)).trace = stdAddChar E (T.map toAdele * e • N).trace := by |
| 639 | rw [← AddMonoidHom.map_trace, componentsAt, RingHom.comp_apply, ReadsAt.psi_apply] |
| 640 | simpa [e, mul_smul, smul_mul, trace_smul, smul_eq_mul, mul_assoc] using |
| 641 | (stdAddChar_idemAdele_mul (𝔠.ramifiedPlaces : Set (FinPlace E)) |
| 642 | ((invDifferentIdele E)⁻¹.val • T.map toAdele * N).trace).symm |
| 643 | simp only [← Matrix.map_mul, Matrix.mul_assoc x⁻¹.adeleMatrix] |
| 644 | exact ⟨h_mem, by rw [hL _ h_mem, hL _ hΨ, h_cf, h_char, smul_eq_mul]⟩ |
| 645 | |
| 646 | /-- If `𝒟` is an equivariant lift on `M` (automorphic values, equivariant for translations at `S`), |
| 647 | the data in `M` that `𝒟` kills are stable under translation by invertible matrices over the |
| 648 | completions at `S`. -/ |
| 649 | lemma comp_mul_mem_ker (h𝒟 : IsEquivariantLift 𝔠 X M 𝒟) (g : GL m (LocProd 𝔠.ramifiedPlaces)) |
| 650 | (Ψ : Matrix m b (LocProd 𝔠.ramifiedPlaces) → ℂ) (hΨ : Ψ ∈ M ⊓ 𝒟.ker) : |
| 651 | (fun y : Matrix m b (LocProd 𝔠.ramifiedPlaces) ↦ Ψ (g.val * y)) ∈ M ⊓ 𝒟.ker := by |
| 652 | -- g is the component at S of some k supported on S ∪ S̄; by `map_translate` the image of the |
| 653 | -- translate of Ψ, translated by k, is a multiple of `𝒟 Ψ = 0`. |
| 654 | obtain ⟨h_mem, h_zero : 𝒟 Ψ = 0⟩ := hΨ |
| 655 | obtain ⟨k, hk, rfl⟩ := 𝔠.exists_atPlaces_eq g |
| 656 | obtain ⟨h_mem', h_law⟩ := h𝒟.map_translate h_mem k hk |
| 657 | refine ⟨h_mem', funext fun z : G E r ↦ ?_⟩ |
| 658 | obtain ⟨x, rfl⟩ := mul_right_surjective (1, k) z |
| 659 | simp [h_law x, h_zero] |
| 660 | |
| 661 | end New.Exchange.IsEquivariantLift |
| 662 | |
| 663 | end |