Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.RepresentationTheory.Weil.Local.RealOscillator |
| 2 | |
| 3 | /-! # Siegel Gaussian -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Weil.Local.SiegelGaussian.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Positive complex Lagrangian frames for the real Gaussian model. -/ |
| 12 | |
| 13 | open _root_.Matrix |
| 14 | open scoped ComplexOrder |
| 15 | |
| 16 | def realSymplecticComplexMatrix {n : ℕ} (g : FunctionsMetaplectic.Construction.Symplectic ℝ n) : |
| 17 | Matrix (Fin n ⊕ Fin n) (Fin n ⊕ Fin n) ℂ := g.val.map Complex.ofRealHom |
| 18 | |
| 19 | theorem realSymplecticComplexMatrix_symplectic {n : ℕ} (g : FunctionsMetaplectic.Construction.Symplectic ℝ n) : |
| 20 | (realSymplecticComplexMatrix g)ᵀ * Matrix.J (Fin n) ℂ * realSymplecticComplexMatrix g = Matrix.J (Fin n) ℂ := by |
| 21 | have h := SymplecticGroup.mem_iff.mp (SymplecticGroup.transpose_mem |
| 22 | (SymplecticGroup.map_mem g.property Complex.ofRealHom)) |
| 23 | simpa only [realSymplecticComplexMatrix, transpose_transpose] using! h |
| 24 | |
| 25 | theorem realSymplecticComplexMatrix_conjTranspose {n : ℕ} (g : FunctionsMetaplectic.Construction.Symplectic ℝ n) : |
| 26 | (realSymplecticComplexMatrix g)ᴴ = (realSymplecticComplexMatrix g)ᵀ := by |
| 27 | ext i j |
| 28 | exact Complex.conj_ofReal _ |
| 29 | |
| 30 | theorem realSymplecticComplexMatrix_mul {n : ℕ} (g h : FunctionsMetaplectic.Construction.Symplectic ℝ n) : |
| 31 | realSymplecticComplexMatrix (g * h) = realSymplecticComplexMatrix g * realSymplecticComplexMatrix h := by |
| 32 | exact Matrix.map_mul |
| 33 | |
| 34 | structure PositiveLagrangianFrame (n : ℕ) where |
| 35 | matrix : Matrix (Fin n ⊕ Fin n) (Fin n) ℂ |
| 36 | isotropic : matrixᵀ * Matrix.J (Fin n) ℂ * matrix = 0 |
| 37 | positive : (Complex.I • (matrixᴴ * Matrix.J (Fin n) ℂ * matrix)).PosDef |
| 38 | |
| 39 | @[ext] theorem PositiveLagrangianFrame.ext {n : ℕ} {P Q : PositiveLagrangianFrame n} |
| 40 | (h : P.matrix = Q.matrix) : P = Q := by cases P; cases Q; cases h; rfl |
| 41 | |
| 42 | def PositiveLagrangianFrame.act {n : ℕ} (g : FunctionsMetaplectic.Construction.Symplectic ℝ n) (P : PositiveLagrangianFrame n) : |
| 43 | PositiveLagrangianFrame n where |
| 44 | matrix := realSymplecticComplexMatrix g * P.matrix |
| 45 | isotropic := by |
| 46 | calc |
| 47 | _ = P.matrixᵀ * ((realSymplecticComplexMatrix g)ᵀ * Matrix.J (Fin n) ℂ * realSymplecticComplexMatrix g) * P.matrix := by |
| 48 | simp only [transpose_mul, Matrix.mul_assoc] |
| 49 | _ = _ := by rw [realSymplecticComplexMatrix_symplectic, P.isotropic] |
| 50 | positive := by |
| 51 | have h : (realSymplecticComplexMatrix g * P.matrix)ᴴ * Matrix.J (Fin n) ℂ * |
| 52 | (realSymplecticComplexMatrix g * P.matrix) = P.matrixᴴ * Matrix.J (Fin n) ℂ * P.matrix := by |
| 53 | calc |
| 54 | _ = P.matrixᴴ * ((realSymplecticComplexMatrix g)ᴴ * Matrix.J (Fin n) ℂ * realSymplecticComplexMatrix g) * P.matrix := by |
| 55 | simp only [conjTranspose_mul, Matrix.mul_assoc] |
| 56 | _ = _ := by rw [realSymplecticComplexMatrix_conjTranspose, realSymplecticComplexMatrix_symplectic] |
| 57 | rw [h] |
| 58 | exact P.positive |
| 59 | |
| 60 | theorem PositiveLagrangianFrame.act_one {n : ℕ} (P : PositiveLagrangianFrame n) : P.act 1 = P := by |
| 61 | apply PositiveLagrangianFrame.ext |
| 62 | change realSymplecticComplexMatrix 1 * P.matrix = P.matrix |
| 63 | simp [realSymplecticComplexMatrix] |
| 64 | |
| 65 | theorem PositiveLagrangianFrame.act_mul {n : ℕ} (g h : FunctionsMetaplectic.Construction.Symplectic ℝ n) (P : PositiveLagrangianFrame n) : |
| 66 | P.act (g * h) = (P.act h).act g := by |
| 67 | apply PositiveLagrangianFrame.ext |
| 68 | change realSymplecticComplexMatrix (g * h) * P.matrix = |
| 69 | realSymplecticComplexMatrix g * (realSymplecticComplexMatrix h * P.matrix) |
| 70 | rw [realSymplecticComplexMatrix_mul, Matrix.mul_assoc] |
| 71 | |
| 72 | def standardFrameMatrix (n : ℕ) : Matrix (Fin n ⊕ Fin n) (Fin n) ℂ := |
| 73 | fromRows (1 : Matrix (Fin n) (Fin n) ℂ) (Complex.I • 1) |
| 74 | |
| 75 | def standardPositiveFrame (n : ℕ) : PositiveLagrangianFrame n where |
| 76 | matrix := standardFrameMatrix n |
| 77 | isotropic := by |
| 78 | simp only [standardFrameMatrix, transpose_fromRows, transpose_one, transpose_smul, Matrix.J, |
| 79 | Matrix.mul_assoc, fromBlocks_mul_fromRows, fromCols_mul_fromRows, |
| 80 | zero_mul, neg_mul, one_mul, mul_one, zero_add, add_zero, neg_add_cancel] |
| 81 | positive := by |
| 82 | have h : Complex.I • ((standardFrameMatrix n)ᴴ * Matrix.J (Fin n) ℂ * standardFrameMatrix n) = |
| 83 | (1 : Matrix (Fin n) (Fin n) ℂ) + 1 := by |
| 84 | simp only [standardFrameMatrix, conjTranspose_fromRows_eq_fromCols_conjTranspose, conjTranspose_one, |
| 85 | conjTranspose_smul, Matrix.J, Matrix.mul_assoc, fromBlocks_mul_fromRows, |
| 86 | fromCols_mul_fromRows, zero_mul, neg_mul, one_mul, zero_add, add_zero, mul_one, |
| 87 | Complex.star_def, Complex.conj_I, smul_add, smul_neg, |
| 88 | smul_smul, Complex.I_mul_I, neg_one_smul, neg_neg, mul_neg, one_smul] |
| 89 | rw [h] |
| 90 | exact Matrix.PosDef.one.add Matrix.PosDef.one |
| 91 | |
| 92 | end |
| 93 | |
| 94 | section |
| 95 | |
| 96 | /-! Coordinate matrices of positive Lagrangian frames are nonsingular. -/ |
| 97 | |
| 98 | open _root_.Matrix |
| 99 | open scoped ComplexOrder |
| 100 | |
| 101 | def PositiveLagrangianFrame.position {n : ℕ} (P : PositiveLagrangianFrame n) : Matrix (Fin n) (Fin n) ℂ := |
| 102 | P.matrix.submatrix Sum.inl id |
| 103 | |
| 104 | def PositiveLagrangianFrame.momentum {n : ℕ} (P : PositiveLagrangianFrame n) : Matrix (Fin n) (Fin n) ℂ := |
| 105 | P.matrix.submatrix Sum.inr id |
| 106 | |
| 107 | theorem PositiveLagrangianFrame.fromRows {n : ℕ} (P : PositiveLagrangianFrame n) : |
| 108 | Matrix.fromRows P.position P.momentum = P.matrix := by |
| 109 | ext (i | i) j <;> rfl |
| 110 | |
| 111 | theorem PositiveLagrangianFrame.coordinate_isotropic {n : ℕ} (P : PositiveLagrangianFrame n) : |
| 112 | P.positionᵀ * P.momentum = P.momentumᵀ * P.position := by |
| 113 | have h := P.isotropic |
| 114 | rw [← P.fromRows] at h |
| 115 | simp only [transpose_fromRows, Matrix.J, Matrix.mul_assoc, fromBlocks_mul_fromRows, |
| 116 | fromCols_mul_fromRows, zero_mul, neg_mul, one_mul, zero_add, add_zero, mul_neg] at h |
| 117 | exact neg_add_eq_zero.mp h |
| 118 | |
| 119 | theorem PositiveLagrangianFrame.coordinate_positive {n : ℕ} (P : PositiveLagrangianFrame n) : |
| 120 | (Complex.I • (-(P.positionᴴ * P.momentum) + P.momentumᴴ * P.position)).PosDef := by |
| 121 | have h := P.positive |
| 122 | rw [← P.fromRows] at h |
| 123 | simpa only [conjTranspose_fromRows_eq_fromCols_conjTranspose, Matrix.J, Matrix.mul_assoc, |
| 124 | fromBlocks_mul_fromRows, fromCols_mul_fromRows, zero_mul, neg_mul, one_mul, |
| 125 | zero_add, add_zero, mul_neg] using h |
| 126 | |
| 127 | theorem PositiveLagrangianFrame.position_isUnit {n : ℕ} (P : PositiveLagrangianFrame n) : |
| 128 | IsUnit P.position := by |
| 129 | have hker (v : Fin n → ℂ) (hv : P.position *ᵥ v = 0) : v = 0 := by |
| 130 | by_contra hzero |
| 131 | have hpos := P.coordinate_positive.dotProduct_mulVec_pos hzero |
| 132 | have hl : star v ⬝ᵥ ((P.positionᴴ * P.momentum) *ᵥ v) = 0 := by |
| 133 | rw [← Matrix.mulVec_mulVec, dotProduct_mulVec, ← star_mulVec, hv] |
| 134 | simp |
| 135 | have hr : star v ⬝ᵥ ((P.momentumᴴ * P.position) *ᵥ v) = 0 := by |
| 136 | rw [← Matrix.mulVec_mulVec, hv, Matrix.mulVec_zero, dotProduct_zero] |
| 137 | have hp : star v ⬝ᵥ ((-(P.positionᴴ * P.momentum) + P.momentumᴴ * P.position) *ᵥ v) = 0 := by |
| 138 | rw [Matrix.add_mulVec, Matrix.neg_mulVec, dotProduct_add, dotProduct_neg, hl, hr] |
| 139 | simp |
| 140 | rw [Matrix.smul_mulVec, dotProduct_smul, hp, smul_zero] at hpos |
| 141 | exact (lt_irrefl (0 : ℂ)) hpos |
| 142 | apply Matrix.mulVec_injective_iff_isUnit.mp |
| 143 | intro x y hxy |
| 144 | apply sub_eq_zero.mp |
| 145 | apply hker |
| 146 | rw [Matrix.mulVec_sub, hxy, sub_self] |
| 147 | |
| 148 | theorem PositiveLagrangianFrame.position_det_ne_zero {n : ℕ} (P : PositiveLagrangianFrame n) : |
| 149 | P.position.det ≠ 0 := ((Matrix.isUnit_iff_isUnit_det P.position).mp P.position_isUnit).ne_zero |
| 150 | |
| 151 | end |
| 152 | |
| 153 | section |
| 154 | |
| 155 | /-! Symmetric Gaussian matrices with positive imaginary part, obtained from frames. -/ |
| 156 | |
| 157 | open _root_.Matrix |
| 158 | open scoped ComplexOrder |
| 159 | |
| 160 | def PositiveLagrangianFrame.quadraticMatrix {n : ℕ} (P : PositiveLagrangianFrame n) : |
| 161 | Matrix (Fin n) (Fin n) ℂ := P.momentum * P.position⁻¹ |
| 162 | |
| 163 | theorem PositiveLagrangianFrame.position_mul_inv {n : ℕ} (P : PositiveLagrangianFrame n) : |
| 164 | P.position * P.position⁻¹ = 1 := |
| 165 | Matrix.mul_nonsing_inv _ (isUnit_iff_ne_zero.mpr P.position_det_ne_zero) |
| 166 | |
| 167 | theorem PositiveLagrangianFrame.quadraticMatrix_symmetric {n : ℕ} (P : PositiveLagrangianFrame n) : |
| 168 | P.quadraticMatrix.IsSymm := by |
| 169 | have hT : P.position⁻¹ᵀ * P.positionᵀ = 1 := by |
| 170 | rw [← transpose_mul, P.position_mul_inv, transpose_one] |
| 171 | change (P.momentum * P.position⁻¹)ᵀ = P.momentum * P.position⁻¹ |
| 172 | rw [transpose_mul] |
| 173 | calc |
| 174 | _ = P.position⁻¹ᵀ * (P.momentumᵀ * P.position) * P.position⁻¹ := by |
| 175 | rw [Matrix.mul_assoc, Matrix.mul_assoc, P.position_mul_inv, mul_one] |
| 176 | _ = P.position⁻¹ᵀ * (P.positionᵀ * P.momentum) * P.position⁻¹ := by rw [P.coordinate_isotropic] |
| 177 | _ = _ := by rw [← Matrix.mul_assoc P.position⁻¹ᵀ P.positionᵀ, hT, one_mul] |
| 178 | |
| 179 | theorem PositiveLagrangianFrame.quadraticMatrix_positive {n : ℕ} (P : PositiveLagrangianFrame n) : |
| 180 | (Complex.I • (P.quadraticMatrixᴴ - P.quadraticMatrix)).PosDef := by |
| 181 | have hInv : Function.Injective P.position⁻¹.mulVec := |
| 182 | Matrix.mulVec_injective_iff_isUnit.mpr (Matrix.isUnit_nonsing_inv_iff.mpr P.position_isUnit) |
| 183 | have h := P.coordinate_positive.conjTranspose_mul_mul_same hInv |
| 184 | have hH : P.position⁻¹ᴴ * P.positionᴴ = 1 := by |
| 185 | rw [← conjTranspose_mul, P.position_mul_inv, conjTranspose_one] |
| 186 | have hleft : P.position⁻¹ᴴ * (P.positionᴴ * P.momentum) * P.position⁻¹ = P.quadraticMatrix := by |
| 187 | rw [← Matrix.mul_assoc P.position⁻¹ᴴ P.positionᴴ, hH, one_mul] |
| 188 | rfl |
| 189 | have hright : P.position⁻¹ᴴ * (P.momentumᴴ * P.position) * P.position⁻¹ = P.quadraticMatrixᴴ := by |
| 190 | rw [Matrix.mul_assoc, Matrix.mul_assoc, P.position_mul_inv, mul_one] |
| 191 | rw [PositiveLagrangianFrame.quadraticMatrix, conjTranspose_mul] |
| 192 | have he : P.position⁻¹ᴴ * |
| 193 | (Complex.I • (-(P.positionᴴ * P.momentum) + P.momentumᴴ * P.position)) * P.position⁻¹ = |
| 194 | Complex.I • (P.quadraticMatrixᴴ - P.quadraticMatrix) := by |
| 195 | rw [Matrix.mul_smul, Matrix.smul_mul, Matrix.mul_add, Matrix.add_mul, Matrix.mul_neg, |
| 196 | Matrix.neg_mul, hleft, hright] |
| 197 | congr 1 |
| 198 | exact neg_add_eq_sub _ _ |
| 199 | rwa [he] at h |
| 200 | |
| 201 | end |
| 202 | |
| 203 | section |
| 204 | |
| 205 | /-! Real positive-definite imaginary parts of the Gaussian matrices. -/ |
| 206 | |
| 207 | open _root_.Matrix |
| 208 | open scoped ComplexOrder |
| 209 | |
| 210 | theorem symmetric_complex_imaginary_gram {n : ℕ} (Z : Matrix (Fin n) (Fin n) ℂ) (hZ : Z.IsSymm) : |
| 211 | Complex.I • (Zᴴ - Z) = (2 : ℝ) • (Z.map Complex.im).map Complex.ofRealHom := by |
| 212 | ext i j |
| 213 | have hz : Z j i = Z i j := congrFun (congrFun hZ.eq i) j |
| 214 | change Complex.I * (star (Z j i) - Z i j) = (2 : ℝ) • ((Z i j).im : ℂ) |
| 215 | rw [hz, Complex.star_def, Complex.real_smul] |
| 216 | apply Complex.ext <;> simp [Complex.mul_re, Complex.mul_im] |
| 217 | ring |
| 218 | |
| 219 | theorem real_matrix_positive_of_complexified_twice {n : ℕ} |
| 220 | (Y : Matrix (Fin n) (Fin n) ℝ) (hY : Y.IsSymm) |
| 221 | (hpos : ((2 : ℝ) • Y.map Complex.ofRealHom).PosDef) : Y.PosDef := by |
| 222 | apply Matrix.PosDef.of_dotProduct_mulVec_pos (Matrix.isHermitian_iff_isSymm.mpr hY) |
| 223 | intro x hx |
| 224 | let xC : Fin n → ℂ := fun i => (x i : ℂ) |
| 225 | have hxC : xC ≠ 0 := by |
| 226 | intro h |
| 227 | apply hx |
| 228 | funext i |
| 229 | have hi := congrFun h i |
| 230 | exact Complex.ofReal_eq_zero.mp hi |
| 231 | have hm : Y.map Complex.ofRealHom *ᵥ xC = fun i => ((Y *ᵥ x) i : ℂ) := by |
| 232 | funext i |
| 233 | exact (Complex.ofRealHom.map_mulVec Y x i).symm |
| 234 | have hstar : star xC = xC := by ext i; exact Complex.conj_ofReal _ |
| 235 | have he : star xC ⬝ᵥ (((2 : ℝ) • Y.map Complex.ofRealHom) *ᵥ xC) = |
| 236 | ((2 * (x ⬝ᵥ (Y *ᵥ x)) : ℝ) : ℂ) := by |
| 237 | rw [Matrix.smul_mulVec, dotProduct_smul, hm, hstar] |
| 238 | change (2 : ℝ) • ((Complex.ofRealHom ∘ x) ⬝ᵥ (Complex.ofRealHom ∘ (Y *ᵥ x))) = _ |
| 239 | rw [← Complex.ofRealHom.map_dotProduct] |
| 240 | simp only [Complex.real_smul, Complex.ofReal_mul] |
| 241 | rfl |
| 242 | have h := hpos.dotProduct_mulVec_pos hxC |
| 243 | rw [he] at h |
| 244 | have hreal : 0 < 2 * (x ⬝ᵥ (Y *ᵥ x)) := by exact_mod_cast h |
| 245 | simpa only [star_trivial] using (pos_of_mul_pos_right hreal (by norm_num : (0 : ℝ) ≤ 2)) |
| 246 | |
| 247 | theorem PositiveLagrangianFrame.imaginaryPart_positive {n : ℕ} (P : PositiveLagrangianFrame n) : |
| 248 | (P.quadraticMatrix.map Complex.im).PosDef := by |
| 249 | have hs : (P.quadraticMatrix.map Complex.im).IsSymm := P.quadraticMatrix_symmetric.map _ |
| 250 | apply real_matrix_positive_of_complexified_twice _ hs |
| 251 | rw [← symmetric_complex_imaginary_gram P.quadraticMatrix P.quadraticMatrix_symmetric] |
| 252 | exact P.quadraticMatrix_positive |
| 253 | |
| 254 | end |
| 255 | |
| 256 | section |
| 257 | |
| 258 | /-! Simultaneous real congruence diagonalization with one positive-definite form. -/ |
| 259 | |
| 260 | open _root_.Matrix |
| 261 | |
| 262 | theorem matrix_congruence_entry {k : Type} [CommSemiring k] {n : ℕ} |
| 263 | (A M : Matrix (Fin n) (Fin n) k) (i j : Fin n) : |
| 264 | (Aᵀ * M * A) i j = A.col i ⬝ᵥ (M *ᵥ A.col j) := by |
| 265 | change A.col i ᵥ* M ⬝ᵥ A.col j = A.col i ⬝ᵥ (M *ᵥ A.col j) |
| 266 | exact (dotProduct_mulVec _ _ _).symm |
| 267 | |
| 268 | theorem real_simultaneous_congruence_diagonal {n : ℕ} |
| 269 | (X Y : Matrix (Fin n) (Fin n) ℝ) (hX : X.IsSymm) (hY : Y.PosDef) : |
| 270 | ∃ A : FunctionsMetaplectic.Construction.GeneralLinear ℝ n, ∃ d : Fin n → ℝ, |
| 271 | A.valᵀ * Y * A.val = 1 ∧ A.valᵀ * X * A.val = diagonal d := by |
| 272 | let := Y.toNormedAddCommGroup hY |
| 273 | let := Y.toSeminormedAddCommGroup hY.posSemidef |
| 274 | let := Y.toInnerProductSpace hY.posSemidef |
| 275 | let T : (Fin n → ℝ) →ₗ[ℝ] (Fin n → ℝ) := Matrix.toLin' (Y⁻¹ * X) |
| 276 | have hYsymm : Y.IsSymm := Matrix.isHermitian_iff_isSymm.mp hY.isHermitian |
| 277 | have hYinv : Y * Y⁻¹ = 1 := Matrix.mul_nonsing_inv _ ((Matrix.isUnit_iff_isUnit_det Y).mp hY.isUnit) |
| 278 | have hYT (x : Fin n → ℝ) : Y *ᵥ T x = X *ᵥ x := by |
| 279 | change Y *ᵥ ((Y⁻¹ * X) *ᵥ x) = _ |
| 280 | rw [Matrix.mulVec_mulVec, ← Matrix.mul_assoc, hYinv, one_mul] |
| 281 | have hvecY (x : Fin n → ℝ) : x ᵥ* Y = Y *ᵥ x := by simpa only [hYsymm.eq] using vecMul_transpose Y x |
| 282 | have hvecX (x : Fin n → ℝ) : x ᵥ* X = X *ᵥ x := by simpa only [hX.eq] using vecMul_transpose X x |
| 283 | have hT : T.IsSymmetric := by |
| 284 | intro x y |
| 285 | change (Y *ᵥ y) ⬝ᵥ star (T x) = (Y *ᵥ T y) ⬝ᵥ star x |
| 286 | simp only [star_trivial] |
| 287 | rw [hYT] |
| 288 | calc |
| 289 | _ = T x ⬝ᵥ (Y *ᵥ y) := dotProduct_comm _ _ |
| 290 | _ = (Y *ᵥ T x) ⬝ᵥ y := by rw [dotProduct_mulVec, hvecY] |
| 291 | _ = (X *ᵥ x) ⬝ᵥ y := by rw [hYT] |
| 292 | _ = (X *ᵥ y) ⬝ᵥ x := by rw [dotProduct_comm, dotProduct_mulVec, hvecX] |
| 293 | have hdim : Module.finrank ℝ (Fin n → ℝ) = n := by simp |
| 294 | let b := hT.eigenvectorBasis hdim |
| 295 | let d := hT.eigenvalues hdim |
| 296 | let e := Pi.basisFun ℝ (Fin n) |
| 297 | let A : FunctionsMetaplectic.Construction.GeneralLinear ℝ n := { |
| 298 | val := e.toMatrix b.toBasis |
| 299 | inv := b.toBasis.toMatrix e |
| 300 | val_inv := e.toMatrix_mul_toMatrix_flip b.toBasis |
| 301 | inv_val := b.toBasis.toMatrix_mul_toMatrix_flip e } |
| 302 | have hcol (i : Fin n) : A.val.col i = b i := by funext j; rfl |
| 303 | have hb (i j : Fin n) : b i ⬝ᵥ (Y *ᵥ b j) = if i = j then 1 else 0 := by |
| 304 | have h := b.inner_eq_ite i j |
| 305 | change (Y *ᵥ b j) ⬝ᵥ star (b i) = _ at h |
| 306 | simpa only [star_trivial, dotProduct_comm] using h |
| 307 | have hXb (j : Fin n) : X *ᵥ b j = d j • (Y *ᵥ b j) := by |
| 308 | rw [← hYT, hT.apply_eigenvectorBasis hdim j, Matrix.mulVec_smul] |
| 309 | rfl |
| 310 | refine ⟨A, d, ?_, ?_⟩ |
| 311 | · ext i j |
| 312 | rw [matrix_congruence_entry, hcol, hcol, hb, Matrix.one_apply] |
| 313 | · ext i j |
| 314 | rw [matrix_congruence_entry, hcol, hcol, hXb, dotProduct_smul, hb] |
| 315 | by_cases hij : i = j |
| 316 | · subst j |
| 317 | simp |
| 318 | · simp [hij] |
| 319 | |
| 320 | theorem complex_simultaneous_congruence_diagonal {n : ℕ} |
| 321 | (Z : Matrix (Fin n) (Fin n) ℂ) (hZ : Z.IsSymm) |
| 322 | (hY : (Z.map Complex.im).PosDef) : |
| 323 | ∃ A : FunctionsMetaplectic.Construction.GeneralLinear ℝ n, ∃ d : Fin n → ℝ, |
| 324 | (A.val.map Complex.ofReal)ᵀ * Z * A.val.map Complex.ofReal = |
| 325 | diagonal (fun i => (d i : ℂ) + Complex.I) := by |
| 326 | have hX : (Z.map Complex.re).IsSymm := by |
| 327 | ext i j |
| 328 | exact congrArg Complex.re (congrFun (congrFun hZ.eq i) j) |
| 329 | obtain ⟨A, d, hAY, hAX⟩ := |
| 330 | real_simultaneous_congruence_diagonal (Z.map Complex.re) (Z.map Complex.im) hX hY |
| 331 | refine ⟨A, d, ?_⟩ |
| 332 | have he (i j : Fin n) : |
| 333 | ((A.val.map Complex.ofReal)ᵀ * Z * A.val.map Complex.ofReal) i j = |
| 334 | ((A.valᵀ * Z.map Complex.re * A.val) i j : ℂ) + |
| 335 | ((A.valᵀ * Z.map Complex.im * A.val) i j : ℂ) * Complex.I := by |
| 336 | simp only [Matrix.mul_apply, Matrix.transpose_apply, Matrix.map_apply, |
| 337 | Complex.ofReal_sum, Complex.ofReal_mul, Finset.sum_mul, ← Finset.sum_add_distrib] |
| 338 | apply Finset.sum_congr rfl |
| 339 | intro l _ |
| 340 | apply Finset.sum_congr rfl |
| 341 | intro m _ |
| 342 | conv_lhs => rw [← Complex.re_add_im (Z m l)] |
| 343 | ring |
| 344 | ext i j |
| 345 | rw [he, hAX, hAY] |
| 346 | by_cases hij : i = j |
| 347 | · subst j |
| 348 | simp |
| 349 | · simp [hij] |
| 350 | |
| 351 | end |
| 352 | |
| 353 | section |
| 354 | |
| 355 | /-! Ordinary convergent scalar Gaussians for the real Siegel half-space. -/ |
| 356 | |
| 357 | open _root_.MeasureTheory |
| 358 | |
| 359 | def siegelGaussianScalar (z : ℂ) (x : ℝ) : ℂ := |
| 360 | Complex.exp (Real.pi * Complex.I * z * (x : ℂ) ^ 2) |
| 361 | |
| 362 | def siegelGaussianCoefficient (z : ℂ) : ℂ := |
| 363 | (Complex.I / z) ^ (1 / 2 : ℂ) |
| 364 | |
| 365 | theorem siegelGaussianScalar_eq (z : ℂ) (x : ℝ) : |
| 366 | siegelGaussianScalar z x = |
| 367 | Complex.exp (-(-(Real.pi : ℂ) * Complex.I * z) * (x : ℂ) ^ 2) := by |
| 368 | unfold siegelGaussianScalar |
| 369 | congr 1 |
| 370 | ring |
| 371 | |
| 372 | theorem siegelGaussianScalar_norm (z : ℂ) (x : ℝ) : |
| 373 | ‖siegelGaussianScalar z x‖ = Real.exp (-(Real.pi * z.im) * x ^ 2) := by |
| 374 | rw [siegelGaussianScalar_eq, norm_cexp_neg_mul_sq] |
| 375 | simp |
| 376 | |
| 377 | theorem siegelGaussianScalar_integrable {z : ℂ} (hz : 0 < z.im) : |
| 378 | Integrable (siegelGaussianScalar z) := by |
| 379 | have hb : 0 < (-(Real.pi : ℂ) * Complex.I * z).re := by |
| 380 | simpa using mul_pos Real.pi_pos hz |
| 381 | simpa only [← siegelGaussianScalar_eq] using integrable_cexp_neg_mul_sq hb |
| 382 | |
| 383 | theorem siegelGaussianScalar_memLp_two {z : ℂ} (hz : 0 < z.im) : |
| 384 | MemLp (siegelGaussianScalar z) 2 := by |
| 385 | apply (memLp_two_iff_integrable_sq_norm (by unfold siegelGaussianScalar; fun_prop)).mpr |
| 386 | have he (x : ℝ) : ‖siegelGaussianScalar z x‖ ^ 2 = |
| 387 | Real.exp (-(2 * (Real.pi * z.im)) * x ^ 2) := by |
| 388 | rw [siegelGaussianScalar_norm, ← Real.exp_nat_mul] |
| 389 | congr 1 |
| 390 | ring |
| 391 | simp_rw [he] |
| 392 | exact integrable_exp_neg_mul_sq (mul_pos (by norm_num) (mul_pos Real.pi_pos hz)) |
| 393 | |
| 394 | theorem siegelGaussianCoefficient_sq {z : ℂ} (hz : z ≠ 0) : |
| 395 | siegelGaussianCoefficient z ^ 2 * z = Complex.I := by |
| 396 | rw [siegelGaussianCoefficient, one_div, Complex.cpow_ofNat_inv_pow] |
| 397 | exact div_mul_cancel₀ _ hz |
| 398 | |
| 399 | theorem siegelGaussianCoefficient_ne_zero {z : ℂ} (hz : z ≠ 0) : |
| 400 | siegelGaussianCoefficient z ≠ 0 := by |
| 401 | intro h |
| 402 | have he := siegelGaussianCoefficient_sq hz |
| 403 | rw [h, zero_pow (by decide), zero_mul] at he |
| 404 | exact Complex.I_ne_zero he.symm |
| 405 | |
| 406 | theorem scalarFourier_siegelGaussian {z : ℂ} (hz : 0 < z.im) (x : ℝ) : |
| 407 | FourierTensor.Construction.scalarFourierIntegral (Gaussian.Construction.realCharacter 1) volume (siegelGaussianScalar z) x = |
| 408 | siegelGaussianCoefficient z * siegelGaussianScalar (-z⁻¹) x := by |
| 409 | have hz0 : z ≠ 0 := by intro h; simp [h] at hz |
| 410 | have hp : (Real.pi : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr Real.pi_ne_zero |
| 411 | have hb : 0 < (-(Real.pi : ℂ) * Complex.I * z).re := by |
| 412 | simpa using mul_pos Real.pi_pos hz |
| 413 | unfold FourierTensor.Construction.scalarFourierIntegral |
| 414 | simp_rw [siegelGaussianScalar, Gaussian.Construction.realCharacter_apply] |
| 415 | have hk (y : ℝ) : (((2 * Real.pi * 1 * -(x * y) : ℝ) : ℂ) * Complex.I) = |
| 416 | Complex.I * (-2 * Real.pi * x : ℂ) * y := by push_cast; ring |
| 417 | have hg (y : ℝ) : (Real.pi : ℂ) * Complex.I * z * (y : ℂ) ^ 2 = |
| 418 | -(-(Real.pi : ℂ) * Complex.I * z) * (y : ℂ) ^ 2 := by ring |
| 419 | simp_rw [hk, hg] |
| 420 | conv_lhs => enter [2, y]; rw [mul_comm] |
| 421 | rw [fourierIntegral_gaussian hb] |
| 422 | have hc : (Real.pi : ℂ) / (-(Real.pi : ℂ) * Complex.I * z) = Complex.I / z := by |
| 423 | field_simp |
| 424 | simp [Complex.I_sq] |
| 425 | rw [hc] |
| 426 | unfold siegelGaussianCoefficient |
| 427 | congr 2 |
| 428 | field_simp |
| 429 | simp [Complex.I_sq] |
| 430 | ring |
| 431 | |
| 432 | end |
| 433 | |
| 434 | section |
| 435 | |
| 436 | /-! Quadratic Gaussians and real changes of coordinates. -/ |
| 437 | |
| 438 | open _root_.Matrix _root_.MeasureTheory |
| 439 | |
| 440 | def siegelGaussian {n : ℕ} (Z : Matrix (Fin n) (Fin n) ℂ) (x : FunctionsMetaplectic.Construction.Position ℝ n) : ℂ := |
| 441 | Complex.exp (Real.pi * Complex.I * ((fun i => (x i : ℂ)) ⬝ᵥ |
| 442 | (Z *ᵥ fun i => (x i : ℂ)))) |
| 443 | |
| 444 | theorem complexify_mulVec {n : ℕ} (A : Matrix (Fin n) (Fin n) ℝ) (x : FunctionsMetaplectic.Construction.Position ℝ n) : |
| 445 | (fun i => ((A *ᵥ x) i : ℂ)) = A.map Complex.ofReal *ᵥ fun i => (x i : ℂ) := by |
| 446 | ext i |
| 447 | exact RingHom.map_mulVec Complex.ofRealHom A x i |
| 448 | |
| 449 | theorem siegelGaussian_congruence {n : ℕ} (A : Matrix (Fin n) (Fin n) ℝ) |
| 450 | (Z : Matrix (Fin n) (Fin n) ℂ) (x : FunctionsMetaplectic.Construction.Position ℝ n) : |
| 451 | siegelGaussian Z (A *ᵥ x) = |
| 452 | siegelGaussian ((A.map Complex.ofReal)ᵀ * Z * A.map Complex.ofReal) x := by |
| 453 | unfold siegelGaussian |
| 454 | rw [complexify_mulVec] |
| 455 | congr 2 |
| 456 | nth_rw 1 [← vecMul_transpose] |
| 457 | rw [dotProduct_mulVec, vecMul_vecMul, ← dotProduct_mulVec, mulVec_mulVec] |
| 458 | |
| 459 | theorem siegelGaussian_diagonal {n : ℕ} (z : Fin n → ℂ) (x : FunctionsMetaplectic.Construction.Position ℝ n) : |
| 460 | siegelGaussian (diagonal z) x = ∏ i, siegelGaussianScalar (z i) (x i) := by |
| 461 | unfold siegelGaussian siegelGaussianScalar |
| 462 | rw [← Complex.exp_sum] |
| 463 | congr 1 |
| 464 | simp only [dotProduct, mulVec_diagonal, Finset.mul_sum] |
| 465 | apply Finset.sum_congr rfl |
| 466 | intro i _ |
| 467 | ring |
| 468 | |
| 469 | theorem siegelGaussian_continuous {n : ℕ} (Z : Matrix (Fin n) (Fin n) ℂ) : |
| 470 | Continuous (siegelGaussian Z) := by |
| 471 | unfold siegelGaussian Matrix.mulVec dotProduct |
| 472 | fun_prop |
| 473 | |
| 474 | theorem siegelGaussian_zero {n : ℕ} (Z : Matrix (Fin n) (Fin n) ℂ) : |
| 475 | siegelGaussian Z 0 = 1 := by |
| 476 | simp [siegelGaussian] |
| 477 | |
| 478 | theorem real_integral_matrix {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 479 | {n : ℕ} (A : FunctionsMetaplectic.Construction.GeneralLinear ℝ n) (f : FunctionsMetaplectic.Construction.Position ℝ n → E) : |
| 480 | (∫ x, f (A.val *ᵥ x)) = |det A.val|⁻¹ • ∫ x, f x := by |
| 481 | let e := (LinearSubstitution.Construction.positionAddEquiv A).toHomeomorph.toMeasurableEquiv |
| 482 | have hd : LinearMap.det (LinearSubstitution.Construction.positionLinearEquiv A).toLinearMap = det A.val := by |
| 483 | change LinearMap.det (Matrix.toLin' A.val) = _ |
| 484 | exact LinearMap.det_toLin' _ |
| 485 | have hm := Measure.map_linearMap_addHaar_pi_eq_smul_addHaar |
| 486 | (show LinearMap.det (LinearSubstitution.Construction.positionLinearEquiv A).toLinearMap ≠ 0 by |
| 487 | rw [hd]; exact (FunctionsMetaplectic.Construction.determinantUnit ℝ A).ne_zero) (volume : Measure (FunctionsMetaplectic.Construction.Position ℝ n)) |
| 488 | have hi := integral_map_equiv (μ := (volume : Measure (FunctionsMetaplectic.Construction.Position ℝ n))) e f |
| 489 | change (∫ x, f x ∂Measure.map (LinearSubstitution.Construction.positionLinearEquiv A).toLinearMap volume) = _ at hi |
| 490 | rw [hm, hd, integral_smul_measure, ENNReal.toReal_ofReal (abs_nonneg _), abs_inv] at hi |
| 491 | exact hi.symm |
| 492 | |
| 493 | theorem real_integrable_matrix_iff {E : Type} [NormedAddCommGroup E] |
| 494 | {n : ℕ} (A : FunctionsMetaplectic.Construction.GeneralLinear ℝ n) (f : FunctionsMetaplectic.Construction.Position ℝ n → E) : |
| 495 | Integrable (fun x => f (A.val *ᵥ x)) ↔ Integrable f := by |
| 496 | let e := (LinearSubstitution.Construction.positionAddEquiv A).toHomeomorph.toMeasurableEquiv |
| 497 | have hd : LinearMap.det (LinearSubstitution.Construction.positionLinearEquiv A).toLinearMap = det A.val := by |
| 498 | change LinearMap.det (Matrix.toLin' A.val) = _ |
| 499 | exact LinearMap.det_toLin' _ |
| 500 | have hm := Measure.map_linearMap_addHaar_pi_eq_smul_addHaar |
| 501 | (show LinearMap.det (LinearSubstitution.Construction.positionLinearEquiv A).toLinearMap ≠ 0 by |
| 502 | rw [hd]; exact (FunctionsMetaplectic.Construction.determinantUnit ℝ A).ne_zero) (volume : Measure (FunctionsMetaplectic.Construction.Position ℝ n)) |
| 503 | have hi := integrable_map_equiv (μ := (volume : Measure (FunctionsMetaplectic.Construction.Position ℝ n))) e f |
| 504 | change Integrable f (Measure.map (LinearSubstitution.Construction.positionLinearEquiv A).toLinearMap volume) ↔ _ at hi |
| 505 | have hdet : det A.val ≠ 0 := (FunctionsMetaplectic.Construction.determinantUnit ℝ A).ne_zero |
| 506 | rw [hm, hd, integrable_smul_measure (by simp [hdet]) (by simp)] at hi |
| 507 | exact hi.symm |
| 508 | |
| 509 | theorem siegelGaussian_integrable {n : ℕ} (Z : Matrix (Fin n) (Fin n) ℂ) |
| 510 | (hZ : Z.IsSymm) (hY : (Z.map Complex.im).PosDef) : Integrable (siegelGaussian Z) := by |
| 511 | obtain ⟨A, d, hd⟩ := complex_simultaneous_congruence_diagonal Z hZ hY |
| 512 | apply (real_integrable_matrix_iff A _).mp |
| 513 | change Integrable (fun x => siegelGaussian Z (A.val *ᵥ x)) |
| 514 | simp_rw [siegelGaussian_congruence, hd, siegelGaussian_diagonal] |
| 515 | exact Integrable.fintype_prod (fun i => siegelGaussianScalar_integrable (by simp)) |
| 516 | |
| 517 | theorem siegelGaussian_memLp_two {n : ℕ} (Z : Matrix (Fin n) (Fin n) ℂ) |
| 518 | (hZ : Z.IsSymm) (hY : (Z.map Complex.im).PosDef) : MemLp (siegelGaussian Z) 2 := by |
| 519 | apply (memLp_two_iff_integrable_sq_norm (siegelGaussian_continuous Z).aestronglyMeasurable).mpr |
| 520 | obtain ⟨A, d, hd⟩ := complex_simultaneous_congruence_diagonal Z hZ hY |
| 521 | apply (real_integrable_matrix_iff A _).mp |
| 522 | change Integrable (fun x => ‖siegelGaussian Z (A.val *ᵥ x)‖ ^ 2) |
| 523 | simp_rw [siegelGaussian_congruence, hd, siegelGaussian_diagonal, norm_prod, ← Finset.prod_pow] |
| 524 | exact Integrable.fintype_prod (fun i => |
| 525 | (siegelGaussianScalar_memLp_two (z := (d i : ℂ) + Complex.I) (by simp)).integrable_norm_pow |
| 526 | (by decide : (2 : ℕ) ≠ 0)) |
| 527 | |
| 528 | end |
| 529 | |
| 530 | /-! The convergent matrix Gaussian Fourier integral, with its determinant identity. -/ |
| 531 | |
| 532 | open _root_.Matrix _root_.MeasureTheory |
| 533 | |
| 534 | theorem fourierIntegral_real_matrix {n : ℕ} (ψ : AddChar ℝ ℂ) |
| 535 | (A : FunctionsMetaplectic.Construction.GeneralLinear ℝ n) (f : FunctionsMetaplectic.Construction.Position ℝ n → ℂ) (x : FunctionsMetaplectic.Construction.Position ℝ n) : |
| 536 | FunctionsMetaplectic.Construction.fourierIntegral ψ volume f x = ((|det A.val| : ℝ) : ℂ) * |
| 537 | FunctionsMetaplectic.Construction.fourierIntegral ψ volume (fun y => f (A.val *ᵥ y)) (A.valᵀ *ᵥ x) := by |
| 538 | have h := real_integral_matrix A (fun y => f y * ψ (-FunctionsMetaplectic.Construction.dot x y)) |
| 539 | have hd : ((|det A.val| : ℝ) : ℂ) ≠ 0 := by |
| 540 | exact_mod_cast abs_ne_zero.mpr (FunctionsMetaplectic.Construction.determinantUnit ℝ A).ne_zero |
| 541 | have hdot (y : FunctionsMetaplectic.Construction.Position ℝ n) : FunctionsMetaplectic.Construction.dot x (A.val *ᵥ y) = FunctionsMetaplectic.Construction.dot (A.valᵀ *ᵥ x) y := by |
| 542 | change x ⬝ᵥ (A.val *ᵥ y) = (A.valᵀ *ᵥ x) ⬝ᵥ y |
| 543 | rw [dotProduct_mulVec, ← vecMul_transpose, transpose_transpose] |
| 544 | simp_rw [hdot] at h |
| 545 | change FunctionsMetaplectic.Construction.fourierIntegral ψ volume (fun y => f (A.val *ᵥ y)) (A.valᵀ *ᵥ x) = |
| 546 | |det A.val|⁻¹ • FunctionsMetaplectic.Construction.fourierIntegral ψ volume f x at h |
| 547 | rw [h, Complex.real_smul, Complex.ofReal_inv, ← mul_assoc, mul_inv_cancel₀ hd, one_mul] |
| 548 | |
| 549 | theorem inverse_congruence {n : ℕ} (A Z D : Matrix (Fin n) (Fin n) ℂ) |
| 550 | (hA : IsUnit A) (h : Aᵀ * Z * A = D) : Z⁻¹ = A * D⁻¹ * Aᵀ := by |
| 551 | have hd : IsUnit A.det := (isUnit_iff_isUnit_det A).mp hA |
| 552 | have ht : IsUnit Aᵀ.det := by simpa only [det_transpose] using hd |
| 553 | have hi := congrArg (fun M => A * M⁻¹ * Aᵀ) h |
| 554 | simpa only [Matrix.mul_inv_rev, Matrix.mul_assoc, nonsing_inv_mul _ ht, mul_one, |
| 555 | mul_nonsing_inv_cancel_left _ _ hd] using hi |
| 556 | |
| 557 | theorem complexify_isUnit {n : ℕ} (A : FunctionsMetaplectic.Construction.GeneralLinear ℝ n) : |
| 558 | IsUnit (A.val.map Complex.ofReal) := by |
| 559 | apply (isUnit_iff_isUnit_det _).mpr |
| 560 | change IsUnit (Complex.ofRealHom.mapMatrix A.val).det |
| 561 | rw [← RingHom.map_det Complex.ofRealHom] |
| 562 | exact IsUnit.map Complex.ofRealHom ((isUnit_iff_isUnit_det _).mp A.isUnit) |
| 563 | |
| 564 | theorem siegelGaussian_fourier_diagonal {n : ℕ} (z : Fin n → ℂ) |
| 565 | (hz : ∀ i, 0 < (z i).im) (x : FunctionsMetaplectic.Construction.Position ℝ n) : |
| 566 | FunctionsMetaplectic.Construction.fourierIntegral (Gaussian.Construction.realCharacter 1) volume (siegelGaussian (diagonal z)) x = |
| 567 | (∏ i, siegelGaussianCoefficient (z i)) * |
| 568 | siegelGaussian (diagonal (fun i => -(z i)⁻¹)) x := by |
| 569 | change FunctionsMetaplectic.Construction.fourierIntegral (Gaussian.Construction.realCharacter 1) (Measure.pi fun _ : Fin n => volume) _ _ = _ |
| 570 | simp_rw [show siegelGaussian (diagonal z) = fun y => ∏ i, siegelGaussianScalar (z i) (y i) |
| 571 | from funext (siegelGaussian_diagonal z)] |
| 572 | rw [FourierTensor.Construction.fourierIntegral_product] |
| 573 | simp_rw [scalarFourier_siegelGaussian (hz _)] |
| 574 | rw [Finset.prod_mul_distrib, siegelGaussian_diagonal] |
| 575 | |
| 576 | theorem siegelGaussian_fourier_of_congruence {n : ℕ} |
| 577 | (Z : Matrix (Fin n) (Fin n) ℂ) (A : FunctionsMetaplectic.Construction.GeneralLinear ℝ n) (z : Fin n → ℂ) |
| 578 | (hz : ∀ i, 0 < (z i).im) |
| 579 | (h : (A.val.map Complex.ofReal)ᵀ * Z * A.val.map Complex.ofReal = diagonal z) |
| 580 | (x : FunctionsMetaplectic.Construction.Position ℝ n) : |
| 581 | FunctionsMetaplectic.Construction.fourierIntegral (Gaussian.Construction.realCharacter 1) volume (siegelGaussian Z) x = |
| 582 | (((|det A.val| : ℝ) : ℂ) * ∏ i, siegelGaussianCoefficient (z i)) * siegelGaussian (-Z⁻¹) x := by |
| 583 | rw [fourierIntegral_real_matrix _ A] |
| 584 | simp_rw [siegelGaussian_congruence, h] |
| 585 | rw [siegelGaussian_fourier_diagonal z hz, mul_assoc] |
| 586 | congr 1 |
| 587 | congr 1 |
| 588 | rw [siegelGaussian_congruence] |
| 589 | congr 1 |
| 590 | have hi := inverse_congruence _ _ _ (complexify_isUnit A) h |
| 591 | have hdi : (diagonal z)⁻¹ = diagonal (fun i => (z i)⁻¹) := by |
| 592 | apply inv_eq_left_inv |
| 593 | rw [diagonal_mul_diagonal] |
| 594 | have hz0 (i : Fin n) : z i ≠ 0 := by |
| 595 | intro hi |
| 596 | have hp := hz i |
| 597 | simp [hi] at hp |
| 598 | simp only [inv_mul_cancel₀ (hz0 _), diagonal_one] |
| 599 | rw [hi, hdi] |
| 600 | simp only [← diagonal_neg, Matrix.mul_neg, Matrix.neg_mul] |
| 601 | rfl |
| 602 | |
| 603 | theorem siegelGaussian_amplitude_square {n : ℕ} |
| 604 | (Z : Matrix (Fin n) (Fin n) ℂ) (A : FunctionsMetaplectic.Construction.GeneralLinear ℝ n) (z : Fin n → ℂ) |
| 605 | (hz : ∀ i, z i ≠ 0) |
| 606 | (h : (A.val.map Complex.ofReal)ᵀ * Z * A.val.map Complex.ofReal = diagonal z) : |
| 607 | (((|det A.val| : ℝ) : ℂ) * ∏ i, siegelGaussianCoefficient (z i)) ^ 2 * det Z = Complex.I ^ n := by |
| 608 | have hd := congrArg Matrix.det h |
| 609 | have hdA : det (A.val.map Complex.ofReal) = ((det A.val : ℝ) : ℂ) := |
| 610 | (RingHom.map_det Complex.ofRealHom A.val).symm |
| 611 | simp only [det_mul, det_transpose, hdA, det_diagonal] at hd |
| 612 | have hs : ((|det A.val| : ℝ) : ℂ) ^ 2 = ((det A.val : ℝ) : ℂ) ^ 2 := by |
| 613 | rw [← Complex.ofReal_pow, ← Complex.ofReal_pow, sq_abs] |
| 614 | calc |
| 615 | _ = (∏ i, siegelGaussianCoefficient (z i) ^ 2) * |
| 616 | (((det A.val : ℝ) : ℂ) * det Z * ((det A.val : ℝ) : ℂ)) := by |
| 617 | rw [mul_pow, hs, Finset.prod_pow] |
| 618 | ring |
| 619 | _ = ∏ i, siegelGaussianCoefficient (z i) ^ 2 * z i := by |
| 620 | rw [hd, Finset.prod_mul_distrib] |
| 621 | _ = Complex.I ^ n := by |
| 622 | simp only [siegelGaussianCoefficient_sq (hz _), Finset.prod_const, |
| 623 | Finset.card_univ, Fintype.card_fin] |
| 624 | |
| 625 | theorem siegelGaussian_fourier {n : ℕ} (Z : Matrix (Fin n) (Fin n) ℂ) |
| 626 | (hZ : Z.IsSymm) (hY : (Z.map Complex.im).PosDef) : |
| 627 | ∃ c : ℂ, c ^ 2 * det Z = Complex.I ^ n ∧ |
| 628 | ∀ x, FunctionsMetaplectic.Construction.fourierIntegral (Gaussian.Construction.realCharacter 1) volume (siegelGaussian Z) x = |
| 629 | c * siegelGaussian (-Z⁻¹) x := by |
| 630 | obtain ⟨A, d, hd⟩ := complex_simultaneous_congruence_diagonal Z hZ hY |
| 631 | refine ⟨((|det A.val| : ℝ) : ℂ) * ∏ i, siegelGaussianCoefficient ((d i : ℂ) + Complex.I), |
| 632 | siegelGaussian_amplitude_square Z A _ (fun i => ?_) hd, |
| 633 | siegelGaussian_fourier_of_congruence Z A _ (fun i => by simp) hd⟩ |
| 634 | intro h |
| 635 | have hi := congrArg Complex.im h |
| 636 | simp at hi |
| 637 | |
| 638 | end |
| 639 | |
| 640 | end OAI.RepresentationTheory.Weil.Local.SiegelGaussian.Construction |