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.Theta.PoissonAutomorphyGaussianPoisson |
| 2 | |
| 3 | /-! # Gaussian Integral -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Theta.GaussianIntegral.PoissonAutomorphyConstruction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Linear changes of variables in the real coordinate space. -/ |
| 12 | |
| 13 | open scoped Classical _root_.Matrix |
| 14 | open _root_.Matrix _root_.MeasureTheory |
| 15 | |
| 16 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 17 | |
| 18 | def realMatrixEquiv (L : Matrix ι ι ℝ) (hL : L.det ≠ 0) : (ι → ℝ) ≃L[ℝ] (ι → ℝ) := |
| 19 | LinearEquiv.toContinuousLinearEquiv |
| 20 | { L.mulVecLin with |
| 21 | invFun := fun x => L⁻¹ *ᵥ x |
| 22 | left_inv := fun x => by |
| 23 | change L⁻¹ *ᵥ (L *ᵥ x) = x |
| 24 | rw [Matrix.mulVec_mulVec, Matrix.nonsing_inv_mul L (isUnit_iff_ne_zero.mpr hL), |
| 25 | Matrix.one_mulVec] |
| 26 | right_inv := fun x => by |
| 27 | change L *ᵥ (L⁻¹ *ᵥ x) = x |
| 28 | rw [Matrix.mulVec_mulVec, Matrix.mul_nonsing_inv L (isUnit_iff_ne_zero.mpr hL), |
| 29 | Matrix.one_mulVec] } |
| 30 | |
| 31 | theorem realMatrixEquiv_apply (L : Matrix ι ι ℝ) (hL : L.det ≠ 0) (x : ι → ℝ) : |
| 32 | realMatrixEquiv L hL x = L *ᵥ x := rfl |
| 33 | |
| 34 | theorem integral_comp_realMatrix (L : Matrix ι ι ℝ) (hL : L.det ≠ 0) |
| 35 | (f : (ι → ℝ) → ℂ) : |
| 36 | (∫ x, f (L *ᵥ x)) = ((|L.det|⁻¹ : ℝ) : ℂ) * ∫ x, f x := by |
| 37 | have hmap : Measure.map (realMatrixEquiv L hL) volume = |
| 38 | ENNReal.ofReal (|L.det|⁻¹) • volume := by |
| 39 | change Measure.map L.mulVecLin volume = _ |
| 40 | simpa only [abs_inv, Matrix.toLin'_apply'] using |
| 41 | Real.map_matrix_volume_pi_eq_smul_volume_pi hL |
| 42 | have h := (realMatrixEquiv L hL).toHomeomorph.measurableEmbedding.integral_map (μ := volume) f |
| 43 | change (∫ y, f y ∂Measure.map (realMatrixEquiv L hL) volume) = ∫ x, f (L *ᵥ x) at h |
| 44 | rw [hmap, integral_smul_measure, ENNReal.toReal_ofReal (inv_nonneg.mpr (abs_nonneg _))] at h |
| 45 | simpa only [realMatrixEquiv_apply, Complex.real_smul] using h.symm |
| 46 | |
| 47 | theorem integral_eq_det_mul_comp (L : Matrix ι ι ℝ) (hL : L.det ≠ 0) |
| 48 | (f : (ι → ℝ) → ℂ) : |
| 49 | (∫ x, f x) = ((|L.det| : ℝ) : ℂ) * ∫ x, f (L *ᵥ x) := by |
| 50 | rw [integral_comp_realMatrix L hL, ← mul_assoc, ← Complex.ofReal_mul, |
| 51 | mul_inv_cancel₀ (abs_ne_zero.mpr hL), Complex.ofReal_one, one_mul] |
| 52 | |
| 53 | def complexVector (x : ι → ℝ) : ι → ℂ := fun i => (x i : ℂ) |
| 54 | |
| 55 | omit [DecidableEq ι] in |
| 56 | theorem complexVector_mulVec (L : Matrix ι ι ℝ) (x : ι → ℝ) : |
| 57 | complexVector (L *ᵥ x) = L.map (algebraMap ℝ ℂ) *ᵥ complexVector x := by |
| 58 | ext i |
| 59 | simp [complexVector, Matrix.mulVec, dotProduct] |
| 60 | |
| 61 | omit [DecidableEq ι] in |
| 62 | theorem gaussianExponent_matrix (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (z : ι → ℂ) |
| 63 | (x : ι → ℝ) : |
| 64 | PoissonAutomorphyGaussianPoisson.Construction.gaussianExponent Z z x = (Real.pi : ℂ) * Complex.I * |
| 65 | (complexVector x ⬝ᵥ (Z.matrix *ᵥ complexVector x)) + |
| 66 | (2 * (Real.pi : ℂ) * Complex.I) * (complexVector x ⬝ᵥ z) := by |
| 67 | simp only [PoissonAutomorphyGaussianPoisson.Construction.gaussianExponent, AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix.phase, |
| 68 | AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.siegelMatrixForm_apply, AlgebraicGeometry.ComplexMultiplication.ThetaCoordinates.CM.thetaCoordinatePairing_apply, |
| 69 | complexVector, dotProduct, Matrix.mulVec, Finset.mul_sum] |
| 70 | simp only [mul_comm, mul_left_comm, mul_assoc] |
| 71 | |
| 72 | end |
| 73 | |
| 74 | /-! Evaluation of the Gaussian integral with a general Siegel matrix. -/ |
| 75 | |
| 76 | open scoped Classical _root_.Matrix |
| 77 | open _root_.Matrix _root_.MeasureTheory |
| 78 | |
| 79 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 80 | |
| 81 | def diagonalGaussianMass (d : ι → ℝ) : ℂ := |
| 82 | ∏ i, ((Real.pi : ℂ) / (-((Real.pi : ℂ) * Complex.I) * ((d i : ℂ) + Complex.I))) ^ (1 / 2 : ℂ) |
| 83 | |
| 84 | theorem diagonal_siegel_entry_ne_zero (t : ℝ) : (t : ℂ) + Complex.I ≠ 0 := by |
| 85 | intro h |
| 86 | have := congrArg Complex.im h |
| 87 | norm_num at this |
| 88 | |
| 89 | theorem gaussian_integral_diagonalized (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) |
| 90 | (L : Matrix ι ι ℝ) (d : ι → ℝ) (hL : L.det ≠ 0) |
| 91 | (hdiag : (L.map (algebraMap ℝ ℂ)).transpose * Z.matrix * L.map (algebraMap ℝ ℂ) = |
| 92 | Matrix.diagonal (fun i => (d i : ℂ) + Complex.I)) (z : ι → ℂ) : |
| 93 | (∫ x, PoissonAutomorphyGaussianPoisson.Construction.gaussianFunction Z z x) = |
| 94 | ((|L.det| : ℝ) : ℂ) * diagonalGaussianMass d * |
| 95 | Complex.exp (-(Real.pi : ℂ) * Complex.I * |
| 96 | ∑ i, ((L.map (algebraMap ℝ ℂ)).transpose *ᵥ z) i ^ 2 / ((d i : ℂ) + Complex.I)) := by |
| 97 | let w := (L.map (algebraMap ℝ ℂ)).transpose *ᵥ z |
| 98 | let b : ι → ℂ := fun i => -((Real.pi : ℂ) * Complex.I) * ((d i : ℂ) + Complex.I) |
| 99 | let c : ι → ℂ := fun i => 2 * (Real.pi : ℂ) * Complex.I * w i |
| 100 | have hb (i : ι) : 0 < (b i).re := by |
| 101 | simpa [b, Complex.mul_re, Complex.mul_im] using Real.pi_pos |
| 102 | have hexp (x : ι → ℝ) : PoissonAutomorphyGaussianPoisson.Construction.gaussianFunction Z z (L *ᵥ x) = |
| 103 | Complex.exp (-∑ i, b i * (x i : ℂ) ^ 2 + ∑ i, c i * (x i : ℂ)) := by |
| 104 | unfold PoissonAutomorphyGaussianPoisson.Construction.gaussianFunction |
| 105 | rw [gaussianExponent_matrix, complexVector_mulVec, AlgebraicGeometry.ComplexMultiplication.SymplecticThetaCompletion.CM.bilinear_matrix_pullback, hdiag] |
| 106 | have hlin : (L.map (algebraMap ℝ ℂ) *ᵥ complexVector x) ⬝ᵥ z = complexVector x ⬝ᵥ w := by |
| 107 | exact (dotProduct_comm _ _).trans |
| 108 | (Matrix.dotProduct_transpose_mulVec (L.map (algebraMap ℝ ℂ)) (complexVector x) z).symm |
| 109 | rw [hlin] |
| 110 | congr 1 |
| 111 | simp only [dotProduct, Matrix.mulVec_diagonal, complexVector, Finset.mul_sum, b, c, |
| 112 | ← Finset.sum_neg_distrib] |
| 113 | congr 1 <;> apply Finset.sum_congr rfl <;> intro i _ <;> ring |
| 114 | have hscalar (i : ι) : c i ^ 2 / (4 * b i) = |
| 115 | -(Real.pi : ℂ) * Complex.I * (w i ^ 2 / ((d i : ℂ) + Complex.I)) := by |
| 116 | dsimp [b, c] |
| 117 | field_simp [diagonal_siegel_entry_ne_zero (d i), Complex.ofReal_ne_zero.mpr Real.pi_ne_zero] |
| 118 | ring |
| 119 | rw [integral_eq_det_mul_comp L hL] |
| 120 | simp_rw [hexp] |
| 121 | rw [GaussianFourier.integral_cexp_neg_sum_mul_add hb c, Finset.prod_mul_distrib, ← Complex.exp_sum] |
| 122 | simp_rw [hscalar] |
| 123 | rw [← Finset.mul_sum] |
| 124 | simp only [diagonalGaussianMass, b, w, mul_assoc] |
| 125 | |
| 126 | theorem inverse_of_congruence_diagonal (Z L : Matrix ι ι ℂ) (d : ι → ℂ) |
| 127 | (hL : L.det ≠ 0) (hd : ∀ i, d i ≠ 0) (hdiag : L.transpose * Z * L = Matrix.diagonal d) : |
| 128 | Z⁻¹ = L * Matrix.diagonal (fun i => (d i)⁻¹) * L.transpose := by |
| 129 | have h := congrArg (fun M : Matrix ι ι ℂ => L * M⁻¹ * L.transpose) hdiag |
| 130 | have hdi : (Matrix.diagonal d)⁻¹ = Matrix.diagonal (fun i => (d i)⁻¹) := by |
| 131 | apply Matrix.inv_eq_right_inv |
| 132 | rw [Matrix.diagonal_mul_diagonal] |
| 133 | simp only [mul_inv_cancel₀ (hd _), Matrix.diagonal_one] |
| 134 | rw [Matrix.mul_inv_rev, Matrix.mul_inv_rev, hdi] at h |
| 135 | have hLt : IsUnit L.transpose.det := by simpa using isUnit_iff_ne_zero.mpr hL |
| 136 | simpa only [← Matrix.mul_assoc, Matrix.mul_nonsing_inv L (isUnit_iff_ne_zero.mpr hL), |
| 137 | one_mul, Matrix.nonsing_inv_mul_cancel_right _ _ hLt] using h |
| 138 | |
| 139 | def gaussianMass (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) : ℂ := ∫ x, PoissonAutomorphyGaussianPoisson.Construction.gaussianFunction Z 0 x |
| 140 | |
| 141 | theorem gaussian_integral (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (z : ι → ℂ) : |
| 142 | (∫ x, PoissonAutomorphyGaussianPoisson.Construction.gaussianFunction Z z x) = gaussianMass Z * |
| 143 | Complex.exp (-(Real.pi : ℂ) * Complex.I * (z ⬝ᵥ (Z.matrix⁻¹ *ᵥ z))) := by |
| 144 | obtain ⟨L, d, hL, hdiag⟩ := PoissonAutomorphyGaussianPoisson.Construction.siegel_real_diagonalization Z |
| 145 | have hLc : (L.map (algebraMap ℝ ℂ)).det ≠ 0 := by |
| 146 | change ((algebraMap ℝ ℂ).mapMatrix L).det ≠ 0 |
| 147 | rw [← RingHom.map_det] |
| 148 | exact Complex.ofReal_ne_zero.mpr hL |
| 149 | have hinv := inverse_of_congruence_diagonal Z.matrix (L.map (algebraMap ℝ ℂ)) |
| 150 | (fun i => (d i : ℂ) + Complex.I) hLc (fun i => diagonal_siegel_entry_ne_zero (d i)) hdiag |
| 151 | have hmass : gaussianMass Z = ((|L.det| : ℝ) : ℂ) * diagonalGaussianMass d := by |
| 152 | rw [gaussianMass, gaussian_integral_diagonalized Z L d hL hdiag] |
| 153 | simp |
| 154 | rw [hmass, gaussian_integral_diagonalized Z L d hL hdiag, hinv] |
| 155 | congr 2 |
| 156 | have hpull := AlgebraicGeometry.ComplexMultiplication.SymplecticThetaCompletion.CM.bilinear_matrix_pullback (L.map (algebraMap ℝ ℂ)).transpose |
| 157 | (Matrix.diagonal (fun i => ((d i : ℂ) + Complex.I)⁻¹)) z |
| 158 | simp only [Matrix.transpose_transpose] at hpull |
| 159 | rw [← hpull] |
| 160 | simp [Matrix.mulVec_diagonal, dotProduct, div_eq_mul_inv, mul_comm, mul_left_comm, pow_two] |
| 161 | |
| 162 | end |
| 163 | |
| 164 | end OAI.RepresentationTheory.Theta.GaussianIntegral.PoissonAutomorphyConstruction |