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.Algebra.Order.Star.Int |
| 4 | import Mathlib.Algebra.Ring.IsFormallyReal |
| 5 | public import Lib.Weil.DualPair.TwoEdges |
| 6 | public import Lib.Weil.MixedModel.AdaptedSplitting |
| 7 | public import New.UpperBound.Objects.Rows |
| 8 | import Lib.General.LinearAlgebra.HermiteForm |
| 9 | import Lib.PadicComparison.Descent.TestCategory |
| 10 | import Lib.Weil.Periods.ConstantTerm |
| 11 | |
| 12 | /-! |
| 13 | # Finite zero terms and the evaluation of pairs of edges in the tower of spaces `Y_k` |
| 14 | |
| 15 | For a splitting `D` of a hermitian space `V`, the zero term `D.zeroTerm` along its isotropic frame |
| 16 | is split into a real and a finite part, `New.Seesaw.zeroTermFin D`. For spaces presented by |
| 17 | `New.Grading` as a definite part plus a string of basis vectors, the part of grade zero gives |
| 18 | splittings. On `V⁻ ⊕ V''` this leads to a splitting down to `Hom (X', X⁻ ⊕ X'')` and an evaluation |
| 19 | of finite data, and both are equivariant for `New.Seesaw.tripleWeil`. This evaluation is then |
| 20 | applied to the tower `New.Data.spaceY k`, `k ≤ m = 2 ϱ + 2`, two lifts at a time; here `m` and `ϱ` |
| 21 | are the natural numbers `New.Data.m` and `New.Data.ϱ`. |
| 22 | |
| 23 | ## Main definitions and results |
| 24 | |
| 25 | Throughout, a *string* of a grading is the block of basis vectors outside the definite part, and |
| 26 | `DoubleLiftData` records two successive steps `Y → Y' → Y''` where the first step makes the string |
| 27 | one shorter and the second, unless the string is already empty, makes it shorter by one. |
| 28 | |
| 29 | * `New.Seesaw.zeroTermFin`: the finite part of the zero term. It is not zero at the vacuum |
| 30 | (`New.Seesaw.zeroTermFin_vacElem_ne_zero`). |
| 31 | * `New.Seesaw.GradeZeroPart`, `New.Seesaw.GradeZeroPart.splitting`: the part of grade zero, and the |
| 32 | splitting it gives. |
| 33 | * `New.Seesaw.DoubleLiftData`: the part of grade zero of `V⁻ ⊕ V''` is `X⁻ ⊕ X''` plus hyperbolic |
| 34 | planes. `New.Seesaw.middleDoubleLift` (one plane) and `New.Seesaw.lastDoubleLift` (none) are the |
| 35 | two instances. |
| 36 | * `New.Seesaw.DoubleLiftData.splitting`, `New.Seesaw.DoubleLiftData.finEval`: the splitting down to |
| 37 | `Hom (X', X⁻ ⊕ X'')` and the evaluation of finite data. |
| 38 | `New.Seesaw.DoubleLiftData.zeroTerm_splitting_tripleWeil` and |
| 39 | `New.Seesaw.DoubleLiftData.finEval_arrowProduct_equivariant` show that both are equivariant. |
| 40 | * `New.Data.doubleLiftEvalY`: the evaluation of the pair `Y_{2i} → Y_{2i+1} → Y_{2i+2}`, by |
| 41 | `New.Seesaw.middleDoubleLift` for `i < ϱ` and `New.Seesaw.lastDoubleLift` for `i = ϱ`. |
| 42 | * `New.Data.translatedPointDatumY`, `New.Data.evaluatedDatum`: the data `New.Data.pointDatumY` moved |
| 43 | by finite adelic points of the unitary groups, and their evaluation. |
| 44 | |
| 45 | Notions from other files: |
| 46 | * `New.Space E n s`: a hermitian space with a point, given by a matrix `J` over `E` and `x` in |
| 47 | `GL_n(𝔸)` with `xᴴ J x` equal to `diag s` at the infinite places and `1` at the finite places. |
| 48 | `𝒮 V` is its space of data, with the Weil operators `V.ω g` and the Heisenberg operators `V.ϱ y`. |
| 49 | * `New.Space.Splitting`: dual isotropic frames `l`, `k` with columns indexed by `p` and an isometry |
| 50 | `i : V₀ → V` onto their orthogonal complement. |
| 51 | * `New.Space.Splitting.zeroTerm`: the bounded map `𝒮 V → 𝒮 V₀` that sends `f` to the function whose |
| 52 | value at `y` is the mean of `f (i y + k b)` over `b` in `𝔸 ^ p` modulo `E ^ p`. |
| 53 | * `New.Space.finHeisenbergOp`: the Heisenberg operator of a finite adelic vector `x` on `𝒮 V`; it |
| 54 | translates by `α x`, with `α` the finite idele of `New.WeilData`. |
| 55 | * `New.Data.spaceY`: the hermitian space `Y_k` with its adelic frame, chosen as in |
| 56 | `New.Data.exists_space_isStd_of_le_and_gram_eq_of_lt`. |
| 57 | |
| 58 | ## Relation to the literature |
| 59 | |
| 60 | See `New.UpperBound.Seesaw.SeesawIdentity` for related work. See `Lib.Weil.MixedModel.ZeroTerm` for |
| 61 | sources. |
| 62 | -/ |
| 63 | |
| 64 | @[expose] public section |
| 65 | |
| 66 | noncomputable section |
| 67 | |
| 68 | namespace New.Seesaw |
| 69 | |
| 70 | /-! |
| 71 | ## The finite part of the zero term and the support of its translates |
| 72 | |
| 73 | * `New.Seesaw.zeroTermFin_mem_finitePart`, `New.Seesaw.exists_zeroTerm_rho_integrated_eq`: |
| 74 | `zeroTermFin D` preserves the finite parts and computes `D.zeroTerm` on pure tensors. |
| 75 | * `New.Seesaw.exists_zeroTermFin_finHeisenbergOp_add`: its values on the finite translates of the |
| 76 | vacuum. |
| 77 | * `New.Seesaw.mem_zeroTermLattice_iff_selfDualAddChar`, |
| 78 | `New.Seesaw.exists_zeroTermFin_vacElem_eq_sum`: the lattice `New.Seesaw.zeroTermLattice D` is |
| 79 | unimodular, and the value at the vacuum is a multiple of a sum of translates of the vacuum by |
| 80 | vectors of this lattice. |
| 81 | |
| 82 | `V.integrated v f` is the tensor of a real Fock vector `v` with `f`, `V.finHeisenbergOp x` the |
| 83 | Heisenberg operator of a finite adelic vector `x`, `V.finitePart` the span of the |
| 84 | `V.finHeisenbergOp x`-translates of the vacuum, and `New.stdLattice` the standard lattice `Ô ^ n`. |
| 85 | -/ |
| 86 | |
| 87 | section FiniteZeroTerm |
| 88 | |
| 89 | open Matrix Prod Space Splitting stdLattice Fock |
| 90 | |
| 91 | variable {E n n₀ p : Type} [Field E] [CMType E] [Fintype n] [DecidableEq n] [Fintype n₀] |
| 92 | [DecidableEq n₀] [Fintype p] [DecidableEq p] {s : n → ℤˣ} {s₀ : n₀ → ℤˣ} {V : Space E n s} |
| 93 | {V₀ : Space E n₀ s₀} [WeilData E] |
| 94 | |
| 95 | /-- The finite part of the zero term along the splitting `D` of `V` over `V₀`. It is the map |
| 96 | `f ↦ D.zeroTerm (v ⊗ f)`, where `⊗` is `V.integrated` and `v` is the Fock vacuum moved by the real |
| 97 | part of a chosen point `g` of the unitary group with `D.IsAdapted g 1` (the frame of `D` moved by |
| 98 | `g⁻¹` is orthonormal at the infinite places and integral at the finite places). -/ |
| 99 | @[local simp] |
| 100 | noncomputable def zeroTermFin (D : V.Splitting V₀ p) : 𝒮 V →L[ℂ] 𝒮 V₀ := |
| 101 | D.zeroTerm ∘L |
| 102 | V.integrated (realWeil (blockU (D.exists_isAdapted_and_frame_eq 1).choose.1) Fock.vacVector) |
| 103 | |
| 104 | /-- With `g` the adapted point chosen in the definition, `zeroTermFin D` undoes the finite part |
| 105 | `g.2` of `g`, projects on the real vacuum (`V.projReal`), applies the Weil operator `V.ω g` and |
| 106 | takes the zero term. -/ |
| 107 | lemma zeroTermFin_eq (D : V.Splitting V₀ p) {g : G E s} |
| 108 | (hg : g = (D.exists_isAdapted_and_frame_eq 1).choose) (f : 𝒮 V) : |
| 109 | zeroTermFin D f = D.zeroTerm (V.ω g (V.projReal (V.ω (1, g⁻¹.2) f))) := by |
| 110 | simp [zeroTermFin, hg, omega_integrated, rep_apply_apply, mk_one_one] |
| 111 | |
| 112 | /-- Let `D` be a splitting of `V` over `V₀`: dual isotropic frames `k`, `l` with columns indexed by |
| 113 | `p` and an isometry of `V₀` onto their orthogonal complement. The finite part |
| 114 | `zeroTermFin D : 𝒮 V → 𝒮 V₀` of the zero term along `k` does not vanish on `V.finitePart`, the span |
| 115 | of the finite Heisenberg translates of the vacuum. -/ |
| 116 | lemma exists_zeroTermFin_ne_zero (D : V.Splitting V₀ p) : |
| 117 | ∃ f ∈ V.finitePart, zeroTermFin D f ≠ 0 := by |
| 118 | -- At `ω (1, g_f) vacElem` it is the zero term of `ω g vacElem`, a nonzero multiple of the vacuum. |
| 119 | set g : G E s := (D.exists_isAdapted_and_frame_eq 1).choose with hg_def |
| 120 | have hg : D.IsAdapted g 1 := (D.exists_isAdapted_and_frame_eq 1).choose_spec.1 |
| 121 | obtain ⟨c, hc_ne, hc⟩ : ∃ c ≠ (0 : ℂ), ∀ x : p → 𝔸 E, |
| 122 | D.slice x (V.ω g V.vacElem) = (c * ‖vacuumFn x‖ ^ 2) • V₀.vacElem := by |
| 123 | simpa using hg.slice_omega_vacElem |
| 124 | refine ⟨V.ω (1, g.2) V.vacElem, omega_mem_finitePart _ vacElem_mem_finitePart, fun h_zero ↦ ?_⟩ |
| 125 | have h_value : zeroTermFin D (V.ω (1, g.2) V.vacElem) = c • V₀.vacElem := by |
| 126 | rw [zeroTermFin_eq D hg_def, rep_apply_apply, ← slice_zero] |
| 127 | simp [mk_one_one, hc, vacuumFn] |
| 128 | exact (smul_ne_zero hc_ne V₀.vacElem_ne_zero) (h_value.symm.trans h_zero) |
| 129 | |
| 130 | /-- Let `D` be a splitting of `V` over `V₀`, with isotropic frame `k` indexed by `p`. The finite |
| 131 | part `zeroTermFin D : 𝒮 V → 𝒮 V₀` of the zero term along `k` sends `V.finitePart`, the span of the |
| 132 | finite Heisenberg translates of the vacuum, into `V₀.finitePart`. -/ |
| 133 | lemma zeroTermFin_mem_finitePart (D : V.Splitting V₀ p) {f : 𝒮 V} (hf : f ∈ V.finitePart) : |
| 134 | zeroTermFin D f ∈ V₀.finitePart := by |
| 135 | -- For the adapted point `g`, the mixed model of `ω g vacElem` is a multiple of `vacElem`. So the |
| 136 | -- zero term of `ω g` of a finite translate of `vacElem` is a multiple of such a translate. |
| 137 | set g : G E s := (D.exists_isAdapted_and_frame_eq 1).choose with hg_def |
| 138 | have hg : D.IsAdapted g 1 := (D.exists_isAdapted_and_frame_eq 1).choose_spec.1 |
| 139 | obtain ⟨c, -, hc⟩ := hg.slice_omega_vacElem |
| 140 | have h_translate (x : n → 𝔸f E) : |
| 141 | D.zeroTerm (V.ω g (V.finHeisenbergOp x V.vacElem)) ∈ V₀.finitePart := by |
| 142 | simp only [finHeisenbergOp, _root_.smul_apply, map_smul, omega_rho, mulVec_finVec, ← slice_zero, |
| 143 | isMixedLaw_slice, hc] |
| 144 | exact Submodule.smul_mem _ _ <| Submodule.smul_mem _ _ <| Submodule.smul_mem _ _ <| |
| 145 | rho_finVec_mem_finitePart _ vacElem_mem_finitePart |
| 146 | have h_le : V.finitePart ≤ V₀.finitePart.comap (D.zeroTerm ∘L V.ω g).toLinearMap := by |
| 147 | simpa [finitePart, Submodule.span_le, Set.range_subset_iff] using h_translate |
| 148 | rw [zeroTermFin_eq D hg_def, projReal_eq_self_of_mem_finitePart (omega_mem_finitePart _ hf)] |
| 149 | exact h_le (omega_mem_finitePart _ hf) |
| 150 | |
| 151 | /-- Let `D` be a splitting of `V` over `V₀`. The zero term along the isotropic frame of `D` carries |
| 152 | a translated pure tensor to a pure tensor: for an adelic vector `y` and a real Fock vector `v` of |
| 153 | `V` there is a real Fock vector `v₀` of `V₀`, independent of `f`, such that the zero term of |
| 154 | `ϱ(y) (v ⊗ f)` is `v₀ ⊗ zeroTermFin D (ϱ_f(α⁻¹ y_f) f)`, where `ϱ_f` is `V.finHeisenbergOp`, `⊗` is |
| 155 | `integrated` and `α⁻¹ y_f` is `finCoord y`. -/ |
| 156 | lemma exists_zeroTerm_rho_integrated_eq (D : V.Splitting V₀ p) (y : n → 𝔸 E) |
| 157 | (v : Heisenberg.IsVacuum.Model (realHeisenberg (realSigns E s))) : |
| 158 | ∃ v₀ : Heisenberg.IsVacuum.Model (realHeisenberg (realSigns E s₀)), ∀ f : 𝒮 V, |
| 159 | D.zeroTerm (V.ϱ y (V.integrated v f)) = |
| 160 | V₀.integrated v₀ (zeroTermFin D (V.finHeisenbergOp (finCoord y) f)) := by |
| 161 | -- Move `ϱ y` into the real datum `w` and the finite datum, and write `integrated w f` as `ω g` |
| 162 | -- of another pure tensor. As `g` is adapted, there is a bounded map `L` of Fock spaces |
| 163 | -- such that the zero term of `ω g (integrated v f)` is `integrated (L v)` of the zero term of |
| 164 | -- `ω g (projReal f)`. |
| 165 | set g : G E s := (D.exists_isAdapted_and_frame_eq 1).choose with hg_def |
| 166 | have hg : D.IsAdapted g 1 := (D.exists_isAdapted_and_frame_eq 1).choose_spec.1 |
| 167 | obtain ⟨w, hw⟩ := V.exists_rho_integrated_eq y v |
| 168 | obtain ⟨L, hL⟩ := hg.exists_apply_zero_omega_integrated_eq D.isMixedLaw_slice |
| 169 | refine ⟨L (realWeil (blockU g⁻¹.1) w), fun f ↦ ?_⟩ |
| 170 | have h_integrated_eq_omega (f : 𝒮 V) : |
| 171 | V.integrated w f = V.ω g (V.integrated (realWeil (blockU g⁻¹.1) w) (V.ω (1, g⁻¹.2) f)) := by |
| 172 | rw [← V.omega_integrated] |
| 173 | simp [rep_apply_apply] |
| 174 | rw [hw, h_integrated_eq_omega, zeroTermFin_eq D hg_def, ← slice_zero, hL] |
| 175 | |
| 176 | /-- Let `D` be a splitting of `V` over `V₀`, with isotropic frame `k`, dual frame `l` and embedding |
| 177 | `i` of `V₀`. In `D.finFrameVector g t a w b` the frame is moved by `g` and `t`; with both equal to |
| 178 | `1` and `a = 0` it is the vector `z = i w + k b`. Then `zeroTermFin D`, the finite part of the zero |
| 179 | term along `k`, carries translation of `V` by `z` to translation of `V₀` by `w`. -/ |
| 180 | lemma zeroTermFin_finHeisenbergOp_finFrameVector (D : V.Splitting V₀ p) (b : p → 𝔸f E) |
| 181 | {z : n → 𝔸f E} {w : n₀ → 𝔸f E} (hz : z = D.finFrameVector 1 1 0 w b) (f : 𝒮 V) : |
| 182 | zeroTermFin D (V.finHeisenbergOp z f) = V₀.finHeisenbergOp w (zeroTermFin D f) := by |
| 183 | have h_char : semichar z = semichar w := by simp [semichar, hz, star_dot_finFrameVector] |
| 184 | have h_real (v : Heisenberg.IsVacuum.Model (realHeisenberg (realSigns E s))) : |
| 185 | V.integrated v (V.ϱ (finVec z) f) = V.ϱ (finVec z) (V.integrated v f) := |
| 186 | (V.rho_integrated v f fun _ ↦ rfl).symm |
| 187 | -- The law of the mixed model, where `z` has coordinates `w`, `b` and `0` in the frame. |
| 188 | have h_law (f' : 𝒮 V) : D.zeroTerm (V.ϱ (finVec z) f') = V₀.ϱ (finVec w) (D.zeroTerm f') := by |
| 189 | simp [hz, ← slice_zero, frameAt, finFrameVector, ← RingHom.coe_snd, fromCols_map, |
| 190 | mulVec_finVec, mulVec_add, ← Matrix.map_mul] |
| 191 | simp [finHeisenbergOp, zeroTermFin, h_char, h_real, h_law] |
| 192 | |
| 193 | /-- Let `D` be a splitting of `V`, `k = D.kAdelic.map snd` the finite part of its isotropic frame, |
| 194 | `t : GL p (𝔸f E)` and `y : n → 𝔸f E`; let `M * M'ᴴ = 1` with `M'ᴴ * k * t` integral, and let `f` |
| 195 | be fixed by the finite Heisenberg operators of all `M x` with `x` in the standard lattice. If |
| 196 | `zeroTermFin D` does not vanish at the translate of `f` by `y`, then `(k * t)ᴴ *ᵥ y` lies in the |
| 197 | standard lattice. -/ |
| 198 | private lemma star_mulVec_mem_stdLattice_of_zeroTermFin_ne_zero (D : V.Splitting V₀ p) |
| 199 | {M M' : Matrix n n (𝔸f E)} {t : GL p (𝔸f E)} {f : 𝒮 V} {y : n → 𝔸f E} |
| 200 | (h_ne : zeroTermFin D (V.finHeisenbergOp y f) ≠ 0) (hM : M * M'ᴴ = 1) |
| 201 | (hf : ∀ x ∈ stdLattice E n, V.finHeisenbergOp (M *ᵥ x) f = f) |
| 202 | (h_int : IsIntMatrix (Ô E) (M'ᴴ * D.kAdelic.map snd * t.val)) : |
| 203 | star t.val *ᵥ (D.kAdelic.map snd)ᴴ *ᵥ y ∈ stdLattice E p := by |
| 204 | set k : Matrix n p (𝔸f E) := D.kAdelic.map snd with hk |
| 205 | set v : p → 𝔸f E := star t.val *ᵥ kᴴ *ᵥ y with hv |
| 206 | -- The lattice is its own dual: it suffices that `selfDualAddChar E (star x ⬝ᵥ v) = 1` for |
| 207 | -- integral `x`. |
| 208 | refine mem_stdLattice_iff_selfDualAddChar.2 fun x hx ↦ ?_ |
| 209 | -- The isotropic vector `z` is a period of `f` and of `zeroTermFin D`, so its commutator with |
| 210 | -- `y` fixes the nonzero vector `zeroTermFin D (V.finHeisenbergOp y f)`. |
| 211 | set z : n → 𝔸f E := k *ᵥ t.val *ᵥ x with hz |
| 212 | have h_period : V.finHeisenbergOp z f = f := by |
| 213 | simpa [hz, ← M.mul_assoc, hM] using hf _ (h_int.mulVec hx) |
| 214 | have hz_frame : z = D.finFrameVector 1 1 0 0 (t.val *ᵥ x) := by |
| 215 | simp [hz, hk, frameAt, finFrameVector, fromCols_map] |
| 216 | have h_zeroTermFin_invariant (f' : 𝒮 V) : |
| 217 | zeroTermFin D (V.finHeisenbergOp z f') = zeroTermFin D f' := by |
| 218 | rw [zeroTermFin_finHeisenbergOp_finFrameVector D _ hz_frame] |
| 219 | simp [finHeisenbergOp, semichar] |
| 220 | have h_comm : V.finHeisenbergOp y f = selfDualAddChar E (star z ⬝ᵥ y) • V.finHeisenbergOp z |
| 221 | (V.finHeisenbergOp y f) := by |
| 222 | rw [← V.finHeisenbergOp_comm, h_period] |
| 223 | have h_dot : star x ⬝ᵥ v = star z ⬝ᵥ y := by |
| 224 | simp [hv, hz, star_mulVec, ← dotProduct_mulVec, star_eq_conjTranspose] |
| 225 | have h_fixed : selfDualAddChar E (star x ⬝ᵥ v) • zeroTermFin D (V.finHeisenbergOp y f) = |
| 226 | (1 : ℂ) • zeroTermFin D (V.finHeisenbergOp y f) := by |
| 227 | rw [h_dot, one_smul] |
| 228 | conv_rhs => rw [h_comm, map_smul, h_zeroTermFin_invariant] |
| 229 | exact smul_left_injective ℂ h_ne h_fixed |
| 230 | |
| 231 | /-- Let `D` be a splitting of `V`, `k = D.kAdelic.map snd` the finite part of its isotropic frame |
| 232 | and `k^⊥` the kernel of `kᴴ`. Let `M * M'ᴴ = 1` and let `f` be fixed by the finite Heisenberg |
| 233 | operators of all `M x` with `x` in the standard lattice `Ô ^ n`. If `zeroTermFin D`, the finite part |
| 234 | of the zero term along `k`, does not vanish at the translate of `f` by `y`, then |
| 235 | `y ∈ M' Ô ^ n + k^⊥`. -/ |
| 236 | lemma exists_sub_orthogonal_of_zeroTermFin_ne_zero (D : V.Splitting V₀ p) (M M' : Matrix n n (𝔸f E)) |
| 237 | {f : 𝒮 V} {y : n → 𝔸f E} (h_ne : zeroTermFin D (V.finHeisenbergOp y f) ≠ 0) (hM : M * M'ᴴ = 1) |
| 238 | (hf : ∀ x ∈ stdLattice E n, V.finHeisenbergOp (M *ᵥ x) f = f) : |
| 239 | ∃ l ∈ stdLattice E n, (D.kAdelic.map snd)ᴴ *ᵥ (y - M' *ᵥ l) = 0 := by |
| 240 | -- Rescale the isotropic frame `k` by `t` so that `M'ᴴ * k * t` is integral with an integral left |
| 241 | -- inverse `L`. Then `v = (k * t)ᴴ *ᵥ y` is integral, and `l = Lᴴ *ᵥ v` works. |
| 242 | set k : Matrix n p (𝔸f E) := D.kAdelic.map snd with hk |
| 243 | have h_left : D.kCoord.map snd * M * (M'ᴴ * k) = 1 := by |
| 244 | simp [hk, ← M.mul_assoc, hM, ← RingHom.coe_snd, Matrix.mul_assoc, ← Matrix.map_mul] |
| 245 | obtain ⟨t, -, h_int, L, hL, h_inv⟩ : ∃ t : GL p (𝔸f E), t.val.BlockTriangular (0 : p → ℕ) ∧ |
| 246 | IsIntMatrix (Ô E) (M'ᴴ * k * t.val) ∧ |
| 247 | ∃ L : Matrix p n (𝔸f E), IsIntMatrix (Ô E) L ∧ L * (M'ᴴ * k * t.val) = 1 := |
| 248 | isValuationPair_Ô.exists_isPrimitiveMatrix_mul ⟨D.kCoord.map snd * M, h_left⟩ |
| 249 | set v : p → 𝔸f E := star t.val *ᵥ kᴴ *ᵥ y with hv |
| 250 | have hv_mem : v ∈ stdLattice E p := |
| 251 | star_mulVec_mem_stdLattice_of_zeroTermFin_ne_zero D h_ne hM hf h_int |
| 252 | have h_solve : star t.val *ᵥ kᴴ *ᵥ M' *ᵥ Lᴴ *ᵥ v = v := by |
| 253 | have h_adjoint : star t.val * (kᴴ * (M' * Lᴴ)) = 1 := by |
| 254 | simpa [Matrix.mul_assoc, star_eq_conjTranspose] using congrArg conjTranspose h_inv |
| 255 | simp only [mulVec_mulVec, h_adjoint, one_mulVec] |
| 256 | refine ⟨Lᴴ *ᵥ v, hL.conjTranspose.mulVec hv_mem, |
| 257 | mulVec_injective_of_isUnit t.isUnit.star ?_⟩ |
| 258 | simp only [mulVec_sub, ← hv, h_solve, sub_self, mulVec_zero] |
| 259 | |
| 260 | /-- The finite part of the embedding of `V₀` in `V`, in the coordinates of the lattices. -/ |
| 261 | noncomputable abbrev _root_.New.Space.Splitting.iFin (D : V.Splitting V₀ p) : |
| 262 | Matrix n n₀ (𝔸f E) := |
| 263 | D.iAdelic.map snd |
| 264 | |
| 265 | /-- The finite part of the isotropic frame, in the coordinates of the lattice. Its columns span the |
| 266 | isotropic subspace `I`. -/ |
| 267 | noncomputable abbrev _root_.New.Space.Splitting.isotropicBasisFin (D : V.Splitting V₀ p) : |
| 268 | Matrix n p (𝔸f E) := |
| 269 | D.kAdelic.map snd |
| 270 | |
| 271 | /-- The lattice `L'` of `V₀ = I^⊥ / I`: the image of `L ∩ I^⊥`, where `L` is the standard lattice |
| 272 | of `V` and `I` is spanned by the columns of `k = D.isotropicBasisFin`. A vector of `I^⊥` is written |
| 273 | `i w + k b` with `i = D.iFin`, and `w` is its class. -/ |
| 274 | noncomputable def zeroTermLattice (D : V.Splitting V₀ p) : AddSubgroup (n₀ → 𝔸f E) where |
| 275 | carrier := {w : n₀ → 𝔸f E | |
| 276 | ∃ b : p → 𝔸f E, D.iFin *ᵥ w + D.isotropicBasisFin *ᵥ b ∈ stdLattice E n} |
| 277 | add_mem' := fun ⟨b, hb⟩ ⟨b', hb'⟩ ↦ |
| 278 | ⟨b + b', by simpa [mulVec_add, add_add_add_comm] using add_mem hb hb'⟩ |
| 279 | zero_mem' := ⟨0, by simp⟩ |
| 280 | neg_mem' := fun ⟨b, hb⟩ ↦ ⟨-b, by simpa [mulVec_neg, add_comm] using neg_mem hb⟩ |
| 281 | |
| 282 | section |
| 283 | |
| 284 | omit [WeilData E] |
| 285 | |
| 286 | /-- With `g = 1`, `t = 1` and no component `a` along the dual frame `l`, `D.finFrameVector` is |
| 287 | `D.iFin *ᵥ w + D.isotropicBasisFin *ᵥ b`, the finite vector `i w + k b`. -/ |
| 288 | lemma finFrameVector_zero (D : V.Splitting V₀ p) (w : n₀ → 𝔸f E) (b : p → 𝔸f E) : |
| 289 | D.finFrameVector 1 1 0 w b = D.iFin *ᵥ w + D.isotropicBasisFin *ᵥ b := by |
| 290 | simp [finFrameVector, frameAt, fromCols_map, iFin, isotropicBasisFin, add_comm] |
| 291 | |
| 292 | /-- For the vector `D.finFrameVector 1 1 a w b = l a + i w + k b`, the coordinates `a` along the |
| 293 | dual frame `l` and `w` along `V₀` are its products with the columns of `k = D.isotropicBasisFin` and |
| 294 | of `i = D.iFin`. -/ |
| 295 | lemma conjTranspose_isotropicBasisFin_iFin_mulVec_finFrameVector (D : V.Splitting V₀ p) |
| 296 | (a b : p → 𝔸f E) (w : n₀ → 𝔸f E) : |
| 297 | D.isotropicBasisFinᴴ *ᵥ D.finFrameVector 1 1 a w b = a ∧ |
| 298 | D.iFinᴴ *ᵥ D.finFrameVector 1 1 a w b = w := by |
| 299 | have h_coord : ((D.frameAt 1 1).map snd)ᴴ *ᵥ D.finFrameVector 1 1 a w b = b ⊕ᵥ a ⊕ᵥ w := |
| 300 | D.adjoint_mulVec_finFrameVector 1 1 a w b |
| 301 | generalize D.finFrameVector 1 1 a w b = z at h_coord ⊢ |
| 302 | obtain ⟨⟨-, h_dual⟩, h_class⟩ : |
| 303 | ((D.lAdelic.map snd)ᴴ *ᵥ z = b ∧ D.isotropicBasisFinᴴ *ᵥ z = a) ∧ D.iFinᴴ *ᵥ z = w := by |
| 304 | simpa [frameAt, fromCols_map, conjTranspose_fromCols_eq_fromRows_conjTranspose, |
| 305 | Sum.elim_eq_iff] using h_coord |
| 306 | exact ⟨h_dual, h_class⟩ |
| 307 | |
| 308 | /-- A finite adelic vector orthogonal to the columns of the isotropic frame |
| 309 | `k = D.isotropicBasisFin` has the form `i w + k b`, where `i = D.iFin` is the embedding of `V₀`. -/ |
| 310 | lemma exists_eq_iFin_add_isotropicBasisFin_of_mulVec_eq_zero (D : V.Splitting V₀ p) |
| 311 | {z : n → 𝔸f E} (hz : D.isotropicBasisFinᴴ *ᵥ z = 0) : |
| 312 | ∃ (w : n₀ → 𝔸f E) (b : p → 𝔸f E), z = D.iFin *ᵥ w + D.isotropicBasisFin *ᵥ b := by |
| 313 | obtain ⟨a, w, b, rfl⟩ := D.exists_eq_finFrameVector 1 1 z |
| 314 | have h_dual := (conjTranspose_isotropicBasisFin_iFin_mulVec_finFrameVector D a b w).1 |
| 315 | obtain rfl : a = 0 := h_dual.symm.trans hz |
| 316 | exact ⟨w, b, finFrameVector_zero D w b⟩ |
| 317 | |
| 318 | end |
| 319 | |
| 320 | /-- The finite zero term of the vacuum translated by `y` is `0` unless `y = i w + k b + l` with `l` |
| 321 | in the standard lattice, where `i = D.iFin` embeds `V₀` and `k = D.isotropicBasisFin` is the |
| 322 | isotropic frame. -/ |
| 323 | lemma exists_eq_add_of_zeroTermFin_ne_zero (D : V.Splitting V₀ p) {y : n → 𝔸f E} |
| 324 | (h_ne : zeroTermFin D (V.finHeisenbergOp y V.vacElem) ≠ 0) : |
| 325 | ∃ l ∈ stdLattice E n, ∃ (w : n₀ → 𝔸f E) (b : p → 𝔸f E), |
| 326 | y = D.iFin *ᵥ w + D.isotropicBasisFin *ᵥ b + l := by |
| 327 | obtain ⟨l, hl, h_perp⟩ : ∃ l ∈ stdLattice E n, D.isotropicBasisFinᴴ *ᵥ (y - l) = 0 := by |
| 328 | simpa using exists_sub_orthogonal_of_zeroTermFin_ne_zero D 1 1 h_ne (by simp) |
| 329 | fun x hx ↦ by rw [one_mulVec, finHeisenbergOp_vacElem hx] |
| 330 | obtain ⟨w, b, h_sub⟩ := exists_eq_iFin_add_isotropicBasisFin_of_mulVec_eq_zero D h_perp |
| 331 | exact ⟨l, hl, w, b, sub_eq_iff_eq_add.1 h_sub⟩ |
| 332 | |
| 333 | /-- The translates of the vacuum under the finite Heisenberg operators of `x` and of `x + l`, with |
| 334 | `l` in the standard lattice `Ô ^ n`, agree up to a root of unity. -/ |
| 335 | lemma exists_finHeisenbergOp_add_vacElem (W : Space E n s) (x : n → 𝔸f E) {l : n → 𝔸f E} |
| 336 | (hl : l ∈ stdLattice E n) : |
| 337 | ∃ ζ : ℂ, IsOfFinOrder ζ ∧ |
| 338 | W.finHeisenbergOp x W.vacElem = ζ • W.finHeisenbergOp (x + l) W.vacElem := by |
| 339 | -- `selfDualAddChar E` is a multiplicative shift of `ψf E`, so its values have finite order. |
| 340 | refine ⟨selfDualAddChar E (star traceOneAdele * star l ⬝ᵥ x), isOfFinOrder_ψf _, ?_⟩ |
| 341 | rw [← W.finHeisenbergOp_finHeisenbergOp, finHeisenbergOp_vacElem hl] |
| 342 | |
| 343 | /-- For `y = i w + k b + l` with `l` in the standard lattice, `i = D.iFin` and |
| 344 | `k = D.isotropicBasisFin`, the finite zero term of the vacuum translated by `y` is a root of unity |
| 345 | times the translate by `w` of the finite zero term of the vacuum. -/ |
| 346 | lemma exists_zeroTermFin_finHeisenbergOp_add (D : V.Splitting V₀ p) (w : n₀ → 𝔸f E) |
| 347 | (b : p → 𝔸f E) {l : n → 𝔸f E} (hl : l ∈ stdLattice E n) : |
| 348 | ∃ ζ : ℂ, IsOfFinOrder ζ ∧ |
| 349 | zeroTermFin D (V.finHeisenbergOp (D.iFin *ᵥ w + D.isotropicBasisFin *ᵥ b + l) V.vacElem) = |
| 350 | ζ • V₀.finHeisenbergOp w (zeroTermFin D V.vacElem) := by |
| 351 | obtain ⟨ζ, hζ, h_shift⟩ : ∃ ζ : ℂ, IsOfFinOrder ζ ∧ |
| 352 | V.finHeisenbergOp (D.iFin *ᵥ w + D.isotropicBasisFin *ᵥ b + l) V.vacElem = |
| 353 | ζ • V.finHeisenbergOp (D.iFin *ᵥ w + D.isotropicBasisFin *ᵥ b + l + -l) V.vacElem := |
| 354 | exists_finHeisenbergOp_add_vacElem V _ (neg_mem hl) |
| 355 | refine ⟨ζ, hζ, ?_⟩ |
| 356 | rw [h_shift, add_neg_cancel_right, map_smul, |
| 357 | zeroTermFin_finHeisenbergOp_finFrameVector D b (finFrameVector_zero D w b).symm] |
| 358 | |
| 359 | /-- The finite part `zeroTermFin D` of the zero term along a splitting `D` does not vanish at the |
| 360 | vacuum `V.vacElem`. -/ |
| 361 | lemma zeroTermFin_vacElem_ne_zero (D : V.Splitting V₀ p) : zeroTermFin D V.vacElem ≠ 0 := by |
| 362 | -- Otherwise it would vanish on all finite translates of the vacuum, which span the finite part. |
| 363 | intro h_zero |
| 364 | have h_translate (y : n → 𝔸f E) : zeroTermFin D (V.finHeisenbergOp y V.vacElem) = 0 := by |
| 365 | by_contra h_ne |
| 366 | obtain ⟨l, hl, w, b, rfl⟩ := exists_eq_add_of_zeroTermFin_ne_zero D h_ne |
| 367 | obtain ⟨ζ, -, hζ⟩ := exists_zeroTermFin_finHeisenbergOp_add D w b hl |
| 368 | simp [-zeroTermFin, hζ, h_zero] at h_ne |
| 369 | have h_le : V.finitePart ≤ LinearMap.ker (zeroTermFin D).toLinearMap := by |
| 370 | simpa [finitePart, Submodule.span_le, Set.range_subset_iff] using h_translate |
| 371 | obtain ⟨f, hf, hf_ne⟩ := exists_zeroTermFin_ne_zero D |
| 372 | exact hf_ne (h_le hf) |
| 373 | |
| 374 | /-- For a splitting `D` of `V` over `V₀`, the translations by vectors of the lattice |
| 375 | `zeroTermLattice D` of `V₀` fix the value of the finite zero term `zeroTermFin D` at the vacuum. -/ |
| 376 | lemma finHeisenbergOp_zeroTermFin_vacElem (D : V.Splitting V₀ p) {x : n₀ → 𝔸f E} |
| 377 | (hx : x ∈ zeroTermLattice D) : |
| 378 | V₀.finHeisenbergOp x (zeroTermFin D V.vacElem) = zeroTermFin D V.vacElem := by |
| 379 | obtain ⟨b, hb⟩ := hx |
| 380 | rw [← zeroTermFin_finHeisenbergOp_finFrameVector D b (finFrameVector_zero D x b).symm, |
| 381 | finHeisenbergOp_vacElem hb] |
| 382 | |
| 383 | /-- Let `W` be a hermitian space over `E` with a point, `s` the signs of its form at the infinite |
| 384 | places, and let `g` be in `Gf E n`, the finite adelic unitary group. Thus `(1, g)` is the adelic |
| 385 | point with trivial infinite part and `W.ω (1, g)` is its Weil operator. Let `Λ = Ô ^ n` be the |
| 386 | standard lattice and let the `r a` be representatives of `g Λ` modulo `g Λ ∩ Λ`. Then this operator |
| 387 | sends the vacuum to a nonzero multiple of the sum of the finite Heisenberg translates of the vacuum |
| 388 | by the `r a`. -/ |
| 389 | lemma exists_omega_vacElem_eq_sum (W : Space E n s) {g : Gf E n} {R : Type*} [Fintype R] |
| 390 | {r : R → n → 𝔸f E} |
| 391 | (hr_mem : ∀ a : R, r a ∈ (stdLattice E n).map (DistribSMul.toAddMonoidHom (n → 𝔸f E) g)) |
| 392 | (hr_rep : ∀ z ∈ (stdLattice E n).map (DistribSMul.toAddMonoidHom (n → 𝔸f E) g), |
| 393 | ∃! a : R, z - r a ∈ stdLattice E n) : |
| 394 | ∃ c ≠ (0 : ℂ), W.ω (1, g) W.vacElem = c • ∑ a : R, W.finHeisenbergOp (r a) W.vacElem := by |
| 395 | -- Write `r a = g (x a)`. The `x a` represent `Λ` modulo `H = Λ ∩ g⁻¹ Λ`. |
| 396 | let H : AddSubgroup (stdLattice E n) := |
| 397 | ((stdLattice E n).comap g.val.val.mulVecLin).addSubgroupOf (stdLattice E n) |
| 398 | have h_preimage : ∀ a : R, ∃ x : stdLattice E n, g.val.val *ᵥ x.val = r a := fun a ↦ |
| 399 | let ⟨x, hx, h_eq⟩ := hr_mem a |
| 400 | ⟨⟨x, hx⟩, h_eq⟩ |
| 401 | choose x hx using h_preimage |
| 402 | have h_class (a : R) (z : stdLattice E n) : |
| 403 | (x a : stdLattice E n ⧸ H) = z ↔ g.val.val *ᵥ z.val - r a ∈ stdLattice E n := by |
| 404 | rw [QuotientAddGroup.eq, ← hx, ← mulVec_sub, sub_eq_neg_add] |
| 405 | rfl |
| 406 | have h_bij : Function.Bijective fun a : R ↦ (x a : stdLattice E n ⧸ H) := by |
| 407 | refine (Function.bijective_iff_existsUnique _).2 fun q ↦ ?_ |
| 408 | obtain ⟨z, rfl⟩ := QuotientAddGroup.mk_surjective q |
| 409 | simp only [h_class] |
| 410 | exact hr_rep _ ⟨z, z.property, rfl⟩ |
| 411 | refine ⟨finMultiplier g / ‖finMultiplier g‖ ^ 2, by simp [finMultiplier_ne_zero], ?_⟩ |
| 412 | rw [omega_vacElem_sum, ← finsum_comp _ h_bij, finsum_eq_sum_of_fintype] |
| 413 | simp only [W.finHeisenbergOp_mulVec_out_vacElem (x := x _) rfl, hx] |
| 414 | |
| 415 | section |
| 416 | |
| 417 | omit [WeilData E] |
| 418 | |
| 419 | /-- Let `i = D.iFin` be the embedding of `V₀` and `k = D.isotropicBasisFin` the isotropic frame. For |
| 420 | `B = i g + k c` with `g` unitary, the adjoint of `B` sends `i w + k b` to `g⁻¹ w`. -/ |
| 421 | lemma conjTranspose_mulVec_iFin_add_isotropicBasisFin {D : V.Splitting V₀ p} {g : Gf E n₀} |
| 422 | {c : Matrix p n₀ (𝔸f E)} |
| 423 | {B : Matrix n n₀ (𝔸f E)} (hB_def : B = D.iFin * (g : Matrix n₀ n₀ (𝔸f E)) + D.isotropicBasisFin |
| 424 | * c) |
| 425 | (w : n₀ → 𝔸f E) (b : p → 𝔸f E) : |
| 426 | Bᴴ *ᵥ (D.iFin *ᵥ w + D.isotropicBasisFin *ᵥ b) = (↑g⁻¹ : Matrix n₀ n₀ (𝔸f E)) *ᵥ w := by |
| 427 | obtain ⟨h_perp, h_class⟩ : D.isotropicBasisFinᴴ *ᵥ D.finFrameVector 1 1 0 w b = 0 ∧ |
| 428 | D.iFinᴴ *ᵥ D.finFrameVector 1 1 0 w b = w := |
| 429 | conjTranspose_isotropicBasisFin_iFin_mulVec_finFrameVector D 0 b w |
| 430 | rw [← finFrameVector_zero, hB_def, U.inv_val_eq_conjTranspose] |
| 431 | simp [add_mulVec, ← mulVec_mulVec, h_perp, h_class] |
| 432 | |
| 433 | /-- Let `D` be a splitting of `V` over `V₀`, with finite parts `i = D.iFin` of the embedding of `V₀` |
| 434 | and `k = D.isotropicBasisFin` of the isotropic frame. If `g` is unitary and `B = i g + k c` has |
| 435 | entries in `Ô`, then `zeroTermLattice D` contains `g Ô ^ n₀`. -/ |
| 436 | lemma map_stdLattice_le_zeroTermLattice {D : V.Splitting V₀ p} {g : Gf E n₀} |
| 437 | {c : Matrix p n₀ (𝔸f E)} {B : Matrix n n₀ (𝔸f E)} |
| 438 | (hB_def : B = D.iFin * (g : Matrix n₀ n₀ (𝔸f E)) + D.isotropicBasisFin * c) |
| 439 | (hB : IsIntMatrix (Ô E) B) : |
| 440 | (stdLattice E n₀).map (DistribSMul.toAddMonoidHom (n₀ → 𝔸f E) g) ≤ zeroTermLattice D := by |
| 441 | -- For `x` integral, `B x` is a lattice vector of class `g x`. |
| 442 | rintro _ ⟨x, hx, rfl⟩ |
| 443 | refine ⟨c *ᵥ x, ?_⟩ |
| 444 | change D.iFin *ᵥ (g : Matrix n₀ n₀ (𝔸f E)) *ᵥ x + D.isotropicBasisFin *ᵥ c *ᵥ x ∈ stdLattice E n |
| 445 | simpa only [hB_def, add_mulVec, ← mulVec_mulVec] using! hB.mulVec hx |
| 446 | |
| 447 | /-- Let `D` be a splitting of `V` over `V₀`, with finite parts `i = D.iFin` of the embedding of `V₀` |
| 448 | and `k = D.isotropicBasisFin` of the isotropic frame. The lattice `zeroTermLattice D` consists of |
| 449 | the `w` with `i w + k b ∈ Ô ^ n` for some `b`. If `g` is unitary and `B = i g + k c` has entries in |
| 450 | `Ô`, then this lattice is `g Ô ^ n₀`: a vector `w` lies in it if and only if `g⁻¹ w ∈ Ô ^ n₀`. -/ |
| 451 | lemma mem_zeroTermLattice_iff {D : V.Splitting V₀ p} {g : Gf E n₀} {c : Matrix p n₀ (𝔸f E)} |
| 452 | {B : Matrix n n₀ (𝔸f E)} (hB_def : B = D.iFin * (g : Matrix n₀ n₀ (𝔸f E)) + D.isotropicBasisFin |
| 453 | * c) |
| 454 | (hB : IsIntMatrix (Ô E) B) {w : n₀ → 𝔸f E} : |
| 455 | w ∈ zeroTermLattice D ↔ (↑g⁻¹ : Matrix n₀ n₀ (𝔸f E)) *ᵥ w ∈ stdLattice E n₀ := by |
| 456 | constructor |
| 457 | · -- The integral matrix `Bᴴ` sends a lattice vector of class `w` to `g⁻¹ w`. |
| 458 | rintro ⟨b, hb⟩ |
| 459 | simpa only [conjTranspose_mulVec_iFin_add_isotropicBasisFin hB_def w b] using! |
| 460 | hB.conjTranspose.mulVec hb |
| 461 | · exact fun hx ↦ map_stdLattice_le_zeroTermLattice hB_def hB ⟨_, hx, smul_inv_smul g w⟩ |
| 462 | |
| 463 | end |
| 464 | |
| 465 | /-- Let `D` be a splitting of `V` over `V₀`, with finite parts `i = D.iFin` of the embedding of `V₀` |
| 466 | and `k = D.isotropicBasisFin` of the isotropic frame, whose columns are indexed by `p`. There are a |
| 467 | finite point `g` of the unitary group of `V₀` and a matrix `c` such that `i g + k c` has entries in |
| 468 | `Ô`. -/ |
| 469 | lemma exists_isIntMatrix_iFin_mul_add_isotropicBasisFin_mul (D : V.Splitting V₀ p) : |
| 470 | ∃ (g : Gf E n₀) (c : Matrix p n₀ (𝔸f E)), |
| 471 | IsIntMatrix (Ô E) (D.iFin * (g : Matrix n₀ n₀ (𝔸f E)) + D.isotropicBasisFin * c) := by |
| 472 | -- Take `h` adapted to the splitting with `h⁻¹` a radical element times a Levi element. The lift |
| 473 | -- is the finite part of `h⁻¹ i`, a block of the adapted frame. |
| 474 | obtain ⟨c, b, a, g, h, h_adapted, h_one⟩ : ∃ (c : Matrix n₀ p (𝔸 E)) (b : Matrix p p (𝔸 E)) |
| 475 | (a : GL p (𝔸 E)) (g : G E s₀) (h : G E s), |
| 476 | D.IsAdapted h 1 ∧ 1 = D.radicalElement c b * D.levi (a, g) * h := |
| 477 | D.exists_eq_radicalElement_mul_levi_mul_isAdapted 1 |
| 478 | have h_inv : D.radicalElement c b * D.levi (a, g) = h⁻¹ := eq_inv_of_mul_eq_one_left h_one.symm |
| 479 | set c' : Matrix p n₀ (𝔸 E) := cᴴ * stdForm E s₀ * g.adeleMatrix with hc' |
| 480 | have h_col : h⁻¹.adeleMatrix * D.iAdelic = D.iAdelic * g.adeleMatrix + D.kAdelic * c' := by |
| 481 | rw [← h_inv, G.adeleMatrix_mul, Matrix.mul_assoc, levi_mul_iAdelic, |
| 482 | ← Matrix.mul_assoc, radicalElement_mul_iAdelic, Matrix.add_mul, hc', |
| 483 | Matrix.mul_assoc D.kAdelic] |
| 484 | refine ⟨g.2, c'.map snd, fun i j ↦ ?_⟩ |
| 485 | have h_entry : (D.iFin * (g.2 : Matrix n₀ n₀ (𝔸f E)) + D.isotropicBasisFin * c'.map snd) i j = |
| 486 | ((h⁻¹.adeleMatrix * D.iAdelic) i j).2 := by |
| 487 | rw [h_col] |
| 488 | simp [Matrix.mul_apply, Prod.snd_sum] |
| 489 | simpa [h_entry, frameAt, Matrix.mul_fromCols] using h_adapted.2 i (Sum.inr j) |
| 490 | |
| 491 | /-- The lattice `L' = zeroTermLattice D` is the image of the standard lattice of `V₀` under a finite |
| 492 | point of the unitary group. -/ |
| 493 | lemma exists_zeroTermLattice_eq_map (D : V.Splitting V₀ p) : |
| 494 | ∃ g : Gf E n₀, |
| 495 | zeroTermLattice D = (stdLattice E n₀).map (DistribSMul.toAddMonoidHom (n₀ → 𝔸f E) g) := by |
| 496 | obtain ⟨g, c, hB⟩ := exists_isIntMatrix_iFin_mul_add_isotropicBasisFin_mul D |
| 497 | exact ⟨g, le_antisymm (fun w hw ↦ ⟨g⁻¹ • w, (mem_zeroTermLattice_iff rfl hB).1 hw, |
| 498 | smul_inv_smul g w⟩) (map_stdLattice_le_zeroTermLattice rfl hB)⟩ |
| 499 | |
| 500 | /-- For a finite point `g` of the unitary group, the image `g Ô ^ n` of the standard lattice is its |
| 501 | own dual: it consists of the `w` with `selfDualAddChar E (x* w) = 1` for all `x` in it. Here |
| 502 | `selfDualAddChar E` is the character of the finite adeles for which `Ô` is self-dual. -/ |
| 503 | lemma mem_map_stdLattice_iff_selfDualAddChar (g : Gf E n) {w : n → 𝔸f E} : |
| 504 | w ∈ (stdLattice E n).map (DistribSMul.toAddMonoidHom (n → 𝔸f E) g) ↔ |
| 505 | ∀ x ∈ (stdLattice E n).map (DistribSMul.toAddMonoidHom (n → 𝔸f E) g), |
| 506 | selfDualAddChar E (star x ⬝ᵥ w) = 1 := by |
| 507 | -- The standard lattice is its own dual, and `g` keeps the pairing. |
| 508 | obtain ⟨v, rfl⟩ : ∃ v : n → 𝔸f E, g • v = w := MulAction.surjective g w |
| 509 | have h_dot (y : n → 𝔸f E) : star (g • y) ⬝ᵥ g • v = star y ⬝ᵥ v := by |
| 510 | change star ((g : Matrix n n (𝔸f E)) *ᵥ y) ⬝ᵥ (g : Matrix n n (𝔸f E)) *ᵥ v = star y ⬝ᵥ v |
| 511 | simp [star_mulVec, ← dotProduct_mulVec, ← U.inv_val_eq_conjTranspose] |
| 512 | have h_mem : g • v ∈ (stdLattice E n).map (DistribSMul.toAddMonoidHom (n → 𝔸f E) g) ↔ |
| 513 | v ∈ stdLattice E n := |
| 514 | AddSubgroup.mem_map_iff_mem (MulAction.injective g) |
| 515 | rw [h_mem, mem_stdLattice_iff_selfDualAddChar] |
| 516 | simp [h_dot] |
| 517 | |
| 518 | /-- The lattice `L' = zeroTermLattice D` is unimodular: it consists of the `w` with |
| 519 | `selfDualAddChar E (x* w) = 1` for all `x` in `L'`. -/ |
| 520 | lemma mem_zeroTermLattice_iff_selfDualAddChar (D : V.Splitting V₀ p) {w : n₀ → 𝔸f E} : |
| 521 | w ∈ zeroTermLattice D ↔ ∀ x ∈ zeroTermLattice D, selfDualAddChar E (star x ⬝ᵥ w) = 1 := by |
| 522 | obtain ⟨g, hg⟩ := exists_zeroTermLattice_eq_map D |
| 523 | simpa only [hg] using mem_map_stdLattice_iff_selfDualAddChar g |
| 524 | |
| 525 | /-- If `L' = zeroTermLattice D` contains the image of the standard lattice under a unitary element, |
| 526 | the two lattices are equal, because each is its own dual. -/ |
| 527 | lemma zeroTermLattice_eq_map_of_le (D : V.Splitting V₀ p) {g : Gf E n₀} |
| 528 | (h_le : (stdLattice E n₀).map (DistribSMul.toAddMonoidHom (n₀ → 𝔸f E) g) ≤ |
| 529 | zeroTermLattice D) : |
| 530 | zeroTermLattice D = (stdLattice E n₀).map (DistribSMul.toAddMonoidHom (n₀ → 𝔸f E) g) := |
| 531 | le_antisymm (fun _ hw ↦ (mem_map_stdLattice_iff_selfDualAddChar g).2 fun x hx ↦ |
| 532 | (mem_zeroTermLattice_iff_selfDualAddChar D).1 hw x (h_le hx)) h_le |
| 533 | |
| 534 | omit [WeilData E] in |
| 535 | /-- For `g` unitary and `Λ` the standard lattice, `g Λ ∩ Λ` has finite index in `g Λ`. -/ |
| 536 | lemma relIndex_map_stdLattice_ne_zero (g : Gf E n) : |
| 537 | (stdLattice E n).relIndex |
| 538 | ((stdLattice E n).map (DistribSMul.toAddMonoidHom (n → 𝔸f E) g)) ≠ 0 := |
| 539 | (isCompact_stdLattice.image (continuous_const_smul g)).relIndex_ne_zero_add isOpen_stdLattice |
| 540 | |
| 541 | /-- Let `D` be a splitting of `V` over `V₀`, with embedding `i = D.iFin` and isotropic frame |
| 542 | `k = D.isotropicBasisFin`. Let `L' = zeroTermLattice D` be the lattice of the `w` with |
| 543 | `i w + k b ∈ Ô ^ n` for some `b`, and let the `r a` be representatives of `L'` modulo `L' ∩ Ô ^ n₀`. |
| 544 | Then `zeroTermFin D` sends the vacuum of `V` to a nonzero multiple of the sum of the finite |
| 545 | Heisenberg translates of the vacuum of `V₀` by the `r a`. -/ |
| 546 | lemma exists_zeroTermFin_vacElem_eq_sum (D : V.Splitting V₀ p) {R : Type*} [Fintype R] |
| 547 | {r : R → n₀ → 𝔸f E} (hr_mem : ∀ a : R, r a ∈ zeroTermLattice D) |
| 548 | (hr_rep : ∀ z ∈ zeroTermLattice D, ∃! a : R, z - r a ∈ stdLattice E n₀) : |
| 549 | ∃ c ≠ (0 : ℂ), zeroTermFin D V.vacElem = c • ∑ a : R, V₀.finHeisenbergOp (r a) V₀.vacElem := by |
| 550 | obtain ⟨g, hg⟩ := exists_zeroTermLattice_eq_map D |
| 551 | -- A vector fixed by the translations by `L' = g L°` is a multiple of `ω g` of the vacuum. |
| 552 | obtain ⟨C, hC⟩ : ∃ C : ℂ, zeroTermFin D V.vacElem = C • V₀.ω (1, g) V₀.vacElem := |
| 553 | exists_eq_smul_omega_vacElem (zeroTermFin_mem_finitePart D vacElem_mem_finitePart) fun x hx ↦ |
| 554 | finHeisenbergOp_zeroTermFin_vacElem D (hg.ge ⟨x, hx, rfl⟩) |
| 555 | have hC_ne : C ≠ 0 := fun hC_zero ↦ zeroTermFin_vacElem_ne_zero D (by rw [hC, hC_zero, zero_smul]) |
| 556 | rw [hg] at hr_mem hr_rep |
| 557 | obtain ⟨c, hc_ne, hc⟩ := exists_omega_vacElem_eq_sum V₀ hr_mem hr_rep |
| 558 | exact ⟨C * c, mul_ne_zero hC_ne hc_ne, by rw [hC, hc, mul_smul]⟩ |
| 559 | |
| 560 | /-- Let `D : V.Splitting V₀ p` be a splitting: `i = D.iFin` embeds `V₀` in `V` and the columns of |
| 561 | `k = D.isotropicBasisFin`, indexed by `p`, are an isotropic frame orthogonal to it. Let |
| 562 | `B = i g + k c` be integral with `g` unitary. Then `zeroTermFin D` sends the vacuum translated by |
| 563 | `y` to `0` or to a root of unity times the translate by `y₀ = g Bᴴ y` of its value at the vacuum. -/ |
| 564 | lemma exists_zeroTermFin_finHeisenbergOp_eq_smul {D : V.Splitting V₀ p} {g : Gf E n₀} |
| 565 | {c : Matrix p n₀ (𝔸f E)} {B : Matrix n n₀ (𝔸f E)} |
| 566 | (hB_def : B = D.iFin * (g : Matrix n₀ n₀ (𝔸f E)) + D.isotropicBasisFin * c) |
| 567 | (hB : IsIntMatrix (Ô E) B) (y : n → 𝔸f E) : |
| 568 | ∃ ζ : ℂ, (ζ = 0 ∨ IsOfFinOrder ζ) ∧ |
| 569 | zeroTermFin D (V.finHeisenbergOp y V.vacElem) = |
| 570 | ζ • V₀.finHeisenbergOp ((g : Matrix n₀ n₀ (𝔸f E)) *ᵥ Bᴴ *ᵥ y) |
| 571 | (zeroTermFin D V.vacElem) := by |
| 572 | by_cases h_zero : zeroTermFin D (V.finHeisenbergOp y V.vacElem) = 0 |
| 573 | · exact ⟨0, Or.inl rfl, by rw [h_zero, zero_smul]⟩ |
| 574 | obtain ⟨l, hl, w, b, rfl⟩ := exists_eq_add_of_zeroTermFin_ne_zero D h_zero |
| 575 | obtain ⟨ζ, hζ, h_class⟩ : ∃ ζ : ℂ, IsOfFinOrder ζ ∧ |
| 576 | zeroTermFin D (V.finHeisenbergOp (D.iFin *ᵥ w + D.isotropicBasisFin *ᵥ b + l) V.vacElem) = |
| 577 | ζ • V₀.finHeisenbergOp w (zeroTermFin D V.vacElem) := |
| 578 | exists_zeroTermFin_finHeisenbergOp_add D w b hl |
| 579 | -- The class `w` differs from `g Bᴴ y` by `x = g Bᴴ l`, an element of `zeroTermLattice D`. |
| 580 | let x : n₀ → 𝔸f E := g.val.val *ᵥ Bᴴ *ᵥ l |
| 581 | have hx : x ∈ zeroTermLattice D := by |
| 582 | have h_int : Bᴴ *ᵥ l ∈ stdLattice E n₀ := hB.conjTranspose.mulVec hl |
| 583 | simpa [x, mem_zeroTermLattice_iff hB_def hB] using h_int |
| 584 | have h_sum : g.val.val *ᵥ Bᴴ *ᵥ (D.iFin *ᵥ w + D.isotropicBasisFin *ᵥ b + l) = w + x := by |
| 585 | rw [mulVec_add, conjTranspose_mulVec_iFin_add_isotropicBasisFin hB_def, mulVec_add] |
| 586 | simp [x] |
| 587 | refine ⟨ζ * selfDualAddChar E (star traceOneAdele * star x ⬝ᵥ w), |
| 588 | Or.inr (hζ.mul (isOfFinOrder_ψf _)), ?_⟩ |
| 589 | rw [h_class, h_sum, mul_smul, ← V₀.finHeisenbergOp_finHeisenbergOp, |
| 590 | finHeisenbergOp_zeroTermFin_vacElem D hx] |
| 591 | |
| 592 | end FiniteZeroTerm |
| 593 | |
| 594 | /-! |
| 595 | ## Grade zero parts and equivariant splittings of the seesaw |
| 596 | |
| 597 | Three hermitian spaces `V, V', V''` are each presented (`New.Grading`) as a definite part `X`, `X'`, |
| 598 | `X₀` plus a string of basis vectors. They are graded by `New.Grading.gradeOf`, which is zero on the |
| 599 | definite part. The three unitary groups act on data on `Hom (V', V⁻ ⊕ V'')` by |
| 600 | `New.Seesaw.tripleWeil`. For a splitting `D` of a space (`New.Space.Splitting`), `D.zeroTerm` is the |
| 601 | constant term along its isotropic frame, and `New.Seesaw.zeroTermFin D` is its finite part. |
| 602 | -/ |
| 603 | |
| 604 | section EdgePair |
| 605 | |
| 606 | open Matrix Kronecker Space Fintype Function Exchange Grading Splitting |
| 607 | |
| 608 | variable {E ι ι' ι'' X X' X'' X₀ q : Type} [Field E] [CMType E] [WeilData E] [Fintype ι] |
| 609 | [DecidableEq ι] [Fintype ι'] [DecidableEq ι'] [Fintype ι''] [DecidableEq ι''] [Fintype X] |
| 610 | [DecidableEq X] [Fintype X'] [DecidableEq X'] [Fintype X''] [DecidableEq X''] [Fintype X₀] |
| 611 | [DecidableEq X₀] [Fintype q] [DecidableEq q] {ε : ι → ℤˣ} {ε' : ι' → ℤˣ} {ε'' : ι'' → ℤˣ} |
| 612 | {s s' s'' : ℕ} {V : Space E ι ε} {V' : Space E ι' ε'} {V'' : Space E ι'' ε''} {N p : E} |
| 613 | (Y : Grading V N X s) (Y' : Grading V' N X' s') (Y'' : Grading V'' N X₀ s'') |
| 614 | |
| 615 | variable (V V'') in |
| 616 | /-- For integer weights (grades) on the basis of `V`, with `V.J` pairing only opposite weights: a |
| 617 | rational isometry from `V''` onto the span of the basis vectors of weight zero. -/ |
| 618 | structure GradeZeroPart (wt : ι → ℤ) where |
| 619 | /-- An injection that labels the indices of grade zero by the basis indices of `V''`. -/ |
| 620 | index : ι'' ↪ ι |
| 621 | /-- The image of the injection is the set of indices of grade zero. -/ |
| 622 | mem_range_index (incl : ι) : incl ∈ Set.range index ↔ wt incl = 0 |
| 623 | /-- The matrix of the inclusion of `V''` in `V`. -/ |
| 624 | incl : Matrix ι ι'' E |
| 625 | /-- The inclusion has no component along basis vectors of nonzero grade. -/ |
| 626 | incl_eq_zero (a : ι) (b : ι'') : wt a ≠ 0 → incl a b = 0 |
| 627 | /-- The inclusion pulls the Gram matrix of `V` back to that of `V''`. -/ |
| 628 | gram_incl : inclᴴ * V.J * incl = V''.J |
| 629 | /-- The Gram matrix of `V` pairs two basis vectors only if their grades add up to zero. -/ |
| 630 | grade_add_eq_zero (a b : ι) : V.J a b ≠ 0 → wt a + wt b = 0 |
| 631 | |
| 632 | omit [WeilData E] in |
| 633 | /-- In rational coordinates, a pair of unitary points acts on `V ⊕ V'` by a block diagonal |
| 634 | matrix. -/ |
| 635 | lemma ratCoordMatrix_sum (g : G E ε × G E ε') : |
| 636 | (V.sum V').ratCoordMatrix (.sum g) = |
| 637 | fromBlocks (V.ratCoordMatrix g.1) 0 0 (V'.ratCoordMatrix g.2) := by |
| 638 | simp [ratCoordMatrix_eq, sum, blockGL, fromBlocks_multiply] |
| 639 | |
| 640 | variable {w : ι → ℤ} (X'' q) |
| 641 | |
| 642 | section |
| 643 | |
| 644 | omit [WeilData E] |
| 645 | |
| 646 | /-- The Gram matrix of `V` vanishes at two indices whose weights are not opposite. -/ |
| 647 | lemma GradeZeroPart.J_eq_zero_of_add_ne_zero (Z : GradeZeroPart V V'' w) {a b : ι} |
| 648 | (hab : w a + w b ≠ 0) : V.J a b = 0 := |
| 649 | by_contra fun h_ne ↦ hab (Z.grade_add_eq_zero a b h_ne) |
| 650 | |
| 651 | /-- Conjugation by the Gram matrix exchanges a diagonal function of the weights with its |
| 652 | reflection across zero. -/ |
| 653 | lemma GradeZeroPart.diagonal_eq_conj (Z : GradeZeroPart V V'' w) (f : ℤ → E) : |
| 654 | diagonal (fun i ↦ f (w i)) = V.J * diagonal (fun i ↦ f (-w i)) * V.J⁻¹ := by |
| 655 | have h : diagonal (fun i ↦ f (w i)) * V.J = V.J * diagonal (fun i ↦ f (-w i)) := by |
| 656 | ext a b |
| 657 | by_cases hab : w a + w b = 0 |
| 658 | · simp [show w a = -w b by omega, mul_comm] |
| 659 | · simp [Z.J_eq_zero_of_add_ne_zero hab] |
| 660 | simp [← h, Matrix.mul_assoc] |
| 661 | |
| 662 | /-- The inverse Gram matrix, too, pairs only opposite weights. -/ |
| 663 | lemma GradeZeroPart.inv_J_apply_eq_zero_of_add_ne_zero (Z : GradeZeroPart V V'' w) {a b : ι} |
| 664 | (hab : w a + w b ≠ 0) : V.J⁻¹ a b = 0 := by |
| 665 | -- Project onto the weight of the column and take the (a, b) entry. |
| 666 | have h := congrArg (V.J⁻¹ * ·) (Z.diagonal_eq_conj (fun t ↦ if t = w b then 1 else 0)) |
| 667 | simpa [← Matrix.mul_assoc, show -w a ≠ w b by omega] using congr_fun₂ h a b |
| 668 | |
| 669 | /-- Weight multiplicities are invariant under reflection across zero. -/ |
| 670 | lemma GradeZeroPart.card_weight_eq_card_neg_weight (Z : GradeZeroPart V V'' w) (p : ℤ → Prop) |
| 671 | [DecidablePred p] : |
| 672 | Fintype.card {i : ι // p (w i)} = Fintype.card {i : ι // p (-w i)} := by |
| 673 | -- The traces of the conjugate projections count the indices on each side. |
| 674 | have h := congrArg trace (Z.diagonal_eq_conj (fun t ↦ if p t then 1 else 0)) |
| 675 | simpa [Matrix.trace_conj V.isUnit_J, card_subtype] using h |
| 676 | |
| 677 | end |
| 678 | |
| 679 | /-- The splitting of `V` over its weight-zero part `V''` whose isotropic frame `k` consists of the |
| 680 | basis vectors of positive weight; `inclMatrix E u` has the basis vectors `e_{u j}` as columns. -/ |
| 681 | def GradeZeroPart.splitting (Z : GradeZeroPart V V'' w) : |
| 682 | V.Splitting V'' {i : ι // 0 < w i} where |
| 683 | k := inclMatrix E (Subtype.val : {i : ι // 0 < w i} → ι) |
| 684 | l := V.J⁻¹ * inclMatrix E (Subtype.val : {i // 0 < w i} → ι) |
| 685 | i := Z.incl |
| 686 | gram_kk := by |
| 687 | simp [inclMatrix, ← Matrix.ext_iff, Matrix.mul_apply, Matrix.one_apply] |
| 688 | grind [→ Z.grade_add_eq_zero] |
| 689 | gram_ll := by |
| 690 | simpa [Matrix.mul_assoc, V.isHermitian_J.inv.eq, ← ext_iff, inclMatrix, Matrix.mul_apply, |
| 691 | Matrix.one_apply] using fun a ha b hb ↦ |
| 692 | Z.inv_J_apply_eq_zero_of_add_ne_zero (a := a) (b := b) (by omega) |
| 693 | gram_lk := by |
| 694 | simp [Matrix.mul_assoc, V.isHermitian_J.inv.eq, inclMatrix, ← Matrix.ext_iff, Matrix.mul_apply, |
| 695 | Matrix.one_apply] |
| 696 | gram_ii := Z.gram_incl |
| 697 | gram_ik := by |
| 698 | simp [inclMatrix, ← Matrix.ext_iff, Matrix.mul_apply, Matrix.one_apply] |
| 699 | grind +splitImp [→ Z.grade_add_eq_zero, Z.incl_eq_zero, star_zero, Finset.sum_eq_zero] |
| 700 | gram_il := by |
| 701 | simp [Matrix.mul_assoc, inclMatrix, ← Matrix.ext_iff, Matrix.mul_apply, Matrix.one_apply] |
| 702 | grind [Z.incl_eq_zero] |
| 703 | card_eq := by |
| 704 | -- Count the indices by the sign of their weight. |
| 705 | have h_total : Fintype.card ι = Fintype.card {i : ι // w i = 0} + |
| 706 | (Fintype.card {i : ι // w i < 0} + Fintype.card {i : ι // 0 < w i}) := by |
| 707 | simp [SignType.univ_eq, sign_eq_one_iff, sign_eq_neg_one_iff, card_subtype, |
| 708 | ← card_congr (.sigmaFiberEquiv (SignType.sign ∘ w))] |
| 709 | have h_zero : Fintype.card {i : ι // w i = 0} = Fintype.card ι'' := by |
| 710 | simp [card_subtype, ← Z.mem_range_index, ← card_range Z.index] |
| 711 | have h_pos_neg : Fintype.card {i : ι // 0 < w i} = Fintype.card {i : ι // w i < 0} := by |
| 712 | simpa using Z.card_weight_eq_card_neg_weight (0 < ·) |
| 713 | omega |
| 714 | |
| 715 | /-- If `V''` is the weight-zero part of `V`, all weights are even and `Y'` has a string of even |
| 716 | length, then `Hom(X', V'')` is the weight-zero part of `Hom(V', V)`. -/ |
| 717 | def GradeZeroPart.hom (Z : GradeZeroPart V V'' w) (hs' : Even s') (hw : ∀ i : ι, Even (w i)) : |
| 718 | GradeZeroPart (V'.hom V) ((stdSpace E X').hom V'') fun r : ι × ι' ↦ w r.1 - Y'.gradeOf r.2 where |
| 719 | index := Z.index.prodMap (.trans .inl Y'.indexEquiv.toEmbedding) |
| 720 | mem_range_index := by |
| 721 | -- On the string of `V'` the weights are odd, as `s'` is even, so they differ from those of `V`. |
| 722 | simp [reindex_equiv Y'.indexEquiv] |
| 723 | grind [GradeZeroPart] |
| 724 | incl := Z.incl ⊗ₖ inclMatrix E (Y'.indexEquiv ∘ Sum.inl) |
| 725 | incl_eq_zero := by |
| 726 | simp [reindex_equiv Y'.indexEquiv, inclMatrix, Matrix.one_apply] |
| 727 | grind [Z.incl_eq_zero] |
| 728 | gram_incl := by |
| 729 | simp [hom_J, Z.gram_incl, Y'.J_inv_eq_gradedGram, inclMatrix, conjTranspose_kronecker, eq_comm, |
| 730 | ← mul_kronecker_mul, ← Matrix.ext_iff, Matrix.mul_apply, Matrix.one_apply, gradedGram] |
| 731 | grade_add_eq_zero := by |
| 732 | simp [hom_J, Y'.J_inv_eq_gradedGram, gradedGram, reindex_equiv Y'.indexEquiv] |
| 733 | grind [GradeZeroPart] |
| 734 | |
| 735 | /-! ### Pairs of consecutive edges -/ |
| 736 | |
| 737 | /-- The adelic map (T*, T') from V' to V⁻ ⊕ V'', where T* is the adjoint of |
| 738 | `T = Y.stringMap Y' : V → V'` and `T' = Y'.stringMap Y'' : V' → V''`. -/ |
| 739 | def stackedStringMap : Matrix (ι ⊕ ι'') ι' (𝔸 E) := |
| 740 | fromRows (V.formAdjoint V' (Y.stringMap Y')) (Y'.stringMap Y'') |
| 741 | |
| 742 | /-- The finite part of `New.Seesaw.stackedStringMap`, in the frame coordinates of Hom(V', V⁻ ⊕ V''), |
| 743 | multiplied by α⁻¹. -/ |
| 744 | def stackedStringMapFin : (ι ⊕ ι'') × ι' → 𝔸f E := |
| 745 | finCoord (V'.homAtPoint (flipSum V V'') (stackedStringMap Y Y' Y'')) |
| 746 | |
| 747 | omit [WeilData E] in |
| 748 | /-- The map `Y.stringMap Y'` kills `X` and has image in the string, so the groups of `X`, `X'` fix |
| 749 | it. -/ |
| 750 | lemma inclX_mul_stringMap_mul_inclX_inv (g : G E (1 : X → ℤˣ)) (g' : G E (1 : X' → ℤˣ)) : |
| 751 | V'.ratCoordMatrix (Y'.inclX g') * Y.stringMap Y' * V.ratCoordMatrix (Y.inclX g)⁻¹ = |
| 752 | Y.stringMap Y' := by |
| 753 | simp [← map_inv, stringMap, reindex_equiv Y.indexEquiv, reindex_equiv Y'.indexEquiv, |
| 754 | ratCoordMatrix_inclX, ← Matrix.ext_iff, Matrix.mul_apply, Matrix.one_apply] |
| 755 | |
| 756 | /-- The strings of `Y`, `Y'`, `Y''` have lengths `s`, `s - 1` and `s - 1 - 1` (truncated |
| 757 | subtraction) with `s` odd, and `Y` and `Y'` have the same constant `genericConst`. -/ |
| 758 | structure HasConsecutiveStrings (Y : Grading V N X s) (Y' : Grading V' N X' s') |
| 759 | (Y'' : Grading V'' N X₀ s'') : Prop where |
| 760 | /-- The string of `Y` has odd length. -/ |
| 761 | odd_length : Odd s |
| 762 | /-- The string of `Y'` is one shorter than that of `Y`. -/ |
| 763 | length_middle : s' = s - 1 |
| 764 | /-- The string of `Y''` is one shorter than that of `Y'`, or both are empty. -/ |
| 765 | length_last : s'' = s' - 1 |
| 766 | /-- The gradings `Y` and `Y'` have the same constant for the generic character. -/ |
| 767 | c_eq : Y'.genericConst = Y.genericConst |
| 768 | |
| 769 | /-- Data for two consecutive lifts Y → Y' → Y'' with consecutive strings |
| 770 | (`New.Seesaw.HasConsecutiveStrings`) and `card ι + card ι''` even. It identifies the grade-zero part |
| 771 | of V⁻ ⊕ V'' with X⁻ ⊕ X'' plus q hyperbolic planes, compatibly with U(X) × U(X₀) and with |
| 772 | `stackedStringMap`. -/ |
| 773 | structure DoubleLiftData extends HasConsecutiveStrings Y Y' Y'' where |
| 774 | /-- The part of grade zero of `V⁻ ⊕ V''` is the sum of hyperbolic planes indexed by `q` and of |
| 775 | `I_X⁻ ⊕ I_{X''}`. -/ |
| 776 | zeroPart : GradeZeroPart (flipSum V V'') |
| 777 | (hyperbolicSum q (flipSum (stdSpace E X) (stdSpace E X''))) (Y.gradeOf ⊕ᵥ Y''.gradeOf) |
| 778 | /-- The dimensions of `V` and `V''` have even sum. -/ |
| 779 | even_card_add : Even (card ι + card ι'') |
| 780 | /-- A homomorphism from the adelic unitary group of `I_{X₀}` to that of `I_{X''}`. -/ |
| 781 | embX : G (n := X₀) E 1 →* G (n := X'') E 1 |
| 782 | /-- The homomorphism preserves determinants. -/ |
| 783 | det_embX (k : G E (1 : X₀ → ℤˣ)) : (embX k).det = k.det |
| 784 | /-- The inclusion of the part of grade zero intertwines `(g, k)`, acting on `V⁻ ⊕ V''` through `X` |
| 785 | and `X₀`, with the element that is `1` on the planes, `g` on `X` and the image of `k` under the |
| 786 | homomorphism on `X''`. -/ |
| 787 | intertwines (g : G E (1 : X → ℤˣ)) (k : G E (1 : X₀ → ℤˣ)) : |
| 788 | fromBlocks (V.ratCoordMatrix (Y.inclX g)) 0 0 (V''.ratCoordMatrix (Y''.inclX k)) * |
| 789 | zeroPart.incl.map toAdele = zeroPart.incl.map toAdele * |
| 790 | (G.sum (s := hyperbolicSigns q) (1, G.sum (g.neg, embX k))).adeleMatrix |
| 791 | /-- An injection of `q` into the basis indices of `V'` of grade one. -/ |
| 792 | gradeOne : q ↪ {l // Y'.gradeOf l = 1} |
| 793 | /-- In the rows of grade zero, column `gradeOne k` of `stackedStringMap Y Y' Y''` is |
| 794 | `Y'.genericConst` times the included second basis vector of the `k`-th plane. The columns outside |
| 795 | the image of `gradeOne` vanish. -/ |
| 796 | stackedStringMap_apply (a : (q ⊕ q) ⊕ X ⊕ X'') (l : ι') : |
| 797 | stackedStringMap Y Y' Y'' (zeroPart.index a) l = ∑ k : q, if l = gradeOne k then |
| 798 | toAdele (zeroPart.incl (zeroPart.index a) (Sum.inl (Sum.inr k)) * Y'.genericConst) else 0 |
| 799 | |
| 800 | variable {X'' q Y Y' Y''} |
| 801 | |
| 802 | namespace DoubleLiftData |
| 803 | |
| 804 | /-! ### The finite evaluation and its equivariance -/ |
| 805 | |
| 806 | omit [Fintype X'] in |
| 807 | /-- The string of the middle grading `Y'` has even length, as `s' = s - 1` with `s` odd. -/ |
| 808 | lemma even_length_middle (D : DoubleLiftData X'' q Y Y' Y'') : Even s' := by |
| 809 | simpa only [D.length_middle] using D.odd_length.tsub_odd odd_one |
| 810 | |
| 811 | omit [Fintype X'] in |
| 812 | /-- All grades on `V⁻ ⊕ V''` are even: the string of `Y` has odd length, and that of `Y''` has odd |
| 813 | length or is empty. -/ |
| 814 | lemma even_gradeOf (D : DoubleLiftData X'' q Y Y' Y'') (i : ι ⊕ ι'') : |
| 815 | Even ((Y.gradeOf ⊕ᵥ Y''.gradeOf) i) := by |
| 816 | obtain ⟨h_odd, h_middle, h_last⟩ : Odd s ∧ s' = s - 1 ∧ s'' = s' - 1 := |
| 817 | ⟨D.odd_length, D.length_middle, D.length_last⟩ |
| 818 | revert i |
| 819 | simp [reindex_equiv Y.indexEquiv, reindex_equiv Y''.indexEquiv] |
| 820 | grind |
| 821 | |
| 822 | /-- For a pair `D` of consecutive lifts, `Hom(X', Z)` is the part of grade zero of |
| 823 | `Hom(V', V⁻ ⊕ V'')`, where `Z` is the part of grade zero of `V⁻ ⊕ V''`. -/ |
| 824 | def homZeroPart (D : DoubleLiftData X'' q Y Y' Y'') : |
| 825 | GradeZeroPart (V'.hom (flipSum V V'')) |
| 826 | ((stdSpace E X').hom (hyperbolicSum q (flipSum (stdSpace E X) (stdSpace E X'')))) |
| 827 | fun r : (ι ⊕ ι'') × ι' ↦ (Y.gradeOf ⊕ᵥ Y''.gradeOf) r.1 - Y'.gradeOf r.2 := |
| 828 | D.zeroPart.hom Y' D.even_length_middle D.even_gradeOf |
| 829 | |
| 830 | /-- The splitting of Hom(V', V⁻ ⊕ V'') that removes first the maps of nonzero degree, then the |
| 831 | maps into the hyperbolic planes, leaving Hom(X', X⁻ ⊕ X''). -/ |
| 832 | def splitting (D : DoubleLiftData X'' q Y Y' Y'') : (V'.hom (flipSum V V'')).Splitting |
| 833 | ((stdSpace E X').hom (flipSum (stdSpace E X) (stdSpace E X''))) |
| 834 | ({i : (ι ⊕ ι'') × ι' // 0 < (Y.gradeOf ⊕ᵥ Y''.gradeOf) i.1 - Y'.gradeOf i.2} ⊕ q × X') := |
| 835 | D.homZeroPart.splitting.comp ((removePlanes q _).homTarget (stdSpace E X')) |
| 836 | |
| 837 | open scoped TensorProduct in |
| 838 | /-- The linear map on joined finite data for `Hom(V, V')` and `Hom(V', V'')`. It translates by (T*, |
| 839 | T'), takes the finite constant term along `New.Seesaw.DoubleLiftData.splitting`, and splits the |
| 840 | result by a left inverse of `arrowTensor` into data for `Hom(X, X')` and `Hom(X', X'')`. -/ |
| 841 | def finEval (D : DoubleLiftData X'' q Y Y' Y'') : 𝒮 (V'.hom (flipSum V V'')) →ₗ[ℂ] |
| 842 | ((stdSpace E X).hom (stdSpace E X')).finitePart ⊗[ℂ] |
| 843 | ((stdSpace E X').hom (stdSpace E X'')).finitePart := |
| 844 | arrowTensor.leftInverse ∘ₗ |
| 845 | (zeroTermFin D.splitting ∘L finHeisenbergOp _ (stackedStringMapFin Y Y' Y'')).toLinearMap |
| 846 | |
| 847 | /-- `arrowTensor` applied to `D.finEval (arrowProduct Φ.val Ψ.val)` equals `zeroTermFin D.splitting` |
| 848 | of `arrowProduct Φ.val Ψ.val` after the finite Heisenberg operator of `stackedStringMapFin Y Y' Y''` |
| 849 | on `Hom(V', V⁻ ⊕ V'')` is applied to it. -/ |
| 850 | lemma arrowTensor_finEval (D : DoubleLiftData X'' q Y Y' Y'') (Φ : (V.hom V').finitePart) |
| 851 | (Ψ : (V'.hom V'').finitePart) : |
| 852 | arrowTensor (D.finEval (arrowProduct Φ.val Ψ.val)) = zeroTermFin D.splitting |
| 853 | ((V'.hom (flipSum V V'')).finHeisenbergOp (stackedStringMapFin Y Y' Y'') |
| 854 | (arrowProduct Φ.val Ψ.val)) := |
| 855 | -- `arrowTensor.leftInverse` inverts `arrowTensor` on its range, the finite part `finitePart`, |
| 856 | -- which `finHeisenbergOp` and `zeroTermFin` preserve. |
| 857 | LeftInverse.rightInvOn_range leftInverse_arrowTensor <| range_arrowTensor.ge <| |
| 858 | zeroTermFin_mem_finitePart D.splitting <| |
| 859 | finHeisenbergOp_mem_finitePart _ (range_arrowTensor.le ⟨Φ ⊗ₜ Ψ, rfl⟩) |
| 860 | |
| 861 | open Finset in |
| 862 | /-- Let `Z` identify `V''` with the part of weight zero of `V` for even weights `w`: `Z.incl` is the |
| 863 | inclusion, and `ε`, `ε''` are the signs of the two forms at the infinite places. Let `Y'` present |
| 864 | `V'` as the definite space on `X'` plus a string of `s'` further basis vectors, `s'` even, with |
| 865 | `Y'.inclX` the embedding of `U(X')` in `U(V')`. Suppose that, in rational coordinates |
| 866 | (`ratCoordMatrix`), `g` is the identity away from weight zero and acts as `g₀` on `V''`. Then |
| 867 | `Z.hom Y' hs' hw` identifies `Hom (X', V'')` with the part of weight zero of `Hom (V', V)`, and the |
| 868 | zero term along the resulting splitting carries the Weil operator of `(Y'.inclX h, g)` to that of |
| 869 | `(h, g₀)`, times `υ(det g ^ (s' / 2) * (det h)⁻¹ ^ r)⁻¹`. Here `r` is the number of indices of |
| 870 | positive weight and `υ` is the splitting character on the norm-one ideles (`upsilonU1`). -/ |
| 871 | lemma _root_.New.Seesaw.GradeZeroPart.zeroTerm_hom_omega (Z : GradeZeroPart V V'' w) (hs' : Even s') |
| 872 | (hw : ∀ i : ι, Even (w i)) {g : G E ε} {g₀ : G E ε''} |
| 873 | (h_id : ∀ i l : ι, w i ≠ 0 ∨ w l ≠ 0 → V.ratCoordMatrix g i l = if i = l then 1 else 0) |
| 874 | (h_comm : V.ratCoordMatrix g * Z.incl.map toAdele = Z.incl.map toAdele * V''.ratCoordMatrix g₀) |
| 875 | (h : G E (1 : X' → ℤˣ)) (f : 𝒮 (V'.hom V)) : |
| 876 | (Z.hom Y' hs' hw).splitting.zeroTerm (ω (V'.hom V) (G.onHom (Y'.inclX h, g)) f) = |
| 877 | (WeilData.upsilonU1.val (g.det ^ (s' / 2) * h.det⁻¹ ^ #{i : ι | 0 < w i}) : ℂ)⁻¹ • |
| 878 | ω ((stdSpace E X').hom V'') (G.onHom (h, g₀)) ((Z.hom Y' hs' hw).splitting.zeroTerm f) := by |
| 879 | -- On the columns of positive weight, `G.onHom (Y'.inclX h, g)` agrees with a product `C` of two |
| 880 | -- block diagonal matrices: `g` acts where the weight of `Y'` is negative, `h⁻¹` where `0 < w`. |
| 881 | -- The scalar of `zeroTerm_omega_of_inclMatrix` is then the inverse of `upsilonU1` at `det C`. |
| 882 | let C : Matrix (ι × ι') (ι × ι') (𝔸 E) := |
| 883 | blockDiagonal (fun l ↦ if Y'.gradeOf l < 0 then V.ratCoordMatrix g else 1) * |
| 884 | (blockDiagonal fun i ↦ if 0 < w i then (V'.ratCoordMatrix (Y'.inclX h⁻¹))ᵀ |
| 885 | else 1).submatrix .swap .swap |
| 886 | refine zeroTerm_omega_of_inclMatrix (Z.hom Y' hs' hw).splitting rfl (C := C) ?_ ?_ ?_ ?_ f |
| 887 | -- Split the indices of `V'` along `Y'.indexEquiv` and compare the entries by `h_id`. The second |
| 888 | -- goal says that `C - 1` vanishes where the row weight is at most `0` and at most the column's. |
| 889 | iterate 2 |
| 890 | · simp [C, ↓reindex_equiv Y'.indexEquiv, ↓@Sum.forall X', ← map_inv, sum_prod_type, HasDegreeGe, |
| 891 | blockDiagonal_apply, Matrix.ite_apply, ratCoordMatrix_inclX, Matrix.mul_apply, |
| 892 | Matrix.one_apply, sub_eq_zero] |
| 893 | grind |
| 894 | · -- The weight of `Y'` is negative at `j = s' / 2` indices. |
| 895 | obtain ⟨j, rfl⟩ := hs' |
| 896 | simp (disch := omega) [C, det_blockDiagonal _, ↓reindex_equiv Y'.indexEquiv, ↓prod_sum_type, |
| 897 | ↓Fin.prod_univ_add, prod_ite, ite_eq_right, ← two_mul, apply_ite Matrix.det, |
| 898 | det_ratCoordMatrix, ← Equiv.coe_prodComm, -inv_pow, det_inclX] |
| 899 | · -- On the rows of weight `≤ 0` the embedding of the zero part intertwines, by `h_comm`. |
| 900 | simp [← Matrix.ext_iff, Matrix.mul_apply] at h_comm |
| 901 | simp [HasDegreeGe, GradeZeroPart.splitting, GradeZeroPart.hom, ↓reindex_equiv Y'.indexEquiv, |
| 902 | ← map_inv, ← sum_mul, sum_prod_type, ← mul_right_comm _ (toAdele _), apply_ite toAdele, |
| 903 | ← mul_assoc, h_comm, ratCoordMatrix_inclX, inclMatrix, Matrix.mul_apply, Matrix.one_apply] |
| 904 | |
| 905 | open Finset in |
| 906 | /-- Let `Y`, `Y'`, `Y''` present hermitian spaces `V`, `V'`, `V''` as definite spaces on `X`, `X'`, |
| 907 | `X₀` plus strings of `s` (odd), `s' = s - 1` and `s'' = s - 1 - 1` further basis vectors. The data |
| 908 | `D` of this pair of steps identify the part of weight zero of `V⁻ ⊕ V''` with `X⁻ ⊕ X''` plus |
| 909 | hyperbolic planes indexed by `q`, and map `U(X₀)` to `U(X'')` by `D.embX`. For characters `a`, `b` |
| 910 | of `[U(1)]`, the operator `tripleWeil a b (g, g', k)` on `Hom (V', V⁻ ⊕ V'')` is the Weil operator |
| 911 | of `(g', g ⊕ k)` times three scalar characters: that of `(g, g')` made from `a`, that of `(g', k)` |
| 912 | made from `b`, and one made from the splitting character `υ` and the ranks of `V'` and `V`. |
| 913 | |
| 914 | The zero term along `D.splitting`, down to `Hom (X', X⁻ ⊕ X'')`, carries this operator at |
| 915 | `(g, g', k)`, embedded by `inclX`, to the same operator of the definite spaces at |
| 916 | `(g, g', D.embX k)`, with no further scalar. -/ |
| 917 | lemma zeroTerm_splitting_tripleWeil (D : DoubleLiftData X'' q Y Y' Y'') (a b : AutChar E) |
| 918 | (g : G E (1 : X → ℤˣ)) (g' : G E (1 : X' → ℤˣ)) (k : G E (1 : X₀ → ℤˣ)) |
| 919 | (f : 𝒮 (V'.hom (flipSum V V''))) : |
| 920 | D.splitting.zeroTerm (tripleWeil a b (Y.inclX g, Y'.inclX g', Y''.inclX k) f) = |
| 921 | tripleWeil a b (g, g', D.embX k) (D.splitting.zeroTerm f) := by |
| 922 | -- The constant term is taken in two stages: to the part of weight zero |
| 923 | -- (`GradeZeroPart.zeroTerm_hom_omega`), then off the hyperbolic planes |
| 924 | -- (`homTarget_zeroTerm_pairWeil`). Each stage gives a power of `upsilonU1`; the ranks make the |
| 925 | -- exponents on both sides agree. For example, let the ranks of `V'`, `X`, `X'`, `X''` be even and |
| 926 | -- those of `V`, `V''` odd, and let `χ`, `χ''` be the base changes of `a`, `b`. The splitting |
| 927 | -- characters (source, target) are `(χ⁻¹, χ⁻¹ υ)` for `V' → V⁻` and `(χ'', χ'' υ⁻¹)` for |
| 928 | -- `V' → V''`, but `(χ⁻¹, χ⁻¹)` for `X' → X⁻` and `(χ'', χ'')` for `X' → X''`; in the product of |
| 929 | -- the characters of the targets `υ` cancels. |
| 930 | let r := G.sum (g.neg, D.embX k) |
| 931 | let P := removePlanes q (flipSum (stdSpace E X) (stdSpace E X'')) |
| 932 | let r' := G.sum (s := hyperbolicSigns q) (1, r) |
| 933 | obtain ⟨h_k, h_i⟩ : r'.adeleMatrix * P.kAdelic = P.kAdelic ∧ |
| 934 | r'.adeleMatrix * P.iAdelic = P.iAdelic * r.adeleMatrix := by |
| 935 | constructor <;> simp [P, r', kAdelic, iAdelic, Space.ratMap, removePlanes, hyperbolicSum, sum, |
| 936 | blockGL, -coe_units_inv, fromRows_map, fromBlocks_mul_fromRows, fromBlocks_multiply] |
| 937 | have h_planes : ∀ f, (P.homTarget (stdSpace E X')).zeroTerm (ω _ (.onHom (g', r')) f) = |
| 938 | ((WeilData.upsilonU1.val g'.det).val : ℂ) ^ card q • |
| 939 | ω _ (.onHom (g', r)) ((P.homTarget (stdSpace E X')).zeroTerm f) := by |
| 940 | simpa [pairWeil, inv_smul_eq_iff₀, r'] using P.homTarget_zeroTerm_pairWeil (stdSpace E X') |
| 941 | 1 1 r' r 1 (by simp [ActsOnFrame, h_k]) (by simp [h_i]) g' |
| 942 | have h_det : (G.sum ((Y.inclX g).neg, Y''.inclX k)).det = (Y.inclX g).det * (Y''.inclX k).det := |
| 943 | Subtype.ext (by simp) |
| 944 | simp only [splitting, homZeroPart, tripleWeil, _root_.smul_apply, map_smul, zeroTerm_comp] |
| 945 | rw [GradeZeroPart.zeroTerm_hom_omega, h_det, map_smul, h_planes] |
| 946 | · -- Only the scalars remain: the exponents of `upsilonU1` at the three determinants match by the |
| 947 | -- rank formulas, as `s'` and `card ι + card ι''` are even. |
| 948 | have h_rank : card (ι ⊕ ι'') = card ((q ⊕ q) ⊕ X ⊕ X'') + |
| 949 | 2 * card {i // 0 < (Y.gradeOf ⊕ᵥ Y''.gradeOf) i} := D.zeroPart.splitting.card_eq |
| 950 | have h_rank' : card (X' ⊕ Fin s') = card ι' := card_congr Y'.indexEquiv |
| 951 | obtain ⟨h_odd, h_middle, h_last, -⟩ := D.toHasConsecutiveStrings |
| 952 | have h_par : Even (card ι + card ι'') := D.even_card_add |
| 953 | simp [smul_smul, D.det_embX, rankTwist, Odd, Even, Fintype.card_subtype, |
| 954 | det_inclX] at h_rank h_rank' h_odd h_par ⊢ |
| 955 | congr 1 |
| 956 | norm_cast |
| 957 | refine congrArg _ (Additive.ofMul.injective ?_) |
| 958 | simp |
| 959 | match_scalars <;> omega |
| 960 | · -- The group element is the identity away from weight zero. |
| 961 | simp [reindex_equiv Y.indexEquiv, reindex_equiv Y''.indexEquiv, ratCoordMatrix_sum, |
| 962 | ratCoordMatrix_inclX, Matrix.one_apply] |
| 963 | · -- It is intertwined with `r'` by the embedding, which is `D.intertwines`. |
| 964 | simp [hyperbolicSum, r', r, D.intertwines, ratCoordMatrix_sum] |
| 965 | |
| 966 | /-- Let `Y`, `Y'`, `Y''` present `V`, `V'`, `V''` as definite spaces on `X`, `X'`, `X₀` plus strings |
| 967 | of lengths `s` (odd), `s - 1` and `s - 1 - 1`, and let the data `D` identify the part of weight zero |
| 968 | of `V⁻ ⊕ V''` with `X⁻ ⊕ X''` plus hyperbolic planes indexed by `q`; `D.embX` maps `U(X₀)` to |
| 969 | `U(X'')`. Finite data are elements of `finitePart`, the span of the finite translates of the vacuum. |
| 970 | `arrowProduct` joins such data `Φ` on `Hom (V, V')` and `Φ'` on `Hom (V', V'')`, and `D.finEval` |
| 971 | sends the result to a tensor of finite data on `Hom (X, X')` and `Hom (X', X'')`. |
| 972 | |
| 973 | This evaluation is equivariant: if `Φ`, `Φ'` are moved by finite points `g, g', k` of the unitary |
| 974 | groups of `X, X', X₀`, embedded by `inclXFin`, then the tensor moves by `(g, g')` and `(g', k')`, |
| 975 | where `D.embX (1, k) = (1, k')`. -/ |
| 976 | lemma finEval_arrowProduct_equivariant (D : DoubleLiftData X'' q Y Y' Y'') (a b : AutChar E) |
| 977 | {g : Gf E X} {g' : Gf E X'} {k : Gf E X₀} {k' : Gf E X''} (hk' : D.embX (1, k) = (1, k')) |
| 978 | (Φ : (V.hom V').finitePart) (Φ' : (V'.hom V'').finitePart) : |
| 979 | D.finEval (arrowProduct (liftWeilFin a (Y.inclXFin g, Y'.inclXFin g') Φ).val |
| 980 | (liftWeilFin b (Y'.inclXFin g', Y''.inclXFin k) Φ').val) = |
| 981 | TensorProduct.map (liftWeilFin a (g, g')) (liftWeilFin b (g', k')) |
| 982 | (D.finEval (arrowProduct Φ.val Φ'.val)) := by |
| 983 | -- Apply `arrowTensor` to the right side and move `tripleWeil` inside the constant term |
| 984 | -- (`zeroTerm_splitting_tripleWeil`). There it passes `integrated` and the translation by |
| 985 | -- `stackedStringMapFin`, because the elements `inclX` fix `Y.stringMap Y'` and `Y'.stringMap Y''` |
| 986 | -- (`inclX_mul_stringMap_mul_inclX_inv`). |
| 987 | let W := tripleWeil (V := V) (V' := V') (V'' := V'') a b |
| 988 | (Y.inclX (1, g), Y'.inclX (1, g'), Y''.inclX (1, k)) |
| 989 | -- These elements have trivial real part, so they do not move a Fock vector `v`. |
| 990 | have h_comm (v f) : W ((V'.hom (flipSum V V'')).integrated v f) = |
| 991 | (V'.hom (flipSum V V'')).integrated v (W f) := by |
| 992 | simp [W, tripleWeil, omega_integrated, inclX_inr, G.onHom_eq, G.sum, G.neg, ← Pi.one_def, |
| 993 | MulEquiv.prodCongr, Prod.mk_one_one] |
| 994 | -- Hence the finite constant term, too, carries `W` to the operator of the definite spaces. |
| 995 | have h_equivariant (f : 𝒮 (V'.hom (flipSum V V''))) : |
| 996 | tripleWeil a b ((1, g), (1, g'), 1, k') (zeroTermFin D.splitting f) = |
| 997 | zeroTermFin D.splitting (W f) := by |
| 998 | simp [zeroTermFin, ← h_comm, W, D.zeroTerm_splitting_tripleWeil, hk'] |
| 999 | -- The adelic point of `stackedStringMapFin` is the pair of the finite parts of `Y.stringMap Y'` |
| 1000 | -- and `Y'.stringMap Y''`. |
| 1001 | have h_point : finVec (stackedStringMapFin Y Y' Y'') = V'.homAtPoint (flipSum V V'') |
| 1002 | (fromRows (V.formAdjoint V' (((0, 1) : 𝔸 E) • Y.stringMap Y')) |
| 1003 | (((0, 1) : 𝔸 E) • Y'.stringMap Y'')) := by |
| 1004 | ext <;> simp only [finVec, stackedStringMapFin, homAtPoint, matrixToVec, stackedStringMap, |
| 1005 | formAdjoint, AddMonoidHom.mk'_apply, Units.mul_inv_cancel_left, Matrix.mul_apply, |
| 1006 | sum_sum_type, fromRows_apply_inl, fromRows_apply_inr, conjTranspose_smul, Matrix.smul_apply, |
| 1007 | smul_eq_mul, Prod.fst_sum, Prod.snd_sum, Prod.fst_mul, Prod.snd_mul, Prod.fst_add, |
| 1008 | Prod.snd_add, Prod.fst_star, Prod.snd_star, Pi.zero_apply, star_zero, star_one, zero_mul, |
| 1009 | mul_zero, one_mul, add_zero, Finset.sum_const_zero] |
| 1010 | rw [← leftInverse_arrowTensor (TensorProduct.map _ _ _), arrowTensor_map_liftWeilFin, |
| 1011 | arrowTensor_finEval, h_equivariant] |
| 1012 | -- Split the translation over the two factors (`homHeisenbergOp_arrowProduct`, |
| 1013 | -- `arrowProduct_twistedPairWeil`) and commute on each (`pairWeil_homHeisenbergOp`). |
| 1014 | simp [W, finEval, finHeisenbergOp, h_point, homHeisenbergOp_arrowProduct, ← inclX_inr, |
| 1015 | ← arrowProduct_twistedPairWeil, pairWeil_homHeisenbergOp, inclX_mul_stringMap_mul_inclX_inv] |
| 1016 | |
| 1017 | end DoubleLiftData |
| 1018 | |
| 1019 | variable (Y Y' Y'') |
| 1020 | |
| 1021 | /-! ### The two kinds of pairs -/ |
| 1022 | |
| 1023 | omit [Fintype X] [Fintype X₀] in |
| 1024 | /-- The Gram matrix of `V⁻ ⊕ V''` pairs two basis vectors only if their grades add up to zero. -/ |
| 1025 | lemma flipSum_grade_add_eq_zero : ∀ a b : ι ⊕ ι'', (flipSum V V'').J a b ≠ 0 → |
| 1026 | (Y.gradeOf ⊕ᵥ Y''.gradeOf) a + (Y.gradeOf ⊕ᵥ Y''.gradeOf) b = 0 := by |
| 1027 | simp [↓reindex_equiv Y.indexEquiv, ↓reindex_equiv Y''.indexEquiv, Y.gram_eq, Y''.gram_eq, |
| 1028 | flipSpace, gradedGram] |
| 1029 | grind |
| 1030 | |
| 1031 | /-- The pair data for strings of lengths s (odd, s ≠ 1), s − 1 and s − 2, with |
| 1032 | `Y'.genericConst = Y.genericConst` and `card ι + card ι''` even: one hyperbolic plane, spanned by |
| 1033 | the middle vectors z of Y and z' of Y'', is removed. -/ |
| 1034 | def middleDoubleLift (h_string : HasConsecutiveStrings Y Y' Y'') (h_card : Even (card ι + card ι'')) |
| 1035 | (hs : s ≠ 1) : DoubleLiftData X₀ Unit Y Y' Y'' := |
| 1036 | have h_odd : Odd s := h_string.odd_length |
| 1037 | have h_middle : s' = s - 1 := h_string.length_middle |
| 1038 | have h_last : s'' = s' - 1 := h_string.length_last |
| 1039 | have h_const : Y'.genericConst = Y.genericConst := h_string.c_eq |
| 1040 | -- `z` and `z'` are the middle string vectors of `V` and `V''`; `j` lists `X` and `X₀`. |
| 1041 | let z (_ : Unit) : ι ⊕ ι'' := Sum.inl (Y.indexEquiv (Sum.inr ⟨s / 2, by grind⟩)) |
| 1042 | let z' (_ : Unit) : ι ⊕ ι'' := Sum.inr (Y''.indexEquiv (Sum.inr ⟨s'' / 2, by grind⟩)) |
| 1043 | let j := Sum.map (Y.indexEquiv ∘ Sum.inl) (Y''.indexEquiv ∘ Sum.inl) |
| 1044 | { zeroPart := |
| 1045 | { index := ⟨z ⊕ᵥ z' ⊕ᵥ j, by simp [j, z, z', Injective]⟩ |
| 1046 | mem_range_index := by |
| 1047 | simp [j, z, z', ↓reindex_equiv Y.indexEquiv, ↓reindex_equiv Y''.indexEquiv, Fin.ext_iff, |
| 1048 | ← Embedding.toFun_eq_coe, sub_eq_zero] |
| 1049 | grind |
| 1050 | -- The hyperbolic plane has the basis `(z - z') / (2 N)`, `z + z'`. |
| 1051 | incl := fromCols (fromCols ((2 * N)⁻¹ • (inclMatrix E z - inclMatrix E z')) |
| 1052 | (inclMatrix E z + inclMatrix E z')) (inclMatrix E j) |
| 1053 | incl_eq_zero := by |
| 1054 | simp [j, z, z', ↓reindex_equiv Y.indexEquiv, ↓reindex_equiv Y''.indexEquiv, inclMatrix, |
| 1055 | Matrix.one_apply, sub_eq_zero] |
| 1056 | grind |
| 1057 | -- `z` has norm `N` in `V⁻` and `z'` has norm `-N`. |
| 1058 | gram_incl := by |
| 1059 | simp [j, z, z', Y.gram_eq, Y''.gram_eq, inclMatrix, |
| 1060 | conjTranspose_fromCols_eq_fromRows_conjTranspose, flipSpace, gradedGram, hyperbolicSum, |
| 1061 | ← Matrix.ext_iff, Matrix.mul_apply, Matrix.one_apply] |
| 1062 | grind [Y.N_ne_zero_and_star_eq] |
| 1063 | grade_add_eq_zero := flipSum_grade_add_eq_zero Y Y'' } |
| 1064 | toHasConsecutiveStrings := h_string |
| 1065 | even_card_add := h_card |
| 1066 | embX := MonoidHom.id (G E (1 : X₀ → ℤˣ)) |
| 1067 | det_embX := by simp |
| 1068 | intertwines := by |
| 1069 | simp [j, z, z', ↓reindex_equiv Y.indexEquiv, ↓reindex_equiv Y''.indexEquiv, |
| 1070 | ratCoordMatrix_inclX, inclMatrix, fromCols_map, ← Matrix.ext_iff, Matrix.mul_apply, |
| 1071 | Matrix.one_apply] |
| 1072 | gradeOne := ⟨fun _ ↦ ⟨Y'.indexEquiv (Sum.inr ⟨s'' / 2, by grind⟩), by grind [gradeOf]⟩, |
| 1073 | by simp [Injective]⟩ |
| 1074 | stackedStringMap_apply := by |
| 1075 | simp [j, z, z', ↓reindex_equiv Y'.indexEquiv, ↓Y.formAdjoint_apply Y', apply_ite star, |
| 1076 | stackedStringMap, stringMap, ← Embedding.toFun_eq_coe, inclMatrix, Matrix.one_apply, |
| 1077 | gradedGram, stringReversal] |
| 1078 | grind [Y.N_ne_zero_and_star_eq] } |
| 1079 | |
| 1080 | /-- The pair data for s = 1 (so Y' and Y'' have no string), N = pp̄, |
| 1081 | `Y'.genericConst = Y.genericConst` and `card ι + card ι''` even: no plane is removed, and z/p, z the |
| 1082 | string vector of Y, is adjoined to X₀ as last basis vector of X''. -/ |
| 1083 | def lastDoubleLift (h_string : HasConsecutiveStrings Y Y' Y'') (h_card : Even (card ι + card ι'')) |
| 1084 | (hp : p * star p = N) (hs : s = 1) : DoubleLiftData (X₀ ⊕ Unit) Empty Y Y' Y'' := |
| 1085 | have h_middle : s' = s - 1 := h_string.length_middle |
| 1086 | have h_last : s'' = s' - 1 := h_string.length_last |
| 1087 | -- All indices have weight zero here: those of `X`, those of `X₀` and the string vector of `V`. |
| 1088 | let j := isEmptyElim ⊕ᵥ (Sum.inl ∘ Y.indexEquiv ∘ Sum.inl ⊕ᵥ (Sum.inr ∘ |
| 1089 | Y''.indexEquiv ∘ Sum.inl ⊕ᵥ fun _ : Unit ↦ Sum.inl (Y.indexEquiv (Sum.inr ⟨0, hs.ge⟩)))) |
| 1090 | { zeroPart := |
| 1091 | { index := ⟨j, by simp [j, Injective]⟩ |
| 1092 | mem_range_index := by |
| 1093 | simp [j, ↓reindex_equiv Y.indexEquiv, ↓reindex_equiv Y''.indexEquiv, |
| 1094 | ← Embedding.toFun_eq_coe, sub_eq_zero] |
| 1095 | grind |
| 1096 | incl := |
| 1097 | of fun a b ↦ if a = j b then if b = Sum.inr (Sum.inr (Sum.inr ())) then p⁻¹ else 1 else 0 |
| 1098 | incl_eq_zero := by |
| 1099 | simp [j, ↓reindex_equiv Y.indexEquiv, ↓reindex_equiv Y''.indexEquiv, sub_eq_zero] |
| 1100 | grind |
| 1101 | -- The string vector has norm `N = p * star p` in `V⁻`; divided by `p` it has norm `1`. |
| 1102 | gram_incl := by |
| 1103 | simp [j, Y.gram_eq, Y''.gram_eq, apply_ite star, flipSpace, gradedGram, hyperbolicSum, |
| 1104 | ← Matrix.ext_iff, Matrix.mul_apply, Matrix.one_apply] |
| 1105 | grind [Y.N_ne_zero_and_star_eq] |
| 1106 | grade_add_eq_zero := flipSum_grade_add_eq_zero Y Y'' } |
| 1107 | toHasConsecutiveStrings := h_string |
| 1108 | even_card_add := h_card |
| 1109 | -- `k` acts on `X₀` and fixes the last basis vector. |
| 1110 | embX := MonoidHom.comp (G.blockEmb (e := Equiv.refl (X₀ ⊕ Unit)) Sum.elim_one_one.symm) |
| 1111 | (MonoidHom.inl (G E (1 : X₀ → ℤˣ)) (G E (1 : Unit → ℤˣ))) |
| 1112 | det_embX := by simp [G.blockEmb, Subtype.ext_iff] |
| 1113 | intertwines := by |
| 1114 | simp [j, ↓reindex_equiv Y.indexEquiv, ↓reindex_equiv Y''.indexEquiv, Finset.univ_eq_empty, |
| 1115 | ratCoordMatrix_inclX, G.blockEmb, ← Matrix.ext_iff, Matrix.mul_apply, Matrix.one_apply] |
| 1116 | gradeOne := .ofIsEmpty |
| 1117 | stackedStringMap_apply := by |
| 1118 | simp [j, ↓reindex_equiv Y'.indexEquiv, ↓Y.formAdjoint_apply Y', Finset.univ_eq_empty, |
| 1119 | stackedStringMap, stringMap, ← Embedding.toFun_eq_coe, gradedGram, stringReversal] |
| 1120 | grind } |
| 1121 | |
| 1122 | end EdgePair |
| 1123 | |
| 1124 | end New.Seesaw |
| 1125 | |
| 1126 | /-! ## Gradings of the Y_k and evaluation of consecutive pairs of edges -/ |
| 1127 | |
| 1128 | namespace New.Data |
| 1129 | |
| 1130 | open Seesaw WeilData NeZero |
| 1131 | |
| 1132 | variable {P : Parameters} {D : Data P} |
| 1133 | |
| 1134 | /-- The grading of `Y_k` as `X_k` plus a string of length `2 ϱ + 1 - k`, indexed by |
| 1135 | `D.indexEquivY k`. As `D.m = 2 ϱ + 2`, the hypothesis says `k < D.m` and the length is |
| 1136 | `D.m - 1 - k`. The constant of the generic character, `-(j * (D.M * P.deltaE D.towerExp))⁻¹` with |
| 1137 | `j` the purely imaginary element of `New.WeilData`, does not depend on `k`. -/ |
| 1138 | def gradingY (k : ℕ) (hk : k ≤ 2 * D.ϱ + 1 := by omega) : |
| 1139 | Grading (D.spaceY k) D.N (D.X k) (2 * D.ϱ + 1 - k) where |
| 1140 | indexEquiv := D.indexEquivY k (by grind) |
| 1141 | gram_eq := D.spaceY_gram_eq k (by grind) |
| 1142 | N_ne_zero_and_star_eq := by simp [ne] |
| 1143 | -- `genericConst` is nonzero as `P.deltaE D.towerExp` generates the different, and fixed by |
| 1144 | -- conjugation as `j` and `P.deltaE D.towerExp` are both purely imaginary |
| 1145 | genericConst := ⟨-(j * (D.M * P.deltaE D.towerExp) : D.E)⁻¹, by |
| 1146 | simp [ne, ne_zero_of_differentIdeal_eq_span P.differentIdeal_eq_span_deltaE, |
| 1147 | ← coe_star_ringOfIntegers, P.star_deltaE, j_ne_zero]⟩ |
| 1148 | |
| 1149 | /-- For `M = D.m`, the grading of `Y_M` (whose Gram matrix is `1`) as `D.InitIndex M`, a set of |
| 1150 | `n_M - 1` indices in grade 0, plus a string of length 0. -/ |
| 1151 | def lastGrading {M : ℕ} (e : D.m = M) : Grading (D.spaceY M) D.N (D.InitIndex M) 0 := |
| 1152 | e ▸ { indexEquiv := (Equiv.sumEmpty (D.InitIndex D.m) (Fin 0)).trans D.lastIndexEquiv.symm |
| 1153 | gram_eq := D.isStd_spaceY_last.std_induction |
| 1154 | (funext₂ (by simp [gradedGram, Matrix.one_apply])) |
| 1155 | N_ne_zero_and_star_eq := by simp [ne] |
| 1156 | genericConst := ⟨1, by simp⟩ } |
| 1157 | |
| 1158 | /-- The finite evaluation `New.Seesaw.DoubleLiftData.finEval` of the double lift |
| 1159 | Y_{2i} → Y_{2i+1} → Y_{2i+2}: for the middle double lift if i < ϱ, the last double lift if i = ϱ, |
| 1160 | and 0 beyond. -/ |
| 1161 | def doubleLiftEvalY (i : ℕ) := |
| 1162 | if _ : i < D.ϱ then |
| 1163 | (middleDoubleLift (D.gradingY (2 * i)) (D.gradingY (2 * i + 1)) (D.gradingY (2 * i + 2)) |
| 1164 | ⟨by grind, by grind, by grind, by simp [gradingY]⟩ (by simp; grind) (by grind)).finEval |
| 1165 | else if _ : D.ϱ = i then |
| 1166 | -- the last pair, which ends in the space with the trivial grading |
| 1167 | (lastDoubleLift (p := (D.piN : D.E)) (D.gradingY (2 * i)) (D.gradingY (2 * i + 1)) |
| 1168 | (D.lastGrading (M := 2 * i + 2) (by grind)) |
| 1169 | ⟨by grind, by grind, by grind, by simp [gradingY]⟩ (by simp; grind) |
| 1170 | (by exact_mod_cast D.piN_mul_star) (by grind)).finEval |
| 1171 | else 0 |
| 1172 | |
| 1173 | /-- The natural number `M ^ (f n²)`, with `M = p₀ p₁`, `f` the number of infinite places of `E` and |
| 1174 | `n = n_m` the rank `D.n D.m`. -/ |
| 1175 | abbrev residueMatrixCount : ℕ := D.M ^ (D.f * D.n D.m ^ 2) |
| 1176 | |
| 1177 | /-- For finite adelic points `y k` of the unitary groups, the datum `New.Data.pointDatumY ϑ k` on |
| 1178 | Hom(Y_k, Y_{k+1}) moved by `(y k, y (k + 1))` under the finite Weil representation |
| 1179 | `New.Seesaw.liftWeilFin` with the character `D.chainChar ϑ (k + 1)` of lift `k + 1`. -/ |
| 1180 | def translatedPointDatumY (ϑ : D.TameChar) (y : ∀ _ : ℕ, _) (k : ℕ) := |
| 1181 | liftWeilFin (D.chainChar ϑ (k + 1)) (y k, y (k + 1)) (pointDatumY ϑ k) |
| 1182 | |
| 1183 | /-- The finite evaluation `New.Data.doubleLiftEvalY` of pair i on the data of lifts 2i+1 and 2i+2, |
| 1184 | moved by (y_{2i}, y_{2i+1}) and (y_{2i+1}, y_{2i+2}) as in `New.Data.translatedPointDatumY`. -/ |
| 1185 | def evaluatedDatum (ϑ : D.TameChar) y (i : ℕ) := |
| 1186 | D.doubleLiftEvalY i |
| 1187 | (arrowProduct (translatedPointDatumY ϑ y (2 * i)).1 (translatedPointDatumY ϑ y (2 * i + 1)).1) |
| 1188 | |
| 1189 | end New.Data |
| 1190 | |
| 1191 | end |