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

| 1 | module |
| 2 | |
| 3 | public import New.UpperBound.Seesaw.NeighbourLattice |
| 4 | public import Lib.Weil.DualPair.TwoEdges |
| 5 | public import New.UpperBound.Objects.Columns |
| 6 | import New.UpperBound.Seesaw.EdgePairEvaluation |
| 7 | |
| 8 | /-! |
| 9 | # The vacuum of the neighbour lattice |
| 10 | |
| 11 | The sum of the translates of the vacuum by the representatives of the neighbour lattice is computed |
| 12 | on the two edges of the pair. A representative is `neighbourTranslation X X'' y + t`, for residues |
| 13 | `y` and a vector `t` that vanishes above `N`. The translations by the `neighbourTranslation X X'' y` |
| 14 | add up to `doubleLiftGluing`, and they commute with the translations that vanish above `N`. So a |
| 15 | translate of the sum by such a vector is a sum of roots of unity times vectors `gluedTranslate`, |
| 16 | one for each class of the `t`. The result is |
| 17 | `isAdmissibleCombination_finHeisenbergOp_sum_neighbourCosetRep`. |
| 18 | |
| 19 | Notions from other files: |
| 20 | * `PairIndex X X''`: the indices of a basis of `X⁻ ⊕ X''`, where each of the two definite spaces |
| 21 | has a last basis vector. |
| 22 | * `neighbourTranslation X X'' y`: the matrix attached to residues `y` modulo `N` at the places of |
| 23 | `P`, with `η ȳ / N` (`η` the unit of norm `-1`) in the row of the last basis vector of `X`, |
| 24 | `-ȳ / N` in that of `X''`, and zero elsewhere. It is supported at the places conjugate to `P`. |
| 25 | * `vanishingAbove ι P`: the vectors that vanish at the places of `P` and their conjugates (for |
| 26 | split `N`, the places above `N`). |
| 27 | * `AwayLatticeQuotient`, `neighbourCosetRep`: the classes, modulo the integral ones, of the |
| 28 | elements of the neighbour lattice that vanish above `N`, and the sum |
| 29 | `neighbourTranslation X X'' y + t` for a chosen representative `t` of such a class. |
| 30 | * `Z.finHeisenbergOp x`, `Z.vacElem`: the translation by a finite adelic vector `x` and the vacuum |
| 31 | in the space `𝒮 Z`. |
| 32 | * `IsAdmissibleCombination v A n d p B z`: `z` is a finite combination of the `v x` with `x ∈ A`, |
| 33 | whose coefficients times `d` are integral away from `n` and, if `p` holds, have absolute sum at |
| 34 | most `B` under every automorphism of `ℂ`. |
| 35 | * `arrowTensor`: the map that joins data on `Hom(V, V')` and `Hom(V', V'')` to one datum on |
| 36 | `Hom(V', V⁻ ⊕ V'')`. |
| 37 | |
| 38 | ## Relation to the literature |
| 39 | |
| 40 | See `New.UpperBound.Seesaw.SeesawIdentity` for related work. |
| 41 | -/ |
| 42 | |
| 43 | @[expose] public section |
| 44 | |
| 45 | namespace New.Seesaw |
| 46 | |
| 47 | noncomputable section |
| 48 | |
| 49 | open Matrix Space WeilData Exchange Finset Weil Valued Splitting stdLattice DoubleLiftData |
| 50 | TensorProduct |
| 51 | PairIndex |
| 52 | |
| 53 | section Translations |
| 54 | |
| 55 | variable {E X X' X'' : Type} [Field E] [CMType E] [WeilData E] [Fintype X] [DecidableEq X] |
| 56 | [Fintype X'] [DecidableEq X'] [Fintype X''] [DecidableEq X''] {N : ℕ} {P : Finset (FinPlace E)} |
| 57 | {π : (𝔸f E)ˣ} {β : Ô E} {δ : 𝔸f E} {κ : PairIndex X X'' → 𝔸f E} |
| 58 | |
| 59 | variable (E X X' X'') in |
| 60 | /-- The space `Hom (X', (X ⊕ Unit)⁻ ⊕ (X'' ⊕ Unit))` of the standard spaces, the target of |
| 61 | `arrowTensor` for a pair of standard edges. -/ |
| 62 | abbrev stdPairSpace : Space E (PairIndex X X'' × X') (homSigns 1 (-1 ⊕ᵥ 1)) := |
| 63 | (stdSpace E X').hom (flipSum (stdSpace E (X ⊕ Unit)) (stdSpace E (X'' ⊕ Unit))) |
| 64 | |
| 65 | /-- The glued translate attached to a pair of finite adelic matrices `t = (t₁, t₂)`: translate the |
| 66 | vacuum of the edge `Hom(X ⊕ Unit, X')` by `t₁` and that of `Hom(X', X'' ⊕ Unit)` by `t₂`, and apply |
| 67 | `doubleLiftGluing` (the sum over residues modulo `N` at `P`) to the tensor of the two. -/ |
| 68 | def gluedTranslate (N : ℕ) [Fact N.Prime] (P : Finset (FinPlace E)) |
| 69 | (t : (X' × (X ⊕ Unit) → 𝔸f E) × ((X'' ⊕ Unit) × X' → 𝔸f E)) : |
| 70 | ((stdSpace E (X ⊕ Unit)).hom (stdSpace E X')).finitePart ⊗[ℂ] |
| 71 | ((stdSpace E X').hom (stdSpace E (X'' ⊕ Unit))).finitePart := |
| 72 | doubleLiftGluing X X' P N X'' |
| 73 | (((stdSpace E (X ⊕ Unit)).hom (stdSpace E X')).heisenbergFinPart t.1 |
| 74 | ⟨((stdSpace E (X ⊕ Unit)).hom (stdSpace E X')).vacElem, vacElem_mem_finitePart⟩ ⊗ₜ |
| 75 | ((stdSpace E X').hom (stdSpace E (X'' ⊕ Unit))).heisenbergFinPart t.2 |
| 76 | ⟨((stdSpace E X').hom (stdSpace E (X'' ⊕ Unit))).vacElem, vacElem_mem_finitePart⟩) |
| 77 | |
| 78 | /-- There is a constant `C` such that, for every `n` prime to `N` and every proposition `p`, the map |
| 79 | `L` sends each translate of the vacuum of `Hom(V', V⁻ ⊕ V'')` by a matrix `y`, whose row `i` times |
| 80 | `d i` is integral away from `n`, to an admissible combination of the vectors |
| 81 | `C • gluedTranslate N P (t₁, t₂)`, where `β̄ t₁`, `β̄ t₂` are integral away from `n`. The |
| 82 | coefficients are integral away from `n` after multiplication by the number of classes of integral |
| 83 | matrices modulo `β`, and if `p` holds their absolute sum is at most `1` under every automorphism |
| 84 | of `ℂ`. -/ |
| 85 | def IsAdmissibleEval {ι ι' ι'' : Type} [Fintype ι] [DecidableEq ι] [Fintype ι'] [DecidableEq ι'] |
| 86 | [Fintype ι''] [DecidableEq ι''] {ε : ι → ℤˣ} {ε' : ι' → ℤˣ} {ε'' : ι'' → ℤˣ} {V : Space E ι ε} |
| 87 | {V' : Space E ι' ε'} {V'' : Space E ι'' ε''} (N : ℕ) [Fact N.Prime] (P : Finset (FinPlace E)) |
| 88 | (β : Ô E) (L : 𝒮 (V'.hom (flipSum V V'')) → |
| 89 | ((stdSpace E (X ⊕ Unit)).hom (stdSpace E X')).finitePart ⊗[ℂ] |
| 90 | ((stdSpace E X').hom (stdSpace E (X'' ⊕ Unit))).finitePart) |
| 91 | (d : ι ⊕ ι'' → 𝔸f E) : Prop := |
| 92 | ∃ C : ℂ, ∀ (n : ℕ) (p : Prop), N.Coprime n → |
| 93 | ∀ y ∈ weightedTranslations n fun i : (ι ⊕ ι'') × ι' ↦ d i.1, |
| 94 | IsAdmissibleCombination |
| 95 | (fun t : (X' × (X ⊕ Unit) → 𝔸f E) × ((X'' ⊕ Unit) × X' → 𝔸f E) ↦ |
| 96 | C • gluedTranslate N P t) |
| 97 | (translations (X' × (X ⊕ Unit)) n (star (β : 𝔸f E)) ×ˢ |
| 98 | translations ((X'' ⊕ Unit) × X') n (star (β : 𝔸f E))) n |
| 99 | (Nat.card (PairIndex X X'' × X' → Ô E ⧸ Ideal.span {β})) p 1 |
| 100 | (L ((V'.hom (flipSum V V'')).finHeisenbergOp y (V'.hom (flipSum V V'')).vacElem)) |
| 101 | |
| 102 | /-! ### Translations above `N` and away from `N` -/ |
| 103 | |
| 104 | /-- Let `N = π π̄` with no place of `P` conjugate to one in `P` (`hπ`). A vector `x` fixed by |
| 105 | multiplication by the conjugate of `idem P` (the adele with component `1` on `P` and `0` elsewhere) |
| 106 | is supported at the places conjugate to `P`, so `x* x = 0`. Hence `semichar x`, an additive |
| 107 | character of a multiple of `x* x`, is `1`. -/ |
| 108 | lemma semichar_eq_one_of_smul_eq (hπ : IsSplitSquarefree P (N : E) π) {ι : Type} [Fintype ι] |
| 109 | {x : ι → 𝔸f E} (hx : star (idem P : 𝔸f E) • x = x) : semichar x = 1 := by |
| 110 | apply semichar_eq_one_of_dotProduct_self_eq_zero |
| 111 | rw [← hx, star_smul, star_star, smul_dotProduct, dotProduct_smul, smul_smul, |
| 112 | idem_mul_star hπ.isConjDisjoint, zero_smul] |
| 113 | |
| 114 | section Commute |
| 115 | |
| 116 | variable [Fact N.Prime] {s : PairIndex X X'' × X' → ℤˣ} (Z : Space E (PairIndex X X'' × X') s) |
| 117 | {x : PairIndex X X'' × X' → 𝔸f E} |
| 118 | |
| 119 | omit [DecidableEq X] [DecidableEq X'] [DecidableEq X''] in |
| 120 | /-- Let `N = π π̄` with `π` a uniformiser at the places of `P`, none conjugate to another, and a |
| 121 | unit elsewhere (`hπ`). The matrix `neighbourTranslation X X'' y`, whose only nonzero rows are |
| 122 | multiples of `ȳ / N` at the two last basis vectors and which is supported at the places conjugate |
| 123 | to `P`, is orthogonal to every matrix `x` that vanishes at the places of `P` and their |
| 124 | conjugates. -/ |
| 125 | lemma star_neighbourTranslation_dotProduct_eq_zero (hπ : IsSplitSquarefree P (N : E) π) |
| 126 | (y : X' → P → ZMod N) (hx : x ∈ vanishingAbove (PairIndex X X'' × X') P) : |
| 127 | star (neighbourTranslation X X'' y) ⬝ᵥ x = 0 := by |
| 128 | rw [← idem_conjClosure_smul_neighbourTranslation hπ, star_smul, star_idem_conjClosure, |
| 129 | smul_dotProduct, |
| 130 | ← dotProduct_smul, mem_vanishingAbove.1 hx, dotProduct_zero] |
| 131 | |
| 132 | /-- Let `N = π π̄` with `π` a uniformiser at the places of `P`, none conjugate to another, and a |
| 133 | unit elsewhere (`hπ`). The matrix `neighbourTranslation X X'' y`, made from residues `y` modulo |
| 134 | `N`, is supported at the conjugates of these places. So if `x` vanishes at the places of `P` and |
| 135 | their conjugates, the translation of `f ∈ 𝒮 Z` by `neighbourTranslation X X'' y + x` is the |
| 136 | product of the translations by the two summands. -/ |
| 137 | lemma finHeisenbergOp_neighbourTranslation_add (hπ : IsSplitSquarefree P (N : E) π) |
| 138 | (y : X' → P → ZMod N) (hx : x ∈ vanishingAbove (PairIndex X X'' × X') P) (f : 𝒮 Z) : |
| 139 | Z.finHeisenbergOp (neighbourTranslation X X'' y + x) f = |
| 140 | Z.finHeisenbergOp (neighbourTranslation X X'' y) (Z.finHeisenbergOp x f) := by |
| 141 | rw [finHeisenbergOp_finHeisenbergOp, star_dotProduct, |
| 142 | star_neighbourTranslation_dotProduct_eq_zero hπ y hx, star_zero, mul_zero, |
| 143 | AddChar.map_zero_eq_one, one_smul] |
| 144 | |
| 145 | /-- Let `N = π π̄` with `π` a uniformiser at the places of `P`, none conjugate to another, and a |
| 146 | unit elsewhere (`hπ`). The matrix `neighbourTranslation X X'' y`, made from residues `y` modulo |
| 147 | `N`, is supported at the conjugates of these places. So the translation of `𝒮 Z` by it commutes |
| 148 | with the translation by any `x` that vanishes at the places of `P` and their conjugates. -/ |
| 149 | lemma finHeisenbergOp_comm_neighbourTranslation (hπ : IsSplitSquarefree P (N : E) π) |
| 150 | (y : X' → P → ZMod N) (hx : x ∈ vanishingAbove (PairIndex X X'' × X') P) (f : 𝒮 Z) : |
| 151 | Z.finHeisenbergOp x (Z.finHeisenbergOp (neighbourTranslation X X'' y) f) = |
| 152 | Z.finHeisenbergOp (neighbourTranslation X X'' y) (Z.finHeisenbergOp x f) := by |
| 153 | rw [finHeisenbergOp_comm, star_neighbourTranslation_dotProduct_eq_zero hπ y hx, |
| 154 | AddChar.map_zero_eq_one, one_smul] |
| 155 | |
| 156 | end Commute |
| 157 | |
| 158 | omit [WeilData E] [Fintype X] [DecidableEq X] [Fintype X''] [DecidableEq X''] in |
| 159 | /-- If the scaling data `β`, `δ`, `κ` are away from `N` (`hκ`), then `β` is a unit above `N`, hence |
| 160 | so are `β̄` and every denominator `selfOrConj β b` (`β` on the first block, `β̄` on the second). -/ |
| 161 | lemma v_selfOrConj_eq_one (hκ : IsScalingAtM N β δ κ) {ι ι' : Type} (b : ι ⊕ ι') {w : FinPlace E} |
| 162 | (hw : ↑N ∈ w.asIdeal) : v (selfOrConj β b w) = 1 := by |
| 163 | rw [selfOrConj] |
| 164 | split_ifs |
| 165 | exacts [hκ.v_eq_one w hw, (v_star_apply ..).trans (hκ.v_eq_one (star w) (by simpa using hw))] |
| 166 | |
| 167 | omit [Fintype X] [DecidableEq X] [Fintype X''] [DecidableEq X''] in |
| 168 | /-- Let `P` contain one place of each conjugate pair above the prime `N`, let `β` be a unit above |
| 169 | `N` and `n` prime to `N`. Let `W` be a hermitian space on the entries of a matrix with two blocks of |
| 170 | rows. If the rows of `y` have denominator at most `β` in the first block and `β̄` in the second |
| 171 | (`selfOrConj β`) away from `n`, the translate of the vacuum of `W` by `y` is a root of unity times |
| 172 | the translate by a matrix `y'` that has the same denominators and vanishes above `N`. -/ |
| 173 | lemma exists_finHeisenbergOp_vacElem_eq_of_coprime (hP : IsSplitLevel P N) |
| 174 | (hκ : IsScalingAtM N β δ κ) |
| 175 | {ι ι' ι'' : Type} [Fintype ι] [DecidableEq ι] [Fintype ι'] [DecidableEq ι'] [Fintype ι''] |
| 176 | [DecidableEq ι''] {s : (ι ⊕ ι'') × ι' → ℤˣ} (W : Space E ((ι ⊕ ι'') × ι') s) {n : ℕ} |
| 177 | (hn : N.Coprime n) {y : (ι ⊕ ι'') × ι' → 𝔸f E} |
| 178 | (hy : y ∈ weightedTranslations n fun i : (ι ⊕ ι'') × ι' ↦ selfOrConj β i.1) : |
| 179 | ∃ ζ : ℂ, IsOfFinOrder ζ ∧ |
| 180 | ∃ y' ∈ weightedTranslations n fun i : (ι ⊕ ι'') × ι' ↦ selfOrConj β i.1, |
| 181 | y' ∈ vanishingAbove ((ι ⊕ ι'') × ι') P ∧ |
| 182 | W.finHeisenbergOp y W.vacElem = ζ • W.finHeisenbergOp y' W.vacElem := by |
| 183 | -- The part `l` of `y` above `N` is integral; take `y' = y - l`. |
| 184 | let l : (ι ⊕ ι'') × ι' → 𝔸f E := (idem (P : Set (FinPlace E)).conjClosure : 𝔸f E) • y |
| 185 | have hl : l ∈ stdLattice E ((ι ⊕ ι'') × ι') := by |
| 186 | refine fun i ↦ idem_mul_mem_Ô.2 fun w hw ↦ ?_ |
| 187 | have hN : ↑N ∈ w.asIdeal := by simpa [hP.natCast_mem_iff] using hw |
| 188 | have h_le : v ((selfOrConj β i.1 * y i) w) ≤ 1 := |
| 189 | hy i w (w.isPrime.notMem_of_isCoprime_of_mem hn.cast hN) |
| 190 | simpa [v_selfOrConj_eq_one hκ i.1 hN] using h_le |
| 191 | have hl_den : l ∈ weightedTranslations n fun i : (ι ⊕ ι'') × ι' ↦ selfOrConj β i.1 := by |
| 192 | intro i w _ |
| 193 | have h_den : selfOrConj β i.1 ∈ Ô E := ite_mem.2 ⟨fun _ ↦ β.2, fun _ ↦ star_mem_Ô β.2⟩ |
| 194 | exact mem_Ô.1 (mul_mem h_den (hl i)) w |
| 195 | obtain ⟨ζ, hζ, h_shift⟩ := exists_finHeisenbergOp_add_vacElem W y (neg_mem hl) |
| 196 | rw [← sub_eq_add_neg] at h_shift |
| 197 | exact ⟨ζ, hζ, y - l, sub_mem hy hl_den, sub_idem_smul_mem_vanishingAbove y, h_shift⟩ |
| 198 | |
| 199 | end Translations |
| 200 | |
| 201 | /-! ### The two edges of the pair -/ |
| 202 | |
| 203 | section Edges |
| 204 | |
| 205 | variable {E : Type} [Field E] [CMType E] [WeilData E] {ι ι' ι'' : Type} [Fintype ι] |
| 206 | [DecidableEq ι] [Fintype ι'] [DecidableEq ι'] [Fintype ι''] [DecidableEq ι''] |
| 207 | {ε : ι → ℤˣ} {ε' : ι' → ℤˣ} {ε'' : ι'' → ℤˣ} |
| 208 | {V : Space E ι ε} {V' : Space E ι' ε'} {V'' : Space E ι'' ε''} |
| 209 | |
| 210 | /-- On a pure tensor `Φ ⊗ Ψ` of data on the two edges, `arrowTensor` is `arrowProduct Φ Ψ`. -/ |
| 211 | lemma arrowTensor_tmul (Φ : (V.hom V').finitePart) (Ψ : (V'.hom V'').finitePart) : |
| 212 | arrowTensor (Φ ⊗ₜ[ℂ] Ψ) = arrowProduct (Φ : 𝒮 (V.hom V')) (Ψ : 𝒮 (V'.hom V'')) := |
| 213 | rfl |
| 214 | |
| 215 | /-- The translate by `z` of the vacuum of `Hom(V', V⁻ ⊕ V'')` is the square of `semichar` of the |
| 216 | first block of `z` times the image under `arrowTensor` of the tensor of two translates. These are |
| 217 | the vacuum of `Hom(V, V')` translated by `normNegOne` (the unit of norm `-1`) times the adjoint of |
| 218 | the first block of `z`, and the vacuum of `Hom(V', V'')` translated by the second block of `z`. -/ |
| 219 | lemma finHeisenbergOp_vacElem_eq_smul_arrowTensor (z : (ι ⊕ ι'') × ι' → 𝔸f E) : |
| 220 | (V'.hom (flipSum V V'')).finHeisenbergOp z (V'.hom (flipSum V V'')).vacElem = |
| 221 | semichar (fun i : ι' × ι ↦ z (Sum.inl i.2, i.1)) ^ 2 • arrowTensor |
| 222 | ((V.hom V').heisenbergFinPart |
| 223 | (fun i : ι' × ι ↦ (normNegOne (E := E) : 𝔸f E) * star (z (Sum.inl i.2, i.1))) |
| 224 | ⟨(V.hom V').vacElem, vacElem_mem_finitePart⟩ ⊗ₜ[ℂ] |
| 225 | (V'.hom V'').heisenbergFinPart (fun i : ι'' × ι' ↦ z (Sum.inr i.1, i.2)) |
| 226 | ⟨(V'.hom V'').vacElem, vacElem_mem_finitePart⟩) := by |
| 227 | rw [arrowTensor_tmul, heisenbergFinPart_apply_coe, heisenbergFinPart_apply_coe, |
| 228 | ← arrowProduct_vacElem, finHeisenbergOp_arrowProduct] |
| 229 | |
| 230 | end Edges |
| 231 | |
| 232 | /-! ### The sum over the neighbour lattice -/ |
| 233 | |
| 234 | section Sum |
| 235 | |
| 236 | variable {E X X' X'' : Type} [Field E] [CMType E] [WeilData E] [Fintype X] [DecidableEq X] |
| 237 | [Fintype X'] [DecidableEq X'] [Fintype X''] [DecidableEq X''] {N : ℕ} [Fact N.Prime] |
| 238 | {P : Finset (FinPlace E)} {π : (𝔸f E)ˣ} {β : Ô E} {δ : 𝔸f E} {κ : PairIndex X X'' → 𝔸f E} |
| 239 | |
| 240 | open scoped Classical in |
| 241 | /-- Let `N` be a prime that splits as `N = π π̄`. Let `t` be a tensor of finite data (`finitePart`) |
| 242 | on the two edges `Hom(X ⊕ Unit, X')` and `Hom(X', X'' ⊕ Unit)` of standard spaces. The map |
| 243 | `arrowTensor` joins it to one datum on `stdPairSpace`, the space |
| 244 | `Hom(X', (X ⊕ Unit)⁻ ⊕ (X'' ⊕ Unit))`. There the operator `doubleLiftGluing` (the sum over residues |
| 245 | `y` of the translation of the first datum by the last column `-y / N` and of the second by the last |
| 246 | row `-ȳ / N`) becomes the sum of the translations by `neighbourTranslation X X'' y`, the matrices |
| 247 | whose only nonzero rows are `η ȳ / N` and `-ȳ / N` at the two last basis vectors. -/ |
| 248 | lemma arrowTensor_doubleLiftGluing (hπ : IsSplitSquarefree P (N : E) π) |
| 249 | (t : ((stdSpace E (X ⊕ Unit)).hom (stdSpace E X')).finitePart ⊗[ℂ] |
| 250 | ((stdSpace E X').hom (stdSpace E (X'' ⊕ Unit))).finitePart) : |
| 251 | arrowTensor (doubleLiftGluing X X' P N X'' t) = |
| 252 | ∑ y : X' → P → ZMod N, |
| 253 | (stdPairSpace E X X' X'').finHeisenbergOp (neighbourTranslation X X'' y) |
| 254 | (arrowTensor t) := by |
| 255 | induction t with |
| 256 | | add t t' ht ht' => simp [ht, ht', Finset.sum_add_distrib] |
| 257 | | tmul Φ Ψ => |
| 258 | -- The adjoint, times the unit of norm `-1`, turns the first nonzero row of |
| 259 | -- `neighbourTranslation y` into the last column `-y / N`; the second nonzero row is the last |
| 260 | -- row `-ȳ / N`. |
| 261 | have h_column (y : X' → P → ZMod N) : |
| 262 | (fun q : X' × (X ⊕ Unit) ↦ (normNegOne (E := E) : 𝔸f E) * |
| 263 | star (neighbourTranslation X X'' y (Sum.inl q.2, q.1))) = poleColumn X y := by |
| 264 | ext ⟨a, i | i⟩ : 1 <;> simp [neighbourTranslation, ← mul_assoc, mul_comm _ (star _)] |
| 265 | have h_row (y : X' → P → ZMod N) : |
| 266 | (fun q : (X'' ⊕ Unit) × X' ↦ neighbourTranslation X X'' y (Sum.inr q.1, q.2)) = |
| 267 | poleRow X'' y := by |
| 268 | ext ⟨i | i, a⟩ : 1 <;> simp [neighbourTranslation] |
| 269 | have h_phase (y : X' → P → ZMod N) : |
| 270 | semichar (fun q : X' × (X ⊕ Unit) ↦ neighbourTranslation X X'' y (Sum.inl q.2, q.1)) = 1 := |
| 271 | semichar_eq_one_of_smul_eq hπ <| |
| 272 | funext fun q ↦ congrFun (star_idem_smul_neighbourTranslation y) (Sum.inl q.2, q.1) |
| 273 | simp only [doubleLiftGluing, LinearMap.sum_apply, map_sum, map_tmul, arrowTensor_tmul, |
| 274 | finHeisenbergOp_arrowProduct, h_column, h_row, h_phase, one_pow, one_smul, |
| 275 | heisenbergFinPart_apply_coe] |
| 276 | |
| 277 | open scoped Classical in |
| 278 | /-- Let `N` be a prime that splits as `N = π π̄`, where `π` is a uniformiser at the places of `P` |
| 279 | and a unit elsewhere. Let `z` be a matrix on `PairIndex X X''` times `X'` whose rows have |
| 280 | denominator at most `β` in the first block and `β̄` in the second (`selfOrConj β`), away from `n`. |
| 281 | In `stdPairSpace`, the space `Hom(X', (X ⊕ Unit)⁻ ⊕ (X'' ⊕ Unit))`, add up over residues `y` modulo |
| 282 | `N` at `P` the translates, by `neighbourTranslation X X'' y`, of the translate of the vacuum by `z`. |
| 283 | The sum is a root of unity times the image under `arrowTensor` of `gluedTranslate N P (t₁, t₂)`, the |
| 284 | glued tensor of the translates by `t₁`, `t₂` of the vacua of the two edges, for some `t₁`, `t₂` with |
| 285 | `β̄ t₁`, `β̄ t₂` integral away from `n`. -/ |
| 286 | lemma exists_sum_finHeisenbergOp_neighbourTranslation_eq (hπ : IsSplitSquarefree P (N : E) π) |
| 287 | {n : ℕ} {z : PairIndex X X'' × X' → 𝔸f E} |
| 288 | (hz : z ∈ weightedTranslations n fun i : PairIndex X X'' × X' ↦ selfOrConj β i.1) : |
| 289 | ∃ ζ : ℂ, IsOfFinOrder ζ ∧ |
| 290 | ∃ t₁ ∈ translations (X' × (X ⊕ Unit)) n (star (β : 𝔸f E)), |
| 291 | ∃ t₂ ∈ translations ((X'' ⊕ Unit) × X') n (star (β : 𝔸f E)), |
| 292 | ∑ y : X' → P → ZMod N, (stdPairSpace E X X' X'').finHeisenbergOp |
| 293 | (neighbourTranslation X X'' y) |
| 294 | ((stdPairSpace E X X' X'').finHeisenbergOp z (stdPairSpace E X X' X'').vacElem) = |
| 295 | ζ • arrowTensor (gluedTranslate N P (t₁, t₂)) := by |
| 296 | -- `z` splits into `t₁` on the first edge, through the adjoint, and `t₂` on the second. |
| 297 | let t₁ : X' × (X ⊕ Unit) → 𝔸f E := fun i ↦ |
| 298 | (normNegOne (E := E) : 𝔸f E) * star (z (Sum.inl i.2, i.1)) |
| 299 | have ht₁ : t₁ ∈ translations (X' × (X ⊕ Unit)) n (star (β : 𝔸f E)) := |
| 300 | star_mem_weightedTranslations normNegOne_mem hz fun i : X' × (X ⊕ Unit) ↦ (Sum.inl i.2, i.1) |
| 301 | let t₂ : (X'' ⊕ Unit) × X' → 𝔸f E := fun i ↦ z (Sum.inr i.1, i.2) |
| 302 | have ht₂ : t₂ ∈ translations ((X'' ⊕ Unit) × X') n (star (β : 𝔸f E)) := fun i ↦ |
| 303 | hz (Sum.inr i.1, i.2) |
| 304 | refine ⟨semichar (fun i : X' × (X ⊕ Unit) ↦ z (Sum.inl i.2, i.1)) ^ 2, (isOfFinOrder_ψf _).pow, |
| 305 | t₁, ht₁, t₂, ht₂, ?_⟩ |
| 306 | simp only [t₁, t₂, finHeisenbergOp_vacElem_eq_smul_arrowTensor, gluedTranslate, |
| 307 | arrowTensor_doubleLiftGluing hπ, map_smul, smul_sum] |
| 308 | |
| 309 | open scoped Classical in |
| 310 | /-- Let `N = π π̄` be a split prime with places `P`. By `hκ`, `β` is a unit above `N` and each row |
| 311 | factor `κ` is `1` or `δ`, with denominator at most `β̄`. The classes |
| 312 | `q : AwayLatticeQuotient X' hπ hκ` are those, modulo integral matrices, of the elements of the |
| 313 | neighbour lattice that vanish above `N`; for residues `y` modulo `N` at `P`, |
| 314 | `neighbourCosetRep (y, q)` is `neighbourTranslation X X'' y` plus a chosen representative of `q`. |
| 315 | |
| 316 | Let `x` vanish above `N` and have rows of denominator at most `β` in the first block and `β̄` in the |
| 317 | second, away from `n`. Translate by `x` the sum over `(y, q)` of the translates of the vacuum by |
| 318 | these representatives, and read the result on the two edges `Hom(X ⊕ Unit, X')`, |
| 319 | `Hom(X', X'' ⊕ Unit)`. With `K` the number of classes `q`, it is a finite combination of |
| 320 | `K • gluedTranslate N P (t₁, t₂)`, where `gluedTranslate` glues the translates by `t₁`, `t₂` of the |
| 321 | vacua of the edges and `β̄ t₁`, `β̄ t₂` are integral away from `n`. Its coefficients, times the |
| 322 | number of integral matrices modulo `β`, are integral away from `n`. The proposition `boundHyp` is |
| 323 | arbitrary; if it holds, the absolute sum of the coefficients is at most `1` under every automorphism |
| 324 | of `ℂ`. -/ |
| 325 | theorem isAdmissibleCombination_finHeisenbergOp_sum_neighbourCosetRep |
| 326 | (hπ : IsSplitSquarefree P (N : E) π) (hκ : IsScalingAtM N β δ κ) {n : ℕ} (boundHyp : Prop) |
| 327 | {x : PairIndex X X'' × X' → 𝔸f E} |
| 328 | (hx : x ∈ weightedTranslations n fun i : PairIndex X X'' × X' ↦ selfOrConj β i.1) |
| 329 | (hx_zero : x ∈ vanishingAbove (PairIndex X X'' × X') P) : |
| 330 | IsAdmissibleCombination |
| 331 | (fun t : (X' × (X ⊕ Unit) → 𝔸f E) × ((X'' ⊕ Unit) × X' → 𝔸f E) ↦ |
| 332 | (Fintype.card (AwayLatticeQuotient X' hπ hκ) : ℂ) • gluedTranslate N P t) |
| 333 | (translations (X' × (X ⊕ Unit)) n (star (β : 𝔸f E)) ×ˢ |
| 334 | translations ((X'' ⊕ Unit) × X') n (star (β : 𝔸f E))) n |
| 335 | (Nat.card (PairIndex X X'' × X' → Ô E ⧸ Ideal.span {β})) boundHyp 1 |
| 336 | (arrowTensor.leftInverse ((stdPairSpace E X X' X'').finHeisenbergOp x |
| 337 | (∑ a : (X' → P → ZMod N) × AwayLatticeQuotient X' hπ hκ, |
| 338 | (stdPairSpace E X X' X'').finHeisenbergOp (neighbourCosetRep a) |
| 339 | (stdPairSpace E X X' X'').vacElem))) := by |
| 340 | let Z := stdPairSpace E X X' X'' |
| 341 | let K : ℕ := Fintype.card (AwayLatticeQuotient X' hπ hκ) |
| 342 | -- The term of a class `q`: its representative splits off, and `x` passes the shifts. |
| 343 | let classTerm (q : AwayLatticeQuotient X' hπ hκ) : 𝒮 Z := ∑ y : X' → P → ZMod N, |
| 344 | Z.finHeisenbergOp (neighbourTranslation X X'' y) |
| 345 | (Z.finHeisenbergOp x (Z.finHeisenbergOp q.out.val Z.vacElem)) |
| 346 | have h_terms : Z.finHeisenbergOp x (∑ a : (X' → P → ZMod N) × AwayLatticeQuotient X' hπ hκ, |
| 347 | Z.finHeisenbergOp (neighbourCosetRep a) Z.vacElem) = ∑ q : AwayLatticeQuotient X' hπ hκ, |
| 348 | classTerm q := by |
| 349 | rw [map_sum, Fintype.sum_prod_type_right] |
| 350 | refine sum_congr rfl fun q _ ↦ sum_congr rfl fun y _ ↦ ?_ |
| 351 | have hq_zero : q.out.val ∈ vanishingAbove (PairIndex X X'' × X') P := |
| 352 | (AddSubgroup.mem_inf.1 q.out.property).2 |
| 353 | rw [neighbourCosetRep, finHeisenbergOp_neighbourTranslation_add Z hπ y hq_zero, |
| 354 | finHeisenbergOp_comm_neighbourTranslation Z hπ y hx_zero] |
| 355 | have h_mean : arrowTensor.leftInverse (∑ q : AwayLatticeQuotient X' hπ hκ, classTerm q) = |
| 356 | ∑ q : AwayLatticeQuotient X' hπ hκ, |
| 357 | (1 / K : ℂ) • (K : ℂ) • arrowTensor.leftInverse (classTerm q) := by |
| 358 | simp [K, smul_smul] |
| 359 | rw [h_terms, h_mean, one_div] |
| 360 | refine (IsAdmissibleCombination.of_mean _ |
| 361 | ((card_awayLatticeQuotient_dvd (X' := X') hπ hκ).mul_right (n ^ 0))).of_eq_isOfFinOrder_smul |
| 362 | fun q _ ↦ ?_ |
| 363 | -- Translations by `x` and by the representative of `q` compose to the translation by their sum |
| 364 | -- up to the value `ξ` of the standard additive character `selfDualAddChar`, a root of unity. |
| 365 | let ξ : ℂ := selfDualAddChar E (star traceOneAdele * star q.out.val ⬝ᵥ x) |
| 366 | have h_sum_mem : x + q.out.val ∈ |
| 367 | weightedTranslations n fun i : PairIndex X X'' × X' ↦ selfOrConj β i.1 := |
| 368 | add_mem hx (awayLattice_le_weightedTranslations hπ hκ n q.out.property) |
| 369 | obtain ⟨ζ, hζ, t₁, ht₁, t₂, ht₂, h_glue⟩ := |
| 370 | exists_sum_finHeisenbergOp_neighbourTranslation_eq hπ h_sum_mem |
| 371 | have h_term : classTerm q = ξ • ζ • arrowTensor (gluedTranslate N P (t₁, t₂)) := by |
| 372 | simp only [classTerm, Z, ξ, ← h_glue, smul_sum, Z.finHeisenbergOp_finHeisenbergOp (x := x), |
| 373 | map_smul] |
| 374 | refine ⟨ξ * ζ, (isOfFinOrder_ψf _).mul hζ, (t₁, t₂), ⟨ht₁, ht₂⟩, ?_⟩ |
| 375 | rw [h_term, map_smul, map_smul, leftInverse_arrowTensor, ← mul_smul ξ, smul_comm] |
| 376 | |
| 377 | end Sum |
| 378 | |
| 379 | end |
| 380 | |
| 381 | end New.Seesaw |