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 Mathlib.Analysis.Normed.Module.FiniteDimension |
| 2 | import Mathlib.Analysis.SpecialFunctions.Complex.Analytic |
| 3 | import Mathlib.Topology.Order.Compact |
| 4 | import Mathlib.Tactic.FieldSimp |
| 5 | import Mathlib.Tactic.Linarith |
| 6 | import Mathlib.Tactic.Ring |
| 7 | |
| 8 | /-! # CM Siegel Phase -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.CMSiegelPhase.CM |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! |
| 15 | # Positive complex quadratic phases in real position space |
| 16 | |
| 17 | A symmetric complex bilinear form on a finite-dimensional real position |
| 18 | space, whose imaginary part is positive definite, is the basis-independent |
| 19 | form of a Siegel period matrix. Its Gaussian is the actual expression |
| 20 | `exp (π i B(x,x))`. Positivity implies a proved uniform Gaussian bound. |
| 21 | -/ |
| 22 | |
| 23 | open Filter _root_.Topology _root_.Metric |
| 24 | |
| 25 | variable (V : Type*) [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 26 | |
| 27 | structure SiegelPhase where |
| 28 | form : V →L[ℝ] V →L[ℝ] ℂ |
| 29 | symmetric : ∀ x y, form x y = form y x |
| 30 | positive : ∀ x : V, x ≠ 0 → 0 < (form x x).im |
| 31 | |
| 32 | namespace SiegelPhase |
| 33 | |
| 34 | variable {V} (Z : SiegelPhase V) |
| 35 | |
| 36 | def imaginaryQuadratic (x : V) : ℝ := (Z.form x x).im |
| 37 | |
| 38 | theorem imaginaryQuadratic_zero : Z.imaginaryQuadratic 0 = 0 := by |
| 39 | simp [SiegelPhase.imaginaryQuadratic] |
| 40 | |
| 41 | theorem imaginaryQuadratic_smul (r : ℝ) (x : V) : |
| 42 | Z.imaginaryQuadratic (r • x) = r ^ 2 * Z.imaginaryQuadratic x := by |
| 43 | simp only [SiegelPhase.imaginaryQuadratic, map_smul, smul_apply, |
| 44 | Complex.real_smul, Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, |
| 45 | zero_mul, add_zero] |
| 46 | ring |
| 47 | |
| 48 | theorem imaginaryQuadratic_continuous : Continuous Z.imaginaryQuadratic := |
| 49 | Complex.continuous_im.comp (Z.form.continuous.clm_apply continuous_id) |
| 50 | |
| 51 | theorem imaginaryQuadratic_nonneg (x : V) : 0 ≤ Z.imaginaryQuadratic x := by |
| 52 | by_cases hx : x = 0 |
| 53 | · rw [hx, Z.imaginaryQuadratic_zero] |
| 54 | · exact (Z.positive x hx).le |
| 55 | |
| 56 | /-- Compactness of the unit sphere supplies a positive quadratic lower |
| 57 | bound, including the zero-dimensional position space. -/ |
| 58 | theorem exists_lower_bound [FiniteDimensional ℝ V] : |
| 59 | ∃ c : ℝ, 0 < c ∧ ∀ x : V, c * ‖x‖ ^ 2 ≤ Z.imaginaryQuadratic x := by |
| 60 | rcases subsingleton_or_nontrivial V with hV | hV |
| 61 | · exact ⟨1, zero_lt_one, fun x => by |
| 62 | rw [Subsingleton.elim x 0, norm_zero, zero_pow (by decide), mul_zero, |
| 63 | Z.imaginaryQuadratic_zero]⟩ |
| 64 | · obtain ⟨y, hy, hmin⟩ := (isCompact_sphere (0 : V) 1).exists_isMinOn |
| 65 | (NormedSpace.sphere_nonempty.mpr (by norm_num : (0 : ℝ) ≤ 1)) |
| 66 | Z.imaginaryQuadratic_continuous.continuousOn |
| 67 | have hyn : ‖y‖ = 1 := by simpa only [mem_sphere, dist_zero_right] using hy |
| 68 | have hy0 : y ≠ 0 := by intro h; simp [h] at hyn |
| 69 | refine ⟨Z.imaginaryQuadratic y, Z.positive y hy0, fun x => ?_⟩ |
| 70 | by_cases hx : x = 0 |
| 71 | · simp only [hx, norm_zero, ne_eq, OfNat.ofNat_ne_zero, not_false_eq_true, |
| 72 | zero_pow, mul_zero, Z.imaginaryQuadratic_zero, le_refl] |
| 73 | · have hxn : ‖x‖ ≠ 0 := norm_ne_zero_iff.mpr hx |
| 74 | have hunit : ‖(‖x‖⁻¹ : ℝ) • x‖ = 1 := by |
| 75 | rw [norm_smul, Real.norm_eq_abs, abs_of_nonneg (inv_nonneg.mpr (norm_nonneg x)), |
| 76 | inv_mul_cancel₀ hxn] |
| 77 | have hb := hmin (show (‖x‖⁻¹ : ℝ) • x ∈ sphere (0 : V) 1 from by |
| 78 | simpa only [mem_sphere, dist_zero_right] using hunit) |
| 79 | have hb' := mul_le_mul_of_nonneg_right hb (sq_nonneg ‖x‖) |
| 80 | rw [Z.imaginaryQuadratic_smul] at hb' |
| 81 | have heq : (‖x‖⁻¹ ^ 2 * Z.imaginaryQuadratic x) * ‖x‖ ^ 2 = |
| 82 | Z.imaginaryQuadratic x := by field_simp |
| 83 | rwa [heq] at hb' |
| 84 | |
| 85 | variable [FiniteDimensional ℝ V] |
| 86 | |
| 87 | def lowerBound : ℝ := Z.exists_lower_bound.choose |
| 88 | |
| 89 | theorem lowerBound_pos : 0 < Z.lowerBound := Z.exists_lower_bound.choose_spec.1 |
| 90 | |
| 91 | theorem imaginaryQuadratic_lower_bound (x : V) : |
| 92 | Z.lowerBound * ‖x‖ ^ 2 ≤ Z.imaginaryQuadratic x := Z.exists_lower_bound.choose_spec.2 x |
| 93 | |
| 94 | def gaussianWeight (x : V) : ℂ := Complex.exp ((Real.pi : ℂ) * Complex.I * Z.form x x) |
| 95 | |
| 96 | omit [FiniteDimensional ℝ V] in |
| 97 | theorem gaussianWeight_ne_zero (x : V) : Z.gaussianWeight x ≠ 0 := Complex.exp_ne_zero _ |
| 98 | |
| 99 | omit [FiniteDimensional ℝ V] in |
| 100 | theorem gaussianWeight_norm (x : V) : |
| 101 | ‖Z.gaussianWeight x‖ = Real.exp (-Real.pi * Z.imaginaryQuadratic x) := by |
| 102 | rw [SiegelPhase.gaussianWeight, Complex.norm_exp] |
| 103 | congr 1 |
| 104 | simp [SiegelPhase.imaginaryQuadratic, Complex.mul_re, Complex.mul_im] |
| 105 | |
| 106 | theorem gaussianWeight_norm_le (x : V) : |
| 107 | ‖Z.gaussianWeight x‖ ≤ Real.exp (-(Real.pi * Z.lowerBound) * ‖x‖ ^ 2) := by |
| 108 | rw [Z.gaussianWeight_norm] |
| 109 | apply Real.exp_le_exp.mpr |
| 110 | have h := mul_le_mul_of_nonneg_left (Z.imaginaryQuadratic_lower_bound x) Real.pi_pos.le |
| 111 | nlinarith |
| 112 | |
| 113 | end SiegelPhase |
| 114 | |
| 115 | end |
| 116 | |
| 117 | end OAI.AlgebraicGeometry.ComplexMultiplication.CMSiegelPhase.CM |