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.SiegelGaussian |
| 2 | |
| 3 | /-! # Frame Generators -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Weil.Local |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The actual lower and Weyl generators act on positive Gaussian frames. -/ |
| 10 | |
| 11 | open _root_.Matrix |
| 12 | |
| 13 | theorem SiegelGaussian.Construction.PositiveLagrangianFrame.lower_matrix {n : ℕ} (P : SiegelGaussian.Construction.PositiveLagrangianFrame n) |
| 14 | (B : FunctionsMetaplectic.Construction.SymmetricMatrix ℝ n) : |
| 15 | (P.act (Generators.Construction.quadraticSymplectic B)).matrix = |
| 16 | Matrix.fromRows P.position (B.val.map Complex.ofReal * P.position + P.momentum) := by |
| 17 | change (Generators.Construction.quadraticSymplectic B).val.map Complex.ofReal * P.matrix = _ |
| 18 | rw [Generators.Construction.quadraticSymplectic_matrix, ← P.fromRows, fromBlocks_map] |
| 19 | simp only [Matrix.map_one _ Complex.ofReal_zero Complex.ofReal_one, |
| 20 | Matrix.map_zero _ Complex.ofReal_zero, fromBlocks_mul_fromRows, one_mul, |
| 21 | zero_mul, add_zero] |
| 22 | |
| 23 | theorem SiegelGaussian.Construction.PositiveLagrangianFrame.lower_position {n : ℕ} (P : SiegelGaussian.Construction.PositiveLagrangianFrame n) |
| 24 | (B : FunctionsMetaplectic.Construction.SymmetricMatrix ℝ n) : (P.act (Generators.Construction.quadraticSymplectic B)).position = P.position := by |
| 25 | unfold SiegelGaussian.Construction.PositiveLagrangianFrame.position |
| 26 | rw [P.lower_matrix] |
| 27 | rfl |
| 28 | |
| 29 | theorem SiegelGaussian.Construction.PositiveLagrangianFrame.lower_momentum {n : ℕ} (P : SiegelGaussian.Construction.PositiveLagrangianFrame n) |
| 30 | (B : FunctionsMetaplectic.Construction.SymmetricMatrix ℝ n) : (P.act (Generators.Construction.quadraticSymplectic B)).momentum = |
| 31 | B.val.map Complex.ofReal * P.position + P.momentum := by |
| 32 | unfold SiegelGaussian.Construction.PositiveLagrangianFrame.momentum |
| 33 | rw [P.lower_matrix] |
| 34 | rfl |
| 35 | |
| 36 | theorem SiegelGaussian.Construction.PositiveLagrangianFrame.lower_quadraticMatrix {n : ℕ} (P : SiegelGaussian.Construction.PositiveLagrangianFrame n) |
| 37 | (B : FunctionsMetaplectic.Construction.SymmetricMatrix ℝ n) : (P.act (Generators.Construction.quadraticSymplectic B)).quadraticMatrix = |
| 38 | B.val.map Complex.ofReal + P.quadraticMatrix := by |
| 39 | rw [SiegelGaussian.Construction.PositiveLagrangianFrame.quadraticMatrix, P.lower_position, P.lower_momentum, Matrix.add_mul, |
| 40 | Matrix.mul_assoc, P.position_mul_inv, mul_one] |
| 41 | rfl |
| 42 | |
| 43 | theorem SiegelGaussian.Construction.PositiveLagrangianFrame.weyl_matrix {n : ℕ} (P : SiegelGaussian.Construction.PositiveLagrangianFrame n) : |
| 44 | (P.act (Generators.Construction.weylSymplectic ℝ n)).matrix = Matrix.fromRows P.momentum (-P.position) := by |
| 45 | change (Generators.Construction.weylSymplectic ℝ n).val.map Complex.ofReal * P.matrix = _ |
| 46 | rw [Generators.Construction.weylSymplectic_matrix, ← P.fromRows, fromBlocks_map] |
| 47 | simp only [Matrix.map_one _ Complex.ofReal_zero Complex.ofReal_one, |
| 48 | Matrix.map_zero _ Complex.ofReal_zero, Matrix.map_neg _ Complex.ofReal_neg, |
| 49 | fromBlocks_mul_fromRows, one_mul, zero_mul, add_zero, zero_add, neg_mul] |
| 50 | |
| 51 | theorem SiegelGaussian.Construction.PositiveLagrangianFrame.weyl_position {n : ℕ} (P : SiegelGaussian.Construction.PositiveLagrangianFrame n) : |
| 52 | (P.act (Generators.Construction.weylSymplectic ℝ n)).position = P.momentum := by |
| 53 | unfold SiegelGaussian.Construction.PositiveLagrangianFrame.position |
| 54 | rw [P.weyl_matrix] |
| 55 | rfl |
| 56 | |
| 57 | theorem SiegelGaussian.Construction.PositiveLagrangianFrame.weyl_momentum {n : ℕ} (P : SiegelGaussian.Construction.PositiveLagrangianFrame n) : |
| 58 | (P.act (Generators.Construction.weylSymplectic ℝ n)).momentum = -P.position := by |
| 59 | unfold SiegelGaussian.Construction.PositiveLagrangianFrame.momentum |
| 60 | rw [P.weyl_matrix] |
| 61 | rfl |
| 62 | |
| 63 | theorem SiegelGaussian.Construction.PositiveLagrangianFrame.momentum_isUnit {n : ℕ} (P : SiegelGaussian.Construction.PositiveLagrangianFrame n) : |
| 64 | IsUnit P.momentum := by |
| 65 | rw [← P.weyl_position] |
| 66 | exact (P.act (Generators.Construction.weylSymplectic ℝ n)).position_isUnit |
| 67 | |
| 68 | theorem SiegelGaussian.Construction.PositiveLagrangianFrame.weyl_quadraticMatrix {n : ℕ} (P : SiegelGaussian.Construction.PositiveLagrangianFrame n) : |
| 69 | (P.act (Generators.Construction.weylSymplectic ℝ n)).quadraticMatrix = -P.quadraticMatrix⁻¹ := by |
| 70 | rw [SiegelGaussian.Construction.PositiveLagrangianFrame.quadraticMatrix, P.weyl_position, P.weyl_momentum, Matrix.neg_mul] |
| 71 | congr 1 |
| 72 | rw [SiegelGaussian.Construction.PositiveLagrangianFrame.quadraticMatrix, Matrix.mul_inv_rev, |
| 73 | Matrix.nonsing_inv_nonsing_inv _ ((isUnit_iff_isUnit_det _).mp P.position_isUnit)] |
| 74 | |
| 75 | theorem SiegelGaussian.Construction.PositiveLagrangianFrame.quadraticMatrix_isUnit {n : ℕ} (P : SiegelGaussian.Construction.PositiveLagrangianFrame n) : |
| 76 | IsUnit P.quadraticMatrix := |
| 77 | P.momentum_isUnit.mul (Matrix.isUnit_nonsing_inv_iff.mpr P.position_isUnit) |
| 78 | |
| 79 | theorem SiegelGaussian.Construction.PositiveLagrangianFrame.weyl_position_det {n : ℕ} (P : SiegelGaussian.Construction.PositiveLagrangianFrame n) : |
| 80 | (P.act (Generators.Construction.weylSymplectic ℝ n)).position.det = P.quadraticMatrix.det * P.position.det := by |
| 81 | rw [P.weyl_position, ← det_mul, SiegelGaussian.Construction.PositiveLagrangianFrame.quadraticMatrix, Matrix.mul_assoc, |
| 82 | Matrix.nonsing_inv_mul _ ((isUnit_iff_isUnit_det _).mp P.position_isUnit), mul_one] |
| 83 | |
| 84 | theorem FrameGenerators.Construction.siegelGaussian_quadratic_mul {n : ℕ} (Z : Matrix (Fin n) (Fin n) ℂ) |
| 85 | (B : Matrix (Fin n) (Fin n) ℝ) (x : FunctionsMetaplectic.Construction.Position ℝ n) : |
| 86 | Gaussian.Construction.realCharacter 1 (FunctionsMetaplectic.Construction.quadratic B x) * SiegelGaussian.Construction.siegelGaussian Z x = |
| 87 | SiegelGaussian.Construction.siegelGaussian (B.map Complex.ofReal + Z) x := by |
| 88 | rw [Gaussian.Construction.realCharacter_apply, SiegelGaussian.Construction.siegelGaussian, SiegelGaussian.Construction.siegelGaussian, ← Complex.exp_add, |
| 89 | Matrix.add_mulVec, dotProduct_add, mul_add] |
| 90 | congr 1 |
| 91 | congr 1 |
| 92 | unfold FunctionsMetaplectic.Construction.quadratic Matrix.mulVec dotProduct |
| 93 | simp only [Complex.ofReal_mul, Complex.ofReal_div, Complex.ofReal_ofNat, |
| 94 | Complex.ofReal_one, Complex.ofReal_sum, Matrix.map_apply, Finset.mul_sum] |
| 95 | have he (s : ℂ) : 2 * Real.pi * 1 * (s / 2) * Complex.I = Real.pi * Complex.I * s := by ring |
| 96 | rw [he] |
| 97 | simp only [Finset.mul_sum] |
| 98 | apply Finset.sum_congr rfl |
| 99 | intro i _ |
| 100 | apply Finset.sum_congr rfl |
| 101 | intro j _ |
| 102 | ring |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.RepresentationTheory.Weil.Local |