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.LinearAlgebra.AffineSpace.MidpointZero |
| 4 | import Mathlib.RingTheory.Coalgebra.CoassocSimps |
| 5 | import TauCeti.LinearAlgebra.Matrix.Determinant.Basic |
| 6 | import TauCeti.Topology.Algebra.Group.Units |
| 7 | public import Lib.SiegelWeil.Tower.RealConeIntegral |
| 8 | import Lib.DiscreteSeries.Holomorphic.MaximalCompactMinors |
| 9 | import Lib.SiegelWeil.Tower.PrincipalIdeles |
| 10 | |
| 11 | /-! |
| 12 | # Determinant vectors: the test vectors of the cone integral |
| 13 | |
| 14 | Let `W' = W ⊕ H` and `V' = V ⊕ H` with hyperbolic planes `H`, split by adapted splittings `A` and |
| 15 | `X`. At each infinite place `w` a point `u` of `Hom(W, V)` has a positive part `u₊`. For matrices |
| 16 | `F w` the determinant vector is the Fock vector of the polynomial whose value at `u` is the |
| 17 | conjugate of `∏ w, det₊ (u₊ F w) ^ m w * det₋ (u₊ F w) ^ (m w + 2 k)`, where `det₊` and `det₋` are |
| 18 | the principal minors on the basis vectors of `V` of sign `1` and `-1`. If the rank of `W'` is |
| 19 | `2 (k + q')`, with `q'` its number of negative signs, the maximal compact subgroup of `U(V')` fixes |
| 20 | the determinant vectors of `(W', V')` in the Weil representation of weight `k + m`, and the cone |
| 21 | integral, on either side of the summation formula on the line, sends a suitable one to any given |
| 22 | multiple of a determinant vector of `(W, V)`. For `V = 0` the determinant vector is the vacuum. |
| 23 | |
| 24 | * `New.Exchange.slice_polyVector_apply`: in the mixed model of an adapted splitting, the slice of |
| 25 | the Fock vector of a polynomial in the positive coordinates is its value at a point of the frame. |
| 26 | * `New.Exchange.detVector`: the determinant vector. |
| 27 | * `New.Exchange.realPairWeil_detVector`: the maximal compact subgroup of the target group fixes it. |
| 28 | * `New.Exchange.coneIntegrand_detVector`: the cone integrand, in either model, of the determinant |
| 29 | vector of `liftFrame A X F` is an explicit positive function times the determinant vector of `F`. |
| 30 | * `New.Exchange.exists_integral_coneIntegrand_detVector`: every multiple of a determinant vector is |
| 31 | a cone integral of a multiple of a determinant vector. |
| 32 | |
| 33 | Notions from other files: |
| 34 | * `New.Fock.polyVector`: the Fock vector x ↦ P(ζ(x))·exp(−|x|²/2) of a polynomial P, where ζ(x)_i is |
| 35 | x̄_i at positive and x_i at negative coordinates. |
| 36 | * `New.Fock.MixedModel`: a decomposition y = La + Iw + Kb of the large space, with a map `slice a` |
| 37 | from the large Fock space to the small one. |
| 38 | * `Splitting.IsAdapted 1 b`: the adelic frame `D.frameAt 1 b = (l b*⁻¹, k b, ι)` of a splitting |
| 39 | `D` has orthonormal columns at the infinite places and integral entries at the finite ones. |
| 40 | * `New.Exchange.coneIntegrand`: the integrand of the cone integral, `lineTermReal A X β a` applied |
| 41 | to the translate of a vector by the compact part, times a character and a power of `|a|`. |
| 42 | * `principalMinor y p`: the determinant of the block of `y` on the indices that satisfy `p`. |
| 43 | |
| 44 | ## Relation to the literature |
| 45 | |
| 46 | Known; see `Lib.Weil.MixedModel.ZeroTerm` for sources. |
| 47 | -/ |
| 48 | |
| 49 | @[expose] public section |
| 50 | |
| 51 | noncomputable section |
| 52 | |
| 53 | namespace New.Exchange |
| 54 | |
| 55 | open Matrix MeasureTheory Complex WeilData Fock Space Splitting MvPolynomial Finset Fintype |
| 56 | Heisenberg IsVacuum MixedModel Prod |
| 57 | |
| 58 | open NumberField (InfinitePlace) |
| 59 | |
| 60 | section Frame |
| 61 | |
| 62 | variable {E : Type} [Field E] [CMType E] [WeilData E] {n n' r : Type} [Fintype n] [DecidableEq n] |
| 63 | [Fintype n'] [DecidableEq n'] [Fintype r] [DecidableEq r] {s : n → ℤˣ} {s' : n' → ℤˣ} |
| 64 | {W : Space E n s} {W' : Space E n' s'} {D : W.Splitting W' r} |
| 65 | |
| 66 | variable {b : GL r (𝔸 E)} |
| 67 | |
| 68 | omit [WeilData E] in |
| 69 | /-- Let `D` split `W` as `W'` plus hyperbolic planes indexed by `r`, and let it be adapted at `1` |
| 70 | to `b`: at each infinite place `w` the frame `D.frameAt 1 b` of `W` has orthonormal columns (and it |
| 71 | is integral at the finite places). This frame is square, so its rows are orthonormal as well. -/ |
| 72 | lemma frameAt_real_mul_conjTranspose (h : D.IsAdapted 1 b) (w : InfinitePlace E) : |
| 73 | atRealPlace (D.frameAt 1 b) w * (atRealPlace (D.frameAt 1 b) w)ᴴ = 1 := by |
| 74 | obtain ⟨h_orthonormal, -⟩ : IsOrthoIntegral (D.frameAt 1 b) := h |
| 75 | exact (mul_eq_one_comm_of_card_eq ((r ⊕ r) ⊕ n') n ℂ (by simp +arith [D.card_eq])).1 |
| 76 | (h_orthonormal w) |
| 77 | |
| 78 | omit [WeilData E] in |
| 79 | /-- Let `D` split `W` as `W'` plus hyperbolic planes indexed by `r`, with an adapted frame |
| 80 | `F = D.frameAt 1 b`. At an infinite place `w`, with `S` the diagonal matrix of the signs `s` of |
| 81 | `W`, we have `S F = F T`, where `T` is the block diagonal matrix of the exchange of the two lines of |
| 82 | each plane and of the signs `s'` of `W'`. -/ |
| 83 | lemma signMatrix_mul_frameAt_real (h : D.IsAdapted 1 b) (w : InfinitePlace E) : |
| 84 | signMatrix s * atRealPlace (D.frameAt 1 b) w = atRealPlace (D.frameAt 1 b) w * |
| 85 | fromBlocks (n := r ⊕ r) (fromBlocks 0 1 1 0) 0 0 (signMatrix s') := by |
| 86 | have h_gram : (atRealPlace (D.frameAt 1 b) w)ᴴ * signMatrix s * atRealPlace (D.frameAt 1 b) w = |
| 87 | fromBlocks (n := r ⊕ r) (fromBlocks 0 1 1 0) 0 0 (signMatrix s') := by |
| 88 | rw [gram_atRealPlace, gram_frameAt] |
| 89 | simp [stdForm, signMatrix, fromBlocks_map] |
| 90 | simp [← h_gram, ← Matrix.mul_assoc, frameAt_real_mul_conjTranspose h] |
| 91 | |
| 92 | omit [Fintype n] in |
| 93 | /-- The projection `posProj s` on the coordinates of sign `1` is `(1 + signMatrix s) / 2`, where |
| 94 | `signMatrix s` is the diagonal matrix of the signs. -/ |
| 95 | lemma posProj_eq : posProj s = (2⁻¹ : ℂ) • (1 + signMatrix s) := by |
| 96 | rw [signMatrix_eq_posProj_sub] |
| 97 | module |
| 98 | |
| 99 | /-- The vector `L a + I z + K c` with coordinates `a`, `z`, `c` in the directions `L`, `I`, `K` of |
| 100 | the real mixed model of a splitting `D` adapted at `1` to `b`. -/ |
| 101 | def framePoint (h : D.IsAdapted 1 b) (a : InfinitePlace E × r → ℂ) (z : InfinitePlace E × n' → ℂ) |
| 102 | (c : InfinitePlace E × r → ℂ) : InfinitePlace E × n → ℂ := |
| 103 | h.mixedModel.L *ᵥ a + h.mixedModel.I *ᵥ z + h.mixedModel.K *ᵥ c |
| 104 | |
| 105 | /-- Let `D.frameAt 1 b` be an adapted frame. The point `framePoint h a z c`, which is |
| 106 | `L a + I z + K c`, is the image under the infinite components `realMatrix` of this frame of its |
| 107 | three blocks of coordinates, put side by side at each place in the order `a`, `c`, `z`. -/ |
| 108 | lemma framePoint_eq_mulVec (h : D.IsAdapted 1 b) (a : InfinitePlace E × r → ℂ) |
| 109 | (z : InfinitePlace E × n' → ℂ) (c : InfinitePlace E × r → ℂ) : |
| 110 | framePoint h a z c = realMatrix (D.frameAt 1 b) *ᵥ |
| 111 | fun ((w, i) : InfinitePlace E × ((r ⊕ r) ⊕ n')) ↦ |
| 112 | (vecToMatrix a w ⊕ᵥ vecToMatrix c w ⊕ᵥ vecToMatrix z w) i := by |
| 113 | ext ⟨w, i⟩ |
| 114 | simpa [vecToMatrix, framePoint, IsAdapted.mixedModel, mulVec, dotProduct, sum_prod_type, |
| 115 | Splitting.frameAt, realMatrix, blockDiagonal, G.adeleMatrix_one] using add_right_comm .. |
| 116 | |
| 117 | /-- At the infinite place `w`, the point `framePoint h a z c`, which is `L a + I z + K c`, is the |
| 118 | image under the component at `w` of the adapted frame `D.frameAt 1 b` of the three blocks of |
| 119 | coordinates at `w`. -/ |
| 120 | lemma framePoint_apply (h : D.IsAdapted 1 b) (a : InfinitePlace E × r → ℂ) |
| 121 | (z : InfinitePlace E × n' → ℂ) (c : InfinitePlace E × r → ℂ) (w : InfinitePlace E) (l : n) : |
| 122 | framePoint h a z c (w, l) = |
| 123 | (atRealPlace (D.frameAt 1 b) w *ᵥ (vecToMatrix a w ⊕ᵥ vecToMatrix c w ⊕ᵥ vecToMatrix z w)) |
| 124 | l := by |
| 125 | rw [framePoint_eq_mulVec h, realMatrix_mulVec_apply] |
| 126 | rfl |
| 127 | |
| 128 | /-- The projection `posProj` on the positive coordinates sends the point `L a + I z + K c` |
| 129 | (`framePoint h a z c`) to the point with `a` and `c` replaced by their midpoint and `z` by its |
| 130 | positive projection, because the matrix of signs exchanges `L` and `K`. -/ |
| 131 | lemma posProj_mulVec_framePoint (h : D.IsAdapted 1 b) (a : InfinitePlace E × r → ℂ) |
| 132 | (z : InfinitePlace E × n' → ℂ) (c : InfinitePlace E × r → ℂ) : |
| 133 | posProj (realSigns E s) *ᵥ framePoint h a z c = |
| 134 | framePoint h (midpoint ℂ a c) (posProj (realSigns E s') *ᵥ z) (midpoint ℂ a c) := by |
| 135 | ext ⟨w, l⟩ |
| 136 | let T : Matrix ((r ⊕ r) ⊕ n') ((r ⊕ r) ⊕ n') ℂ := |
| 137 | fromBlocks (n := r ⊕ r) (fromBlocks 0 1 1 0) 0 0 (signMatrix s') |
| 138 | let x : (r ⊕ r) ⊕ n' → ℂ := vecToMatrix a w ⊕ᵥ vecToMatrix c w ⊕ᵥ vecToMatrix z w |
| 139 | -- At the place `w` the projection `(1 + signMatrix s) / 2` is `(1 + T) / 2` in the frame. |
| 140 | have h_mul : posProj s * atRealPlace (D.frameAt 1 b) w = |
| 141 | atRealPlace (D.frameAt 1 b) w * (2⁻¹ : ℂ) • (1 + T) := by |
| 142 | simp [posProj_eq, T, Matrix.add_mul, Matrix.mul_add, signMatrix_mul_frameAt_real h] |
| 143 | have h_half : ((2⁻¹ : ℂ) • (1 + T)) *ᵥ x = |
| 144 | (vecToMatrix (midpoint ℂ a c) w ⊕ᵥ vecToMatrix (midpoint ℂ a c) w) ⊕ᵥ |
| 145 | vecToMatrix (posProj (realSigns E s') *ᵥ z) w := by |
| 146 | ext ((i | i) | i) <;> simp [T, x, vecToMatrix, midpoint_eq_smul_add, posProj_eq, signMatrix, |
| 147 | smul_mulVec, add_mulVec, fromBlocks_mulVec, mulVec_diagonal, mul_add, add_comm] |
| 148 | calc (posProj (realSigns E s) *ᵥ framePoint h a z c) (w, l) |
| 149 | = ((posProj s * atRealPlace (D.frameAt 1 b) w) *ᵥ x) l := by |
| 150 | rw [← mulVec_mulVec, posProj, posProj, mulVec_diagonal, mulVec_diagonal, framePoint_apply h] |
| 151 | _ = framePoint h (midpoint ℂ a c) (posProj (realSigns E s') *ᵥ z) (midpoint ℂ a c) (w, l) := by |
| 152 | rw [h_mul, ← mulVec_mulVec, h_half, framePoint_apply h] |
| 153 | |
| 154 | /-- The matrix of signs exchanges `L` and `K`, so on a point `L a + I z + K a` |
| 155 | (`framePoint h a z a`) it acts through the middle coordinate `z` only. -/ |
| 156 | lemma signMatrix_mulVec_framePoint (h : D.IsAdapted 1 b) (a : InfinitePlace E × r → ℂ) |
| 157 | (z : InfinitePlace E × n' → ℂ) : |
| 158 | signMatrix (realSigns E s) *ᵥ framePoint h a z a = |
| 159 | framePoint h a (signMatrix (realSigns E s') *ᵥ z) a := by |
| 160 | simp only [signMatrix_eq_posProj_sub, sub_mulVec, one_mulVec, posProj_mulVec_framePoint h, |
| 161 | midpoint_self] |
| 162 | simp only [framePoint, mulVec_sub] |
| 163 | abel |
| 164 | |
| 165 | /-- The difference of two points `L a + I z + K c` (`framePoint h a z c`) is the point of the |
| 166 | differences of their coordinates. -/ |
| 167 | lemma framePoint_sub (h : D.IsAdapted 1 b) (a a' c c' : InfinitePlace E × r → ℂ) |
| 168 | (z z' : InfinitePlace E × n' → ℂ) : |
| 169 | framePoint h a z c - framePoint h a' z' c' = framePoint h (a - a') (z - z') (c - c') := by |
| 170 | simp only [framePoint, mulVec_sub] |
| 171 | abel |
| 172 | |
| 173 | /-- The columns of `L`, `K` and `I` of an adapted splitting are orthonormal, so the inner product of |
| 174 | the points `L a + I u + K a` and `L c + I z + K c` (both `framePoint`) is `2 ⟨a, c⟩ + ⟨u, z⟩`. -/ |
| 175 | lemma star_framePoint_dotProduct (h : D.IsAdapted 1 b) (a c : InfinitePlace E × r → ℂ) |
| 176 | (u z : InfinitePlace E × n' → ℂ) : |
| 177 | star (framePoint h a u a) ⬝ᵥ framePoint h c z c = 2 * star a ⬝ᵥ c + star u ⬝ᵥ z := by |
| 178 | rw [framePoint_eq_mulVec h, framePoint_eq_mulVec h, star_mulVec_dotProduct, mulVec_mulVec, |
| 179 | conjTranspose_realMatrix_mul_self _ h, one_mulVec] |
| 180 | -- It remains to split the sum over the three blocks of coordinates. |
| 181 | simp [vecToMatrix, sum_prod_type, sum_add_distrib, two_mul, dotProduct] |
| 182 | |
| 183 | /-- A vector `y` in the positive coordinates (fixed by `posProj`) is a point `L c + I z + K c` |
| 184 | (`framePoint`) whose middle coordinate `z` is positive. -/ |
| 185 | lemma exists_framePoint_eq_of_posProj_eq (h : D.IsAdapted 1 b) {y : InfinitePlace E × n → ℂ} |
| 186 | (hy : posProj (realSigns E s) *ᵥ y = y) : |
| 187 | ∃ (c : InfinitePlace E × r → ℂ) (z : InfinitePlace E × n' → ℂ), |
| 188 | framePoint h c (posProj (realSigns E s') *ᵥ z) c = y := by |
| 189 | obtain ⟨A, Z, C, h_span⟩ := h.mixedModel.exists_decomp |
| 190 | -- In the coordinates of `y` in the frame, projecting takes the midpoint of those on `L` and `K`. |
| 191 | have h_decomp : framePoint h (A *ᵥ y) (Z *ᵥ y) (C *ᵥ y) = y := h_span y |
| 192 | exact ⟨midpoint ℂ (A *ᵥ y) (C *ᵥ y), Z *ᵥ y, by rw [← posProj_mulVec_framePoint h, h_decomp, hy]⟩ |
| 193 | |
| 194 | /-- Let `y` be a vector in the positive coordinates, and translate the vacuum (the Gaussian) by it |
| 195 | with the Heisenberg operator `realHeisenbergOp y`. The value at `u` of the slice at `a` of this |
| 196 | translate, in the mixed model of the adapted splitting, is the value of the translate at the point |
| 197 | `framePoint h (-a) u (-a)`, that is `-L a + I u - K a`. -/ |
| 198 | lemma slice_realHeisenbergOp_vacElem_apply (h : D.IsAdapted 1 b) (a : InfinitePlace E × r → ℂ) |
| 199 | (u : InfinitePlace E × n' → ℂ) {y : InfinitePlace E × n → ℂ} |
| 200 | (hy : posProj (realSigns E s) *ᵥ y = y) : |
| 201 | h.mixedModel.slice a (realHeisenbergOp y vacElem) u = |
| 202 | (realHeisenbergOp y vacElem : fockSpace (realSigns E s)) (framePoint h (-a) u (-a)) := by |
| 203 | obtain ⟨c, z₀, rfl⟩ := exists_framePoint_eq_of_posProj_eq h hy |
| 204 | set z : InfinitePlace E × n' → ℂ := posProj (realSigns E s') *ᵥ z₀ |
| 205 | have h_slice : h.mixedModel.slice a (realHeisenbergOp (framePoint h c z c) vacElem) u = |
| 206 | (realHeisenberg 1).β (a + (a + c)) c * cexp (-(star (a + c) ⬝ᵥ (a + c))) * |
| 207 | ((realHeisenberg (realSigns E s')).β z u * realVac (u - z)) := by |
| 208 | rw [framePoint, slice_realHeisenbergOp, two_nsmul, add_assoc a a c] |
| 209 | simp [slice_vac, IsVacuum.smul_apply, heisenbergOp_apply, vacElem_apply, mul_assoc] |
| 210 | -- Both sides are exponentials. It remains to compare the exponents. |
| 211 | rw [h_slice, heisenbergOp_apply, vacElem_apply, framePoint_sub] |
| 212 | simp only [realHeisenberg, realVac, signMatrix_mulVec_framePoint h, star_framePoint_dotProduct h, |
| 213 | signMatrix_one, one_mulVec, ← exp_add] |
| 214 | congr 1 |
| 215 | simp only [star_add, star_sub, star_neg, add_dotProduct, dotProduct_add, sub_dotProduct, |
| 216 | dotProduct_sub, neg_dotProduct, dotProduct_neg] |
| 217 | ring |
| 218 | |
| 219 | /-- Let `e` split the coordinates `ι`, with signs `ε`, into `ι₁` and `ι₂`. The external product |
| 220 | `realBoxProd` of the translate of the vacuum by `y` with the vacuum is the translate of the vacuum |
| 221 | by the vector `(y, 0)`. -/ |
| 222 | lemma realBoxProd_realHeisenbergOp_vacVector {ι ι₁ ι₂ : Type} [Fintype ι] [DecidableEq ι] |
| 223 | [Fintype ι₁] [DecidableEq ι₁] [Fintype ι₂] [DecidableEq ι₂] {ε : ι → ℤˣ} {ε₁ : ι₁ → ℤˣ} |
| 224 | {ε₂ : ι₂ → ℤˣ} {e : ι₁ ⊕ ι₂ ≃ ι} (he : ε ∘ e = ε₁ ⊕ᵥ ε₂) (y : ι₁ → ℂ) : |
| 225 | realBoxProd he (realHeisenbergOp y vacVector) vacVector = |
| 226 | realHeisenbergOp ((realCoordSum he).equiv (y, 0)) vacVector := by |
| 227 | change (realCoordSum he).tmul (heisenbergOp y vacElem) vacElem = |
| 228 | heisenbergOp ((realCoordSum he).equiv (y, 0)) vacElem |
| 229 | simp [← OrthogonalSum.tmul_vacElem (realCoordSum he), OrthogonalSum.heisenbergOp_tmul] |
| 230 | |
| 231 | /-- Let `P` be a polynomial in the positive coordinates and `polyVector` its Fock vector |
| 232 | `P(ζ) exp(-|·|² / 2)`. In the mixed model of an adapted splitting, the value at `u` of the slice at |
| 233 | `a` of this vector is its value at the point `framePoint h (-a) u (-a)`, that is |
| 234 | `-L a + I u - K a`. -/ |
| 235 | lemma slice_polyVector_apply (h : D.IsAdapted 1 b) (a : InfinitePlace E × r → ℂ) |
| 236 | (u : InfinitePlace E × n' → ℂ) |
| 237 | (P : MvPolynomial {i : InfinitePlace E × n // realSigns E s i = 1} ℂ) : |
| 238 | h.mixedModel.slice a (polyVector (realSigns E s) (rename Subtype.val P)) u = |
| 239 | polyVector (realSigns E s) (rename Subtype.val P) (framePoint h (-a) u (-a)) := by |
| 240 | -- Both sides are bounded functionals on the Fock space of the positive coordinates, tensored |
| 241 | -- with the vacuum. So it is enough to treat the translates of the vacuum by positive vectors. |
| 242 | have h_signs : realSigns E s ∘ Equiv.sumCompl (fun i ↦ realSigns E s i = 1) = |
| 243 | (realSigns E s ∘ Subtype.val) ⊕ᵥ (realSigns E s ∘ Subtype.val) := |
| 244 | Sum.comp_elim (realSigns E s) Subtype.val Subtype.val |
| 245 | let Φ : fockSpace (fun i : {i // realSigns E s i = 1} ↦ realSigns E s i) →L[ℂ] ℂ := |
| 246 | (valueAt u ∘L h.mixedModel.slice a - valueAt (framePoint h (-a) u (-a))) ∘L |
| 247 | (realBoxProd h_signs).flip Fock.vacVector |
| 248 | have h_functional : Φ = 0 := by |
| 249 | refine hom_ext fun y ↦ ?_ |
| 250 | have h_positive : posProj (realSigns E s) *ᵥ (realCoordSum h_signs).equiv (y, 0) = |
| 251 | (realCoordSum h_signs).equiv (y, 0) := by |
| 252 | ext i |
| 253 | by_cases hi : realSigns E s i = 1 <;> simp [realCoordSum, posProj, mulVec_diagonal, hi] |
| 254 | simp [Φ, valueAt_apply, realBoxProd_realHeisenbergOp_vacVector, |
| 255 | slice_realHeisenbergOp_vacElem_apply h a u h_positive] |
| 256 | have h_box : realBoxProd h_signs |
| 257 | (polyVector (fun i : {i // realSigns E s i = 1} ↦ realSigns E s i) P) vacVector = |
| 258 | polyVector (realSigns E s) (rename Subtype.val P) := by |
| 259 | simp [← polyVector_one, realBoxProd_polyVector, Function.comp_def] |
| 260 | simpa [Φ, h_box, sub_eq_zero, valueAt_apply] using DFunLike.congr_fun h_functional |
| 261 | (polyVector (fun i : {i // realSigns E s i = 1} ↦ realSigns E s i) P) |
| 262 | |
| 263 | end Frame |
| 264 | |
| 265 | section LinearAlgebra |
| 266 | |
| 267 | variable {r r' : Type} [Fintype r] [DecidableEq r] [Fintype r'] [DecidableEq r'] {t : r → ℤˣ} |
| 268 | {t' : r' → ℤˣ} |
| 269 | |
| 270 | /-- Two signs have product `1` exactly when they are equal. -/ |
| 271 | lemma units_int_mul_eq_one_iff (a b : ℤˣ) : a * b = 1 ↔ a = b := by |
| 272 | revert a b |
| 273 | decide |
| 274 | |
| 275 | omit [Fintype r] in |
| 276 | /-- The diagonal projection on the indices of sign `σ` is `(1 + σ S) / 2`, with `S` the matrix of |
| 277 | signs. -/ |
| 278 | lemma diagonal_sign_eq (t : r → ℤˣ) (σ : ℤˣ) : |
| 279 | (diagonal fun i : r ↦ if t i = σ then (1 : ℂ) else 0) = |
| 280 | (2⁻¹ : ℂ) • (1 + (σ : ℂ) • signMatrix t) := by |
| 281 | ext i j |
| 282 | by_cases hij : i = j |
| 283 | · subst hij |
| 284 | obtain rfl | rfl := Int.units_eq_one_or σ <;> obtain h | h := Int.units_eq_one_or (t i) <;> |
| 285 | simp [signMatrix, h] <;> norm_num |
| 286 | · simp [signMatrix, hij] |
| 287 | |
| 288 | /-- Let `P` be unitary and carry the signs `t'` to the exchange of the two lines of a hyperbolic |
| 289 | plane and the signs `t`. The principal minor on the indices of sign `σ` of the conjugate by `P` of |
| 290 | the block matrix of the scalar `a` on the plane and `M` is `a` times that of `M`. -/ |
| 291 | lemma principalMinor_conj_fromBlocks {P : Matrix r' ((Unit ⊕ Unit) ⊕ r) ℂ} |
| 292 | (hP : P * Pᴴ = 1) (hP' : Pᴴ * P = 1) |
| 293 | (h_sign : signMatrix t' * P = |
| 294 | P * fromBlocks (n := Unit ⊕ Unit) (fromBlocks 0 1 1 0) 0 0 (signMatrix t)) |
| 295 | (a : ℂ) (M : Matrix r r ℂ) (σ : ℤˣ) : |
| 296 | principalMinor (P * fromBlocks (a • (1 : Matrix (Unit ⊕ Unit) (Unit ⊕ Unit) ℂ)) 0 0 M * Pᴴ) |
| 297 | (t' · = σ) = a * principalMinor M (t · = σ) := by |
| 298 | set e : Matrix (Unit ⊕ Unit) (Unit ⊕ Unit) ℂ := |
| 299 | (2⁻¹ : ℂ) • (1 + (σ : ℂ) • fromBlocks 0 1 1 0) with he |
| 300 | set Δ : Matrix r r ℂ := diagonal fun i : r ↦ if t i = σ then (1 : ℂ) else 0 with hΔ |
| 301 | set D : Matrix ((Unit ⊕ Unit) ⊕ r) ((Unit ⊕ Unit) ⊕ r) ℂ := fromBlocks (a • 1) 0 0 M with hD |
| 302 | set Θ : Matrix ((Unit ⊕ Unit) ⊕ r) ((Unit ⊕ Unit) ⊕ r) ℂ := fromBlocks e 0 0 Δ with hΘ |
| 303 | have h_one : (1 : Matrix ((Unit ⊕ Unit) ⊕ r) ((Unit ⊕ Unit) ⊕ r) ℂ) = fromBlocks 1 0 0 1 := |
| 304 | fromBlocks_one.symm |
| 305 | -- In the frame `P` the projection on the indices of sign `σ` is block diagonal. |
| 306 | have h_proj : (diagonal fun i : r' ↦ if t' i = σ then (1 : ℂ) else 0) * P = P * Θ := by |
| 307 | have h_block : Θ = (2⁻¹ : ℂ) • (1 + (σ : ℂ) • |
| 308 | fromBlocks (n := Unit ⊕ Unit) (fromBlocks 0 1 1 0) 0 0 (signMatrix t)) := by |
| 309 | rw [hΘ, hΔ, diagonal_sign_eq, he] |
| 310 | ext (i | i) (j | j) <;> simp [Matrix.one_apply, mul_add] |
| 311 | rw [diagonal_sign_eq, h_block] |
| 312 | simp only [Matrix.smul_mul, Matrix.mul_smul, Matrix.add_mul, Matrix.mul_add, Matrix.one_mul, |
| 313 | Matrix.mul_one, h_sign] |
| 314 | have h_conj : 1 - (diagonal fun i : r' ↦ if t' i = σ then (1 : ℂ) else 0) * (1 - P * D * Pᴴ) = |
| 315 | P * fromBlocks (1 - e * (1 - a • 1)) 0 0 (1 - Δ * (1 - M)) * Pᴴ := by |
| 316 | have h_blocks : fromBlocks (1 - e * (1 - a • 1)) 0 0 (1 - Δ * (1 - M)) = 1 - Θ * (1 - D) := by |
| 317 | simp only [hΘ, hD, h_one, sub_eq_add_neg, fromBlocks_neg, fromBlocks_add, fromBlocks_multiply] |
| 318 | simp |
| 319 | have h_sub : 1 - P * D * Pᴴ = P * (1 - D) * Pᴴ := by |
| 320 | rw [Matrix.mul_sub, Matrix.sub_mul, Matrix.mul_one, hP] |
| 321 | rw [h_blocks, h_sub, ← Matrix.mul_assoc, ← Matrix.mul_assoc, h_proj] |
| 322 | nth_rw 1 [← hP] |
| 323 | simp only [Matrix.mul_sub, Matrix.sub_mul, Matrix.mul_one, Matrix.mul_assoc] |
| 324 | have h_plane : (1 - e * (1 - a • 1)).det = a := by |
| 325 | rw [det_sum_unique] |
| 326 | obtain rfl | rfl := Int.units_eq_one_or σ <;> |
| 327 | simp [he, Matrix.mul_apply, Matrix.one_apply, Fintype.sum_sum_type] <;> ring |
| 328 | rw [principalMinor_eq_det, h_conj, det_conj_of_mul_eq_one hP hP', det_fromBlocks_zero₂₁, |
| 329 | h_plane, principalMinor_eq_det] |
| 330 | |
| 331 | end LinearAlgebra |
| 332 | |
| 333 | section DetVector |
| 334 | |
| 335 | variable {E : Type} [Field E] [CMType E] [WeilData E] {n r : Type} [Fintype n] [DecidableEq n] |
| 336 | [Fintype r] [DecidableEq r] |
| 337 | |
| 338 | /-- The square matrix `u₊ F` at the infinite place `w`: the positive part of the point `u` of |
| 339 | `Hom(W, V)`, an `r × n` matrix at each place, times the `n × r` matrix `F w`. -/ |
| 340 | def posCoordMatrix (s : n → ℤˣ) (t : r → ℤˣ) (F : InfinitePlace E → Matrix n r ℂ) |
| 341 | (u : InfinitePlace E × r × n → ℂ) (w : InfinitePlace E) : Matrix r r ℂ := |
| 342 | (of fun i j ↦ (posProj (realSigns E (homSigns s t)) *ᵥ u) (w, i, j)) * F w |
| 343 | |
| 344 | /-- The matrix of linear forms in the positive variables, with rows and columns indexed by the |
| 345 | basis vectors of sign `σ` of `V`, whose value at a point `u` is the block of sign `σ` of the |
| 346 | conjugate transpose of `posCoordMatrix s t F u w`. -/ |
| 347 | def detPolyMatrix (s : n → ℤˣ) (t : r → ℤˣ) (F : InfinitePlace E → Matrix n r ℂ) |
| 348 | (w : InfinitePlace E) (σ : ℤˣ) : Matrix {i : r // t i = σ} {i : r // t i = σ} |
| 349 | (MvPolynomial {c : InfinitePlace E × r × n // realSigns E (homSigns s t) c = 1} ℂ) := |
| 350 | of fun l i ↦ ∑ j : {j : n // s j = σ}, |
| 351 | C (star (F w j l)) * X ⟨(w, i, j), by simp [pairSign, i.property, j.property]⟩ |
| 352 | |
| 353 | /-- The determinant polynomial: the product over the infinite places `w` of the `m w`-th power of |
| 354 | the determinant of `detPolyMatrix` on the positive block and the `(m w + 2 k)`-th power of that on |
| 355 | the negative block. -/ |
| 356 | def detPoly (s : n → ℤˣ) (t : r → ℤˣ) (k : ℕ) (m : InfinitePlace E → ℕ) |
| 357 | (F : InfinitePlace E → Matrix n r ℂ) : |
| 358 | MvPolynomial {c : InfinitePlace E × r × n // realSigns E (homSigns s t) c = 1} ℂ := |
| 359 | ∏ w : InfinitePlace E, (detPolyMatrix s t F w 1).det ^ m w * |
| 360 | (detPolyMatrix s t F w (-1)).det ^ (m w + 2 * k) |
| 361 | |
| 362 | /-- The determinant vector: the Fock vector of the determinant polynomial. -/ |
| 363 | def detVector (s : n → ℤˣ) (t : r → ℤˣ) (k : ℕ) (m : InfinitePlace E → ℕ) |
| 364 | (F : InfinitePlace E → Matrix n r ℂ) : PairFock E s t := |
| 365 | polyVector (realSigns E (homSigns s t)) (rename Subtype.val (detPoly s t k m F)) |
| 366 | |
| 367 | variable {s : n → ℤˣ} {t : r → ℤˣ} |
| 368 | |
| 369 | omit [WeilData E] in |
| 370 | /-- The value of the determinant vector at `u`: `realVac u` times the conjugate of the product of |
| 371 | the powers of the principal minors of `posCoordMatrix s t F u w` on the two blocks of signs. -/ |
| 372 | lemma detVector_apply (k : ℕ) (m : InfinitePlace E → ℕ) (F : InfinitePlace E → Matrix n r ℂ) |
| 373 | (u : InfinitePlace E × r × n → ℂ) : |
| 374 | detVector s t k m F u = |
| 375 | star (∏ w : InfinitePlace E, principalMinor (posCoordMatrix s t F u w) (t · = 1) ^ m w * |
| 376 | principalMinor (posCoordMatrix s t F u w) (t · = -1) ^ (m w + 2 * k)) * realVac u := by |
| 377 | have h_block (w : InfinitePlace E) (σ : ℤˣ) : |
| 378 | (eval (holomorphicCoord (realSigns E (homSigns s t)) u ∘ Subtype.val)).mapMatrix |
| 379 | (detPolyMatrix s t F w σ) = |
| 380 | toSquareBlockProp (posCoordMatrix s t F u w)ᴴ (t · = σ) := by |
| 381 | ext l i |
| 382 | have h_split := Fintype.sum_subtype_add_sum_subtype (fun j : n ↦ s j = σ) fun j : n ↦ |
| 383 | (starRingEnd ℂ) (F w j l) * (starRingEnd ℂ) (if σ * s j = 1 then u (w, i, j) else 0) |
| 384 | have h_zero : ∑ j : {j : n // ¬s j = σ}, |
| 385 | (starRingEnd ℂ) (F w j l) * (starRingEnd ℂ) (if σ * s j = 1 then u (w, i, j) else 0) = 0 := |
| 386 | Fintype.sum_eq_zero _ fun j ↦ by simp [units_int_mul_eq_one_iff, Ne.symm j.property] |
| 387 | rw [h_zero, add_zero] at h_split |
| 388 | simp [detPolyMatrix, posCoordMatrix, toSquareBlockProp, Matrix.mul_apply, holomorphicCoord_eq, |
| 389 | posProj, mulVec_diagonal, pairSign, i.property, mul_comm, ← h_split, |
| 390 | fun j : {j // s j = σ} ↦ j.property] |
| 391 | have h_minor (w : InfinitePlace E) (σ : ℤˣ) : |
| 392 | eval (holomorphicCoord (realSigns E (homSigns s t)) u ∘ Subtype.val) |
| 393 | (detPolyMatrix s t F w σ).det = |
| 394 | star (principalMinor (posCoordMatrix s t F u w) (t · = σ)) := by |
| 395 | rw [RingHom.map_det, h_block, ← principalMinor, principalMinor_conjTranspose] |
| 396 | rfl |
| 397 | simp [detVector, detPoly, polyVector_apply, eval_rename, h_minor] |
| 398 | |
| 399 | omit [WeilData E] [CMType E] [DecidableEq n] in |
| 400 | /-- A substitution that multiplies the rows of the positive variables by a block diagonal matrix |
| 401 | `g w` at each place multiplies the determinant of `detPolyMatrix` on the block of sign `σ` by the |
| 402 | principal minor of `g w` on that block. -/ |
| 403 | lemma aeval_det_detPolyMatrix (F : InfinitePlace E → Matrix n r ℂ) {g : GInf E t} |
| 404 | (hg : ∀ w : InfinitePlace E, (g w : Matrix r r ℂ) ∈ blockDiagAlg t) |
| 405 | {sub : InfinitePlace E × r × n → MvPolynomial (InfinitePlace E × r × n) ℂ} |
| 406 | (h_sub : ∀ (w : InfinitePlace E) (a : r) (b : n), t a = s b → |
| 407 | sub (w, a, b) = ∑ i : r, (g w : Matrix r r ℂ) i a • X (w, i, b)) |
| 408 | (w : InfinitePlace E) (σ : ℤˣ) : |
| 409 | aeval sub (rename Subtype.val (detPolyMatrix s t F w σ).det) = |
| 410 | C (principalMinor (g w) (t · = σ)) * rename Subtype.val (detPolyMatrix s t F w σ).det := by |
| 411 | have h_matrix : (aeval (sub ∘ Subtype.val)).mapMatrix (detPolyMatrix s t F w σ) = |
| 412 | (rename Subtype.val).mapMatrix (detPolyMatrix s t F w σ) * |
| 413 | (toSquareBlockProp (g w : Matrix r r ℂ) (t · = σ)).map C := by |
| 414 | refine Matrix.ext fun l a ↦ ?_ |
| 415 | have h_var (j : {j : n // s j = σ}) : sub (w, a, j) = |
| 416 | ∑ i : {i : r // t i = σ}, C ((g w : Matrix r r ℂ) i a) * X (w, (i : r), (j : n)) := by |
| 417 | have h_split := Fintype.sum_subtype_add_sum_subtype (fun i : r ↦ t i = σ) fun i : r ↦ |
| 418 | (g w : Matrix r r ℂ) i a • (X (w, i, (j : n)) : MvPolynomial (InfinitePlace E × r × n) ℂ) |
| 419 | have h_zero : ∑ i : {i : r // ¬t i = σ}, (g w : Matrix r r ℂ) i a • |
| 420 | (X (w, (i : r), (j : n)) : MvPolynomial (InfinitePlace E × r × n) ℂ) = 0 := |
| 421 | Fintype.sum_eq_zero _ fun i ↦ by |
| 422 | rw [mem_blockDiagAlg.1 (hg w) i a (fun h ↦ i.property (h.trans a.property)), zero_smul] |
| 423 | rw [h_sub w a j (a.property.trans j.property.symm), ← h_split, h_zero, add_zero] |
| 424 | simp [smul_eq_C_mul] |
| 425 | simp [detPolyMatrix, Matrix.mul_apply, toSquareBlockProp, h_var, Finset.mul_sum, Finset.sum_mul] |
| 426 | rw [Finset.sum_comm] |
| 427 | exact Fintype.sum_congr _ _ fun i ↦ Fintype.sum_congr _ _ fun j ↦ by ring |
| 428 | rw [aeval_rename, AlgHom.map_det, h_matrix, det_mul, ← AlgHom.map_det, ← RingHom.mapMatrix_apply, |
| 429 | ← RingHom.map_det, mul_comm] |
| 430 | rfl |
| 431 | |
| 432 | omit [WeilData E] in |
| 433 | /-- Let `card n = 2 (k + q)`, with `q` the number of negative signs of `s`. A point `g` of the |
| 434 | archimedean unitary group of `V` whose components are block diagonal for the signs `t`, acting in |
| 435 | the real Weil representation of weight `targetWeight n μ` on the target and `0` on the source, with |
| 436 | `μ w = k + m w`, fixes the determinant vector. -/ |
| 437 | lemma realPairWeil_detVector {k : ℕ} (hn : card n = 2 * (k + negCount s)) |
| 438 | (m : InfinitePlace E → ℕ) {μ : InfinitePlace E → ℤ} (hμ : ∀ w : InfinitePlace E, μ w = k + m w) |
| 439 | (F : InfinitePlace E → Matrix n r ℂ) {g : GInf E t} |
| 440 | (hg : ∀ w : InfinitePlace E, (g w : Matrix r r ℂ) ∈ blockDiagAlg t) : |
| 441 | realPairWeil (targetWeight n μ) 0 (1, g) (detVector s t k m F) = detVector s t k m F := by |
| 442 | have h_card_pos : card {i : n // s i = 1} = 2 * k + negCount s := by |
| 443 | have h_sum := negCount_neg_add (a := s) |
| 444 | have h_eq : negCount (-s) = card {i : n // s i = 1} := by simp [negCount] |
| 445 | omega |
| 446 | have h_exp_pos (w : InfinitePlace E) : |
| 447 | targetWeight n μ w - Nat.card {i : n // s i = -1} = -(m w : ℤ) := by |
| 448 | have h_half : card n / 2 = k + negCount s := by omega |
| 449 | simp [targetWeight, h_half, hμ w, negCount] |
| 450 | ring |
| 451 | have h_exp_neg (w : InfinitePlace E) : |
| 452 | targetWeight n μ w - Nat.card {i : n // s i = - -1} = -((m w + 2 * k : ℕ) : ℤ) := by |
| 453 | have h_half : card n / 2 = k + negCount s := by omega |
| 454 | simp [targetWeight, h_half, hμ w, h_card_pos] |
| 455 | ring |
| 456 | have h_ne (w : InfinitePlace E) (σ : ℤˣ) : principalMinor (g w) (t · = σ) ≠ 0 := by |
| 457 | intro h_zero |
| 458 | have h_det := det_eq_prod_principalMinor (hg w) |
| 459 | rw [Finset.prod_eq_zero (Finset.mem_univ σ) h_zero] at h_det |
| 460 | exact (g w : GL r ℂ).det_ne_zero h_det |
| 461 | have h_poly (sub : InfinitePlace E × r × n → MvPolynomial (InfinitePlace E × r × n) ℂ) |
| 462 | (h_sub : ∀ (w : InfinitePlace E) (a : r) (b : n), t a = s b → |
| 463 | sub (w, a, b) = ∑ i : r, (g w : Matrix r r ℂ) i a • X (w, i, b)) : |
| 464 | aeval sub (rename Subtype.val (detPoly s t k m F)) = |
| 465 | C (∏ w : InfinitePlace E, principalMinor (g w) (t · = 1) ^ m w * |
| 466 | principalMinor (g w) (t · = -1) ^ (m w + 2 * k)) * |
| 467 | rename Subtype.val (detPoly s t k m F) := by |
| 468 | simp only [detPoly, map_prod, map_mul, map_pow, aeval_det_detPolyMatrix F hg h_sub, mul_pow, |
| 469 | Finset.prod_mul_distrib] |
| 470 | ring |
| 471 | rw [detVector, realPairWeil_polyVector _ _ (fun w ↦ by simp) hg, h_poly] |
| 472 | swap |
| 473 | · intro w a b hab |
| 474 | simp [hab, Matrix.one_apply] |
| 475 | rw [← smul_eq_C_mul, map_smul, smul_smul] |
| 476 | have h_one : ((1 : ℤˣ) : ℤˣ) ≠ -1 := by decide |
| 477 | simp only [Pi.one_apply, OneMemClass.coe_one, Units.val_one, principalMinor_one, _root_.one_zpow, |
| 478 | mul_one, Finset.prod_pair h_one, h_exp_pos, h_exp_neg, _root_.zpow_neg, zpow_natCast] |
| 479 | rw [← Finset.prod_mul_distrib] |
| 480 | have h_factor (w : InfinitePlace E) : |
| 481 | (principalMinor (g w) (t · = 1) ^ m w)⁻¹ * |
| 482 | (principalMinor (g w) (t · = -1) ^ (m w + 2 * k))⁻¹ * |
| 483 | (principalMinor (g w) (t · = 1) ^ m w * |
| 484 | principalMinor (g w) (t · = -1) ^ (m w + 2 * k)) = 1 := by |
| 485 | have h₁ := pow_ne_zero (m w) (h_ne w 1) |
| 486 | have h₂ := pow_ne_zero (m w + 2 * k) (h_ne w (-1)) |
| 487 | field_simp |
| 488 | simp [h_factor] |
| 489 | |
| 490 | end DetVector |
| 491 | |
| 492 | section ConeIntegral |
| 493 | |
| 494 | variable {E : Type} [Field E] [CMType E] [WeilData E] {n n' r r' : Type} [Fintype n] |
| 495 | [DecidableEq n] [Fintype n'] [DecidableEq n'] [Fintype r] [DecidableEq r] [Fintype r'] |
| 496 | [DecidableEq r'] {s : n → ℤˣ} {s' : n' → ℤˣ} {t : r → ℤˣ} {t' : r' → ℤˣ} {W : Space E n s} |
| 497 | {W' : Space E n' s'} {V : Space E r t} {V' : Space E r' t'} (A : W'.Splitting W Unit) |
| 498 | (X : V'.Splitting V Unit) [IsBaseAdapted A] [IsBaseAdapted X] |
| 499 | |
| 500 | omit [WeilData E] in |
| 501 | /-- The component at an infinite place of a product of adelic matrices is the product of the |
| 502 | components. -/ |
| 503 | lemma atRealPlace_mul {a b c : Type} [Fintype b] (M : Matrix a b (𝔸 E)) (N : Matrix b c (𝔸 E)) |
| 504 | (w : InfinitePlace E) : atRealPlace (M * N) w = atRealPlace M w * atRealPlace N w := by |
| 505 | ext i j |
| 506 | simp [Matrix.mul_apply, Prod.fst_sum] |
| 507 | |
| 508 | /-- The point of the real mixed model of `lineTermSplitting` with coordinate `a w` on the line at |
| 509 | each infinite place `w` and `0` elsewhere. -/ |
| 510 | def lineCoord (n r : Type) (a : InfinitePlace E → ℂ) : InfinitePlace E × LineIndex n r → ℂ := |
| 511 | fun p ↦ a p.1 * p.2.isRight.toNat |
| 512 | |
| 513 | /-- The entries at the infinite place `w` of the point `framePoint h (-x) u (-x)`, for the adapted |
| 514 | frame `h` of `lineTermSplitting A X β` and `x` equal to `a` on the line and `0` elsewhere. -/ |
| 515 | lemma framePoint_lineTermSplitting_apply (β : Bool) (a : InfinitePlace E → ℂ) |
| 516 | (u : InfinitePlace E × r × n → ℂ) (w : InfinitePlace E) (i : r') (j : n') : |
| 517 | framePoint (isAdapted_lineTermSplitting A X β) (-lineCoord n r a) u (-lineCoord n r a) |
| 518 | (w, i, j) = |
| 519 | -(a w * ((X.lAdelic i ()).1 w * (A.lCoord () j).1 w + |
| 520 | (X.kAdelic i ()).1 w * (A.kCoord () j).1 w)) + |
| 521 | ∑ i₀ : r, ∑ j₀ : n, (X.iAdelic i i₀).1 w * u (w, i₀, j₀) * (A.iCoord j₀ j).1 w := by |
| 522 | have h_sum : ∑ i₀ : r, ∑ j₀ : n, (X.iAdelic i i₀).1 w * (A.iCoord j₀ j).1 w * u (w, i₀, j₀) = |
| 523 | ∑ i₀ : r, ∑ j₀ : n, (X.iAdelic i i₀).1 w * u (w, i₀, j₀) * (A.iCoord j₀ j).1 w := |
| 524 | Fintype.sum_congr _ _ fun _ ↦ Fintype.sum_congr _ _ fun _ ↦ by ring |
| 525 | rw [framePoint_eq_mulVec, frameAt_lineTermSplitting, ← h_sum] |
| 526 | cases β <;> simp [lineCoord, realMatrix, mulVec, dotProduct, blockDiagonal, sum_prod_type, |
| 527 | vecToMatrix, add_comm] <;> ring |
| 528 | |
| 529 | /-- The matrices `G w` of the determinant vector one floor up: minus the identification of the two |
| 530 | hyperbolic planes, plus `F w` between the images of `W` and `V`. -/ |
| 531 | def liftFrame (F : InfinitePlace E → Matrix n r ℂ) (w : InfinitePlace E) : Matrix n' r' ℂ := |
| 532 | -(atRealPlace (A.lAdelic.fromCols A.kAdelic) w * |
| 533 | (atRealPlace (X.lAdelic.fromCols X.kAdelic) w)ᴴ) + |
| 534 | atRealPlace A.iAdelic w * F w * (atRealPlace X.iAdelic w)ᴴ |
| 535 | |
| 536 | /-- At the point `-L x + I u - K x` of the mixed model of `lineTermSplitting A X β`, with `x` equal |
| 537 | to `a` on the line, the matrix `posCoordMatrix` of `liftFrame A X F` is, in the adapted frame of |
| 538 | `X`, the block matrix of the scalar `a w` on the hyperbolic plane and the matrix `posCoordMatrix` |
| 539 | of `F` at `u`. -/ |
| 540 | lemma posCoordMatrix_liftFrame (β : Bool) (a : InfinitePlace E → ℂ) |
| 541 | (F : InfinitePlace E → Matrix n r ℂ) (u : InfinitePlace E × r × n → ℂ) (w : InfinitePlace E) : |
| 542 | posCoordMatrix s' t' (liftFrame A X F) |
| 543 | (framePoint (isAdapted_lineTermSplitting A X β) (-lineCoord n r a) u (-lineCoord n r a)) |
| 544 | w = |
| 545 | atRealPlace (X.frameAt 1 1) w * |
| 546 | fromBlocks (a w • (1 : Matrix (Unit ⊕ Unit) (Unit ⊕ Unit) ℂ)) 0 0 |
| 547 | (posCoordMatrix s t F u w) * (atRealPlace (X.frameAt 1 1) w)ᴴ := by |
| 548 | set U : Matrix r n ℂ := |
| 549 | of fun i j ↦ (posProj (realSigns E (homSigns s t)) *ᵥ u) (w, i, j) with hU |
| 550 | set xp : Matrix r' (Unit ⊕ Unit) ℂ := atRealPlace (X.lAdelic.fromCols X.kAdelic) w with hxp |
| 551 | set xi : Matrix r' r ℂ := atRealPlace X.iAdelic w with hxi |
| 552 | set cp : Matrix (Unit ⊕ Unit) n' ℂ := atRealPlace (A.lCoord.fromRows A.kCoord) w with hcp |
| 553 | set ci : Matrix n n' ℂ := atRealPlace A.iCoord w with hci |
| 554 | set ap : Matrix n' (Unit ⊕ Unit) ℂ := atRealPlace (A.lAdelic.fromCols A.kAdelic) w with hap |
| 555 | set ai : Matrix n' n ℂ := atRealPlace A.iAdelic w with hai |
| 556 | -- The positive part of the point, as a matrix at the place `w`. |
| 557 | have h_point : (of fun i j ↦ (posProj (realSigns E (homSigns s' t')) *ᵥ |
| 558 | framePoint (isAdapted_lineTermSplitting A X β) (-lineCoord n r a) u (-lineCoord n r a)) |
| 559 | (w, i, j)) = -(a w • (xp * cp)) + xi * U * ci := by |
| 560 | rw [posProj_mulVec_framePoint, midpoint_self] |
| 561 | ext i j |
| 562 | simpa [framePoint_lineTermSplitting_apply, Matrix.mul_apply, Fintype.sum_sum_type, hxp, hcp, |
| 563 | hxi, hci, hU, Finset.sum_mul] using Finset.sum_comm |
| 564 | -- The coordinates of `A` are dual to its frames. |
| 565 | obtain ⟨⟨h_kk, h_kl, h_ki⟩, ⟨h_lk, h_ll, h_li⟩, h_ik, h_il, h_ii⟩ := A.coord_mul_frame |
| 566 | have h_pp : cp * ap = 1 := by |
| 567 | rw [hcp, hap, ← atRealPlace_mul, fromRows_mul_fromCols, h_ll, h_lk, h_kl, h_kk, fromBlocks_one] |
| 568 | ext i j |
| 569 | by_cases hij : i = j <;> simp [Matrix.one_apply, hij] |
| 570 | have h_pi : cp * ai = 0 := by |
| 571 | rw [hcp, hai, ← atRealPlace_mul, fromRows_mul, h_li, h_ki] |
| 572 | ext (i | i) j <;> simp |
| 573 | have h_ip : ci * ap = 0 := by |
| 574 | rw [hci, hap, ← atRealPlace_mul, Matrix.mul_fromCols, h_il, h_ik] |
| 575 | ext i (j | j) <;> simp |
| 576 | have h_one : ci * ai = 1 := by |
| 577 | rw [hci, hai, ← atRealPlace_mul, h_ii] |
| 578 | ext i j |
| 579 | by_cases hij : i = j <;> simp [Matrix.one_apply, hij] |
| 580 | have h₁ : xp * cp * (ap * xpᴴ) = xp * xpᴴ := by |
| 581 | rw [Matrix.mul_assoc, ← Matrix.mul_assoc cp, h_pp, Matrix.one_mul] |
| 582 | have h₂ : xp * cp * (ai * F w * xiᴴ) = 0 := by |
| 583 | rw [Matrix.mul_assoc xp, ← Matrix.mul_assoc cp, ← Matrix.mul_assoc cp, h_pi] |
| 584 | simp |
| 585 | have h₃ : xi * U * ci * (ap * xpᴴ) = 0 := by |
| 586 | rw [Matrix.mul_assoc _ ci, ← Matrix.mul_assoc ci, h_ip] |
| 587 | simp |
| 588 | have h₄ : xi * U * ci * (ai * F w * xiᴴ) = xi * (U * F w) * xiᴴ := by |
| 589 | simp only [Matrix.mul_assoc] |
| 590 | rw [← Matrix.mul_assoc ci ai, h_one, Matrix.one_mul] |
| 591 | have h_frame : atRealPlace (X.frameAt 1 1) w = fromCols xp xi := by |
| 592 | simp [Splitting.frameAt, G.adeleMatrix_one, fromCols_map, hxp, hxi] |
| 593 | rw [posCoordMatrix, h_point, liftFrame, ← hap, ← hxp, ← hai, ← hxi, h_frame, |
| 594 | fromCols_mul_fromBlocks, |
| 595 | conjTranspose_fromCols_eq_fromRows_conjTranspose, fromCols_mul_fromRows, posCoordMatrix] |
| 596 | simp only [Matrix.add_mul, Matrix.mul_add, Matrix.neg_mul, Matrix.mul_neg, Matrix.smul_mul, |
| 597 | h₁, h₂, h₃, h₄] |
| 598 | simp |
| 599 | rfl |
| 600 | |
| 601 | /-- The real line term `lineTermReal A X β a`, in either model `β`, sends the determinant vector of |
| 602 | `liftFrame A X F` to that of `F`, times `exp (-∑ |a w|²) ∏ conj (a w) ^ (2 (k + m w))`. -/ |
| 603 | lemma lineTermReal_detVector (β : Bool) (a : InfinitePlace E → ℂ) (k : ℕ) |
| 604 | (m : InfinitePlace E → ℕ) (F : InfinitePlace E → Matrix n r ℂ) : |
| 605 | lineTermReal A X β a (detVector s' t' k m (liftFrame A X F)) = |
| 606 | (Real.exp (-∑ w : InfinitePlace E, ‖a w‖ ^ 2) * |
| 607 | ∏ w : InfinitePlace E, star (a w) ^ (2 * (k + m w)) : ℂ) • detVector s t k m F := by |
| 608 | ext u |
| 609 | let y : InfinitePlace E × r' × n' → ℂ := |
| 610 | framePoint (isAdapted_lineTermSplitting A X β) (-lineCoord n r a) u (-lineCoord n r a) |
| 611 | -- The line term is the slice at `lineCoord n r a`, so on polynomial vectors it evaluates at `y`. |
| 612 | have h_eval (P : MvPolynomial |
| 613 | {i : InfinitePlace E × r' × n' // realSigns E (homSigns s' t') i = 1} ℂ) : |
| 614 | lineTermReal A X β a (polyVector _ (rename Subtype.val P)) u = |
| 615 | (polyVector _ (rename Subtype.val P) : PairFock E s' t') y := by |
| 616 | rw [lineTermReal] |
| 617 | exact slice_polyVector_apply (isAdapted_lineTermSplitting A X β) (lineCoord n r a) u P |
| 618 | have h_vac : realVac y = Real.exp (-∑ w : InfinitePlace E, ‖a w‖ ^ 2) * realVac u := by |
| 619 | simpa [lineTermReal, star_dotProduct_self_eq_sum, slice_vac, lineCoord, sum_prod_type, mul_pow, |
| 620 | vacElem_apply, IsVacuum.smul_apply] using (h_eval 1).symm |
| 621 | have hX : X.IsAdapted 1 1 := by |
| 622 | simp [IsAdapted, Splitting.frameAt, G.adeleMatrix_one, IsBaseAdapted.isOrthoIntegral] |
| 623 | have h_minor (w : InfinitePlace E) (σ : ℤˣ) : |
| 624 | principalMinor (posCoordMatrix s' t' (liftFrame A X F) y w) (t' · = σ) = |
| 625 | a w * principalMinor (posCoordMatrix s t F u w) (t · = σ) := by |
| 626 | rw [show posCoordMatrix s' t' (liftFrame A X F) y w = _ from |
| 627 | posCoordMatrix_liftFrame A X β a F u w] |
| 628 | exact principalMinor_conj_fromBlocks (frameAt_real_mul_conjTranspose hX w) (hX.1 w) |
| 629 | (signMatrix_mul_frameAt_real hX w) (a w) _ σ |
| 630 | have h_prod : ∏ w : InfinitePlace E, |
| 631 | (a w * principalMinor (posCoordMatrix s t F u w) (t · = 1)) ^ m w * |
| 632 | (a w * principalMinor (posCoordMatrix s t F u w) (t · = -1)) ^ (m w + 2 * k) = |
| 633 | (∏ w : InfinitePlace E, a w ^ (2 * (k + m w))) * |
| 634 | ∏ w : InfinitePlace E, principalMinor (posCoordMatrix s t F u w) (t · = 1) ^ m w * |
| 635 | principalMinor (posCoordMatrix s t F u w) (t · = -1) ^ (m w + 2 * k) := by |
| 636 | rw [← Finset.prod_mul_distrib] |
| 637 | exact Finset.prod_congr rfl fun w _ ↦ by ring |
| 638 | calc lineTermReal A X β a (detVector s' t' k m (liftFrame A X F)) u |
| 639 | = detVector s' t' k m (liftFrame A X F) y := h_eval _ |
| 640 | _ = ((Real.exp (-∑ w : InfinitePlace E, ‖a w‖ ^ 2) * |
| 641 | ∏ w : InfinitePlace E, star (a w) ^ (2 * (k + m w)) : ℂ) • detVector s t k m F) u := by |
| 642 | rw [IsVacuum.smul_apply, detVector_apply, detVector_apply] |
| 643 | simp only [h_minor, h_prod, h_vac, star_mul', star_prod, star_pow] |
| 644 | ring |
| 645 | |
| 646 | /-- Let `card n' = 2 (k + q')`, with `q'` the number of negative signs of `s'`, and `μ w = k + m w`. |
| 647 | The cone integrand at `p = (κ, a)` of the determinant vector of `liftFrame A X F`, in either model |
| 648 | `β` and for every real exponent `z`, is the determinant vector of `F` times the positive number |
| 649 | `exp (-∑ |a w|²) |a| ^ z ∏ |a w| ^ (2 (k + m w))`. -/ |
| 650 | theorem coneIntegrand_detVector (β : Bool) (z : ℝ) {k : ℕ} |
| 651 | (hn : card n' = 2 * (k + negCount s')) (m : InfinitePlace E → ℕ) {μ : InfinitePlace E → ℤ} |
| 652 | (hμ : ∀ w : InfinitePlace E, μ w = k + m w) (F : InfinitePlace E → Matrix n r ℂ) |
| 653 | (p : maxCompact E t' × (InfinitePlace E → ℂ)ˣ) : |
| 654 | coneIntegrand A X μ β z (detVector s' t' k m (liftFrame A X F)) p = |
| 655 | (Real.exp (-∑ w : InfinitePlace E, ‖p.2.val w‖ ^ 2) * ideleAbs (realIdele p.2) ^ z * |
| 656 | ∏ w : InfinitePlace E, normSq (p.2.val w) ^ (k + m w)) • detVector s t k m F := by |
| 657 | obtain ⟨κ, a⟩ := p |
| 658 | have h_phase (w : InfinitePlace E) : |
| 659 | (a.val w / ‖a.val w‖) ^ (2 * μ w) * star (a.val w) ^ (2 * (k + m w)) = |
| 660 | (normSq (a.val w) ^ (k + m w) : ℝ) := by |
| 661 | have h_sq : (a.val w / ‖a.val w‖) ^ 2 * star (a.val w) ^ 2 = normSq (a.val w) := by |
| 662 | rw [← mul_pow, div_mul_eq_mul_div, star_def, mul_conj', normSq_eq_norm_sq, ofReal_pow] |
| 663 | field_simp [piUnits_val_apply_ne_zero] |
| 664 | rw [hμ w, ofReal_pow, ← h_sq, mul_pow, ← pow_mul, ← pow_mul] |
| 665 | norm_cast |
| 666 | rw [coneIntegrand, |
| 667 | realPairWeil_detVector hn m hμ _ fun w ↦ mem_maxCompactU.1 (κ.prop.1 w trivial), |
| 668 | lineTermReal_detVector, smul_smul, ← Complex.coe_smul] |
| 669 | congr 1 |
| 670 | simp only [ofReal_mul, ofReal_prod, ← h_phase, prod_mul_distrib] |
| 671 | ring |
| 672 | |
| 673 | omit [WeilData E] in |
| 674 | /-- All weighted norms of a multiple of a determinant vector are finite. -/ |
| 675 | lemma isSchwartzVector_smul_detVector (c : ℂ) (k : ℕ) (m : InfinitePlace E → ℕ) |
| 676 | (F : InfinitePlace E → Matrix n r ℂ) : IsSchwartzVector (c • detVector s t k m F) := fun N ↦ by |
| 677 | rw [detVector] |
| 678 | simpa only [fockMoment_smul] using |
| 679 | ENNReal.mul_ne_top eNorm_ne_top (fockMoment_polyVector_ne_top N _) |
| 680 | |
| 681 | omit [WeilData E] in |
| 682 | /-- For a space `V` of rank zero the determinant vector is the vacuum. -/ |
| 683 | lemma detVector_of_isEmpty [IsEmpty r] (k : ℕ) (m : InfinitePlace E → ℕ) |
| 684 | (F : InfinitePlace E → Matrix n r ℂ) : detVector s t k m F = vacVector := by |
| 685 | simp [detVector, detPoly] |
| 686 | |
| 687 | /-- Determinant vectors are cone integrals of determinant vectors one floor up. Let |
| 688 | `card n' = 2 (k + q')`, with `q'` the number of negative signs of `s'`, let `μ w = k + m w` and |
| 689 | `0 < z`. In either model `β` of the summation formula on the line, every multiple of a determinant |
| 690 | vector of `(W, V)` is the integral of the cone integrand of a multiple of a determinant vector of |
| 691 | `(W', V')`. -/ |
| 692 | theorem exists_integral_coneIntegrand_detVector (β : Bool) {z : ℝ} (hz : 0 < z) {k : ℕ} |
| 693 | (hn : card n' = 2 * (k + negCount s')) (m : InfinitePlace E → ℕ) {μ : InfinitePlace E → ℤ} |
| 694 | (hμ : ∀ w : InfinitePlace E, μ w = k + m w) (F : InfinitePlace E → Matrix n r ℂ) (c : ℂ) : |
| 695 | ∃ c' : ℂ, ∫ p : maxCompact E t' × (InfinitePlace E → ℂ)ˣ, |
| 696 | coneIntegrand A X μ β z (c' • detVector s' t' k m (liftFrame A X F)) p |
| 697 | ∂Measure.haar.prod Measure.haar = c • detVector s t k m F := by |
| 698 | have h_smul (c' : ℂ) (p : maxCompact E t' × (InfinitePlace E → ℂ)ˣ) : |
| 699 | coneIntegrand A X μ β z (c' • detVector s' t' k m (liftFrame A X F)) p = |
| 700 | c' • coneIntegrand A X μ β z (detVector s' t' k m (liftFrame A X F)) p := by |
| 701 | simp only [coneIntegrand, map_smul] |
| 702 | rw [smul_comm] |
| 703 | by_cases h_zero : detVector s t k m F = 0 |
| 704 | · exact ⟨0, by simp_rw [h_smul, zero_smul, integral_zero, h_zero, smul_zero]⟩ |
| 705 | -- The cone integrand is a positive function `ρ` times the determinant vector of `F`. |
| 706 | let ρ (p : maxCompact E t' × (InfinitePlace E → ℂ)ˣ) : ℝ := |
| 707 | Real.exp (-∑ w : InfinitePlace E, ‖p.2.val w‖ ^ 2) * ideleAbs (realIdele p.2) ^ z * |
| 708 | ∏ w : InfinitePlace E, normSq (p.2.val w) ^ (k + m w) |
| 709 | have hρ_pos (p : maxCompact E t' × (InfinitePlace E → ℂ)ˣ) : 0 < ρ p := |
| 710 | mul_pos (mul_pos (Real.exp_pos _) (Real.rpow_pos_of_pos ideleAbs_pos _)) |
| 711 | (Finset.prod_pos fun w _ ↦ pow_pos (normSq_pos.2 (piUnits_val_apply_ne_zero _ _)) _) |
| 712 | have h_integrand : coneIntegrand A X μ β z (detVector s' t' k m (liftFrame A X F)) = |
| 713 | fun p ↦ ρ p • detVector s t k m F := |
| 714 | funext fun p ↦ coneIntegrand_detVector A X β z hn m hμ F p |
| 715 | have h_integrable : Integrable ρ (Measure.haar.prod Measure.haar) := by |
| 716 | have h_schwartz : IsSchwartzVector (detVector s' t' k m (liftFrame A X F)) := |
| 717 | fun N ↦ fockMoment_polyVector_ne_top N _ |
| 718 | have h_cone := (integrable_coneIntegrand A X μ β hz h_schwartz).1 |
| 719 | rw [h_integrand] at h_cone |
| 720 | exact (integrable_smul_const h_zero).1 h_cone |
| 721 | have h_pos : 0 < ∫ p, ρ p ∂Measure.haar.prod Measure.haar := by |
| 722 | have h_exp : ρ = fun p ↦ Real.exp (Real.log (ρ p)) := |
| 723 | funext fun p ↦ (Real.exp_log (hρ_pos p)).symm |
| 724 | rw [h_exp] |
| 725 | exact integral_exp_pos (by rwa [← h_exp]) |
| 726 | refine ⟨c * ((∫ p, ρ p ∂Measure.haar.prod Measure.haar : ℝ) : ℂ)⁻¹, ?_⟩ |
| 727 | simp only [h_smul, h_integrand] |
| 728 | rw [integral_smul, integral_smul_const, ← Complex.coe_smul, smul_smul, mul_assoc, |
| 729 | inv_mul_cancel₀ (Complex.ofReal_ne_zero.2 h_pos.ne'), mul_one] |
| 730 | |
| 731 | end ConeIntegral |
| 732 | |
| 733 | end New.Exchange |
| 734 | |
| 735 | end |