Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | public import Lib.Weil.DualPair.Defs |
| 4 | import Lib.Adelic.Adeles.LocalFactors |
| 5 | import Lib.Adelic.Unitary.WeakApproximation |
| 6 | import Lib.Weil.Construction.CanonicalTheta |
| 7 | import Lib.Weil.DualPair.WeilAction |
| 8 | |
| 9 | /-! |
| 10 | # Weil representation of unitary pairs: finite action, sums, negation and change of point |
| 11 | |
| 12 | This file studies the Weil representation `New.pairWeil` S T a b of a pair of unitary groups on |
| 13 | data on Hom(S,T). Here S and T are hermitian spaces of ranks n and n′, Hom(S,T) is the space of |
| 14 | n′ × n matrices, and θ denotes the theta functional. The file describes the action of finite points |
| 15 | on named data. It also describes the behaviour of the action and of θ when a space is split as a |
| 16 | sum, when the form of one space is negated, and when a point is moved. |
| 17 | |
| 18 | ## Main definitions and results |
| 19 | |
| 20 | * `New.pairWeil_schrodingerOp_of_mem_supportedOn`: a pair supported on `A` and its conjugate |
| 21 | (`New.Gf.supportedOn`) replaces `Ψ` by `Ψ (h⁻¹ · g)`, up to an explicit scalar. |
| 22 | * `New.pairWeil_schrodingerOp_of_mem`: an integral pair (`New.stdLevel`) moves `Ψ` and the vector |
| 23 | together. |
| 24 | * `New.conj_weilMultiplier_of_eq_neg`, `New.exists_theta_negSource`: negation conjugates the |
| 25 | multiplier and θ, up to a factor; `New.pairWeil_negSource`: it intertwines the actions of the pair |
| 26 | once the characters are changed. |
| 27 | |
| 28 | Notions from other files: |
| 29 | * `New.pairWeil`: The representation ω_{a,b}(g, h) = a(det h) b(det g)⁻¹ ω(`onHom` (g, h)); the |
| 30 | scalar is `New.pairChar a b (g, h)`. |
| 31 | * `New.weilMultiplier`: Δ(g) = Δ_f(g_f) ∏_τ conj(det d_τ), with d_τ the block of g_τ on the negative |
| 32 | coordinates. |
| 33 | * `New.Space.boxProd`: the product f₁ ⊠ f₂ of data on two blocks of coordinates. |
| 34 | * `New.Space.ϱ`, `New.Space.ω`, `New.Space.vacElem`: The Heisenberg operators, the Weil |
| 35 | representation and the vacuum vector of the space of data `New.𝒮 V`. |
| 36 | |
| 37 | ## Relation to the literature |
| 38 | |
| 39 | Known; see `Lib.Weil.DualPair.GaloisLaw` for sources. |
| 40 | -/ |
| 41 | |
| 42 | @[expose] public section |
| 43 | |
| 44 | noncomputable section |
| 45 | |
| 46 | namespace New |
| 47 | |
| 48 | /-! |
| 49 | ## Action of finite points of a pair on named data |
| 50 | |
| 51 | The action `New.pairWeil S T a b` of a pair `(g, h)`, finite or integral at `A`, on named data. Let |
| 52 | `A` be a set of finite places disjoint from its conjugate. A Schwartz–Bruhat function `Ψ` above `A` |
| 53 | (`New.IsSchwartzBruhat`) names the operator `(S.hom T).schrodingerOp A Ψ` on the space of data of |
| 54 | Hom(S, T). |
| 55 | |
| 56 | * `New.pairWeil_eq_smul_of_projOn_eq`, `New.SiegelWeil.projOn_pairWeil`: the action on vectors that |
| 57 | are vacua above `A` (fixed by `New.Space.projOn`). |
| 58 | -/ |
| 59 | |
| 60 | section PairFinite |
| 61 | |
| 62 | open NumberField Matrix GeneralLinearGroup Kronecker Unitary Fintype Gf G Space |
| 63 | |
| 64 | section |
| 65 | |
| 66 | variable {E : Type*} [Field E] [NumberField E] [IsCMField E] |
| 67 | {n n' : Type} [Fintype n] [DecidableEq n] [Fintype n'] [DecidableEq n'] |
| 68 | {s : n → ℤˣ} {s' : n' → ℤˣ} {A : Set (FinPlace E)} |
| 69 | |
| 70 | /-! ### Supports, integrality and determinants -/ |
| 71 | |
| 72 | /-- For unitary `g`, the determinant on the conjugate of `A` is `x̄⁻¹`, with `x = detOn A g` the |
| 73 | idele equal to `det g` on `A` and to `1` elsewhere. -/ |
| 74 | lemma Exchange.detOn_preimage_star (g : Gf E n) : |
| 75 | detOn (star ⁻¹' A) g.val = star (detOn A g.val)⁻¹ := by |
| 76 | ext <;> simp [detOn, cutGL, star_idem, ← det_conjTranspose, star_eq_conjTranspose, |
| 77 | inv_eq_left_inv (mem_unitaryGroupOf_iff.1 g.prop)] |
| 78 | |
| 79 | @[simp↓] |
| 80 | lemma onHom_snd_inv_mulVec {p : G E s × G E s'} (x : n' × n → 𝔸f E) : |
| 81 | (G.onHom p).2⁻¹.val.val *ᵥ x = matrixToVec (p.2.2⁻¹.val.val * vecToMatrix x * p.1.2.val.val) := |
| 82 | kronecker_mulVec_eq_matrixToVec .. |
| 83 | |
| 84 | @[simp] |
| 85 | lemma G.onHom_atPlace {p : G E s × G E s'} {w : FinPlace E} : |
| 86 | ((onHom p).2.atPlace w).val = (p.2.2.atPlace w).val ⊗ₖ (p.1.2⁻¹.atPlace w).valᵀ := rfl |
| 87 | |
| 88 | /-- If the finite parts of both members of a pair are supported on `A` and its conjugate, so is the |
| 89 | finite part of their image `x ↦ h x g⁻¹` under `G.onHom`. -/ |
| 90 | @[simp↓] |
| 91 | lemma G.onHom_mem_supportedOn {A : Set (FinPlace E)} {p : G E s × G E s'} |
| 92 | (hg : p.1.2 ∈ supportedOn n A) (hh : p.2.2 ∈ supportedOn n' A) : |
| 93 | (onHom p).2 ∈ supportedOn (n' × n) A := by |
| 94 | simp only [supportedOn, Subgroup.mem_iInf, MonoidHom.mem_ker] at hg hh ⊢ |
| 95 | exact fun w hw ↦ Units.ext (by simp [onHom_atPlace, hg w hw, hh w hw]) |
| 96 | |
| 97 | /-- If both members of a pair are integral at the place `w`, that is, lie in `localIntGL`, so is |
| 98 | their image under `G.onHom`. -/ |
| 99 | @[simp] |
| 100 | lemma G.onHom_atPlace_mem {p : G E s × G E s'} {w : FinPlace E} |
| 101 | (hg : p.1.2.atPlace w ∈ localIntGL n w) (hh : p.2.2.atPlace w ∈ localIntGL n' w) : |
| 102 | (onHom p).2.atPlace w ∈ localIntGL (n' × n) w := by |
| 103 | simp_all [mem_intGL, ← map_inv, ← Prod.snd_inv, mul_mem] |
| 104 | |
| 105 | /-- The action `x ↦ h x g⁻¹` is integral above `A` when both factors are integral above `A`. -/ |
| 106 | lemma G.onHom_mem_localLevel {p : G E s × G E s'} |
| 107 | (hg : p.1.2 ∈ localLevel n A) (hh : p.2.2 ∈ localLevel n' A) : |
| 108 | (onHom p).2 ∈ localLevel (n' × n) A := |
| 109 | fun w hw ↦ onHom_atPlace_mem (hg w hw) (hh w hw) |
| 110 | |
| 111 | /-! ### Scalars and the finite multiplier -/ |
| 112 | |
| 113 | variable (n) in |
| 114 | /-- The scalar matrices, as a homomorphism from the finite adeles of norm one to `Gf E n`. -/ |
| 115 | noncomputable def scalarFin : unitary (𝔸f E) →* Gf E n := |
| 116 | MonoidHom.codRestrict (MonoidHom.comp (GeneralLinearGroup.scalar n) Unitary.toUnits) (U 1) |
| 117 | (by simp [star_mul_self_of_mem, mem_unitaryGroupOf_iff, star_eq_conjTranspose]) |
| 118 | |
| 119 | /-- Scalar finite points are central in the finite adelic unitary group. -/ |
| 120 | lemma Seesaw.commute_scalarFin {ν : unitary (𝔸f E)} (g : Gf E n) : Commute (scalarFin n ν) g := |
| 121 | Subtype.ext (scalar_commute ..) |
| 122 | |
| 123 | /-- Let `A` be disjoint from its conjugate. For `g` supported on `A` and its conjugate, the |
| 124 | determinant `detFin s g` of the adelic point `(1, g)` is `divStar x = x / x̄` with `x = detOn A g`, |
| 125 | the idele equal to `det g` on `A` and to `1` elsewhere. -/ |
| 126 | lemma G.detFin_of_mem_supportedOn {A : Set (FinPlace E)} (hA : Set.IsConjDisjoint A) {g : Gf E n} |
| 127 | (hg : g ∈ supportedOn n A) : detFin s g = divStar (detOn A g.val) := by |
| 128 | -- `g` is `1` outside the disjoint sets `A` and `star ⁻¹' A`, so `det g` is a product of two parts |
| 129 | have h_split : |
| 130 | (det (s := s) (1, g)).val = (detOn A g.val).val * (detOn (star ⁻¹' A) g.val).val := by |
| 131 | ext w |
| 132 | · simp [↓det_fst] |
| 133 | by_cases hw : w ∈ A |
| 134 | · simp [↓det_atPlace, hw, show star w ∉ A from Set.disjoint_left.1 hA hw] |
| 135 | by_cases hw_star : star w ∈ A |
| 136 | · simp [↓det_atPlace, hw, hw_star] |
| 137 | · simp [↓det_atPlace, hw, hw_star, mem_supportedOn.1 hg w hw hw_star] |
| 138 | exact Subtype.ext (by rwa [Exchange.detOn_preimage_star] at h_split) |
| 139 | |
| 140 | /-- The adelic point with trivial real part and scalar finite part `ν` has matrix `(1, ν)` times the |
| 141 | identity. -/ |
| 142 | lemma G.adeleMatrix_scalarFin (ν : unitary (𝔸f E)) : |
| 143 | adeleMatrix (s := s) (1, scalarFin n ν) = ((1, ν.val) : 𝔸 E) • 1 := by |
| 144 | aesop (add simp [scalarFin, Matrix.one_apply]) |
| 145 | |
| 146 | /-- Take the pair of scalar finite points `ν` in `U(S)` and `ν'` in `U(T)`, with trivial archimedean |
| 147 | parts. `New.G.onHom` sends it to the scalar finite point `ν' / ν` on `Hom(S, T)`. -/ |
| 148 | lemma G.onHom_scalarFin (ν ν' : unitary (𝔸f E)) : |
| 149 | (onHom ((1, scalarFin n ν), 1, scalarFin n' ν') : G E (homSigns s s')) = |
| 150 | (1, scalarFin (n' × n) (ν' / ν)) := by |
| 151 | apply ext_adeleMatrix |
| 152 | -- both sides are the scalar matrix `(1, ν' / ν) • 1` |
| 153 | have h_inv : ((1, scalarFin n ν) : G E s)⁻¹ = (1, scalarFin n ν⁻¹) := by simp [← map_inv] |
| 154 | rw [adeleMatrix_onHom, h_inv, adeleMatrix_scalarFin, adeleMatrix_scalarFin, adeleMatrix_scalarFin] |
| 155 | simp [smul_kronecker, kronecker_smul, smul_smul, div_eq_mul_inv, mul_comm] |
| 156 | |
| 157 | end |
| 158 | |
| 159 | variable {E : Type*} [Field E] [CMType E] {n n' : Type} [Fintype n] [DecidableEq n] [Fintype n'] |
| 160 | [DecidableEq n'] {s : n → ℤˣ} {s' : n' → ℤˣ} {A : Set (FinPlace E)} [WeilData E] {S : Space E n s} |
| 161 | {T : Space E n' s'} {a b : AutChar E} |
| 162 | |
| 163 | /-- The finite multiplier `finMultiplier`, written Δ_f, of the image `G.onHom (g, 1)`, which acts on |
| 164 | Hom(S,T) by x ↦ x g⁻¹, is Δ_f(g_f⁻¹)^(n'), where n' is the rank of the second space. -/ |
| 165 | lemma finMultiplier_onHom_left {g : G E s} : |
| 166 | finMultiplier (G.onHom (s' := s') (g, 1)).2 = finMultiplier g.2⁻¹ ^ card n' := by |
| 167 | -- `finMultiplier g` is `chiFin (det u)` for `u` saturating `g` or its transpose. If `u` saturates |
| 168 | -- `g⁻¹`, then `1 ⊗ₖ u` saturates `1 ⊗ₖ g⁻¹`, the transpose of `onHom (g, 1)`, and |
| 169 | -- `det (1 ⊗ₖ u) = det u ^ card n'`. |
| 170 | let u : GL n (𝔸f E) := (saturatingElem g.2⁻¹.val).val |
| 171 | let φ : Matrix n n (𝔸f E) →+* Matrix (n' × n) (n' × n) (𝔸f E) := |
| 172 | { toFun u := (1 : Matrix n' n' (𝔸f E)) ⊗ₖ u |
| 173 | map_one' := one_kronecker_one |
| 174 | map_mul' u v := by simp [← mul_kronecker_mul] |
| 175 | map_zero' := kronecker_zero _ |
| 176 | map_add' := kronecker_add _ } |
| 177 | let Φ : GL n (𝔸f E) →* GL (n' × n) (𝔸f E) := Units.map φ.toMonoidHom |
| 178 | have h_sat : IsSaturating (Ô E).matrix (Φ g.2⁻¹.val) (Φ u) := |
| 179 | (saturatingElem g.2⁻¹.val).prop.map_of_le_comap φ fun x hx i ↦ by |
| 180 | aesop (add simp Matrix.one_apply) |
| 181 | have h_transpose : (G.onHom (s' := s') (g, 1)).2.val.val = (φ g.2⁻¹.val.val)ᵀ := by |
| 182 | aesop (add simp [onHom_snd, Matrix.one_apply]) |
| 183 | have h_det : (Φ u).det = u.det ^ card n' := by simp [Φ, φ, Units.ext_iff, det_kronecker] |
| 184 | rw [finMultiplier, h_sat.glMultiplier_transpose h_transpose, h_det, map_pow] |
| 185 | rfl |
| 186 | |
| 187 | /-- Let `f` be a vacuum above `A`, that is, fixed by the projection `projOn A`. An integral pair |
| 188 | `(g, h)` of finite points supported on `A` and its conjugate acts on `f` through `pairWeil` by the |
| 189 | scalar a(det h) · b(det g)⁻¹, where `detFin` is the determinant of a finite point. -/ |
| 190 | lemma pairWeil_eq_smul_of_projOn_eq {g : Gf E n} {h : Gf E n'} {f : 𝒮 (S.hom T)} |
| 191 | (A : Set (FinPlace E)) (hf : (S.hom T).projOn A f = f) (hg : g ∈ stdLevel E n ⊓ supportedOn n A) |
| 192 | (hh : h ∈ stdLevel E n' ⊓ supportedOn n' A) : |
| 193 | pairWeil S T a b (g, h) f = (a.val (detFin s' h) * (b.val (detFin s g))⁻¹).val • f := by |
| 194 | -- `ω` of the image fixes `f`, as the image is integral and supported on `A` and `star A` |
| 195 | rw [pairWeil_apply, onHom_fin, |
| 196 | omega_eq_self_of_mem_stdLevel _ (onHom_mem_supportedOn hg.2 hh.2) hf |
| 197 | (by simp_all [mem_stdLevel_iff])] |
| 198 | simp |
| 199 | |
| 200 | /-- If the finite part of the image `onHom p` is integral at the places of `A` (lies in |
| 201 | `localIntGL`), then `pairWeil S T a b p` maps a vector fixed by the projection `projOn A` onto vacua |
| 202 | above `A` to a vector that is again fixed by it. -/ |
| 203 | lemma SiegelWeil.projOn_pairWeil {f : 𝒮 (S.hom T)} (hf : (S.hom T).projOn A f = f) |
| 204 | (p : G E s × G E s') (hp : ∀ w ∈ A, (onHom p).2.atPlace w ∈ localIntGL (n' × n) w) : |
| 205 | (S.hom T).projOn A (pairWeil S T a b p f) = pairWeil S T a b p f := by |
| 206 | rw [pairWeil_apply, map_smul, ← omega_projOn _ hp, hf] |
| 207 | |
| 208 | /-! ### The action on named data -/ |
| 209 | |
| 210 | /-- Let `A` be disjoint from its conjugate, `Ψ` a Schwartz–Bruhat function above `A`, and `g`, `h` |
| 211 | finite points supported on `A` and its conjugate. Let `pairWeil` be the representation |
| 212 | (g, h) ↦ a(det h) b(det g)⁻¹ ω(x ↦ hxg⁻¹) on 𝒮 of `S.hom T`, the space of n' × n matrices, and let |
| 213 | `schrodingerOp A Ψ` be the operator Ψ⊗ on that 𝒮. Then `pairWeil` at `(g, h)` applied to |
| 214 | `schrodingerOp A Ψ f` equals `schrodingerOp A Ψ' f`, with Ψ'(x) = Ψ(h⁻¹ x g), times the factor |
| 215 | `χ_S (det h) / χ_T (det g) * |det g| ^ (n' / 2) / |det h| ^ (n / 2)`. Here determinants are on `A` |
| 216 | (`detOn`), `ideleAbs` is the idele norm, `χ_S = a.spaceChar n` and `χ_T = b.spaceChar n'`, with |
| 217 | `a.spaceChar k` the base change of `a` times `υ⁻ᵏ`. -/ |
| 218 | lemma pairWeil_schrodingerOp_of_mem_supportedOn (hA : A.IsConjDisjoint) {Ψ : (n' × n → 𝔸f E) → ℂ} |
| 219 | [hΨ : IsSchwartzBruhat A Ψ] {g : Gf E n} {h : Gf E n'} (hg : g ∈ supportedOn n A) |
| 220 | (hh : h ∈ supportedOn n' A) (f : 𝒮 (S.hom T)) : |
| 221 | pairWeil S T a b (g, h) ((S.hom T).schrodingerOp A Ψ f) = |
| 222 | ((a.spaceChar (card n)).val (detOn A h.val) / (b.spaceChar (card n')).val (detOn A g.val) * |
| 223 | √(ideleAbs (detOn A g.val)) ^ card n' / √(ideleAbs (detOn A h.val)) ^ card n : ℂ) • |
| 224 | (S.hom T).schrodingerOp A (fun x : n' × n → 𝔸f E ↦ |
| 225 | Ψ (matrixToVec (h⁻¹.val.val * vecToMatrix x * g.val.val))) f := by |
| 226 | let u : Gf E (n' × n) := (onHom ((1, g), 1, h) : G E (homSigns s s')).2 |
| 227 | -- the matrix of `u` is the Kronecker product `h ⊗ₖ g⁻¹ᵀ` |
| 228 | have h_det : detOn A u.val = detOn A h.val ^ card n / detOn A g.val ^ card n' := |
| 229 | eq_div_of_mul_eq' (by aesop (add simp [u, det_kronecker, det_ne_zero])) |
| 230 | -- `a (det h)` and `b (det g)` are values of the base changes at `detOn A h` and `detOn A g` |
| 231 | have h_scalar : pairChar (s := s) (s' := s') a b ((1, g), 1, h) * |
| 232 | (starRingEnd ℂ) (chiAdelic (detOn A u.val)) = |
| 233 | (a.spaceChar (card n)).val (detOn A h.val) / (b.spaceChar (card n')).val (detOn A g.val) * |
| 234 | √(ideleAbs (detOn A g.val)) ^ card n' / √(ideleAbs (detOn A h.val)) ^ card n := by |
| 235 | rw [h_det, map_div, map_pow, map_pow] |
| 236 | simp [detFin_of_mem_supportedOn hA, AutChar.spaceChar, AutChar.baseChange_apply_coe_toFun, hg, |
| 237 | hh, |
| 238 | chiAdelic, mul_pow, field, ← Complex.inv_eq_conj, Circle.norm_coe] |
| 239 | -- `ω u` moves `Ψ` to `Ψ (u⁻¹ ·)`, with the factor `conj (chiAdelic (detOn A u))` |
| 240 | rw [pairWeil_apply, onHom_fin, omega_schrodingerOp_of_mem_supportedOn hA _ |
| 241 | (onHom_mem_supportedOn hg hh), smul_smul, h_scalar] |
| 242 | simp only [onHom_snd_inv_mulVec] |
| 243 | |
| 244 | /-- Let `A` be a set of finite places disjoint from its conjugate, `Φ` a Schwartz–Bruhat function of |
| 245 | finite adelic vectors above `A`, and Φ⊗ = `schrodingerOp A Φ` the operator on `𝒮 S` that is the |
| 246 | combination of Heisenberg operators whose coefficients have `schrodingerCombination` equal to Φ. If |
| 247 | `g` is an adelic unitary whose finite part `g_f` lies in GL_n(O_w) at every w ∈ A, then `ω g` sends |
| 248 | Φ⊗ f to (Φ ∘ g_f⁻¹)⊗ (ω g f) for every f. -/ |
| 249 | lemma Space.omega_schrodingerOp_of_mem (hA : A.IsConjDisjoint) {Φ : (n → 𝔸f E) → ℂ} |
| 250 | [IsSchwartzBruhat A Φ] {g : G E s} (hg : ∀ w ∈ A, g.2.atPlace w ∈ localIntGL n w) (f : 𝒮 S) : |
| 251 | S.ω g (S.schrodingerOp A Φ f) = S.schrodingerOp A (fun x : n → 𝔸f E ↦ Φ (↑g.2⁻¹ *ᵥ x)) |
| 252 | (S.ω g f) := by |
| 253 | classical |
| 254 | -- By `omega_schrodingerOp` the datum moves by `g` and the vector becomes `ω g` of the name of the |
| 255 | -- moved box function. As `g` is integral on `A`, it preserves the box and commutes with |
| 256 | -- `projOn A`. |
| 257 | have h_box : (fun x : n → 𝔸f E ↦ boxIndicator n A (g.2 *ᵥ x)) = boxIndicator n A := |
| 258 | funext fun x ↦ by simp [mulVec_mem_integralBox g.2 hg] |
| 259 | rw [(omega_schrodingerOp hA S g f).2, h_box, schrodingerOp_boxIndicator hA, omega_projOn S hg, |
| 260 | schrodingerOp_projOn] |
| 261 | |
| 262 | /-- Let `A` be disjoint from its conjugate and `Ψ` Schwartz–Bruhat above `A`. For an integral pair |
| 263 | `(g, h)` (finite parts in `stdLevel`), `pairWeil` sends `schrodingerOp A Ψ f`, the vector named by |
| 264 | `Ψ` on `f`, to the vector named by `x ↦ Ψ (h⁻¹ x g)` on the image of `f` under `pairWeil`. -/ |
| 265 | lemma pairWeil_schrodingerOp_of_mem (hA : A.IsConjDisjoint) {Ψ : (n' × n → 𝔸f E) → ℂ} |
| 266 | [hΨ : IsSchwartzBruhat A Ψ] {g : G E s} {h : G E s'} (hg : g.2 ∈ stdLevel E n) |
| 267 | (hh : h.2 ∈ stdLevel E n') (f : 𝒮 (S.hom T)) : |
| 268 | pairWeil S T a b (g, h) ((S.hom T).schrodingerOp A Ψ f) = |
| 269 | (S.hom T).schrodingerOp A (fun x : n' × n → 𝔸f E ↦ |
| 270 | Ψ (matrixToVec ((↑h.2⁻¹ : Matrix n' n' (𝔸f E)) * vecToMatrix x * |
| 271 | (g.2 : Matrix n n (𝔸f E))))) |
| 272 | (pairWeil S T a b (g, h) f) := by |
| 273 | rw [pairWeil_apply, pairWeil_apply, map_smul, |
| 274 | omega_schrodingerOp_of_mem hA fun w _ ↦ onHom_atPlace_mem (mem_stdLevel_iff.1 hg w) |
| 275 | (mem_stdLevel_iff.1 hh w)] |
| 276 | simp only [onHom_snd_inv_mulVec] |
| 277 | |
| 278 | end PairFinite |
| 279 | |
| 280 | /-! |
| 281 | ## Pairs under sums of spaces, negation of a form and change of point |
| 282 | |
| 283 | * `New.negSource`: the change of coordinates `x ↦ (1, u⁻¹) x` from Hom(S⁻,T) to Hom(S,T), with |
| 284 | u ∈ Ô of norm −1 and S⁻ = `S.neg` the space with the negated form; `negSource.map` pulls data |
| 285 | on Hom(S,T) back to data on Hom(S⁻,T). |
| 286 | * `New.theta_boxProd_target`, `New.theta_boxProd_source`: θ of a product f ⊠ f' of data is |
| 287 | θ(f)θ(f'). |
| 288 | -/ |
| 289 | |
| 290 | section PairSumNegation |
| 291 | |
| 292 | open NumberField Matrix WeilData Space Equiv CoordChange Fintype G Fock ComplexConjugate Weil Int |
| 293 | |
| 294 | variable {E : Type} [Field E] [CMType E] [WeilData E] |
| 295 | {n n' n₁ n₂ : Type} [Fintype n] [DecidableEq n] [Fintype n'] [DecidableEq n'] [Fintype n₁] |
| 296 | [DecidableEq n₁] [Fintype n₂] [DecidableEq n₂] {s : n → ℤˣ} {s' : n' → ℤˣ} {s₁ : n₁ → ℤˣ} |
| 297 | {s₂ : n₂ → ℤˣ} {e : n₁ ⊕ n₂ ≃ n} {S V : Space E n s} {V₁ : Space E n₁ s₁} |
| 298 | {V₂ : Space E n₂ s₂} {T : Space E n' s'} (a b b' : AutChar E) {g : G E s} {g₁ : G E s₁} |
| 299 | {g₂ : G E s₂} |
| 300 | |
| 301 | omit [WeilData E] in |
| 302 | /-- A vector x on pairs of indices is a rational point of Hom(S,T) exactly when the matrix |
| 303 | x_T · x · x_S⁻¹ has rational entries, x_S = `S.x` and x_T = `T.x` being the points of S and T, their |
| 304 | matrices in GL(𝔸); the point of Hom(S,T) is x_T ⊗ (x_S⁻¹)ᵀ. -/ |
| 305 | lemma Space.mem_ratVectors_hom {x : n' × n → 𝔸 E} : |
| 306 | x ∈ (S.hom T).ratVectors ↔ T.x.val * vecToMatrix x * S.x⁻¹.val ∈ ratMatrices E n' n := by |
| 307 | simp [mem_ratVectors_iff, hom, kronecker_mulVec_eq_matrixToVec, mem_ratVectors, mem_ratMatrices, |
| 308 | matrixToVec] |
| 309 | |
| 310 | omit [Fintype n] [DecidableEq n] [Fintype n'] [DecidableEq n'] [Fintype n₁] [DecidableEq n₁] |
| 311 | [Fintype n₂] [DecidableEq n₂] in |
| 312 | /-- Let the bijection `e : n₁ ⊕ n₂ ≃ n` split the signs `s` into `s₁` and `s₂`. Then the induced |
| 313 | bijection `n₁ × n' ⊕ n₂ × n' ≃ n × n'` splits the signs `homSigns s' s` into `homSigns s' s₁` and |
| 314 | `homSigns s' s₂`. -/ |
| 315 | lemma homSigns_sum_target (hs : s ∘ e = s₁ ⊕ᵥ s₂) : |
| 316 | homSigns s' s ∘ (sumProdDistrib n₁ n₂ n').symm.trans (e.prodCongr (Equiv.refl n')) = |
| 317 | homSigns s' s₁ ⊕ᵥ homSigns s' s₂ := by |
| 318 | ext (⟨i, j⟩ | ⟨i, j⟩) : 1 |
| 319 | · simpa [pairSign] using congrFun hs (Sum.inl i) |
| 320 | · simpa [pairSign] using congrFun hs (Sum.inr i) |
| 321 | |
| 322 | omit [Fintype n'] [DecidableEq n'] [Fintype n₁] [DecidableEq n₁] [Fintype n₂] [DecidableEq n₂] in |
| 323 | /-- The signs of Hom(V₁ ⊕ V₂, T), for signs `s₁`, `s₂` and `s'` of V₁, V₂ and T, split into those of |
| 324 | Hom(V₁, T) and Hom(V₂, T). -/ |
| 325 | lemma homSigns_sum_source : |
| 326 | homSigns (s₁ ⊕ᵥ s₂) s' ∘ (prodSumDistrib n' n₁ n₂).symm = homSigns s₁ s' ⊕ᵥ homSigns s₂ s' := by |
| 327 | ext (⟨i, j⟩ | ⟨i, j⟩) <;> rfl |
| 328 | |
| 329 | /-! ### Sums -/ |
| 330 | |
| 331 | section Sums |
| 332 | |
| 333 | variable (T) |
| 334 | |
| 335 | /-- Let e split the coordinates of V compatibly with the signs (s ∘ e = s₁ ⊕ s₂). Suppose the point |
| 336 | of V, meaning its matrix x in GL_n(𝔸) with xᴴJx = diag(s) at the infinite places and 1 at the finite |
| 337 | places, becomes block diagonal when reindexed along e, with blocks the points of V₁ and V₂. Then for |
| 338 | data f on Hom(T,V₁) and f' on Hom(T,V₂), θ on Hom(T,V) of the product f ⊠ f' is θ(f)θ(f'); the |
| 339 | product is taken along the splitting of the coordinates of Hom(T,V) induced by e, which keeps the |
| 340 | signs by `New.homSigns_sum_target`. -/ |
| 341 | lemma theta_boxProd_target (hs : s ∘ e = s₁ ⊕ᵥ s₂) (T : Space E n' s') |
| 342 | (h_block : V.x.val.submatrix e e = fromBlocks V₁.x 0 0 V₂.x) |
| 343 | (f : 𝒮 (T.hom V₁)) (f' : 𝒮 (T.hom V₂)) : |
| 344 | (T.hom V).θ (boxProd (homSigns_sum_target hs) f f') = (T.hom V₁).θ f * (T.hom V₂).θ f' := |
| 345 | -- The point of `Hom(T, V)` is block diagonal, as the point of `V` is. |
| 346 | theta_boxProd _ (by simp_all [Space.hom, ← ext_iff]) f f' |
| 347 | |
| 348 | /-- For data f on Hom(V₁,T) and f' on Hom(V₂,T), θ on Hom(V₁ ⊕ V₂, T) of the product f ⊠ f' is |
| 349 | θ(f)θ(f'). The product is taken along the splitting `New.homSigns_sum_source` of the coordinates. It |
| 350 | is induced by the identity of the index set n₁ ⊕ n₂ of V₁ ⊕ V₂. -/ |
| 351 | lemma theta_boxProd_source (f : 𝒮 (V₁.hom T)) (f' : 𝒮 (V₂.hom T)) : |
| 352 | ((V₁.sum V₂).hom T).θ (boxProd homSigns_sum_source f f') = (V₁.hom T).θ f * (V₂.hom T).θ f' := |
| 353 | theta_boxProd _ (by simp [Space.hom, Space.sum, blockGL, ← ext_iff]) f f' |
| 354 | |
| 355 | /-- On Hom(V₁ ⊕ V₂, T), the block diagonal element with blocks g₁ and g₂ acts on a product f ⊠ f' |
| 356 | factor by factor: ω_{bb',a}(g,h)(f ⊠ f') = ω_{b,a}(g₁,h)f ⊠ ω_{b',a}(g₂,h)f' for data f, f' on |
| 357 | Hom(V₁,T), Hom(V₂,T). -/ |
| 358 | lemma pairWeil_boxProd_source (h : G E s') (f : 𝒮 (V₁.hom T)) (f' : 𝒮 (V₂.hom T)) : |
| 359 | pairWeil (V₁.sum V₂) T (b * b') a (G.sum (g₁, g₂), h) (boxProd homSigns_sum_source f f') = |
| 360 | boxProd homSigns_sum_source (pairWeil V₁ T b a (g₁, h) f) |
| 361 | (pairWeil V₂ T b' a (g₂, h) f') := by |
| 362 | -- The determinant of a block matrix splits the scalar factor; `omega_boxProd` splits the action. |
| 363 | have det_eq : (G.sum (g₁, g₂)).det = g₁.det * g₂.det := by simp [Subtype.ext_iff] |
| 364 | have h_ω : ((V₁.sum V₂).hom T).ω (onHom (G.sum (g₁, g₂), h)) (boxProd homSigns_sum_source f f') = |
| 365 | boxProd homSigns_sum_source ((V₁.hom T).ω (onHom (g₁, h)) f) |
| 366 | ((V₂.hom T).ω (onHom (g₂, h)) f') := |
| 367 | omega_boxProd _ (by simp [adeleMatrix_inv, stdForm, ← ext_iff]) f f' |
| 368 | simp [pairWeil_apply, det_eq, h_ω] |
| 369 | module |
| 370 | |
| 371 | /-- Let e split the coordinates of V compatibly with the signs, and let g be block diagonal along e |
| 372 | with blocks g₁, g₂. Then on Hom(T,V), ω_{a,bb'}(h,g)(f ⊠ f') = ω_{a,b}(h,g₁)f ⊠ ω_{a,b'}(h,g₂)f' for |
| 373 | data f, f' on Hom(T,V₁), Hom(T,V₂). -/ |
| 374 | lemma pairWeil_boxProd_target (hs : s ∘ e = s₁ ⊕ᵥ s₂) (T : Space E n' s') (a b b' : AutChar E) |
| 375 | (h_block : g.adeleMatrix.submatrix e e = fromBlocks g₁.adeleMatrix 0 0 g₂.adeleMatrix) |
| 376 | (h : G E s') (f : 𝒮 (T.hom V₁)) (f' : 𝒮 (T.hom V₂)) : |
| 377 | pairWeil T V a (b * b') (h, g) (boxProd (homSigns_sum_target hs) f f') = |
| 378 | boxProd (homSigns_sum_target hs) (pairWeil T V₁ a b (h, g₁) f) |
| 379 | (pairWeil T V₂ a b' (h, g₂) f') := by |
| 380 | -- The determinant of a block matrix splits the scalar factor; `omega_boxProd` splits the action. |
| 381 | have det_eq : g.det = g₁.det * g₂.det := by |
| 382 | simpa [Subtype.ext_iff] using congrArg Matrix.det h_block |
| 383 | have h_omega : (T.hom V).ω (G.onHom (h, g)) (boxProd (homSigns_sum_target hs) f f') = |
| 384 | boxProd (homSigns_sum_target hs) ((T.hom V₁).ω (G.onHom (h, g₁)) f) |
| 385 | ((T.hom V₂).ω (G.onHom (h, g₂)) f') := |
| 386 | omega_boxProd _ (by simp_all [← ext_iff]) f f' |
| 387 | simp [pairWeil_apply, det_eq, h_omega] |
| 388 | module |
| 389 | |
| 390 | end Sums |
| 391 | |
| 392 | /-! ### Negation of the source -/ |
| 393 | |
| 394 | lemma normNegOne_inv : normNegOne⁻¹.val.val = -star (normNegOne.val.val : 𝔸f E) := rfl |
| 395 | |
| 396 | /-- The negation change of coordinates from Hom(S⁻,T) to Hom(S,T): x ↦ (1, u⁻¹)x, u the chosen |
| 397 | element of Ô of norm −1. It conjugates the bicharacter β of the Heisenberg group, so it induces an |
| 398 | antilinear map `negSource.map` from data on Hom(S,T) to data on Hom(S⁻,T). -/ |
| 399 | noncomputable def negSource : CoordChange E conj (homSigns s s') (homSigns (-s) s') where |
| 400 | φ := ContinuousAddEquiv.mk' (Homeomorph.smul (normNegOneIdele E)⁻¹) (by simp) |
| 401 | realEquiv := ContinuousAddEquiv.refl (InfinitePlace E × n' × n → ℂ) |
| 402 | finEquiv := ContinuousAddEquiv.mk' (Homeomorph.smul (normNegOne (E := E))⁻¹) (by simp) |
| 403 | apply_adelicSum := by |
| 404 | simp [adelicSum, Units.smul_def, Subring.smul_def, normNegOneIdele, mul_left_comm, |
| 405 | ContinuousAddEquiv.mk', funext_iff] |
| 406 | beta_realEquiv := by |
| 407 | simp [↓Heisenberg.conj_beta, realHeisenberg, dotProduct, signMatrix, neg_add_eq_sub, pairSign, |
| 408 | mulVec_diagonal] |
| 409 | vac_realEquiv := by simp |
| 410 | selfDualAddChar_finEquiv := by |
| 411 | simp [dotProduct, Units.smul_def, Subring.smul_def, normNegOne_inv, mul_left_comm, mul_assoc, |
| 412 | mul_comm normNegOne.val.val, ContinuousAddEquiv.mk', ← Complex.inv_eq_conj, |
| 413 | ← AddChar.map_neg_eq_inv] |
| 414 | dot_finEquiv := by |
| 415 | simp [dotProduct, Units.smul_def, Subring.smul_def, normNegOne_inv, mul_left_comm, mul_assoc, |
| 416 | mul_comm normNegOne.val.val, ContinuousAddEquiv.mk'] |
| 417 | finEquiv_mem := by |
| 418 | simp [stdLattice, intVectors, mem_Ô, Units.smul_def, Subring.smul_def, isUnit_Ô.1, |
| 419 | ContinuousAddEquiv.mk'] |
| 420 | |
| 421 | omit [WeilData E] in |
| 422 | lemma G.neg_snd : g.neg.2 = g.2 := by |
| 423 | -- Comparing matrix entries, rather than `rfl`, keeps the kernel from unfolding the groups. |
| 424 | refine Subtype.ext (Units.ext (Matrix.ext fun i j ↦ ?_)) |
| 425 | rw [← adeleMatrix_snd, adeleMatrix_neg, adeleMatrix_snd] |
| 426 | |
| 427 | /-- If g and g₁ lie in the adelic unitary groups of opposite signs s = −t and have the same |
| 428 | matrix, then the complex conjugate of Δ(g₁) is υ(det g₁) Δ(g), where Δ = `weilMultiplier` and υ is |
| 429 | the splitting character restricted to norm one ideles (`upsilonU1`). -/ |
| 430 | lemma conj_weilMultiplier_of_eq_neg {g : G E s} {t : n → ℤˣ} {g₁ : G E t} (hs : s = -t) |
| 431 | (h_mat : g.adeleMatrix = g₁.adeleMatrix) : |
| 432 | conj (weilMultiplier g₁) = upsilonU1.val g₁.det * weilMultiplier g := by |
| 433 | subst hs |
| 434 | obtain rfl : g = g₁.neg := ext_adeleMatrix (h_mat.trans g₁.adeleMatrix_neg.symm) |
| 435 | -- Split `upsilonU1 (det g₁)` into infinite-place determinants and the finite part, then |
| 436 | -- conjugate each infinite minor up to `det` while preserving the finite part. |
| 437 | rw [weilMultiplier, weilMultiplier, map_mul, map_prod, upsilonU1_apply, |
| 438 | upsilon_eq_prod_mul_of_v_eq g₁.2.val.det (by simp -implicitDefEqProofs [-coe_det]), |
| 439 | G.neg_snd, ← upsilon_mul_finMultiplier] |
| 440 | simp -implicitDefEqProofs [-coe_det, G.neg, MulEquiv.prodCongr, ← units_ne_iff_eq_neg, |
| 441 | realMultiplier, U.principalMinor_compl, Finset.prod_mul_distrib] |
| 442 | ring |
| 443 | |
| 444 | omit [WeilData E] in |
| 445 | @[simp] |
| 446 | lemma G.det_neg : g.neg.det = g.det := by simp [Subtype.ext_iff] |
| 447 | |
| 448 | /-- Let S⁻ = `S.neg` be the space with signs −s and matrix −J. Let `negSource.map` be the antilinear |
| 449 | map from data on Hom(S,T) to data on Hom(S⁻,T) induced by the change of coordinates x ↦ (1, u⁻¹)x, |
| 450 | with u in Ô of norm −1. This map carries ω_{a,b}(g,h) f to ω_{a⁻¹υ^n, b⁻¹υ^(n')}(g⁻,h) applied to |
| 451 | the image of f; these are the characters that belong to the inverse splitting characters. Here υ is |
| 452 | `New.WeilData.upsilonU1`, g⁻ = `New.G.neg` g is the element of signs −s with the same matrix as g, |
| 453 | and n, n' are the ranks of S and T. -/ |
| 454 | lemma pairWeil_negSource (h : G E s') (f : 𝒮 (S.hom T)) : |
| 455 | pairWeil S.neg T (a⁻¹ * upsilonU1 ^ card n) (b⁻¹ * upsilonU1 ^ card n') (g.neg, h) |
| 456 | (negSource.map f) = |
| 457 | negSource.map (pairWeil S T a b (g, h) f) := by |
| 458 | -- `negSource` is a scalar map, so it intertwines the two actions on vectors, hence on data up to |
| 459 | -- the ratio of the multipliers (`CoordChange.map_omega`), which `conj_weilMultiplier_of_eq_neg` |
| 460 | -- computes. |
| 461 | have h_signs : homSigns (-s) s' = -homSigns s s' := by simp [funext_iff, pairSign] |
| 462 | have h_mat : (onHom (g.neg, h)).adeleMatrix = (onHom (g, h)).adeleMatrix := by simp [← map_inv] |
| 463 | have ω_eq : negSource.map ((S.hom T).ω (onHom (g, h)) f) = |
| 464 | (upsilonU1.val (onHom (g, h)).det : ℂ) • |
| 465 | (S.neg.hom T).ω (onHom (g.neg, h)) (negSource.map f) := |
| 466 | negSource.map_omega (by simp [negSource, h_mat, ContinuousAddEquiv.mk', mulVec_smul]) |
| 467 | (conj_weilMultiplier_of_eq_neg h_signs h_mat) f |
| 468 | -- `det (onHom (g, h)) = det h ^ n * (det g)⁻¹ ^ n'`, so the powers of `upsilonU1` in the new |
| 469 | -- characters give the factor in `ω_eq`; conjugation inverts the values of `a` and `b`. |
| 470 | have h_char : conj (pairChar a b (g, h)) * (upsilonU1.val (onHom (g, h)).det : ℂ) = |
| 471 | pairChar (a⁻¹ * upsilonU1 ^ card n) (b⁻¹ * upsilonU1 ^ card n') (g.neg, h) := by |
| 472 | simp [det_onHom, Circle.norm_coe, ← Complex.inv_eq_conj, field] |
| 473 | rw [pairWeil_apply, pairWeil_apply, map_smulₛₗ, ω_eq, smul_smul, h_char] |
| 474 | |
| 475 | variable (S T) |
| 476 | |
| 477 | /-- There is a complex number `c` of modulus one such that, for every datum `f` on `Hom(S, T)`, the |
| 478 | theta functional `θ` of `Hom(S⁻, T)` (with `S⁻ = S.neg`) at `c • negSource.map f` is the complex |
| 479 | conjugate of `θ f` for `Hom(S, T)`. Here `negSource.map` is the antilinear map from data on |
| 480 | `Hom(S, T)` to data on `Hom(S⁻, T)` induced by the change of coordinates x ↦ (1, u⁻¹)x, where u is |
| 481 | the chosen element of Ô of norm −1. -/ |
| 482 | lemma exists_theta_negSource : |
| 483 | ∃ c : ℂ, ‖c‖ = 1 ∧ |
| 484 | ∀ f : 𝒮 (S.hom T), (S.neg.hom T).θ (c • negSource.map f) = conj ((S.hom T).θ f) := by |
| 485 | -- `negSource` matches the rational points of the two spaces, so `θ f = c * conj (θ (map f))` |
| 486 | -- with `‖c‖ = 1` (`CoordChange.exists_theta_omega_map` with `g = 1`). |
| 487 | have h_rat (x : n' × n → 𝔸 E) (hx : (negSource (s := s) (s' := s')).φ x ∈ (S.hom T).ratVectors) : |
| 488 | (1 : G E (homSigns (-s) s')) • x ∈ (S.neg.hom T).ratVectors := by |
| 489 | simp only [mem_ratVectors_hom, coe_units_inv, Space.neg, one_smul, Units.smul_inv, |
| 490 | Units.val_smul, Matrix.mul_smul] at hx ⊢ |
| 491 | rwa [← smul_mul, ← T.x.val.mul_smul] |
| 492 | obtain ⟨c, hc, hθ⟩ := negSource.exists_theta_omega_map (S.hom T) (S.neg.hom T) 1 h_rat |
| 493 | exact ⟨conj c, by simpa using hc, fun f ↦ by simp [hθ f]⟩ |
| 494 | |
| 495 | /-! ### Change of point -/ |
| 496 | |
| 497 | open Kronecker in |
| 498 | /-- Change of point for a pair. If the points of `S` and `T` are moved by `γ` and `γ'`, the theta |
| 499 | kernel for the characters `a` (of `det h`) and `b` (of `det g⁻¹`) at `(g, h)` becomes |
| 500 | `b (det γ) a (det γ')⁻¹` times the old kernel at `(γ g, γ' h)`. -/ |
| 501 | lemma Space.pairTheta_move (S : Space E n s) (T : Space E n' s') (a b : AutChar E) (γ g : G E s) |
| 502 | (γ' h : G E s') (f : 𝒮 (S.hom T)) : |
| 503 | pairTheta (S.move γ) (T.move γ') a b f (g, h) = |
| 504 | b.val γ.det * (a.val γ'.det : ℂ)⁻¹ * pairTheta S T a b f (γ * g, γ' * h) := by |
| 505 | -- The point of the moved space is that of `Hom(S, T)` times `x ↦ γ' x γ⁻¹`. The two spaces have |
| 506 | -- the same space of data, so `f` may be read on either. |
| 507 | have h_point : (T.x.val * γ'.adeleMatrix) ⊗ₖ (γ⁻¹.adeleMatrix * S.x⁻¹.val)ᵀ = |
| 508 | T.x.val ⊗ₖ S.x⁻¹.valᵀ * (G.onHom (γ, γ')).adeleMatrix := by |
| 509 | rw [G.adeleMatrix_onHom, ← mul_kronecker_mul, transpose_mul] |
| 510 | have h_hom : (S.move γ).hom (T.move γ') = (S.hom T).move (G.onHom (γ, γ')) := by |
| 511 | simpa only [hom, move, Space.mk.injEq, true_and] using Units.ext h_point |
| 512 | have h_theta (f' : 𝒮 (S.hom T)) : ((S.move γ).hom (T.move γ')).θ f' = |
| 513 | (S.hom T).θ ((S.hom T).ω (G.onHom (γ, γ')) f') := |
| 514 | (congrArg (fun V : Space E (n' × n) (homSigns s s') ↦ V.θ f') h_hom).trans (theta_move ..) |
| 515 | have h_char : pairChar a b (g, h) = |
| 516 | b.val γ.det * (a.val γ'.det : ℂ)⁻¹ * pairChar a b (γ * g, γ' * h) := by simp [field] |
| 517 | calc pairTheta (S.move γ) (T.move γ') a b f (g, h) |
| 518 | = (S.hom T).θ ((S.hom T).ω (G.onHom (γ, γ')) (pairWeil S T a b (g, h) f)) := h_theta _ |
| 519 | _ = pairChar a b (g, h) * (S.hom T).θ ((S.hom T).ω (G.onHom (γ * g, γ' * h)) f) := by |
| 520 | rw [pairWeil_apply, map_smul, map_smul, rep_apply_apply, ← map_mul, Prod.mk_mul_mk, |
| 521 | smul_eq_mul] |
| 522 | _ = b.val γ.det * (a.val γ'.det : ℂ)⁻¹ * pairTheta S T a b f (γ * g, γ' * h) := by |
| 523 | rw [h_char, pairTheta, pairWeil_apply, map_smul, smul_eq_mul, mul_assoc] |
| 524 | |
| 525 | end PairSumNegation |
| 526 | |
| 527 | end New |
| 528 | |
| 529 | end |