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.HodgeConjecture.ThetaCycle.RealGaussianCoefficient |
| 2 | |
| 3 | /-! # Jacobi Displacement -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.JacobiDisplacement.CM |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! ThetaCycle: the Jacobi Gaussian is a concrete Heisenberg displacement of |
| 12 | the Gaussian at zero, with its exact exponential scalar. -/ |
| 13 | |
| 14 | open scoped Classical _root_.Matrix |
| 15 | open _root_.Matrix |
| 16 | |
| 17 | theorem gaussian_exponent_matrix {N : ℕ} (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix (Fin N)) |
| 18 | (z : Fin N → ℂ) (x : Fin N → ℝ) : |
| 19 | RepresentationTheory.Theta.PoissonAutomorphyGaussianPoisson.Construction.gaussianExponent Z z x = (Real.pi : ℂ) * Complex.I * |
| 20 | ((fun i => (x i : ℂ)) ⬝ᵥ (Z.matrix *ᵥ fun i => (x i : ℂ))) + |
| 21 | (2 * (Real.pi : ℂ) * Complex.I) * ((fun i => (x i : ℂ)) ⬝ᵥ z) := by |
| 22 | simp only [RepresentationTheory.Theta.PoissonAutomorphyGaussianPoisson.Construction.gaussianExponent, ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix.phase, ComplexMultiplication.CMSiegelMatrix.CM.siegelMatrixForm_apply, |
| 23 | ComplexMultiplication.ThetaCoordinates.CM.thetaCoordinatePairing_apply, dotProduct, Matrix.mulVec, Finset.mul_sum, |
| 24 | mul_assoc, mul_comm, mul_left_comm] |
| 25 | |
| 26 | theorem complex_gaussian_displacement {I : Type*} [Fintype I] |
| 27 | (Z : Matrix I I ℂ) (hZ : Z.IsSymm) (x q p : I → ℂ) : |
| 28 | (Real.pi : ℂ) * Complex.I * ((x - q) ⬝ᵥ (Z *ᵥ (x - q))) + |
| 29 | (2 * (Real.pi : ℂ) * Complex.I) * (p ⬝ᵥ (x - (1 / 2 : ℂ) • q)) = |
| 30 | -((Real.pi : ℂ) * Complex.I * (q ⬝ᵥ (p - Z *ᵥ q))) + |
| 31 | ((Real.pi : ℂ) * Complex.I * (x ⬝ᵥ (Z *ᵥ x)) + |
| 32 | (2 * (Real.pi : ℂ) * Complex.I) * (x ⬝ᵥ (p - Z *ᵥ q))) := by |
| 33 | have hcross : q ⬝ᵥ (Z *ᵥ x) = x ⬝ᵥ (Z *ᵥ q) := by |
| 34 | simpa only [hZ.eq] using Matrix.dotProduct_transpose_mulVec Z q x |
| 35 | simp only [Matrix.mulVec_sub, dotProduct_sub, sub_dotProduct, dotProduct_smul, hcross] |
| 36 | rw [dotProduct_comm p x, dotProduct_comm p q] |
| 37 | ring |
| 38 | |
| 39 | def displacementJacobi {N : ℕ} (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix (Fin N)) (q p : Fin N → ℝ) : Fin N → ℂ := |
| 40 | (fun i => (p i : ℂ)) - Z.matrix *ᵥ (fun i => (q i : ℂ)) |
| 41 | |
| 42 | def displacementScalar {N : ℕ} (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix (Fin N)) (q p : Fin N → ℝ) : ℂ := |
| 43 | Complex.exp (-((Real.pi : ℂ) * Complex.I * |
| 44 | ((fun i => (q i : ℂ)) ⬝ᵥ displacementJacobi Z q p))) |
| 45 | |
| 46 | theorem displacement_scalar_ne_zero {N : ℕ} (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix (Fin N)) (q p : Fin N → ℝ) : |
| 47 | displacementScalar Z q p ≠ 0 := Complex.exp_ne_zero _ |
| 48 | |
| 49 | theorem heisenberg_gaussian_displacement {N : ℕ} (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix (Fin N)) |
| 50 | (q p x : Fin N → ℝ) : |
| 51 | RepresentationTheory.Weil.Local.FunctionsMetaplectic.Construction.heisenbergFunction (RepresentationTheory.Weil.Local.Gaussian.Construction.realCharacter 1) (Sum.elim q p) (RealGaussianCoefficient.CM.realSiegelGaussian Z 0).val x = |
| 52 | displacementScalar Z q p * (RealGaussianCoefficient.CM.realSiegelGaussian Z (displacementJacobi Z q p)).val x := by |
| 53 | simp only [RepresentationTheory.Weil.Local.FunctionsMetaplectic.Construction.heisenbergFunction, Sum.elim_inl, Sum.elim_inr, RepresentationTheory.Weil.Local.Gaussian.Construction.realCharacter_apply, |
| 54 | RealGaussianCoefficient.CM.real_siegel_gaussian_apply, RepresentationTheory.Theta.PoissonAutomorphyGaussianPoisson.Construction.gaussianFunction, displacementScalar] |
| 55 | rw [← Complex.exp_add, ← Complex.exp_add, gaussian_exponent_matrix, gaussian_exponent_matrix] |
| 56 | have hxq : (fun i => ((x i - q i : ℝ) : ℂ)) = |
| 57 | (fun i => (x i : ℂ)) - (fun i => (q i : ℂ)) := by ext i; simp |
| 58 | have hchar : (((2 * Real.pi * 1 * (∑ i, p i * (x i - q i / 2)) : ℝ) : ℂ) * Complex.I) = |
| 59 | (2 * (Real.pi : ℂ) * Complex.I) * |
| 60 | ((fun i => (p i : ℂ)) ⬝ᵥ ((fun i => (x i : ℂ)) - (1 / 2 : ℂ) • (fun i => (q i : ℂ)))) := by |
| 61 | simp only [Complex.ofReal_mul, Complex.ofReal_ofNat, |
| 62 | Complex.ofReal_sum, Complex.ofReal_sub, Complex.ofReal_inv, dotProduct, Pi.sub_apply, |
| 63 | Pi.smul_apply, smul_eq_mul, div_eq_mul_inv, one_mul, |
| 64 | mul_assoc, mul_comm, mul_left_comm] |
| 65 | congr 1 |
| 66 | rw [hchar, hxq] |
| 67 | simp only [dotProduct_zero, mul_zero, add_zero] |
| 68 | rw [add_comm] |
| 69 | exact complex_gaussian_displacement Z.matrix Z.symmetric _ _ _ |
| 70 | |
| 71 | end |
| 72 | |
| 73 | /-! ThetaCycle: every complex Jacobi parameter is represented by an actual |
| 74 | real position and momentum displacement, using the positive imaginary part. -/ |
| 75 | |
| 76 | open scoped Classical _root_.Matrix |
| 77 | open _root_.Matrix |
| 78 | |
| 79 | theorem displacement_jacobi_re {N : ℕ} (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix (Fin N)) |
| 80 | (q p : Fin N → ℝ) (i : Fin N) : |
| 81 | (displacementJacobi Z q p i).re = p i - ((Z.matrix.map Complex.re) *ᵥ q) i := by |
| 82 | simp only [displacementJacobi, Pi.sub_apply, Complex.sub_re, Complex.ofReal_re, |
| 83 | Matrix.mulVec, dotProduct, Complex.re_sum, Complex.mul_re, Complex.ofReal_im, |
| 84 | mul_zero, sub_zero, Matrix.map_apply] |
| 85 | |
| 86 | theorem displacement_jacobi_im {N : ℕ} (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix (Fin N)) |
| 87 | (q p : Fin N → ℝ) (i : Fin N) : |
| 88 | (displacementJacobi Z q p i).im = -((Z.matrix.map Complex.im) *ᵥ q) i := by |
| 89 | simp only [displacementJacobi, Pi.sub_apply, Complex.sub_im, Complex.ofReal_im, |
| 90 | Matrix.mulVec, dotProduct, Complex.im_sum, Complex.mul_im, Complex.ofReal_re, |
| 91 | mul_zero, zero_add, zero_sub, Matrix.map_apply] |
| 92 | |
| 93 | def jacobiPositionShift {N : ℕ} (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix (Fin N)) (z : Fin N → ℂ) : Fin N → ℝ := |
| 94 | -((Z.matrix.map Complex.im)⁻¹ *ᵥ (fun i => (z i).im)) |
| 95 | |
| 96 | def jacobiMomentumShift {N : ℕ} (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix (Fin N)) (z : Fin N → ℂ) : Fin N → ℝ := |
| 97 | (fun i => (z i).re) + (Z.matrix.map Complex.re) *ᵥ jacobiPositionShift Z z |
| 98 | |
| 99 | theorem jacobi_position_shift_equation {N : ℕ} (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix (Fin N)) (z : Fin N → ℂ) : |
| 100 | (Z.matrix.map Complex.im) *ᵥ jacobiPositionShift Z z = -(fun i => (z i).im) := by |
| 101 | have hdet : IsUnit (Z.matrix.map Complex.im).det := |
| 102 | isUnit_iff_ne_zero.mpr Z.imaginary_posDef.det_pos.ne' |
| 103 | rw [jacobiPositionShift, Matrix.mulVec_neg, Matrix.mulVec_mulVec, |
| 104 | Matrix.mul_nonsing_inv _ hdet, Matrix.one_mulVec] |
| 105 | |
| 106 | theorem jacobi_displacement_coordinates {N : ℕ} (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix (Fin N)) (z : Fin N → ℂ) : |
| 107 | displacementJacobi Z (jacobiPositionShift Z z) (jacobiMomentumShift Z z) = z := by |
| 108 | funext i |
| 109 | apply Complex.ext |
| 110 | · rw [displacement_jacobi_re] |
| 111 | change (z i).re + _ - _ = (z i).re |
| 112 | exact add_sub_cancel_right _ _ |
| 113 | · rw [displacement_jacobi_im, jacobi_position_shift_equation] |
| 114 | simp only [Pi.neg_apply, neg_neg] |
| 115 | |
| 116 | theorem exists_real_jacobi_displacement {N : ℕ} (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix (Fin N)) (z : Fin N → ℂ) : |
| 117 | ∃ q p : Fin N → ℝ, displacementJacobi Z q p = z := |
| 118 | ⟨jacobiPositionShift Z z, jacobiMomentumShift Z z, jacobi_displacement_coordinates Z z⟩ |
| 119 | |
| 120 | end |
| 121 | |
| 122 | end OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.JacobiDisplacement.CM |