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.AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix |
| 2 | import Mathlib.LinearAlgebra.SymplecticGroup |
| 3 | import Mathlib.Tactic.NoncommRing |
| 4 | |
| 5 | /-! # CM Symplectic Siegel -/ |
| 6 | |
| 7 | namespace OAI |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace AlgebraicGeometry.ComplexMultiplication.CMSymplecticSiegel.CM |
| 12 | |
| 13 | /-! |
| 14 | # Symplectic block identities for the Siegel transformation |
| 15 | |
| 16 | The blocks belong to an actual matrix in mathlib's symplectic group. |
| 17 | Their identities imply symmetry of the fractional transformation and |
| 18 | the difference formula used for its imaginary part. Invertibility of |
| 19 | the denominator is explicit here; its deduction from Siegel positivity |
| 20 | is a separate step. |
| 21 | -/ |
| 22 | |
| 23 | open scoped _root_.Matrix |
| 24 | open _root_.Matrix |
| 25 | |
| 26 | variable (ι R : Type*) [Fintype ι] [DecidableEq ι] [CommRing R] |
| 27 | |
| 28 | structure SymplecticBlocks where |
| 29 | A : Matrix ι ι R |
| 30 | B : Matrix ι ι R |
| 31 | C : Matrix ι ι R |
| 32 | D : Matrix ι ι R |
| 33 | symplectic : Matrix.fromBlocks A B C D ∈ Matrix.symplecticGroup ι R |
| 34 | |
| 35 | namespace SymplecticBlocks |
| 36 | |
| 37 | variable {ι R} (g : SymplecticBlocks ι R) |
| 38 | |
| 39 | theorem ac : g.Aᵀ * g.C = g.Cᵀ * g.A := |
| 40 | (SymplecticGroup.fromBlocks_mem_iff.mp g.symplectic).1 |
| 41 | |
| 42 | theorem bd : g.Bᵀ * g.D = g.Dᵀ * g.B := |
| 43 | (SymplecticGroup.fromBlocks_mem_iff.mp g.symplectic).2.1 |
| 44 | |
| 45 | theorem ad_cb : g.Aᵀ * g.D - g.Cᵀ * g.B = 1 := |
| 46 | (SymplecticGroup.fromBlocks_mem_iff.mp g.symplectic).2.2 |
| 47 | |
| 48 | theorem da_bc : g.Dᵀ * g.A - g.Bᵀ * g.C = 1 := by |
| 49 | have h := congrArg Matrix.transpose g.ad_cb |
| 50 | simpa only [transpose_sub, transpose_mul, transpose_transpose, transpose_one] using h |
| 51 | |
| 52 | theorem cd : g.C * g.Dᵀ = g.D * g.Cᵀ := by |
| 53 | have h := SymplecticGroup.transpose_mem g.symplectic |
| 54 | rw [fromBlocks_transpose] at h |
| 55 | simpa only [transpose_transpose] using (SymplecticGroup.fromBlocks_mem_iff.mp h).2.1 |
| 56 | |
| 57 | def numerator (Z : Matrix ι ι R) : Matrix ι ι R := g.A * Z + g.B |
| 58 | |
| 59 | def denominator (Z : Matrix ι ι R) : Matrix ι ι R := g.C * Z + g.D |
| 60 | |
| 61 | def fractional (Z : Matrix ι ι R) : Matrix ι ι R := g.numerator Z * (g.denominator Z)⁻¹ |
| 62 | |
| 63 | /-- The basic symplectic identity before taking any inverses. -/ |
| 64 | theorem cross_difference (Z W : Matrix ι ι R) (hW : W.IsSymm) : |
| 65 | (g.denominator W)ᵀ * g.numerator Z - (g.numerator W)ᵀ * g.denominator Z = Z - W := by |
| 66 | have had : g.Cᵀ * g.B - g.Aᵀ * g.D = -1 := by |
| 67 | rw [← neg_sub, g.ad_cb] |
| 68 | calc |
| 69 | _ = W * (g.Cᵀ * g.A - g.Aᵀ * g.C) * Z + |
| 70 | W * (g.Cᵀ * g.B - g.Aᵀ * g.D) + |
| 71 | (g.Dᵀ * g.A - g.Bᵀ * g.C) * Z + (g.Dᵀ * g.B - g.Bᵀ * g.D) := by |
| 72 | simp only [SymplecticBlocks.denominator, SymplecticBlocks.numerator, transpose_add, transpose_mul, hW.eq] |
| 73 | noncomm_ring |
| 74 | _ = _ := by |
| 75 | rw [g.ac, g.bd, sub_self, sub_self, had, g.da_bc] |
| 76 | simp [sub_eq_add_neg, add_comm] |
| 77 | |
| 78 | theorem cross_symmetric (Z : Matrix ι ι R) (hZ : Z.IsSymm) : |
| 79 | (g.denominator Z)ᵀ * g.numerator Z = (g.numerator Z)ᵀ * g.denominator Z := by |
| 80 | have h := g.cross_difference Z Z hZ |
| 81 | rw [sub_self] at h |
| 82 | exact sub_eq_zero.mp h |
| 83 | |
| 84 | theorem fractional_mul_denominator (Z : Matrix ι ι R) |
| 85 | (hJ : IsUnit (g.denominator Z).det) : |
| 86 | g.fractional Z * g.denominator Z = g.numerator Z := by |
| 87 | exact Matrix.nonsing_inv_mul_cancel_right _ _ hJ |
| 88 | |
| 89 | theorem fractional_symmetric (Z : Matrix ι ι R) (hZ : Z.IsSymm) |
| 90 | (hJ : IsUnit (g.denominator Z).det) : (g.fractional Z).IsSymm := by |
| 91 | change (g.numerator Z * (g.denominator Z)⁻¹)ᵀ = g.numerator Z * (g.denominator Z)⁻¹ |
| 92 | rw [transpose_mul, transpose_nonsing_inv] |
| 93 | calc |
| 94 | _ = (g.denominator Z)ᵀ⁻¹ * ((g.numerator Z)ᵀ * g.denominator Z) * |
| 95 | (g.denominator Z)⁻¹ := by |
| 96 | rw [Matrix.mul_assoc, Matrix.mul_assoc, Matrix.mul_nonsing_inv _ hJ, Matrix.mul_one] |
| 97 | _ = (g.denominator Z)ᵀ⁻¹ * ((g.denominator Z)ᵀ * g.numerator Z) * |
| 98 | (g.denominator Z)⁻¹ := by rw [g.cross_symmetric Z hZ] |
| 99 | _ = _ := by |
| 100 | rw [Matrix.nonsing_inv_mul_cancel_left _ _ (Matrix.isUnit_det_transpose _ hJ)] |
| 101 | |
| 102 | theorem denominator_mul_transpose_C (Z : Matrix ι ι R) (hZ : Z.IsSymm) : |
| 103 | g.denominator Z * g.Cᵀ = g.C * (g.denominator Z)ᵀ := by |
| 104 | simp only [SymplecticBlocks.denominator, transpose_add, transpose_mul, hZ.eq, Matrix.add_mul, Matrix.mul_add] |
| 105 | rw [g.cd] |
| 106 | noncomm_ring |
| 107 | |
| 108 | /-- The quadratic correction matrix `J⁻¹ C` is symmetric. -/ |
| 109 | theorem correction_symmetric (Z : Matrix ι ι R) (hZ : Z.IsSymm) |
| 110 | (hJ : IsUnit (g.denominator Z).det) : ((g.denominator Z)⁻¹ * g.C).IsSymm := by |
| 111 | change ((g.denominator Z)⁻¹ * g.C)ᵀ = (g.denominator Z)⁻¹ * g.C |
| 112 | rw [transpose_mul, transpose_nonsing_inv] |
| 113 | calc |
| 114 | _ = (g.denominator Z)⁻¹ * (g.denominator Z * g.Cᵀ) * (g.denominator Z)ᵀ⁻¹ := by |
| 115 | rw [Matrix.nonsing_inv_mul_cancel_left _ _ hJ] |
| 116 | _ = (g.denominator Z)⁻¹ * (g.C * (g.denominator Z)ᵀ) * (g.denominator Z)ᵀ⁻¹ := by |
| 117 | rw [g.denominator_mul_transpose_C Z hZ] |
| 118 | _ = _ := by |
| 119 | rw [Matrix.mul_assoc, Matrix.mul_assoc, |
| 120 | Matrix.mul_nonsing_inv _ (Matrix.isUnit_det_transpose _ hJ), Matrix.mul_one] |
| 121 | |
| 122 | /-- The difference formula whose conjugate specialization gives the |
| 123 | imaginary-part transformation. -/ |
| 124 | theorem fractional_difference (Z W : Matrix ι ι R) (hW : W.IsSymm) |
| 125 | (hJZ : IsUnit (g.denominator Z).det) (hJW : IsUnit (g.denominator W).det) : |
| 126 | (g.denominator W)ᵀ * (g.fractional Z - g.fractional W) * g.denominator Z = Z - W := by |
| 127 | have hleft : (g.denominator W)ᵀ * g.fractional W = (g.numerator W)ᵀ := by |
| 128 | have h := congrArg Matrix.transpose (g.fractional_mul_denominator W hJW) |
| 129 | simpa only [transpose_mul, (g.fractional_symmetric W hW hJW).eq] using h |
| 130 | rw [Matrix.mul_sub, Matrix.sub_mul, Matrix.mul_assoc, g.fractional_mul_denominator Z hJZ, hleft] |
| 131 | exact g.cross_difference Z W hW |
| 132 | |
| 133 | end SymplecticBlocks |
| 134 | |
| 135 | end AlgebraicGeometry.ComplexMultiplication.CMSymplecticSiegel.CM |
| 136 | |
| 137 | namespace AlgebraicGeometry.ComplexMultiplication |
| 138 | |
| 139 | /-! |
| 140 | # Imaginary parts under real symplectic substitutions |
| 141 | |
| 142 | Real symplectic blocks are included in the complex matrices. The general |
| 143 | difference formula specializes to the exact imaginary-part identity. The |
| 144 | denominator's determinant is required to be a unit; no assertion about |
| 145 | theta functions or their inputs is assumed in these matrix calculations. |
| 146 | -/ |
| 147 | |
| 148 | open scoped _root_.Matrix |
| 149 | open _root_.Matrix |
| 150 | |
| 151 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 152 | |
| 153 | def CMSymplecticSiegel.CM.matrixConjugate (M : Matrix ι ι ℂ) : Matrix ι ι ℂ := M.map (starRingEnd ℂ) |
| 154 | |
| 155 | def CMSymplecticSiegel.CM.matrixImaginary (M : Matrix ι ι ℂ) : Matrix ι ι ℂ := M.map (fun z => (z.im : ℂ)) |
| 156 | |
| 157 | omit [DecidableEq ι] in |
| 158 | theorem CMSymplecticSiegel.CM.matrixConjugate_mul (M N : Matrix ι ι ℂ) : |
| 159 | CMSymplecticSiegel.CM.matrixConjugate (M * N) = CMSymplecticSiegel.CM.matrixConjugate M * CMSymplecticSiegel.CM.matrixConjugate N := Matrix.map_mul |
| 160 | |
| 161 | omit [Fintype ι] [DecidableEq ι] in |
| 162 | theorem CMSymplecticSiegel.CM.matrixConjugate_add (M N : Matrix ι ι ℂ) : |
| 163 | CMSymplecticSiegel.CM.matrixConjugate (M + N) = CMSymplecticSiegel.CM.matrixConjugate M + CMSymplecticSiegel.CM.matrixConjugate N := by |
| 164 | ext i j |
| 165 | simp [CMSymplecticSiegel.CM.matrixConjugate] |
| 166 | |
| 167 | theorem CMSymplecticSiegel.CM.matrixConjugate_inv (M : Matrix ι ι ℂ) : |
| 168 | CMSymplecticSiegel.CM.matrixConjugate M⁻¹ = (CMSymplecticSiegel.CM.matrixConjugate M)⁻¹ := by |
| 169 | change (M⁻¹ᴴ)ᵀ = (Mᴴᵀ)⁻¹ |
| 170 | rw [conjTranspose_nonsing_inv, transpose_nonsing_inv] |
| 171 | |
| 172 | omit [Fintype ι] [DecidableEq ι] in |
| 173 | theorem CMSymplecticSiegel.CM.matrixConjugate_real (M : Matrix ι ι ℝ) : |
| 174 | CMSymplecticSiegel.CM.matrixConjugate (M.map (algebraMap ℝ ℂ)) = M.map (algebraMap ℝ ℂ) := by |
| 175 | ext i j |
| 176 | simp [CMSymplecticSiegel.CM.matrixConjugate] |
| 177 | |
| 178 | theorem CMSymplecticSiegel.CM.matrixConjugate_det_isUnit (M : Matrix ι ι ℂ) (hM : IsUnit M.det) : |
| 179 | IsUnit (CMSymplecticSiegel.CM.matrixConjugate M).det := by |
| 180 | change IsUnit ((starRingEnd ℂ).mapMatrix M).det |
| 181 | rw [← (starRingEnd ℂ).map_det] |
| 182 | exact hM.map (starRingEnd ℂ) |
| 183 | |
| 184 | omit [Fintype ι] [DecidableEq ι] in |
| 185 | theorem CMSymplecticSiegel.CM.matrix_sub_conjugate (M : Matrix ι ι ℂ) : |
| 186 | M - CMSymplecticSiegel.CM.matrixConjugate M = (2 * Complex.I) • CMSymplecticSiegel.CM.matrixImaginary M := by |
| 187 | ext i j |
| 188 | apply Complex.ext <;> simp [CMSymplecticSiegel.CM.matrixConjugate, CMSymplecticSiegel.CM.matrixImaginary, Complex.mul_re, Complex.mul_im] |
| 189 | ring |
| 190 | |
| 191 | theorem CMSiegelMatrix.CM.SiegelMatrix.matrixImaginary_det_isUnit (Z : CMSiegelMatrix.CM.SiegelMatrix ι) : |
| 192 | IsUnit (CMSymplecticSiegel.CM.matrixImaginary Z.matrix).det := by |
| 193 | let Y : Matrix ι ι ℝ := fun i j => (Z.matrix i j).im |
| 194 | change IsUnit ((algebraMap ℝ ℂ).mapMatrix Y).det |
| 195 | rw [← (algebraMap ℝ ℂ).map_det] |
| 196 | exact ((Matrix.isUnit_iff_isUnit_det Y).mp Z.imaginary_posDef.isUnit).map (algebraMap ℝ ℂ) |
| 197 | |
| 198 | namespace CMSymplecticSiegel.CM.SymplecticBlocks |
| 199 | |
| 200 | variable (g : SymplecticBlocks ι ℝ) |
| 201 | |
| 202 | def complexify : SymplecticBlocks ι ℂ where |
| 203 | A := g.A.map (algebraMap ℝ ℂ) |
| 204 | B := g.B.map (algebraMap ℝ ℂ) |
| 205 | C := g.C.map (algebraMap ℝ ℂ) |
| 206 | D := g.D.map (algebraMap ℝ ℂ) |
| 207 | symplectic := by |
| 208 | simpa only [fromBlocks_map] using SymplecticGroup.map_mem g.symplectic (algebraMap ℝ ℂ) |
| 209 | |
| 210 | theorem complexify_numerator_conjugate (Z : Matrix ι ι ℂ) : |
| 211 | matrixConjugate (g.complexify.numerator Z) = g.complexify.numerator (matrixConjugate Z) := by |
| 212 | change matrixConjugate (g.A.map (algebraMap ℝ ℂ) * Z + g.B.map (algebraMap ℝ ℂ)) = _ |
| 213 | rw [matrixConjugate_add, matrixConjugate_mul, matrixConjugate_real, matrixConjugate_real] |
| 214 | rfl |
| 215 | |
| 216 | theorem complexify_denominator_conjugate (Z : Matrix ι ι ℂ) : |
| 217 | matrixConjugate (g.complexify.denominator Z) = g.complexify.denominator (matrixConjugate Z) := by |
| 218 | change matrixConjugate (g.C.map (algebraMap ℝ ℂ) * Z + g.D.map (algebraMap ℝ ℂ)) = _ |
| 219 | rw [matrixConjugate_add, matrixConjugate_mul, matrixConjugate_real, matrixConjugate_real] |
| 220 | rfl |
| 221 | |
| 222 | theorem complexify_fractional_conjugate (Z : Matrix ι ι ℂ) : |
| 223 | matrixConjugate (g.complexify.fractional Z) = g.complexify.fractional (matrixConjugate Z) := by |
| 224 | rw [SymplecticBlocks.fractional, matrixConjugate_mul, matrixConjugate_inv, |
| 225 | g.complexify_numerator_conjugate, g.complexify_denominator_conjugate] |
| 226 | rfl |
| 227 | |
| 228 | theorem complexify_fractional_imaginary (Z : Matrix ι ι ℂ) (hZ : Z.IsSymm) |
| 229 | (hJ : IsUnit (g.complexify.denominator Z).det) : |
| 230 | (matrixConjugate (g.complexify.denominator Z))ᵀ * |
| 231 | matrixImaginary (g.complexify.fractional Z) * g.complexify.denominator Z = matrixImaginary Z := by |
| 232 | have hJc : IsUnit (g.complexify.denominator (matrixConjugate Z)).det := by |
| 233 | rw [← g.complexify_denominator_conjugate] |
| 234 | exact matrixConjugate_det_isUnit _ hJ |
| 235 | have h := g.complexify.fractional_difference Z (matrixConjugate Z) |
| 236 | (hZ.map (starRingEnd ℂ)) hJ hJc |
| 237 | rw [← g.complexify_denominator_conjugate, ← g.complexify_fractional_conjugate, |
| 238 | matrix_sub_conjugate, matrix_sub_conjugate, Matrix.mul_smul, Matrix.smul_mul] at h |
| 239 | have h' := congrArg (fun M : Matrix ι ι ℂ => (2 * Complex.I)⁻¹ • M) h |
| 240 | have hi : (2 * Complex.I : ℂ) ≠ 0 := mul_ne_zero (by norm_num) Complex.I_ne_zero |
| 241 | simpa only [smul_smul, inv_mul_cancel₀ hi, one_smul] |
| 242 | using h' |
| 243 | |
| 244 | theorem complexify_fractional_imaginary_inv (Z : Matrix ι ι ℂ) (hZ : Z.IsSymm) |
| 245 | (hJ : IsUnit (g.complexify.denominator Z).det) (hY : IsUnit (matrixImaginary Z).det) : |
| 246 | (matrixImaginary (g.complexify.fractional Z))⁻¹ = |
| 247 | g.complexify.denominator Z * (matrixImaginary Z)⁻¹ * |
| 248 | (matrixConjugate (g.complexify.denominator Z))ᵀ := by |
| 249 | have ht := g.complexify_fractional_imaginary Z hZ hJ |
| 250 | have ht' : (matrixConjugate (g.complexify.denominator Z))ᵀ * |
| 251 | matrixImaginary (g.complexify.fractional Z) = matrixImaginary Z * (g.complexify.denominator Z)⁻¹ := by |
| 252 | calc |
| 253 | _ = ((matrixConjugate (g.complexify.denominator Z))ᵀ * |
| 254 | matrixImaginary (g.complexify.fractional Z) * g.complexify.denominator Z) * |
| 255 | (g.complexify.denominator Z)⁻¹ := by rw [Matrix.mul_nonsing_inv_cancel_right _ _ hJ] |
| 256 | _ = _ := by rw [ht] |
| 257 | apply Matrix.inv_eq_left_inv |
| 258 | calc |
| 259 | _ = g.complexify.denominator Z * (matrixImaginary Z)⁻¹ * |
| 260 | ((matrixConjugate (g.complexify.denominator Z))ᵀ * matrixImaginary (g.complexify.fractional Z)) := by |
| 261 | simp only [Matrix.mul_assoc] |
| 262 | _ = g.complexify.denominator Z * ((matrixImaginary Z)⁻¹ * matrixImaginary Z) * |
| 263 | (g.complexify.denominator Z)⁻¹ := by rw [ht']; simp only [Matrix.mul_assoc] |
| 264 | _ = 1 := by rw [Matrix.nonsing_inv_mul _ hY, Matrix.mul_one, Matrix.mul_nonsing_inv _ hJ] |
| 265 | |
| 266 | theorem complexify_denominator_sub_conjugate (Z : Matrix ι ι ℂ) : |
| 267 | g.complexify.denominator Z - matrixConjugate (g.complexify.denominator Z) = |
| 268 | (2 * Complex.I) • (g.complexify.C * matrixImaginary Z) := by |
| 269 | rw [g.complexify_denominator_conjugate] |
| 270 | calc |
| 271 | _ = g.complexify.C * (Z - matrixConjugate Z) := by unfold SymplecticBlocks.denominator; noncomm_ring |
| 272 | _ = _ := by rw [matrix_sub_conjugate, Matrix.mul_smul] |
| 273 | |
| 274 | /-- Pulling back the inverse imaginary matrix by `J⁻ᵀ` changes its |
| 275 | quadratic form by exactly `-2i J⁻¹ C`, the correction in the manuscript. -/ |
| 276 | theorem inverse_imaginary_pullback (Z : Matrix ι ι ℂ) (hZ : Z.IsSymm) |
| 277 | (hJ : IsUnit (g.complexify.denominator Z).det) (hY : IsUnit (matrixImaginary Z).det) : |
| 278 | (g.complexify.denominator Z)⁻¹ * (matrixImaginary (g.complexify.fractional Z))⁻¹ * |
| 279 | (g.complexify.denominator Z)⁻¹ᵀ = |
| 280 | (matrixImaginary Z)⁻¹ - (2 * Complex.I) • |
| 281 | ((g.complexify.denominator Z)⁻¹ * g.complexify.C) := by |
| 282 | have hdiff := congrArg Matrix.transpose (g.complexify_denominator_sub_conjugate Z) |
| 283 | have hYsym : (matrixImaginary Z).IsSymm := hZ.map (fun z => (z.im : ℂ)) |
| 284 | rw [transpose_sub, transpose_smul, transpose_mul, hYsym.eq] at hdiff |
| 285 | have hc : (matrixConjugate (g.complexify.denominator Z))ᵀ = |
| 286 | (g.complexify.denominator Z)ᵀ - (2 * Complex.I) • (matrixImaginary Z * g.complexify.Cᵀ) := by |
| 287 | calc |
| 288 | _ = (g.complexify.denominator Z)ᵀ - |
| 289 | ((g.complexify.denominator Z)ᵀ - (matrixConjugate (g.complexify.denominator Z))ᵀ) := by |
| 290 | noncomm_ring |
| 291 | _ = _ := by rw [hdiff] |
| 292 | calc |
| 293 | _ = (matrixImaginary Z)⁻¹ * (matrixConjugate (g.complexify.denominator Z))ᵀ * |
| 294 | (g.complexify.denominator Z)⁻¹ᵀ := by |
| 295 | rw [g.complexify_fractional_imaginary_inv Z hZ hJ hY] |
| 296 | simp only [← Matrix.mul_assoc, Matrix.nonsing_inv_mul _ hJ, Matrix.one_mul] |
| 297 | _ = (matrixImaginary Z)⁻¹ - (2 * Complex.I) • |
| 298 | (g.complexify.Cᵀ * (g.complexify.denominator Z)⁻¹ᵀ) := by |
| 299 | rw [hc, Matrix.mul_sub, Matrix.sub_mul, Matrix.mul_smul, Matrix.smul_mul] |
| 300 | simp only [transpose_nonsing_inv, |
| 301 | Matrix.mul_nonsing_inv_cancel_right _ _ (Matrix.isUnit_det_transpose _ hJ), |
| 302 | Matrix.nonsing_inv_mul_cancel_left _ _ hY] |
| 303 | _ = _ := by rw [← transpose_mul, (g.complexify.correction_symmetric Z hZ hJ).eq] |
| 304 | |
| 305 | end CMSymplecticSiegel.CM.SymplecticBlocks |
| 306 | |
| 307 | end AlgebraicGeometry.ComplexMultiplication |
| 308 | |
| 309 | namespace AlgebraicGeometry.ComplexMultiplication.CMSymplecticSiegel.CM |
| 310 | section |
| 311 | |
| 312 | /-! |
| 313 | # The symplectic denominator is invertible on the Siegel domain |
| 314 | |
| 315 | Positivity on real vectors extends to the real part of the Hermitian |
| 316 | quadratic expression on complex vectors. A vector in the kernel of |
| 317 | `CZ + D` would contradict this positivity through the inverse-free |
| 318 | symplectic cross identity. Thus denominator invertibility is proved |
| 319 | from the actual Siegel and real symplectic hypotheses. |
| 320 | -/ |
| 321 | |
| 322 | open scoped _root_.Matrix |
| 323 | open _root_.Matrix |
| 324 | |
| 325 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 326 | |
| 327 | omit [DecidableEq ι] in |
| 328 | theorem complex_quadratic_realPart (Y : Matrix ι ι ℝ) (v : ι → ℂ) : |
| 329 | (star v ⬝ᵥ (Y.map (algebraMap ℝ ℂ) *ᵥ v)).re = |
| 330 | (fun i => (v i).re) ⬝ᵥ (Y *ᵥ (fun i => (v i).re)) + |
| 331 | (fun i => (v i).im) ⬝ᵥ (Y *ᵥ (fun i => (v i).im)) := by |
| 332 | simp [dotProduct, Matrix.mulVec, Complex.mul_re, Complex.mul_im, |
| 333 | Finset.mul_sum, Finset.sum_add_distrib] |
| 334 | |
| 335 | omit [DecidableEq ι] in |
| 336 | theorem complex_quadratic_realPart_pos (Y : Matrix ι ι ℝ) (hY : Y.PosDef) |
| 337 | (v : ι → ℂ) (hv : v ≠ 0) : |
| 338 | 0 < (star v ⬝ᵥ (Y.map (algebraMap ℝ ℂ) *ᵥ v)).re := by |
| 339 | rw [complex_quadratic_realPart] |
| 340 | have hr : 0 ≤ (fun i => (v i).re) ⬝ᵥ (Y *ᵥ (fun i => (v i).re)) := by |
| 341 | simpa only [star_trivial] using hY.posSemidef.dotProduct_mulVec_nonneg (fun i => (v i).re) |
| 342 | have hi : 0 ≤ (fun i => (v i).im) ⬝ᵥ (Y *ᵥ (fun i => (v i).im)) := by |
| 343 | simpa only [star_trivial] using hY.posSemidef.dotProduct_mulVec_nonneg (fun i => (v i).im) |
| 344 | by_cases hvr : (fun i => (v i).re) = 0 |
| 345 | · have hvi : (fun i => (v i).im) ≠ 0 := by |
| 346 | intro hvi |
| 347 | apply hv |
| 348 | funext i |
| 349 | apply Complex.ext |
| 350 | · exact congrFun hvr i |
| 351 | · exact congrFun hvi i |
| 352 | have hip : 0 < (fun i => (v i).im) ⬝ᵥ (Y *ᵥ (fun i => (v i).im)) := by |
| 353 | simpa only [star_trivial] using hY.dotProduct_mulVec_pos hvi |
| 354 | exact add_pos_of_nonneg_of_pos hr hip |
| 355 | · have hrp : 0 < (fun i => (v i).re) ⬝ᵥ (Y *ᵥ (fun i => (v i).re)) := by |
| 356 | simpa only [star_trivial] using hY.dotProduct_mulVec_pos hvr |
| 357 | exact add_pos_of_pos_of_nonneg hrp hi |
| 358 | |
| 359 | omit [DecidableEq ι] in |
| 360 | theorem matrixConjugate_mulVec_star (M : Matrix ι ι ℂ) (v : ι → ℂ) : |
| 361 | matrixConjugate M *ᵥ star v = star (M *ᵥ v) := by |
| 362 | funext i |
| 363 | exact ((starRingEnd ℂ).map_mulVec M v i).symm |
| 364 | |
| 365 | namespace SymplecticBlocks |
| 366 | |
| 367 | variable (g : SymplecticBlocks ι ℝ) (Z : CMSiegelMatrix.CM.SiegelMatrix ι) |
| 368 | |
| 369 | theorem denominator_kernel_eq_zero (v : ι → ℂ) |
| 370 | (hv : g.complexify.denominator Z.matrix *ᵥ v = 0) : v = 0 := by |
| 371 | by_contra hv0 |
| 372 | have hpos : 0 < (star v ⬝ᵥ (matrixImaginary Z.matrix *ᵥ v)).re := |
| 373 | complex_quadratic_realPart_pos _ Z.imaginary_posDef v hv0 |
| 374 | have hconj : matrixConjugate (g.complexify.denominator Z.matrix) *ᵥ star v = 0 := by |
| 375 | rw [matrixConjugate_mulVec_star, hv, star_zero] |
| 376 | have hcross := g.complexify.cross_difference Z.matrix (matrixConjugate Z.matrix) |
| 377 | (Z.symmetric.map (starRingEnd ℂ)) |
| 378 | rw [← g.complexify_denominator_conjugate, ← g.complexify_numerator_conjugate, |
| 379 | matrix_sub_conjugate] at hcross |
| 380 | have h := congrArg (fun M : Matrix ι ι ℂ => star v ⬝ᵥ (M *ᵥ v)) hcross |
| 381 | simp only [Matrix.sub_mulVec, ← Matrix.mulVec_mulVec, dotProduct_sub, |
| 382 | dotProduct_transpose_mulVec, hconj, hv, Matrix.mulVec_zero, dotProduct_zero, |
| 383 | sub_self, Matrix.smul_mulVec, dotProduct_smul, smul_eq_mul] at h |
| 384 | have hi : (2 * Complex.I : ℂ) ≠ 0 := mul_ne_zero (by norm_num) Complex.I_ne_zero |
| 385 | have hzero : star v ⬝ᵥ (matrixImaginary Z.matrix *ᵥ v) = 0 := |
| 386 | (mul_eq_zero.mp h.symm).resolve_left hi |
| 387 | rw [hzero, Complex.zero_re] at hpos |
| 388 | exact (lt_irrefl 0) hpos |
| 389 | |
| 390 | /-- The actual denominator of every real symplectic substitution at a |
| 391 | positive Siegel matrix has nonzero determinant. -/ |
| 392 | theorem denominator_det_isUnit : IsUnit (g.complexify.denominator Z.matrix).det := by |
| 393 | apply (Matrix.isUnit_iff_isUnit_det _).mp |
| 394 | apply Matrix.mulVec_injective_iff_isUnit.mp |
| 395 | intro v w hvw |
| 396 | apply sub_eq_zero.mp |
| 397 | apply g.denominator_kernel_eq_zero Z |
| 398 | rw [Matrix.mulVec_sub, hvw, sub_self] |
| 399 | |
| 400 | /-- The inverse-imaginary-matrix correction now follows with no separate |
| 401 | invertibility assumptions for a genuine Siegel matrix. -/ |
| 402 | theorem inverse_imaginary_pullback_siegel : |
| 403 | (g.complexify.denominator Z.matrix)⁻¹ * |
| 404 | (matrixImaginary (g.complexify.fractional Z.matrix))⁻¹ * |
| 405 | (g.complexify.denominator Z.matrix)⁻¹ᵀ = |
| 406 | (matrixImaginary Z.matrix)⁻¹ - (2 * Complex.I) • |
| 407 | ((g.complexify.denominator Z.matrix)⁻¹ * g.complexify.C) := |
| 408 | g.inverse_imaginary_pullback Z.matrix Z.symmetric (g.denominator_det_isUnit Z) |
| 409 | Z.matrixImaginary_det_isUnit |
| 410 | |
| 411 | end SymplecticBlocks |
| 412 | |
| 413 | end |
| 414 | |
| 415 | /-! |
| 416 | # Real symplectic substitutions preserve the Siegel domain |
| 417 | |
| 418 | The fractional matrix is symmetric and its imaginary part is positive |
| 419 | definite. This constructs the transformed Siegel matrix from the actual |
| 420 | real symplectic blocks, with no separate invertibility or positivity |
| 421 | premises on the result. |
| 422 | -/ |
| 423 | |
| 424 | open scoped _root_.Matrix |
| 425 | open _root_.Matrix |
| 426 | |
| 427 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 428 | |
| 429 | omit [DecidableEq ι] in |
| 430 | theorem hermitian_matrix_pullback (K M : Matrix ι ι ℂ) (v : ι → ℂ) : |
| 431 | star (K *ᵥ v) ⬝ᵥ (M *ᵥ (K *ᵥ v)) = |
| 432 | star v ⬝ᵥ (((matrixConjugate K)ᵀ * M * K) *ᵥ v) := by |
| 433 | symm |
| 434 | rw [← Matrix.mulVec_mulVec, ← Matrix.mulVec_mulVec, dotProduct_transpose_mulVec, |
| 435 | matrixConjugate_mulVec_star, dotProduct_comm] |
| 436 | |
| 437 | namespace SymplecticBlocks |
| 438 | |
| 439 | variable (g : SymplecticBlocks ι ℝ) (Z : CMSiegelMatrix.CM.SiegelMatrix ι) |
| 440 | |
| 441 | theorem fractional_imaginary_quadratic (v : ι → ℂ) : |
| 442 | star (g.complexify.denominator Z.matrix *ᵥ v) ⬝ᵥ |
| 443 | (matrixImaginary (g.complexify.fractional Z.matrix) *ᵥ |
| 444 | (g.complexify.denominator Z.matrix *ᵥ v)) = |
| 445 | star v ⬝ᵥ (matrixImaginary Z.matrix *ᵥ v) := by |
| 446 | rw [hermitian_matrix_pullback, |
| 447 | g.complexify_fractional_imaginary Z.matrix Z.symmetric (g.denominator_det_isUnit Z)] |
| 448 | |
| 449 | theorem fractional_imaginary_complex_pos (v : ι → ℂ) (hv : v ≠ 0) : |
| 450 | 0 < (star v ⬝ᵥ (matrixImaginary (g.complexify.fractional Z.matrix) *ᵥ v)).re := by |
| 451 | let w := (g.complexify.denominator Z.matrix)⁻¹ *ᵥ v |
| 452 | have hwv : g.complexify.denominator Z.matrix *ᵥ w = v := by |
| 453 | dsimp [w] |
| 454 | rw [Matrix.mulVec_mulVec, Matrix.mul_nonsing_inv _ (g.denominator_det_isUnit Z), Matrix.one_mulVec] |
| 455 | have hw : w ≠ 0 := by |
| 456 | intro hw |
| 457 | apply hv |
| 458 | rw [hw, Matrix.mulVec_zero] at hwv |
| 459 | exact hwv.symm |
| 460 | have hpos : 0 < (star w ⬝ᵥ (matrixImaginary Z.matrix *ᵥ w)).re := |
| 461 | complex_quadratic_realPart_pos _ Z.imaginary_posDef w hw |
| 462 | have heq := g.fractional_imaginary_quadratic Z w |
| 463 | rw [hwv] at heq |
| 464 | rwa [heq] |
| 465 | |
| 466 | theorem fractional_imaginary_posDef : |
| 467 | Matrix.PosDef (fun i j => (g.complexify.fractional Z.matrix i j).im) := by |
| 468 | apply Matrix.PosDef.of_dotProduct_mulVec_pos |
| 469 | · apply Matrix.isHermitian_iff_isSymm.mpr |
| 470 | exact (g.complexify.fractional_symmetric Z.matrix Z.symmetric |
| 471 | (g.denominator_det_isUnit Z)).map Complex.im |
| 472 | · intro v hv |
| 473 | let vc : ι → ℂ := fun i => (v i : ℂ) |
| 474 | have hvc : vc ≠ 0 := by |
| 475 | intro h |
| 476 | apply hv |
| 477 | funext i |
| 478 | have hi : (v i : ℂ) = 0 := congrFun h i |
| 479 | exact_mod_cast hi |
| 480 | have h := g.fractional_imaginary_complex_pos Z vc hvc |
| 481 | let Y : Matrix ι ι ℝ := fun i j => (g.complexify.fractional Z.matrix i j).im |
| 482 | change 0 < (star vc ⬝ᵥ (Y.map (algebraMap ℝ ℂ) *ᵥ vc)).re at h |
| 483 | rw [complex_quadratic_realPart] at h |
| 484 | simpa [vc] using h |
| 485 | |
| 486 | /-- The transformed positive Siegel matrix. -/ |
| 487 | def transformSiegel : CMSiegelMatrix.CM.SiegelMatrix ι where |
| 488 | matrix := g.complexify.fractional Z.matrix |
| 489 | symmetric := g.complexify.fractional_symmetric Z.matrix Z.symmetric (g.denominator_det_isUnit Z) |
| 490 | imaginary_posDef := g.fractional_imaginary_posDef Z |
| 491 | |
| 492 | theorem transformSiegel_matrix : (g.transformSiegel Z).matrix = |
| 493 | (g.complexify.A * Z.matrix + g.complexify.B) * |
| 494 | (g.complexify.C * Z.matrix + g.complexify.D)⁻¹ := rfl |
| 495 | |
| 496 | end SymplecticBlocks |
| 497 | |
| 498 | end AlgebraicGeometry.ComplexMultiplication.CMSymplecticSiegel.CM |
| 499 | |
| 500 | end |
| 501 | |
| 502 | end OAI |