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 Mathlib.Topology.Algebra.ProperConstSMul |
| 4 | public import Lib.Weil.Construction.FiniteMultiplier |
| 5 | public import Lib.Weil.Construction.WeilOperators |
| 6 | import Lib.Adelic.Adeles.StrongApproximation |
| 7 | import Lib.General.Measure.HaarNormalisation |
| 8 | import Lib.General.NumberTheory.FrobeniusOrbits |
| 9 | |
| 10 | /-! |
| 11 | # The finite cocycle as a finite Gauss sum, and its triviality |
| 12 | |
| 13 | This file treats the matrix action of the finite unitary group `New.Gf` on the finite Heisenberg |
| 14 | datum `New.stdLattice.finHeisenberg` of vectors `ι → 𝔸f E`, with vacuum `New.stdLattice.finVac` and |
| 15 | multiplier `New.finMultiplier`. We write `Ô` for `New.Ô E`, `ψ₀` for |
| 16 | `New.stdLattice.selfDualAddChar E`, `x* y` for `star x ⬝ᵥ y`, and `c₀` for `WeilData.traceOne`. |
| 17 | The double integral in the resulting cocycle is a finite Gauss sum, and the cocycle equals `1`. |
| 18 | |
| 19 | ## Main definitions and results |
| 20 | |
| 21 | * `New.stdLattice.exists_gauss_sum_finProjAction`: the double integral in the cocycle is a Gauss sum |
| 22 | over a finite module over `New.Ô`, the ring of integral finite adeles. |
| 23 | * `New.stdLattice.mem_cocycleRadical`: the cocycle is `1` at all `g` and `s`. |
| 24 | * `New.finAction`: the same action with cocycle `1`, as used for the adelic Weil representation. |
| 25 | |
| 26 | Notions from other files: |
| 27 | * `New.WeilData`: Weil data on a CM field E: ȷ in E with ȷ = −ȷ̄, a finite idele α for which Ô is |
| 28 | self-dual under (z, u) ↦ ψ_f(ȷαᾱzu), and a splitting character υ. |
| 29 | * `New.Heisenberg.IsVacuum`: a vacuum for β and μ is a continuous, integrable, even, real function e |
| 30 | with e(0) = 1 and ∫ e(z)e(x−y−z)β(z,y)β(z+y,x) dμ(z) = e(y)e(x). |
| 31 | * `New.Heisenberg.MultiplierAction`: an action of G on W that preserves β and μ. It comes with a |
| 32 | continuous multiplier Δ: G → ℂ such that Δ(1) = 1, Δ(g⁻¹) = conj Δ(g) and Δ(g)Δ(h)Δ((gh)⁻¹) ∬ |
| 33 | e(hx)e(ghy)β(x,y)e(x+y) = c(g,h). |
| 34 | * `New.stdLattice.finVac`: the function `ψ₀ (c₀ x* x / 2)` on the lattice `Ô ^ ι` and `0` off it. |
| 35 | * `New.finMultiplier`: for g in `New.Gf`, Δ_f(g) = χ_f(det u) with uÔ^ι = Ô^ι ∩ g⁻¹Ô^ι and |
| 36 | χ_f = υ|·|^(−1/2). |
| 37 | |
| 38 | ## Relation to the literature |
| 39 | |
| 40 | Known; see `Lib.Weil.MixedModel.ZeroTerm` for sources. |
| 41 | -/ |
| 42 | |
| 43 | @[expose] public section |
| 44 | |
| 45 | noncomputable section |
| 46 | |
| 47 | namespace New.stdLattice |
| 48 | |
| 49 | /-! |
| 50 | ## The finite cocycle as a finite Gauss sum |
| 51 | |
| 52 | The vacuum `New.stdLattice.finVac` vanishes off the standard lattice. So the integrand of the double |
| 53 | integral that defines the cocycle lives on a compact module, where it is invariant under an open |
| 54 | submodule. |
| 55 | -/ |
| 56 | |
| 57 | section FiniteCocycle |
| 58 | |
| 59 | open MeasureTheory Matrix NumberField Submodule Set Function |
| 60 | |
| 61 | universe u_1 u_2 |
| 62 | |
| 63 | variable {E : Type u_1} {ι : Type u_2} [Field E] [CMType E] |
| 64 | [WeilData E] [Fintype ι] [DecidableEq ι] |
| 65 | |
| 66 | /-- The matrix action of the finite unitary group on the finite Heisenberg datum (β x y = ψ₀(y* |
| 67 | x / 2); vacuum `finVac` = ψ₀(c₀ x* x / 2) on Ô^ι and `0` off it; `latticeMeasure` the Haar measure |
| 68 | giving Ô^ι mass one), with multiplier `New.finMultiplier`, paired with its cocycle |
| 69 | `finProjAction.1`, for which the cocycle identity holds by definition. -/ |
| 70 | noncomputable def finProjAction : |
| 71 | Σ c : Gf E ι → Gf E ι → ℂ, |
| 72 | (finHeisenberg E ι).MultiplierAction (latticeMeasure E ι) finVac (Gf E ι) c where |
| 73 | fst g h := |
| 74 | finMultiplier g * finMultiplier h * finMultiplier (g * h)⁻¹ * |
| 75 | ∫ x : ι → 𝔸f E, ∫ y : ι → 𝔸f E, finVac (h • x) * finVac ((g * h) • y) * (finHeisenberg E ι).β |
| 76 | x y * |
| 77 | finVac (x + y) ∂latticeMeasure E ι ∂latticeMeasure E ι |
| 78 | snd := |
| 79 | { beta_smul := by simp [finHeisenberg, HSMul.hSMul, SMul.smul] |
| 80 | -- `g` scales Haar measure by the inverse idele norm of its determinant, which is `1`. |
| 81 | measurePreserving g := |
| 82 | ⟨by fun_prop, (map_mulVec_haar_finAdele ..).trans (by simp [g.finIdeleAbs_det])⟩ |
| 83 | Δ := finMultiplier |
| 84 | continuous_delta := by |
| 85 | -- `finMultiplier` is invariant under right translation by the open subgroup `stdLevel E ι`. |
| 86 | refine (isLocallyConstant_of_eventually_mul |
| 87 | ((isOpen_stdLevel.eventually_mem (one_mem _)).mono fun k hk g ↦ ?_)).continuous |
| 88 | simpa using! glMultiplier_mul_of_mem g (one_mem _) hk |
| 89 | Δ_one := finMultiplier_eq_one_of_mem (one_mem (stdLevel E ι)) |
| 90 | Δ_inv := finMultiplier_inv |
| 91 | cocycle _ _ := rfl } |
| 92 | |
| 93 | open scoped Classical in |
| 94 | /-- The integrand of the double integral in the cocycle at `(g, s)`, made of the vacuum `finVac` |
| 95 | (ψ₀(c₀ x* x / 2) on Ô^ι, `0` off it) and the bicharacter `β` of `finHeisenberg`, is |
| 96 | `selfDualAddChar E (c̄₀ y* x)`, with `c₀ = traceOneAdele`, if `x + y`, `s x` and `g s y` lie in the |
| 97 | standard lattice, and `0` otherwise. -/ |
| 98 | lemma cocycleIntegrand_eq (g s : Gf E ι) (x y : ι → 𝔸f E) : |
| 99 | finVac (s • x) * finVac ((g * s) • y) * (finHeisenberg E ι).β x y * finVac (x + y) = |
| 100 | if x + y ∈ stdLattice E ι ∧ s • x ∈ stdLattice E ι ∧ (g * s) • y ∈ stdLattice E ι then |
| 101 | selfDualAddChar E (star traceOneAdele * star y ⬝ᵥ x) else 0 := by |
| 102 | -- The function `semichar` is invariant under unitary matrices and squares to `1` on the lattice. |
| 103 | have h_smul (h : Gf E ι) (z : ι → 𝔸f E) : semichar (h • z) = semichar z := by |
| 104 | simp [semichar, HSMul.hSMul, SMul.smul] |
| 105 | split_ifs with h |
| 106 | · obtain ⟨h_sum, hx, hy⟩ := h |
| 107 | calc _ = semichar (s • x) * semichar ((g * s) • y) * (finHeisenberg E ι).β x y * |
| 108 | semichar (x + y) := by simp [finVac, semichar, h_sum, hx, hy] |
| 109 | _ = selfDualAddChar E (star traceOneAdele * star y ⬝ᵥ x) * |
| 110 | (semichar (x + y) * semichar (x + y)) := by |
| 111 | rw [h_smul, h_smul, semichar_add, mul_assoc] |
| 112 | _ = selfDualAddChar E (star traceOneAdele * star y ⬝ᵥ x) := by |
| 113 | rw [semichar_mul_self h_sum, mul_one] |
| 114 | · simp only [finVac] |
| 115 | grind |
| 116 | |
| 117 | /-- Let `(x₁, x₂)` and `(y₁, y₂)` be pairs whose sums and whose images under `(s, g s)` lie in the |
| 118 | standard lattice, and which differ by lattice vectors. Then `selfDualAddChar E (c̄₀ x₂* x₁)` and |
| 119 | `selfDualAddChar E (c̄₀ y₂* y₁)` agree. -/ |
| 120 | lemma selfDualAddChar_traceOne_dot_congr (g s : Gf E ι) {x₁ x₂ y₁ y₂ : ι → 𝔸f E} |
| 121 | (hx : x₁ + x₂ ∈ stdLattice E ι) (hy : y₁ + y₂ ∈ stdLattice E ι) |
| 122 | (hsx : s • x₁ ∈ stdLattice E ι) (hsy : s • y₁ ∈ stdLattice E ι) |
| 123 | (hgsx : (g * s) • x₂ ∈ stdLattice E ι) (hgsy : (g * s) • y₂ ∈ stdLattice E ι) |
| 124 | (hd₁ : -x₁ + y₁ ∈ stdLattice E ι) (hd₂ : -x₂ + y₂ ∈ stdLattice E ι) : |
| 125 | selfDualAddChar E (star traceOneAdele * star y₂ ⬝ᵥ y₁) = selfDualAddChar E |
| 126 | (star traceOneAdele * star x₂ ⬝ᵥ x₁) := by |
| 127 | -- The pairing is unchanged when `s`, or `g * s`, is applied to both vectors. |
| 128 | have h_fst' : star y₁ ⬝ᵥ (y₁ - x₁) ∈ Ô E := by |
| 129 | rw [← star_mulVec_dotProduct_mulVec s, mulVec_sub] |
| 130 | exact star_dotProduct_mem (sub_mem hsy hsx) hsy |
| 131 | have h_snd' : star (y₂ - x₂) ⬝ᵥ x₂ ∈ Ô E := by |
| 132 | rw [← star_mulVec_dotProduct_mulVec (g * s), mulVec_sub] |
| 133 | exact star_dotProduct_mem hgsx (sub_mem hgsy hgsx) |
| 134 | -- The two pairings differ by a combination of these four integral ones. |
| 135 | have h_diff : star y₂ ⬝ᵥ y₁ = star x₂ ⬝ᵥ x₁ + |
| 136 | ((star (y₁ + y₂) ⬝ᵥ (-x₁ + y₁) - star y₁ ⬝ᵥ (y₁ - x₁)) + |
| 137 | (star (-x₂ + y₂) ⬝ᵥ (x₁ + x₂) - star (y₂ - x₂) ⬝ᵥ x₂)) := by |
| 138 | simp [neg_add_eq_sub] |
| 139 | ring |
| 140 | refine selfDualAddChar_congr 0 (mul_mem (star_mem_Ô traceOneAdele_mem) |
| 141 | (add_mem (sub_mem (star_dotProduct_mem hd₁ hy) h_fst') |
| 142 | (sub_mem (star_dotProduct_mem hx hd₂) h_snd'))) ?_ |
| 143 | rw [h_diff, mul_add, star_zero, add_zero, add_zero] |
| 144 | |
| 145 | /-- The pairs `(x, y)` of finite adelic vectors such that `x + y`, `s x` and `g s y` lie in the |
| 146 | lattice `Ô^ι`, as an `Ô E`-submodule. The integrand of the cocycle at `(g, s)` lives on it |
| 147 | (`New.stdLattice.cocycleIntegrand_eq`). -/ |
| 148 | def cocycleSubmodule {E : Type u_1} [Field E] [NumberField E] [IsCMField E] |
| 149 | (g s : Gf E ι) : Submodule (Ô E) ((ι → 𝔸f E) × (ι → 𝔸f E)) := |
| 150 | (intVectors (Ô E) ι).comap (.coprod 1 1) ⊓ |
| 151 | ((intVectors (Ô E) ι).comap (s.1.1 • .id)).prod ((intVectors (Ô E) ι).comap ((g * s).1 • .id)) |
| 152 | |
| 153 | /-- For the square of the Haar measure `latticeMeasure E ι`, which gives Ô^ι mass one, the pairs |
| 154 | `(x, y)` in `Ô^ι × Ô^ι` that lie in `cocycleSubmodule g s` (that is, `x + y`, `s x` and `g s y` are |
| 155 | again in `Ô^ι`) have volume `(‖Δ s‖ ^ 2)⁻¹ * (‖Δ (g * s)‖ ^ 2)⁻¹`, with `Δ = finMultiplier`. -/ |
| 156 | lemma measureReal_prod_inter_cocycleSubmodule (g s : Gf E ι) : |
| 157 | ((latticeMeasure E ι).prod (latticeMeasure E ι)).real |
| 158 | (((intVectors (Ô E) ι).prod (intVectors (Ô E) ι)).toAddSubgroup ∩ |
| 159 | (cocycleSubmodule g s).toAddSubgroup) = |
| 160 | (‖finMultiplier s‖ ^ 2)⁻¹ * (‖finMultiplier (g * s)‖ ^ 2)⁻¹ := by |
| 161 | -- On pairs of lattice vectors the condition on the sum is automatic, so the set is a product. |
| 162 | have h_set : (SetLike.coe ((intVectors (Ô E) ι).prod (intVectors (Ô E) ι)).toAddSubgroup ∩ |
| 163 | (cocycleSubmodule g s).toAddSubgroup) = |
| 164 | {x : ι → 𝔸f E | s.val.val *ᵥ x ∈ stdLattice E ι ∧ x ∈ stdLattice E ι} ×ˢ |
| 165 | {y : ι → 𝔸f E | (g * s).val.val *ᵥ y ∈ stdLattice E ι ∧ y ∈ stdLattice E ι} := |
| 166 | Set.ext fun ⟨x, y⟩ ↦ ⟨fun ⟨⟨hx, hy⟩, _, hsx, hgsy⟩ ↦ ⟨⟨hsx, hx⟩, hgsy, hy⟩, |
| 167 | fun ⟨⟨hsx, hx⟩, hgsy, hy⟩ ↦ ⟨⟨hx, hy⟩, add_mem hx hy, hsx, hgsy⟩⟩ |
| 168 | rw [h_set, measureReal_prod_prod, latticeMeasure_inter_eq_glMultiplier, |
| 169 | latticeMeasure_inter_eq_glMultiplier, finMultiplier, finMultiplier] |
| 170 | |
| 171 | /-- In the product of multipliers on the left of the Gauss sum identity |
| 172 | `New.stdLattice.exists_gauss_sum_finProjAction`, the volume factors |
| 173 | `(‖Δ s‖ ^ 2)⁻¹ * (‖Δ (g * s)‖ ^ 2)⁻¹` cancel against `Δ x * Δ x⁻¹ = ‖Δ x‖ ^ 2` for `x = s` and |
| 174 | `x = g * s`, with `Δ = finMultiplier`: only `Δ g` and the factor `z` remain. -/ |
| 175 | lemma finMultiplier_mul_smul_mul_eq (g s : Gf E ι) (z : ℂ) : |
| 176 | finMultiplier g * finMultiplier s * finMultiplier (g * s)⁻¹ * |
| 177 | (((‖finMultiplier s‖ ^ 2)⁻¹ * (‖finMultiplier (g * s)‖ ^ 2)⁻¹ : ℝ) • z) * |
| 178 | finMultiplier s⁻¹ * finMultiplier (g * s) = z * finMultiplier g := by |
| 179 | have h_sq (x : Gf E ι) : |
| 180 | ((‖finMultiplier x‖ : ℝ) : ℂ) ^ 2 = finMultiplier x⁻¹ * finMultiplier x := by |
| 181 | rw [finMultiplier_inv, Complex.conj_mul'] |
| 182 | push_cast [Complex.real_smul, h_sq] |
| 183 | field_simp [finMultiplier_ne_zero] |
| 184 | |
| 185 | /-- The cocycle as a finite Gauss sum. For `g`, `s` in the finite unitary group there are a finite |
| 186 | module `Q` over the ring `Ô E` of integral finite adeles, in the larger of the universes `u_1` of |
| 187 | `E` and `u_2` of `ι`, and a function `γ` from `Q` to the finite adeles with the following |
| 188 | properties. Take the cocycle `c = finProjAction.1` of the matrix action of `Gf E ι` on the finite |
| 189 | Heisenberg datum, the multiplier `Δ = finMultiplier` (`glMultiplier` of the underlying invertible |
| 190 | matrix) and the character `ψ₀ = selfDualAddChar E`, z ↦ ψ_f(ȷαᾱz). Then (a) |
| 191 | `c g s * Δ s⁻¹ * Δ (g * s)` is the sum of `ψ₀ (γ q)` over `Q` times `Δ g`; and for all `t` in `Ô E` |
| 192 | and `q` in `Q`, (b) `γ (t • q)` and `star t * t * γ q` have the same value under `ψ₀`, and (c) |
| 193 | `t • q = 0` if the matrix `t • s⁻¹` has entries in `Ô E`. -/ |
| 194 | lemma exists_gauss_sum_finProjAction (g s : Gf E ι) : |
| 195 | ∃ (Q : ModuleCat.{max u_1 u_2} (Ô E)) (_ : Fintype Q) (γ : Q → 𝔸f E), |
| 196 | -- (a) the cocycle is a sum over the finite module `Q`, up to values of `finMultiplier` |
| 197 | finProjAction.1 g s * finMultiplier s⁻¹ * finMultiplier (g * s) = |
| 198 | (∑ q : Q, selfDualAddChar E (γ q)) * finMultiplier g ∧ |
| 199 | ∀ (t : Ô E) (q : Q), |
| 200 | -- (b) `γ` is hermitian-quadratic modulo the kernel of `selfDualAddChar E` |
| 201 | selfDualAddChar E (γ (t • q)) = selfDualAddChar E (star (t : 𝔸f E) * t * γ q) ∧ |
| 202 | -- (c) `t` kills `Q` when `t • s⁻¹` is integral |
| 203 | ((t : 𝔸f E) • ((s⁻¹ : Gf E ι) : Matrix ι ι (𝔸f E)) ∈ (Ô E).matrix → t • q = 0) := by |
| 204 | -- The integrand is `ψ₀ ∘ F` on the compact module `M`, where it is constant on the cosets of |
| 205 | -- `M ∩ (L × L)`, so the cocycle is a sum over the finite quotient `Q = M / (M ∩ (L × L))`. |
| 206 | classical |
| 207 | let L : Submodule (Ô E) (ι → 𝔸f E) := intVectors (Ô E) ι |
| 208 | let M : Submodule (Ô E) ((ι → 𝔸f E) × (ι → 𝔸f E)) := cocycleSubmodule g s |
| 209 | let F (p : (ι → 𝔸f E) × (ι → 𝔸f E)) : 𝔸f E := star traceOneAdele * star p.2 ⬝ᵥ p.1 |
| 210 | have hM : IsCompact (SetLike.coe M.toAddSubgroup) := |
| 211 | ((isCompact_stdLattice.preimage_smul s.1).prod (isCompact_stdLattice.preimage_smul (g * s).1)) |
| 212 | |>.inter_left (isCompact_stdLattice.isClosed.preimage continuous_add) |
| 213 | have hL : IsOpen (SetLike.coe (L.prod L).toAddSubgroup) := |
| 214 | isOpen_stdLattice.prod isOpen_stdLattice |
| 215 | let h_fin : Fintype (M.toAddSubgroup ⧸ (L.prod L).toAddSubgroup.addSubgroupOf M.toAddSubgroup) := |
| 216 | AddSubgroup.fintypeOfIndexNeZero (hM.relIndex_ne_zero_add hL) |
| 217 | have h_integrand (x y : ι → 𝔸f E) : (SetLike.coe M.toAddSubgroup).indicator |
| 218 | (selfDualAddChar E ∘ F) (x, y) = |
| 219 | finVac (s • x) * finVac ((g * s) • y) * (finHeisenberg E ι).β x y * finVac (x + y) := by |
| 220 | rw [cocycleIntegrand_eq, indicator_apply] |
| 221 | congr 1 |
| 222 | -- Invariance: for `x`, `y` in `M` with `y - x` in `L × L`, the difference `F y - F x` is |
| 223 | -- integral. |
| 224 | have h_inv (x y : M.toAddSubgroup) (h : -x.val + y ∈ (L.prod L).toAddSubgroup) : |
| 225 | (selfDualAddChar E ∘ F) y = (selfDualAddChar E ∘ F) x := by |
| 226 | obtain ⟨⟨x₁, x₂⟩, hx_sum, hx₁, hx₂⟩ := x |
| 227 | obtain ⟨⟨y₁, y₂⟩, hy_sum, hy₁, hy₂⟩ := y |
| 228 | obtain ⟨hd₁, hd₂⟩ := h |
| 229 | exact selfDualAddChar_traceOne_dot_congr g s hx_sum hy_sum hx₁ hy₁ hx₂ hy₂ hd₁ hd₂ |
| 230 | refine ⟨.of _ (M ⧸ submoduleOf (L.prod L) M), h_fin, fun q ↦ F q.out, ?_, fun t q ↦ ⟨?_, ?_⟩⟩ |
| 231 | · let ν : Measure ((ι → 𝔸f E) × (ι → 𝔸f E)) := (latticeMeasure E ι).prod (latticeMeasure E ι) |
| 232 | have h_int : IntegrableOn (selfDualAddChar E ∘ F) M.toAddSubgroup ν := |
| 233 | hM.integrableOn _ (continuous_selfDualAddChar.comp (by fun_prop)) |
| 234 | -- The double integral is the integral of `selfDualAddChar E ∘ F` over `M`, so a volume times a |
| 235 | -- sum. |
| 236 | simp_rw [finProjAction, ← h_integrand] |
| 237 | have h_double : |
| 238 | ∫ x : ι → 𝔸f E, ∫ y : ι → 𝔸f E, (SetLike.coe M.toAddSubgroup).indicator |
| 239 | (selfDualAddChar E ∘ F) (x, y) |
| 240 | ∂latticeMeasure E ι ∂latticeMeasure E ι = |
| 241 | ν.real ((L.prod L).toAddSubgroup ∩ M.toAddSubgroup) • |
| 242 | ∑ q : M.toAddSubgroup ⧸ (L.prod L).toAddSubgroup.addSubgroupOf M.toAddSubgroup, |
| 243 | selfDualAddChar E (F q.out.val) := by |
| 244 | rw [← integral_prod _ (h_int.integrable_indicator hM.measurableSet), |
| 245 | integral_indicator hM.measurableSet, setIntegral_eq_finsum hM hL h_inv, |
| 246 | finsum_eq_sum_of_fintype] |
| 247 | rfl |
| 248 | rw [h_double, measureReal_prod_inter_cocycleSubmodule g s] |
| 249 | -- The sum over `Q` is by definition the sum over the quotient of additive groups. |
| 250 | exact finMultiplier_mul_smul_mul_eq g s _ |
| 251 | · -- `t • q.out` represents `t • q`, and `F` is sesquilinear. |
| 252 | refine (h_inv (t • q.out) (t • q).out |
| 253 | ((Submodule.Quotient.eq' (submoduleOf (L.prod L) M)).1 (by simp))).trans ?_ |
| 254 | have h_sesq (p : (ι → 𝔸f E) × (ι → 𝔸f E)) : F (t • p) = star t.val * t * F p := by |
| 255 | simp [F, Subring.smul_def] |
| 256 | ring |
| 257 | exact congrArg (selfDualAddChar E) (h_sesq q.out.val) |
| 258 | · -- For `(x₁, x₂)` in `M`, `t • x₁ = (t • s⁻¹) (s x₁)` and `t • (x₁ + x₂)` lie in `L`. |
| 259 | refine q.inductionOn fun x ht ↦ ?_ |
| 260 | have h_sx : s.val.val *ᵥ x.val.1 ∈ stdLattice E ι := x.property.2.1 |
| 261 | have h_fst : (t • x).val.1 ∈ L := by simpa [smul_mulVec] using! IsIntMatrix.mulVec ht h_sx |
| 262 | have h_sum : (t • x).val.1 + (t • x).val.2 ∈ L := (t • x).property.1 |
| 263 | exact (Submodule.Quotient.mk_eq_zero _).2 ⟨h_fst, (add_mem_cancel_left h_fst).1 h_sum⟩ |
| 264 | |
| 265 | end FiniteCocycle |
| 266 | |
| 267 | /-! |
| 268 | ## Triviality of the finite cocycle |
| 269 | |
| 270 | * `New.stdLattice.finProjAction_cocycle_eq_one_of_mem`: the cocycle at `(g, s)` is `1` when `s` lies |
| 271 | in the stabiliser `New.stdLevel` of the standard lattice. |
| 272 | |
| 273 | The `s` at which the cocycle is `1` for all `g` form a subgroup, |
| 274 | `New.Heisenberg.IsVacuum.cocycleRadical`. It contains `New.stdLevel`, so only `s` supported on one |
| 275 | pair of conjugate places remain. The cocycle has absolute value `1`, and |
| 276 | `New.stdLattice.exists_gauss_sum_finProjAction` turns it into a Gauss sum. At a split place `w`, |
| 277 | where one may assume `s⁻¹` integral at `w`, all terms of this sum are `1`. At a place fixed by |
| 278 | conjugation `New.eq_one_of_apply_apply_eq_neg` fixes the sign. |
| 279 | -/ |
| 280 | |
| 281 | section FiniteCocycleTrivial |
| 282 | |
| 283 | open Complex NumberField Gf ComplexOrder WeilData AddChar Weil Heisenberg IsVacuum |
| 284 | open scoped Pointwise |
| 285 | |
| 286 | variable {E ι : Type*} [Field E] [CMType E] [Fintype ι] [DecidableEq ι] [WeilData E] |
| 287 | |
| 288 | /-- The finite cocycle is `1` at `(g, s)` when `s` lies in the stabiliser `New.stdLevel` of the |
| 289 | standard lattice. -/ |
| 290 | lemma finProjAction_cocycle_eq_one_of_mem ⦃s : Gf E ι⦄ (hs : s ∈ stdLevel E ι) (g : Gf E ι) : |
| 291 | finProjAction.1 g s = 1 := by |
| 292 | -- As `s⁻¹` is integral, `1` kills the module `Q` of the Gauss sum: the sum is its one term `1`. |
| 293 | obtain ⟨Q, _, γ, h_sum, h_smul⟩ := exists_gauss_sum_finProjAction g s |
| 294 | have h_zero (q : Q) : q = 0 := by |
| 295 | simpa using (h_smul 1 q).2 (by simpa using! hs.isIntMatrix_inv) |
| 296 | have h_gauss : ∑ q : Q, selfDualAddChar E (γ q) = 1 := by |
| 297 | rw [Fintype.sum_eq_single 0 fun q hq ↦ absurd (h_zero q) hq] |
| 298 | simpa using (h_smul 0 0).1 |
| 299 | have h_mul : finMultiplier (g * s) = finMultiplier g := by |
| 300 | simpa [finMultiplier] using glMultiplier_mul_of_mem g.val (one_mem _) hs |
| 301 | simpa [h_gauss, h_mul, finMultiplier_eq_one_of_mem (inv_mem hs), finMultiplier_ne_zero] using |
| 302 | h_sum |
| 303 | |
| 304 | /-- The finite cocycle has absolute value one, as the operators of the action are isometries. -/ |
| 305 | lemma norm_cocycle_eq_one (g s : Gf E ι) : ‖finProjAction.1 g s‖ = 1 := by |
| 306 | -- The product of the operators of `(g * s)⁻¹`, `g` and `s` is the scalar `finProjAction.1 g s` |
| 307 | -- (`weilOp_inv_mul_weilOp_mul_weilOp`), and each preserves `modelInner`; apply it to the vacuum, |
| 308 | -- a unit vector. |
| 309 | let A := (finProjAction (E := E) (ι := ι)).2 |
| 310 | let v : Model (finHeisenberg E ι) := isVacuum_finVac.vacElem |
| 311 | have h_isometry (x : Gf E ι) (f : Model (finHeisenberg E ι)) : |
| 312 | modelInner (weilOp A x f) (weilOp A x f) = modelInner f f := |
| 313 | modelInner_weilOp A x f f (finProjAction_cocycle_eq_one_of_mem (one_mem _) x) |
| 314 | have h_triple : |
| 315 | weilOp A (g * s)⁻¹ (weilOp A g (weilOp A s v)) = finProjAction.1 g s • v := |
| 316 | DFunLike.congr_fun (weilOp_inv_mul_weilOp_mul_weilOp A g s) v |
| 317 | have h_unit : modelInner v v = 1 := (modelInner_vacElem ..).trans isVacuum_finVac.apply_zero |
| 318 | have h_inner : modelInner (finProjAction.1 g s • v) (finProjAction.1 g s • v) = 1 := by |
| 319 | rw [← h_triple, h_isometry, h_isometry, h_isometry, h_unit] |
| 320 | have h_sq : ((‖finProjAction.1 g s‖ : ℝ) : ℂ) ^ 2 = 1 := by |
| 321 | simpa [h_unit, ← Complex.mul_conj', mul_comm] using h_inner |
| 322 | exact (pow_eq_one_iff_of_nonneg (norm_nonneg _) two_ne_zero).1 (mod_cast h_sq) |
| 323 | |
| 324 | /-- For `a`, `s` supported on a split place `w` and its conjugate, `Δ a / Δ (a * s) / Δ s⁻¹` is |
| 325 | nonnegative, that is real and `≥ 0` in `ComplexOrder`, with `Δ = finMultiplier`: the phase of |
| 326 | `Δ x` is a character of the determinant of `x` at `w`. -/ |
| 327 | lemma finMultiplier_div_nonneg_of_isSplit {w : FinPlace E} (hw : w.IsSplit) {a s : Gf E ι} |
| 328 | (ha : a ∈ supportedOn ι {w}) (hs : s ∈ supportedOn ι {w}) : |
| 329 | 0 ≤ finMultiplier a / finMultiplier (a * s) / finMultiplier s⁻¹ := by |
| 330 | let cut (x : Gf E ι) : GL ι (𝔸f E) := cutGL (idem_mul_self {w}) x.val |
| 331 | have h_eq {x : Gf E ι} (hx : x ∈ supportedOn ι {w}) : |
| 332 | finMultiplier x = ‖glMultiplier (cut x)‖ ^ 2 * starRingEnd ℂ (chiFin (cut x).det) := |
| 333 | finMultiplier_eq_of_supportedOn (by simp [hw]) hx |
| 334 | have h_phase : chiFin (cut (a * s)).det * chiFin (cut s⁻¹).det = chiFin (cut a).det := by |
| 335 | rw [← map_mul, ← map_mul, show cut (a * s) * cut s⁻¹ = cut a by simp [cut]] |
| 336 | have h_ne (x : Gf E ι) : starRingEnd ℂ (chiFin (cut x).det) ≠ 0 := |
| 337 | star_ne_zero.2 (chiFin.toHomUnits _).ne_zero |
| 338 | -- By `h_phase` the characters cancel, and squares of absolute values are left. |
| 339 | rw [h_eq ha, h_eq (mul_mem ha hs), h_eq (inv_mem hs), ← h_phase, map_mul] |
| 340 | field_simp [h_ne] |
| 341 | positivity |
| 342 | |
| 343 | /-- Let `x` be an element of the finite adelic unitary group `Gf E ι` (matrices g over the finite |
| 344 | adeles with gᴴg = 1) supported on an inert place `w`: `w` is fixed by conjugation, and `x` has |
| 345 | component 1 at every other place. If the residue field of `w` has `w.q = r ^ 2` elements, then the |
| 346 | multiplier Δ_f(x) (`New.finMultiplier`) is a power of `-r`, as the splitting character `υ` of the |
| 347 | Weil data is `-1` at the uniformiser. -/ |
| 348 | lemma exists_finMultiplier_eq_neg_pow {w : FinPlace E} (hw : star w = w) {r : ℕ} |
| 349 | (hr : r ^ 2 = w.q) {x : Gf E ι} (hx : x ∈ supportedOn ι {w}) : |
| 350 | ∃ n : ℕ, finMultiplier x = (-(r : ℂ)) ^ n := by |
| 351 | have h_away (u : FinPlace E) (hu : u ≠ w) : x.val.map (evalAt u) = 1 := |
| 352 | mem_supportedOn.1 hx u hu fun h_star ↦ hu (star_injective (h_star.trans hw.symm)) |
| 353 | obtain ⟨n, h_pow⟩ : ∃ n : ℕ, glMultiplier x.val = (υ.atUniformizer w * √w.q) ^ n := |
| 354 | ⟨_, glMultiplier_eq_pow_of_local h_away ((saturatingElem x.val).property.map_evalAt w)⟩ |
| 355 | have h_unif : υ.atUniformizer w * √w.q = -(r : ℂ) := by simp [υ_inert, hw, ← hr] |
| 356 | exact ⟨n, by rw [finMultiplier, h_pow, h_unif]⟩ |
| 357 | |
| 358 | /-- Let `w = star w` be an inert place with `w.q = r ^ 2` residue field elements, `r ≡ 3` modulo |
| 359 | `4`. Let `Q` be a finite `Ô E`-module killed by `idem (star {w})ᶜ`, the idempotent that is `1` off |
| 360 | `w = star w` and `0` at it. Let `γ` be hermitian-quadratic modulo the kernel of the character |
| 361 | `selfDualAddChar E`. If `‖c‖ = 1` and `c * (-r) ^ k` is the Gauss sum of `γ` times `(-r) ^ m`, |
| 362 | then `c = 1`. -/ |
| 363 | lemma eq_one_of_gauss_sum_of_inert {w : FinPlace E} (hw : star w = w) {Q : Type*} |
| 364 | [AddCommGroup Q] [Module (Ô E) Q] [Fintype Q] {γ : Q → 𝔸f E} |
| 365 | (h_smul : ∀ (t : Ô E) (q : Q), |
| 366 | selfDualAddChar E (γ (t • q)) = selfDualAddChar E (star (t : 𝔸f E) * t * γ q)) |
| 367 | (h_kill : ∀ q : Q, (⟨idem (star {w})ᶜ, idem_mem_Ô (star {w})ᶜ⟩ : Ô E) • q = 0) |
| 368 | {r : ℕ} (hr_sq : r ^ 2 = w.q) (hr_mod : r % 4 = 3) {k m : ℕ} {c : ℂ} (hc : ‖c‖ = 1) |
| 369 | (h_eq : c * (-(r : ℂ)) ^ k = (∑ q : Q, selfDualAddChar E (γ q)) * (-(r : ℂ)) ^ m) : |
| 370 | c = 1 := by |
| 371 | -- The sum is real: scaling by `normNegOne`, a unit of norm `-1`, permutes `Q` and conjugates the |
| 372 | -- terms. |
| 373 | have h_real : star (∑ q : Q, selfDualAddChar E (γ q)) = ∑ q : Q, selfDualAddChar E (γ q) := by |
| 374 | simpa [h_smul, map_neg_eq_inv, inv_eq_conj, norm_selfDualAddChar, star_normNegOne_mul_self] |
| 375 | using |
| 376 | (normNegOne (E := E)).isUnit.smul_bijective.sum_comp (selfDualAddChar E ∘ γ) |
| 377 | -- `Q` has no `2`-torsion: `t - 2` is `-2` at `w`, `-1` elsewhere, and `w.q = r ^ 2` is odd. |
| 378 | let t : Ô E := ⟨idem (star {w})ᶜ, idem_mem_Ô _⟩ |
| 379 | have h_unit : IsUnit (t - 1 - 1) := by |
| 380 | have h_odd : Odd w.q := hr_sq.subst (Odd.pow (Nat.odd_iff.2 (by omega))) |
| 381 | have h_two : (2 : 𝓞 E) ∉ w.asIdeal := |
| 382 | w.isPrime.notMem_of_isCoprime_of_mem h_odd.coprime_two_right.cast w.asIdeal.absNorm_mem |
| 383 | refine isUnit_Ô.2 fun u ↦ ?_ |
| 384 | obtain rfl | hu := eq_or_ne w u |
| 385 | · have h_val : Valued.v (2 : LocField w) = 1 := by |
| 386 | simpa [map_ofNat] using v_algebraMap_eq_one h_two |
| 387 | norm_num [t, hw, h_val] |
| 388 | · norm_num [t, star_injective.eq_iff' hw, hu.symm] |
| 389 | have h_tors (q : Q) (hq : -q = q) : q = 0 := |
| 390 | h_unit.smul_eq_zero.1 (by simpa [t, h_kill, sub_smul, sub_eq_zero] using hq) |
| 391 | -- Multiplication by `i` has square `-1` and norm `1`, so it preserves the terms of the sum. Its |
| 392 | -- orbits off `0` have four points, so `eq_one_of_apply_apply_eq_neg` applies. |
| 393 | obtain ⟨i, -, hi_sq, hi_star, -⟩ := |
| 394 | HasPrimitiveRoot5040.exists_mul_self_eq_neg_one_and_mul_star_eq_two (E := E) |
| 395 | let rot (q : Q) : Q := algebraMap (𝓞 E) (Ô E) i • q |
| 396 | have h_rot_term (q : Q) : selfDualAddChar E (γ (rot q)) = selfDualAddChar E (γ q) := by |
| 397 | simp [rot, h_smul, ← map_mul, ← coe_star_ringOfIntegers, hi_sq, hi_star] |
| 398 | have h_rot_sq (q : Q) : rot (rot q) = -q := by simp [rot, ← map_mul, smul_smul, hi_sq] |
| 399 | have h_mod : (-r : ℤ) ≡ 1 [ZMOD 4] := by grind [Int.ModEq] |
| 400 | exact eq_one_of_apply_apply_eq_neg (F := fun q : Q ↦ selfDualAddChar E (γ q)) h_tors h_rot_sq |
| 401 | h_rot_term |
| 402 | (fun _ ↦ isOfFinOrder_ψf _) (by simpa using h_smul 0 0) h_real h_mod hc (by simpa using h_eq) |
| 403 | |
| 404 | /-- **The finite cocycle is trivial**: `finProjAction.1 g s = 1` for all `g`, `s` in the finite |
| 405 | unitary group. It is stated as membership of `s` in `New.Heisenberg.IsVacuum.cocycleRadical` for the |
| 406 | action `New.stdLattice.finProjAction`, the subgroup of the `s` with `finProjAction.1 g s = 1` for |
| 407 | every `g`, so that the proof may argue on generators. Forming that subgroup needs |
| 408 | `finProjAction.1 g 1 = 1` for all `g`. This follows from |
| 409 | `New.stdLattice.finProjAction_cocycle_eq_one_of_mem`, since `1` lies in `New.stdLevel`. |
| 410 | |
| 411 | A special case of the splitting of the Weil representation over unitary groups (Kudla) at the finite |
| 412 | places, for one explicit normalisation on the finite vacuum. -/ |
| 413 | lemma mem_cocycleRadical ⦃s : Gf E ι⦄ : |
| 414 | s ∈ cocycleRadical finProjAction.2 (finProjAction_cocycle_eq_one_of_mem (by simp)) := by |
| 415 | -- A subgroup that contains `stdLevel E ι` and, for every `w`, the elements supported on `w` and |
| 416 | -- `star w` is the whole group. For such `s` the cocycle has absolute value `1`, and its phase |
| 417 | -- is read off the Gauss sum `exists_gauss_sum_finProjAction`. |
| 418 | refine s.mem_of_stdLevel_le_of_supportedOn_le finProjAction_cocycle_eq_one_of_mem fun w s hs ↦ ?_ |
| 419 | -- At a split place we may assume `s⁻¹` integral at `w`: with `u` and `s⁻¹ u` integral at `w` and |
| 420 | -- `b = ofSplitPlace hw u⁻¹`, both `b` and `b * s` are of this kind. |
| 421 | wlog! h_int : w.IsSplit → (s⁻¹.atPlace w).val ∈ (LocInt w).matrix generalizing s with h_gen |
| 422 | · obtain ⟨hw, -⟩ := h_int |
| 423 | obtain ⟨u, hu, hsu, -⟩ : ∃ u : GL ι (LocField w), |
| 424 | IsSaturating (LocInt w).matrix (s⁻¹.atPlace w) u := |
| 425 | ⟨_, (saturatingElem s⁻¹.val).property.map_evalAt w⟩ |
| 426 | have hb : ofSplitPlace hw u⁻¹ ∈ supportedOn ι {w} := ofSplitPlace_mem_supportedOn hw u⁻¹ |
| 427 | exact (mul_mem_cancel_left (h_gen _ hb fun _ ↦ by simpa [hw] using hu)).1 |
| 428 | (h_gen _ (mul_mem hb hs) fun _ ↦ by simpa [hw] using hsu) |
| 429 | intro g |
| 430 | obtain ⟨Q, _, γ, h_sum, h_smul⟩ := exists_gauss_sum_finProjAction g s |
| 431 | -- Write `g = a * b` with `a` on `w`, `star w` and `b` off them; the factor `finMultiplier b` |
| 432 | -- cancels. |
| 433 | obtain ⟨a, ha, b, hb, rfl, -⟩ := g.exists_supportedOn_mul_trivialOn {w} |
| 434 | have h_mul (x : Gf E ι) (hx : x ∈ supportedOn ι {w}) : |
| 435 | finMultiplier (x * b) = finMultiplier x * finMultiplier b := |
| 436 | glMultiplier_mul_of_map_evalAt_eq_one (atPlace_eq_one_or hx hb) |
| 437 | replace h_sum : finProjAction.1 (a * b) s * finMultiplier s⁻¹ * finMultiplier (a * s) = |
| 438 | (∑ q : Q, selfDualAddChar E (γ q)) * finMultiplier a := by |
| 439 | simpa [← (commute_supportedOn_trivialOn hs hb).right_comm, h_mul, ha, hs, mul_mem, field, |
| 440 | finMultiplier_ne_zero] using h_sum |
| 441 | -- `Q` lives at `star w`: `s⁻¹` is integral at all other places, so their idempotent kills `Q`. |
| 442 | let t : Ô E := ⟨idem (star {w})ᶜ, idem_mem_Ô _⟩ |
| 443 | have h_kill (q : Q) : t • q = 0 := by |
| 444 | refine (h_smul t q).2 fun i j ↦ idem_mul_mem_Ô.2 fun u hu ↦ ?_ |
| 445 | suffices h_entries : (s⁻¹.atPlace u).val ∈ (LocInt u).matrix from h_entries i j |
| 446 | obtain rfl | huw := eq_or_ne u w |
| 447 | · exact h_int (by simpa using hu) |
| 448 | · simp [mem_supportedOn.1 hs _ huw hu] |
| 449 | by_cases! hw : w.IsSplit |
| 450 | · -- Split place: `1 - t` acts as the identity and has norm `0`, so every term of the sum is `1`. |
| 451 | have h_idem : (1 - star t.val) * (1 - t) = 0 := by |
| 452 | ext1 u |
| 453 | by_cases hu : u = w <;> simp [t, star_idem, hu, hw] |
| 454 | have h_one (q : Q) : selfDualAddChar E (γ q) = 1 := by |
| 455 | simpa [sub_smul, h_kill, h_idem] using (h_smul (1 - t) q).1 |
| 456 | -- The phases of `finMultiplier a` and of `finMultiplier s⁻¹ * finMultiplier (a * s)` cancel. |
| 457 | have h_quot : finProjAction.1 (a * b) s = |
| 458 | Fintype.card Q * (finMultiplier a / finMultiplier (a * s) / finMultiplier s⁻¹) := by |
| 459 | simpa [h_one, field, finMultiplier_ne_zero, mul_right_comm] using h_sum |
| 460 | have h_nonneg : 0 ≤ finProjAction.1 (a * b) s := |
| 461 | (mul_nonneg (Nat.cast_nonneg _) (finMultiplier_div_nonneg_of_isSplit hw ha hs)).trans_eq |
| 462 | h_quot.symm |
| 463 | exact (eq_coe_norm_of_nonneg h_nonneg).trans (mod_cast norm_cocycle_eq_one (a * b) s) |
| 464 | -- Inert place: `w.q = r ^ 2` with `-r ≡ 1` modulo `4`, and the multipliers are powers of `-r`. |
| 465 | obtain ⟨r, hr_sq, hr_mod⟩ := HasPrimitiveRoot5040.exists_sq_eq_q_of_inert (w := w) hw |
| 466 | obtain ⟨k₁, hk₁⟩ := exists_finMultiplier_eq_neg_pow hw hr_sq (inv_mem hs) |
| 467 | obtain ⟨k₂, hk₂⟩ := exists_finMultiplier_eq_neg_pow hw hr_sq (mul_mem ha hs) |
| 468 | obtain ⟨m, hm⟩ := exists_finMultiplier_eq_neg_pow hw hr_sq ha |
| 469 | rw [hk₁, hk₂, hm, mul_assoc, ← pow_add] at h_sum |
| 470 | exact eq_one_of_gauss_sum_of_inert hw (fun t q ↦ (h_smul t q).1) h_kill hr_sq hr_mod |
| 471 | (norm_cocycle_eq_one (a * b) s) h_sum |
| 472 | |
| 473 | /-- The matrix action of the finite adelic unitary group on the finite Heisenberg datum with |
| 474 | multiplier `New.finMultiplier`, together with the fact that its cocycle is identically 1. -/ |
| 475 | def _root_.New.finAction : (finHeisenberg E ι).MultiplierAction (latticeMeasure E ι) finVac |
| 476 | (Gf E ι) := |
| 477 | { finProjAction.2 with cocycle g _ := mem_cocycleRadical g } |
| 478 | |
| 479 | end FiniteCocycleTrivial |
| 480 | |
| 481 | end New.stdLattice |
| 482 | |
| 483 | end |