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.Analysis.Calculus.FDeriv.CompCLM |
| 3 | |
| 4 | /-! # Theta Completion -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.ComplexMultiplication |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! |
| 13 | # Quadratic completion preserves the first theta coefficient |
| 14 | |
| 15 | The exponential of any continuous complex bilinear quadratic has value |
| 16 | one and derivative zero at the origin. Consequently multiplication by |
| 17 | the manuscript's explicit inverse-imaginary-matrix Gaussian leaves the |
| 18 | first theta derivative unchanged. This is a calculation at a fixed |
| 19 | Siegel matrix; transformation and descent remain separate obligations. |
| 20 | -/ |
| 21 | |
| 22 | open scoped Classical _root_.Matrix |
| 23 | |
| 24 | variable {U : Type*} [NormedAddCommGroup U] [NormedSpace ℂ U] |
| 25 | |
| 26 | def ThetaCompletion.CM.thetaCompletionFactor (Q : U →L[ℂ] U →L[ℂ] ℂ) (z : U) : ℂ := Complex.exp (Q z z) |
| 27 | |
| 28 | theorem ThetaCompletion.CM.thetaCompletionFactor_zero (Q : U →L[ℂ] U →L[ℂ] ℂ) : |
| 29 | ThetaCompletion.CM.thetaCompletionFactor Q 0 = 1 := by simp [ThetaCompletion.CM.thetaCompletionFactor] |
| 30 | |
| 31 | theorem ThetaCompletion.CM.thetaCompletionFactor_hasFDerivAt_zero (Q : U →L[ℂ] U →L[ℂ] ℂ) : |
| 32 | HasFDerivAt (ThetaCompletion.CM.thetaCompletionFactor Q) (0 : U →L[ℂ] ℂ) 0 := by |
| 33 | have hQ : HasFDerivAt (fun z => Q z z) (0 : U →L[ℂ] ℂ) 0 := by |
| 34 | simpa using (Q.hasFDerivAt (x := 0)).clm_apply (hasFDerivAt_id (0 : U)) |
| 35 | simpa only [map_zero, zero_apply, Complex.exp_zero, one_smul] |
| 36 | using! hQ.cexp |
| 37 | |
| 38 | /-- A quadratic completion does not change any existing first derivative |
| 39 | at zero, regardless of the constant term of the original function. -/ |
| 40 | theorem ThetaCompletion.CM.thetaCompletion_mul_hasFDerivAt_zero (Q : U →L[ℂ] U →L[ℂ] ℂ) |
| 41 | {f : U → ℂ} {f' : U →L[ℂ] ℂ} (hf : HasFDerivAt f f' 0) : |
| 42 | HasFDerivAt (fun z => ThetaCompletion.CM.thetaCompletionFactor Q z * f z) f' 0 := by |
| 43 | convert! (ThetaCompletion.CM.thetaCompletionFactor_hasFDerivAt_zero Q).mul hf using 1 |
| 44 | ext z |
| 45 | simp [ThetaCompletion.CM.thetaCompletionFactor_zero] |
| 46 | |
| 47 | variable {ι : Type*} [Fintype ι] (Z : CMSiegelMatrix.CM.SiegelMatrix ι) |
| 48 | |
| 49 | /-- The bilinear form `(π/2) zᵗ (Im Z)⁻¹ w` in the completion. |
| 50 | The explicit `Matrix.inv` selects the matrix inverse instead of the |
| 51 | pointwise inverse instance on the underlying function type. -/ |
| 52 | def CMSiegelMatrix.CM.SiegelMatrix.completionForm : (ι → ℂ) →L[ℂ] (ι → ℂ) →L[ℂ] ℂ := |
| 53 | ∑ i : ι, ∑ j : ι, |
| 54 | (ContinuousLinearMap.proj i : (ι → ℂ) →L[ℂ] ℂ).smulRight |
| 55 | ((ContinuousLinearMap.proj j : (ι → ℂ) →L[ℂ] ℂ).smulRight |
| 56 | (((Real.pi : ℂ) / 2) * |
| 57 | (@Inv.inv (Matrix ι ι ℝ) Matrix.inv (fun i j => (Z.matrix i j).im) i j : ℂ))) |
| 58 | |
| 59 | theorem CMSiegelMatrix.CM.SiegelMatrix.completionForm_apply (z w : ι → ℂ) : |
| 60 | Z.completionForm z w = ((Real.pi : ℂ) / 2) * |
| 61 | (∑ i, ∑ j, z i * |
| 62 | (@Inv.inv (Matrix ι ι ℝ) Matrix.inv (fun i j => (Z.matrix i j).im) i j : ℂ) * w j) := by |
| 63 | simp [CMSiegelMatrix.CM.SiegelMatrix.completionForm, Finset.mul_sum, mul_comm, mul_left_comm] |
| 64 | |
| 65 | def CMSiegelMatrix.CM.SiegelMatrix.completedThetaSeriesOn (S : Set (ThetaCoordinates.CM.thetaCoordinateLattice ι)) (z : ι → ℂ) : ℂ := |
| 66 | ThetaCompletion.CM.thetaCompletionFactor Z.completionForm z * |
| 67 | Z.phase.thetaSeriesOn (ThetaCoordinates.CM.thetaCoordinatePairing ι) (ThetaCoordinates.CM.thetaCoordinateLattice ι) S z |
| 68 | |
| 69 | theorem CMSiegelMatrix.CM.SiegelMatrix.completedThetaSeriesOn_hasFDerivAt_zero (S : Set (ThetaCoordinates.CM.thetaCoordinateLattice ι)) : |
| 70 | HasFDerivAt (Z.completedThetaSeriesOn S) |
| 71 | (Z.phase.thetaSeriesOnDerivative (ThetaCoordinates.CM.thetaCoordinatePairing ι) (ThetaCoordinates.CM.thetaCoordinateLattice ι) S 0) |
| 72 | 0 := |
| 73 | ThetaCompletion.CM.thetaCompletion_mul_hasFDerivAt_zero Z.completionForm |
| 74 | (Z.phase.thetaSeriesOn_hasFDerivAt (ThetaCoordinates.CM.thetaCoordinatePairing ι) (ThetaCoordinates.CM.thetaCoordinateLattice ι) S 0) |
| 75 | |
| 76 | theorem CMSiegelMatrix.CM.SiegelMatrix.fderiv_completedThetaSeriesOn_zero (S : Set (ThetaCoordinates.CM.thetaCoordinateLattice ι)) : |
| 77 | fderiv ℂ (Z.completedThetaSeriesOn S) 0 = |
| 78 | fderiv ℂ (Z.phase.thetaSeriesOn (ThetaCoordinates.CM.thetaCoordinatePairing ι) (ThetaCoordinates.CM.thetaCoordinateLattice ι) S) 0 := by |
| 79 | rw [(Z.completedThetaSeriesOn_hasFDerivAt_zero S).fderiv, Z.phase.fderiv_thetaSeriesOn] |
| 80 | |
| 81 | /-- The first derivatives of the completed sparse theta functions span the |
| 82 | entire cotangent space, with the actual completion factor included. -/ |
| 83 | theorem CMSiegelMatrix.CM.SiegelMatrix.span_completed_sparseThetaGradients_eq_top : |
| 84 | Submodule.span ℂ (Set.range (fun an : ThetaCoordinates.CM.thetaCoordinateLattice ι × ℕ => |
| 85 | fderiv ℂ (Z.completedThetaSeriesOn |
| 86 | {x | SparseLatticeSums.CM.SparseLatticeCoset (ThetaCoordinates.CM.thetaCoordinateLattice ι) an.2 an.1 x}) 0)) = ⊤ := by |
| 87 | simpa only [CMSiegelMatrix.CM.SiegelMatrix.fderiv_completedThetaSeriesOn_zero, CMSiegelPhase.CM.SiegelPhase.sparseThetaGradient] |
| 88 | using Z.span_sparseThetaGradients_eq_top |
| 89 | |
| 90 | /-- Linear projection of completed gradients spans exactly the image of |
| 91 | that projection. Identifying the geometric ball projection is separate. -/ |
| 92 | theorem CMSiegelMatrix.CM.SiegelMatrix.span_projected_completed_sparseThetaGradients |
| 93 | {W : Type*} [AddCommGroup W] [Module ℂ W] (P : ((ι → ℂ) →L[ℂ] ℂ) →ₗ[ℂ] W) : |
| 94 | Submodule.span ℂ (Set.range (fun an : ThetaCoordinates.CM.thetaCoordinateLattice ι × ℕ => |
| 95 | P (fderiv ℂ (Z.completedThetaSeriesOn |
| 96 | {x | SparseLatticeSums.CM.SparseLatticeCoset (ThetaCoordinates.CM.thetaCoordinateLattice ι) an.2 an.1 x}) 0))) = |
| 97 | LinearMap.range P := by |
| 98 | rw [Set.range_comp' P, Submodule.span_image, Z.span_completed_sparseThetaGradients_eq_top, |
| 99 | Submodule.map_top] |
| 100 | |
| 101 | end |
| 102 | |
| 103 | /-! |
| 104 | # Holomorphic variation of first theta coefficients with the phase |
| 105 | |
| 106 | The ambient parameter is the space of continuous complex-valued real |
| 107 | bilinear forms. Evaluation on a fixed real position is complex linear. |
| 108 | Near a positive Siegel phase, a uniform positive Gaussian bound permits |
| 109 | differentiation of the covector-valued first coefficient with respect to |
| 110 | this parameter. The resulting series agrees with the actual Jacobi |
| 111 | derivative at each positive phase. |
| 112 | -/ |
| 113 | |
| 114 | open scoped Classical |
| 115 | open Filter _root_.Topology _root_.Metric |
| 116 | |
| 117 | variable {V U : Type*} [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 118 | [NormedAddCommGroup U] [NormedSpace ℂ U] |
| 119 | |
| 120 | -- Name the existing ambient structures before forming complex operator spaces. |
| 121 | local instance ThetaCompletion.CM.phaseParameterNormedAddCommGroup : |
| 122 | NormedAddCommGroup (V →L[ℝ] V →L[ℝ] ℂ) := inferInstance |
| 123 | local instance ThetaCompletion.CM.phaseParameterNormedSpace : |
| 124 | NormedSpace ℂ (V →L[ℝ] V →L[ℝ] ℂ) := inferInstance |
| 125 | |
| 126 | /-- Evaluation of a bilinear phase at `(x,x)` is complex linear in the phase. -/ |
| 127 | def ThetaCompletion.CM.thetaPhaseEvaluation (x : V) : (V →L[ℝ] V →L[ℝ] ℂ) →L[ℂ] ℂ := |
| 128 | LinearMap.mkContinuous |
| 129 | ({ toFun := fun B : V →L[ℝ] V →L[ℝ] ℂ => B x x |
| 130 | map_add' := by intro B C; simp |
| 131 | map_smul' := by intro c B; simp } : (V →L[ℝ] V →L[ℝ] ℂ) →ₗ[ℂ] ℂ) |
| 132 | (‖x‖ ^ 2) (fun B => by |
| 133 | calc |
| 134 | ‖B x x‖ ≤ ‖B x‖ * ‖x‖ := (B x).le_opNorm x |
| 135 | _ ≤ (‖B‖ * ‖x‖) * ‖x‖ := mul_le_mul_of_nonneg_right (B.le_opNorm x) (norm_nonneg x) |
| 136 | _ = ‖x‖ ^ 2 * ‖B‖ := by ring) |
| 137 | |
| 138 | theorem ThetaCompletion.CM.thetaPhaseEvaluation_apply (x : V) (B : V →L[ℝ] V →L[ℝ] ℂ) : |
| 139 | ThetaCompletion.CM.thetaPhaseEvaluation x B = B x x := rfl |
| 140 | |
| 141 | theorem ThetaCompletion.CM.thetaPhaseEvaluation_norm_le (x : V) : ‖ThetaCompletion.CM.thetaPhaseEvaluation x‖ ≤ ‖x‖ ^ 2 := by |
| 142 | apply ContinuousLinearMap.opNorm_le_bound _ (sq_nonneg _) |
| 143 | intro B |
| 144 | change ‖B x x‖ ≤ ‖x‖ ^ 2 * ‖B‖ |
| 145 | calc |
| 146 | ‖B x x‖ ≤ (‖B‖ * ‖x‖) * ‖x‖ := |
| 147 | ((B x).le_opNorm x).trans (mul_le_mul_of_nonneg_right (B.le_opNorm x) (norm_nonneg x)) |
| 148 | _ = _ := by ring |
| 149 | |
| 150 | def ThetaCompletion.CM.thetaPhaseGradientTerm (P : V →L[ℝ] (U →L[ℂ] ℂ)) (x : V) |
| 151 | (B : V →L[ℝ] V →L[ℝ] ℂ) : U →L[ℂ] ℂ := |
| 152 | Complex.exp ((Real.pi : ℂ) * Complex.I * B x x) • |
| 153 | ((2 * (Real.pi : ℂ) * Complex.I) • P x) |
| 154 | |
| 155 | def ThetaCompletion.CM.thetaPhaseGradientTermDerivative (P : V →L[ℝ] (U →L[ℂ] ℂ)) (x : V) |
| 156 | (B : V →L[ℝ] V →L[ℝ] ℂ) : (V →L[ℝ] V →L[ℝ] ℂ) →L[ℂ] (U →L[ℂ] ℂ) := |
| 157 | (Complex.exp ((Real.pi : ℂ) * Complex.I * B x x) • |
| 158 | (((Real.pi : ℂ) * Complex.I) • ThetaCompletion.CM.thetaPhaseEvaluation x)).smulRight |
| 159 | ((2 * (Real.pi : ℂ) * Complex.I) • P x) |
| 160 | |
| 161 | theorem ThetaCompletion.CM.thetaPhaseGradientTerm_hasFDerivAt (P : V →L[ℝ] (U →L[ℂ] ℂ)) (x : V) |
| 162 | (B : V →L[ℝ] V →L[ℝ] ℂ) : |
| 163 | HasFDerivAt (ThetaCompletion.CM.thetaPhaseGradientTerm P x) (ThetaCompletion.CM.thetaPhaseGradientTermDerivative P x B) B := by |
| 164 | have h := ((ThetaCompletion.CM.thetaPhaseEvaluation x).hasFDerivAt (x := B)).const_smul |
| 165 | ((Real.pi : ℂ) * Complex.I) |
| 166 | exact h.cexp.smul_const ((2 * (Real.pi : ℂ) * Complex.I) • P x) |
| 167 | |
| 168 | variable [FiniteDimensional ℝ V] (Z : CMSiegelPhase.CM.SiegelPhase V) |
| 169 | (P : V →L[ℝ] (U →L[ℂ] ℂ)) |
| 170 | |
| 171 | theorem CMSiegelPhase.CM.SiegelPhase.nearby_phase_imaginary_lower_bound (B : V →L[ℝ] V →L[ℝ] ℂ) |
| 172 | (hB : ‖B - Z.form‖ ≤ Z.lowerBound / 2) (x : V) : |
| 173 | (Z.lowerBound / 2) * ‖x‖ ^ 2 ≤ (B x x).im := by |
| 174 | have heval : ‖(B - Z.form) x x‖ ≤ (Z.lowerBound / 2) * ‖x‖ ^ 2 := by |
| 175 | calc |
| 176 | ‖(B - Z.form) x x‖ ≤ ‖ThetaCompletion.CM.thetaPhaseEvaluation x‖ * ‖B - Z.form‖ := |
| 177 | (ThetaCompletion.CM.thetaPhaseEvaluation x).le_opNorm (B - Z.form) |
| 178 | _ ≤ ‖x‖ ^ 2 * (Z.lowerBound / 2) := |
| 179 | mul_le_mul (ThetaCompletion.CM.thetaPhaseEvaluation_norm_le x) hB (norm_nonneg _) (sq_nonneg _) |
| 180 | _ = _ := mul_comm _ _ |
| 181 | have him := (neg_le_abs ((B - Z.form) x x).im).trans |
| 182 | ((Complex.abs_im_le_norm _).trans heval) |
| 183 | simp only [sub_apply, Complex.sub_im] at him |
| 184 | have hZ := Z.imaginaryQuadratic_lower_bound x |
| 185 | change Z.lowerBound * ‖x‖ ^ 2 ≤ (Z.form x x).im at hZ |
| 186 | nlinarith |
| 187 | |
| 188 | theorem CMSiegelPhase.CM.SiegelPhase.nearby_phase_gaussian_bound (B : V →L[ℝ] V →L[ℝ] ℂ) |
| 189 | (hB : ‖B - Z.form‖ ≤ Z.lowerBound / 2) (x : V) : |
| 190 | ‖Complex.exp ((Real.pi : ℂ) * Complex.I * B x x)‖ ≤ |
| 191 | Real.exp (-(Real.pi * (Z.lowerBound / 2)) * ‖x‖ ^ 2) := by |
| 192 | rw [Complex.norm_exp] |
| 193 | apply Real.exp_le_exp.mpr |
| 194 | have h := mul_le_mul_of_nonneg_left (Z.nearby_phase_imaginary_lower_bound B hB x) |
| 195 | Real.pi_pos.le |
| 196 | simp only [Complex.mul_re, Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, |
| 197 | Complex.I_re, Complex.I_im] |
| 198 | nlinarith |
| 199 | |
| 200 | def CMSiegelPhase.CM.SiegelPhase.phaseGradientMajorant (x : V) : ℝ := |
| 201 | (2 * Real.pi ^ 2 * ‖P‖) * |
| 202 | (‖x‖ ^ 3 * Real.exp (-(Real.pi * (Z.lowerBound / 2)) * ‖x‖ ^ 2)) |
| 203 | |
| 204 | theorem CMSiegelPhase.CM.SiegelPhase.phaseGradientMajorant_summable (L : Submodule ℤ V) [DiscreteTopology L] : |
| 205 | Summable (fun x : L => Z.phaseGradientMajorant P x) := by |
| 206 | simpa only [CMSiegelPhase.CM.SiegelPhase.phaseGradientMajorant, zero_mul, add_zero] using! |
| 207 | (LatticeGaussian.CM.lattice_gaussian_poly_summable L (Real.pi * (Z.lowerBound / 2)) 0 |
| 208 | (mul_pos Real.pi_pos (half_pos Z.lowerBound_pos)) 3).mul_left (2 * Real.pi ^ 2 * ‖P‖) |
| 209 | |
| 210 | theorem CMSiegelPhase.CM.SiegelPhase.thetaPhaseGradientTermDerivative_norm_le (B : V →L[ℝ] V →L[ℝ] ℂ) |
| 211 | (hB : ‖B - Z.form‖ ≤ Z.lowerBound / 2) (x : V) : |
| 212 | ‖ThetaCompletion.CM.thetaPhaseGradientTermDerivative P x B‖ ≤ Z.phaseGradientMajorant P x := by |
| 213 | have hc : ‖(Real.pi : ℂ) * Complex.I‖ = Real.pi := by simp |
| 214 | have hc2 : ‖2 * (Real.pi : ℂ) * Complex.I‖ = 2 * Real.pi := by simp |
| 215 | rw [ThetaCompletion.CM.thetaPhaseGradientTermDerivative, ContinuousLinearMap.norm_smulRight_apply, |
| 216 | norm_smul, norm_smul, norm_smul, hc, hc2] |
| 217 | calc |
| 218 | _ ≤ (Real.exp (-(Real.pi * (Z.lowerBound / 2)) * ‖x‖ ^ 2) * |
| 219 | (Real.pi * ‖x‖ ^ 2)) * (2 * Real.pi * (‖P‖ * ‖x‖)) := by |
| 220 | gcongr |
| 221 | · exact Z.nearby_phase_gaussian_bound B hB x |
| 222 | · exact ThetaCompletion.CM.thetaPhaseEvaluation_norm_le x |
| 223 | · exact P.le_opNorm x |
| 224 | _ = _ := by unfold CMSiegelPhase.CM.SiegelPhase.phaseGradientMajorant; ring |
| 225 | |
| 226 | end |
| 227 | |
| 228 | end OAI.AlgebraicGeometry.ComplexMultiplication |