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.HeckeCycles.FourierSeriesUniqueness |
| 2 | import OAI.RepresentationTheory.Theta.Geometric.LinearTheta |
| 3 | import OAI.RepresentationTheory.Theta.PoissonAutomorphyFiniteFourier |
| 4 | import OAI.RepresentationTheory.Theta.FiniteSupport |
| 5 | |
| 6 | /-! # Fourier -/ |
| 7 | |
| 8 | namespace OAI |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.Theta.Fourier.CM.Coefficients |
| 13 | |
| 14 | /-! The bounded denominator of an actual finite Schwartz support gives |
| 15 | integer-indexed theta coefficients. Their absolute summability follows |
| 16 | from theta convergence, and they determine the entire finite input. -/ |
| 17 | |
| 18 | open scoped Classical |
| 19 | open OAI.RepresentationTheory.Theta.PoissonAutomorphyFiniteFourier.Construction |
| 20 | |
| 21 | variable {I : Type} [Fintype I] |
| 22 | |
| 23 | def frequency (N : ℕ) (n : I → ℤ) : I → ℚ := fun i => (n i : ℚ) / (N : ℚ) |
| 24 | |
| 25 | omit [Fintype I] in |
| 26 | theorem frequency_injective (N : ℕ) (hN : 0 < N) : Function.Injective (frequency (I := I) N) := by |
| 27 | intro n m h |
| 28 | funext i |
| 29 | have hn : (N : ℚ) ≠ 0 := by exact_mod_cast hN.ne' |
| 30 | have hi := congrFun h i |
| 31 | change (n i : ℚ) / (N : ℚ) = (m i : ℚ) / (N : ℚ) at hi |
| 32 | have he := (div_left_inj' hn).mp hi |
| 33 | exact_mod_cast he |
| 34 | |
| 35 | omit [Fintype I] in |
| 36 | theorem frequency_range (N : ℕ) (hN : 0 < N) (x : I → ℚ) |
| 37 | (hx : ∀ i, ∃ m : ℤ, (m : ℚ) = (N : ℚ) * x i) : x ∈ Set.range (frequency (I := I) N) := by |
| 38 | choose n hn using hx |
| 39 | refine ⟨n, ?_⟩ |
| 40 | funext i |
| 41 | change (n i : ℚ) / (N : ℚ) = x i |
| 42 | rw [hn] |
| 43 | exact mul_div_cancel_left₀ (x i) (by exact_mod_cast hN.ne') |
| 44 | |
| 45 | def coefficient (N : ℕ) (φ : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.finiteSchwartz I) (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix I) (n : I → ℤ) : ℂ := |
| 46 | RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.thetaTerm φ Z 0 (frequency N n) |
| 47 | |
| 48 | theorem coefficient_norm_summable (N : ℕ) (hN : 0 < N) (φ : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.finiteSchwartz I) (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix I) : |
| 49 | Summable (fun n => ‖coefficient N φ Z n‖) := |
| 50 | (RepresentationTheory.Theta.Geometric.LinearTheta.theta_terms_summable φ Z 0).norm.comp_injective (frequency_injective N hN) |
| 51 | |
| 52 | theorem coefficient_zero_iff (N : ℕ) (φ : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.finiteSchwartz I) (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix I) (n : I → ℤ) : |
| 53 | coefficient N φ Z n = 0 ↔ φ.val (RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.finiteDiagonal (frequency N n)) = 0 := by |
| 54 | change _ * Complex.exp _ = 0 ↔ _ |
| 55 | exact mul_eq_zero.trans (or_iff_left (Complex.exp_ne_zero _)) |
| 56 | |
| 57 | theorem input_zero (N : ℕ) (hN : 0 < N) (φ : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.finiteSchwartz I) (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix I) |
| 58 | (hden : ∀ x : I → ℚ, φ.val (RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.finiteDiagonal x) ≠ 0 → ∀ i, ∃ m : ℤ, (m : ℚ) = (N : ℚ) * x i) |
| 59 | (hc : ∀ n : I → ℤ, coefficient N φ Z n = 0) : φ = 0 := by |
| 60 | apply Subtype.ext |
| 61 | apply RepresentationTheory.Theta.PoissonAutomorphyFiniteFourier.Construction.denseRange_finiteDiagonal.equalizer (RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.Construction.finiteSchwartz_continuous φ) continuous_zero |
| 62 | funext x |
| 63 | change φ.val (RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.finiteDiagonal x) = 0 |
| 64 | by_contra hx |
| 65 | obtain ⟨n, hn⟩ := frequency_range N hN x (hden x hx) |
| 66 | have hzero := (coefficient_zero_iff N φ Z n).mp (hc n) |
| 67 | rw [hn] at hzero |
| 68 | exact hx hzero |
| 69 | |
| 70 | theorem support_coefficients_determine (φ : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.finiteSchwartz I) (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix I) |
| 71 | (hc : ∀ n : I → ℤ, coefficient (RepresentationTheory.Theta.FiniteSupport.supportDenominator φ) φ Z n = 0) : φ = 0 := |
| 72 | input_zero (RepresentationTheory.Theta.FiniteSupport.supportDenominator φ) (RepresentationTheory.Theta.FiniteSupport.supportDenominator_spec φ).1 φ Z |
| 73 | (RepresentationTheory.Theta.FiniteSupport.supportDenominator_spec φ).2 hc |
| 74 | |
| 75 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.Theta.Fourier.CM.Coefficients |
| 76 | |
| 77 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.Theta.Fourier.CM.Terms |
| 78 | |
| 79 | /-! On a scaled real Jacobi variable each actual theta term is its |
| 80 | Gaussian coefficient times the corresponding torus Fourier monomial. -/ |
| 81 | |
| 82 | open scoped Classical |
| 83 | open UnitAddTorus |
| 84 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Theta.Fourier.CM.Coefficients |
| 85 | |
| 86 | variable {I : Type} [Fintype I] |
| 87 | |
| 88 | def projection (x : I → ℝ) : UnitAddTorus I := fun i => (x i : UnitAddCircle) |
| 89 | |
| 90 | theorem monomial (n : I → ℤ) (x : I → ℝ) : |
| 91 | mFourier n (projection x) = |
| 92 | Complex.exp ((2 * (Real.pi : ℂ) * Complex.I) * ∑ i, (n i : ℂ) * (x i : ℂ)) := by |
| 93 | simp only [mFourier, ContinuousMap.coe_mk, projection, fourier_coe_apply, |
| 94 | Complex.ofReal_one, div_one] |
| 95 | rw [← Complex.exp_sum, Finset.mul_sum] |
| 96 | congr 1 |
| 97 | apply Finset.sum_congr rfl |
| 98 | intro i _ |
| 99 | ring |
| 100 | |
| 101 | theorem linear_phase (N : ℕ) (hN : 0 < N) (n : I → ℤ) (x : I → ℝ) : |
| 102 | (∑ i, (Coefficients.frequency N n i : ℂ) * ((N : ℂ) * (x i : ℂ))) = ∑ i, (n i : ℂ) * (x i : ℂ) := by |
| 103 | apply Finset.sum_congr rfl |
| 104 | intro i _ |
| 105 | have hn : (N : ℂ) ≠ 0 := by exact_mod_cast hN.ne' |
| 106 | simp only [Coefficients.frequency, Rat.cast_div, Rat.cast_intCast, Rat.cast_natCast] |
| 107 | field_simp |
| 108 | |
| 109 | theorem term (N : ℕ) (hN : 0 < N) (φ : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.finiteSchwartz I) (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix I) |
| 110 | (n : I → ℤ) (x : I → ℝ) : |
| 111 | RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.thetaTerm φ Z (fun i => (N : ℂ) * (x i : ℂ)) (Coefficients.frequency N n) = |
| 112 | Coefficients.coefficient N φ Z n * mFourier n (projection x) := by |
| 113 | simp only [Coefficients.coefficient, RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.thetaTerm, Pi.zero_apply, mul_zero, Finset.sum_const_zero, add_zero] |
| 114 | rw [linear_phase N hN, monomial, Complex.exp_add] |
| 115 | exact (mul_assoc _ _ _).symm |
| 116 | |
| 117 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.Theta.Fourier.CM.Terms |
| 118 | |
| 119 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.Theta.Fourier.CM.Injectivity |
| 120 | |
| 121 | /-! At any positive Siegel period the full theta function determines its |
| 122 | actual finite Schwartz input. Recover its Fourier coefficients on the |
| 123 | bounded-denominator torus and then use density of rational finite adeles. -/ |
| 124 | |
| 125 | open scoped Classical |
| 126 | open UnitAddTorus |
| 127 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Theta.Fourier.CM.Coefficients OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Theta.Fourier.CM.Terms |
| 128 | |
| 129 | variable {I : Type} [Fintype I] |
| 130 | |
| 131 | omit [Fintype I] in |
| 132 | theorem projection_surjective : Function.Surjective (Terms.projection (I := I)) := by |
| 133 | intro t |
| 134 | have h : ∀ i, ∃ x : ℝ, (x : UnitAddCircle) = t i := fun i => QuotientAddGroup.mk_surjective (t i) |
| 135 | choose x hx using h |
| 136 | exact ⟨x, funext hx⟩ |
| 137 | |
| 138 | def series (N : ℕ) (φ : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.finiteSchwartz I) (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix I) : C(UnitAddTorus I, ℂ) := |
| 139 | ∑' n : I → ℤ, Coefficients.coefficient N φ Z n • mFourier n |
| 140 | |
| 141 | theorem series_value (N : ℕ) (hN : 0 < N) (φ : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.finiteSchwartz I) (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix I) |
| 142 | (hden : ∀ x : I → ℚ, φ.val (RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.finiteDiagonal x) ≠ 0 → ∀ i, ∃ m : ℤ, (m : ℚ) = (N : ℚ) * x i) |
| 143 | (x : I → ℝ) : series N φ Z (Terms.projection x) = |
| 144 | RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.theta φ Z (fun i => (N : ℂ) * (x i : ℂ)) := by |
| 145 | have hs := (ContinuousMap.evalCLM ℂ (Terms.projection x)).hasSum |
| 146 | (FourierSeriesUniqueness.CM.summable (Coefficients.coefficient_norm_summable N hN φ Z)).hasSum |
| 147 | have hsupport : Function.support (RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.thetaTerm φ Z (fun i => (N : ℂ) * (x i : ℂ))) ⊆ |
| 148 | Set.range (Coefficients.frequency (I := I) N) := by |
| 149 | intro q hq |
| 150 | apply Coefficients.frequency_range N hN q |
| 151 | apply hden q |
| 152 | intro hz |
| 153 | apply hq |
| 154 | simp only [RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.thetaTerm, hz, zero_mul] |
| 155 | calc |
| 156 | series N φ Z (Terms.projection x) = |
| 157 | ∑' n : I → ℤ, Coefficients.coefficient N φ Z n * mFourier n (Terms.projection x) := hs.tsum_eq.symm |
| 158 | _ = ∑' n : I → ℤ, RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.thetaTerm φ Z (fun i => (N : ℂ) * (x i : ℂ)) (Coefficients.frequency N n) := |
| 159 | tsum_congr (fun n => (Terms.term N hN φ Z n x).symm) |
| 160 | _ = _ := (Coefficients.frequency_injective N hN).tsum_eq hsupport |
| 161 | |
| 162 | theorem input_zero (φ : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.finiteSchwartz I) (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix I) |
| 163 | (h : ∀ z : I → ℂ, RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.theta φ Z z = 0) : φ = 0 := by |
| 164 | let N := RepresentationTheory.Theta.FiniteSupport.supportDenominator φ |
| 165 | have hN : 0 < N := (RepresentationTheory.Theta.FiniteSupport.supportDenominator_spec φ).1 |
| 166 | have hden := (RepresentationTheory.Theta.FiniteSupport.supportDenominator_spec φ).2 |
| 167 | have hf : series N φ Z = 0 := by |
| 168 | ext t |
| 169 | obtain ⟨x, rfl⟩ := projection_surjective t |
| 170 | rw [series_value N hN φ Z hden x, h] |
| 171 | rfl |
| 172 | have hs := (FourierSeriesUniqueness.CM.summable (Coefficients.coefficient_norm_summable N hN φ Z)).hasSum |
| 173 | change HasSum (fun n => Coefficients.coefficient N φ Z n • mFourier n) (series N φ Z) at hs |
| 174 | rw [hf] at hs |
| 175 | have hz : HasSum (fun n : I → ℤ => (0 : ℂ) • mFourier n) (0 : C(UnitAddTorus I, ℂ)) := by |
| 176 | have he : (fun n : I → ℤ => (0 : ℂ) • mFourier n) = |
| 177 | fun _ : I → ℤ => (0 : C(UnitAddTorus I, ℂ)) := funext (fun n => zero_smul ℂ (mFourier n)) |
| 178 | rw [he] |
| 179 | exact hasSum_zero |
| 180 | have hc := FourierSeriesUniqueness.CM.coefficients_eq hs hz |
| 181 | exact Coefficients.input_zero N hN φ Z hden (fun n => congrFun hc n) |
| 182 | |
| 183 | theorem injective (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix I) : Function.Injective (fun φ : RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.finiteSchwartz I => |
| 184 | RepresentationTheory.Theta.PoissonAutomorphyNormalizationData.theta φ Z) := by |
| 185 | intro φ ψ h |
| 186 | apply sub_eq_zero.mp |
| 187 | apply input_zero (φ - ψ) Z |
| 188 | intro z |
| 189 | change RepresentationTheory.Theta.Geometric.LinearTheta.scalarThetaLinear Z (φ - ψ) z = 0 |
| 190 | rw [map_sub] |
| 191 | exact sub_eq_zero.mpr (congrFun h z) |
| 192 | |
| 193 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.Theta.Fourier.CM.Injectivity |
| 194 | |
| 195 | end |
| 196 | |
| 197 | end OAI |