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.ComplexGroups.HolomorphicAlgebraicity.PolynomialGrowth |
| 2 | import OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.HomogeneousExtension |
| 3 | import Mathlib.Analysis.Analytic.IsolatedZeros |
| 4 | import Mathlib.Topology.Compactness.Lindelof |
| 5 | import Mathlib.Analysis.Calculus.Deriv.Polynomial |
| 6 | |
| 7 | /-! # Branch Extension -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.BranchExtension.Constructions.Growth |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # Polynomial extension across exceptional sets of projection coefficients |
| 15 | |
| 16 | Continuity and polynomial growth let interpolation extend from a dense family |
| 17 | of holomorphic affine lines to all lines. Countable exceptional sets on each |
| 18 | line are removable by the Cauchy integral theorem. |
| 19 | -/ |
| 20 | |
| 21 | open Set Filter _root_.Metric |
| 22 | open scoped _root_.Topology BigOperators |
| 23 | |
| 24 | /-- Countably many exceptional points are removable for a continuous complex |
| 25 | function which is holomorphic at every other point. -/ |
| 26 | theorem differentiable_of_continuous_off_countable {f : ℂ → ℂ} {S : Set ℂ} |
| 27 | (hf : Continuous f) (hS : S.Countable) |
| 28 | (hd : ∀ z, z ∉ S → DifferentiableAt ℂ f z) : Differentiable ℂ f := by |
| 29 | intro z |
| 30 | exact (Complex.hasFPowerSeriesOnBall_of_differentiable_off_countable (R := 1) |
| 31 | hS hf.continuousOn (fun w hw => hd w hw.2) zero_lt_one).analyticAt.differentiableAt |
| 32 | |
| 33 | /-- Polynomial growth is preserved on every affine complex line. -/ |
| 34 | theorem growth_affineLine {n d : ℕ} {f : (Fin n → ℂ) → ℂ} {C : ℝ} |
| 35 | (hC : 0 ≤ C) (hbound : ∀ z, ‖f z‖ ≤ C * (max 1 ‖z‖) ^ d) |
| 36 | (x v : Fin n → ℂ) (c : ℂ) : |
| 37 | ‖f (x + c • v)‖ ≤ |
| 38 | (C * (max 1 ‖x‖ + max 1 ‖v‖) ^ d) * (max 1 ‖c‖) ^ d := by |
| 39 | have hx : 0 ≤ max 1 ‖x‖ := le_trans zero_le_one (le_max_left _ _) |
| 40 | have hv : 0 ≤ max 1 ‖v‖ := le_trans zero_le_one (le_max_left _ _) |
| 41 | have hc : 1 ≤ max 1 ‖c‖ := le_max_left _ _ |
| 42 | have hnorm : ‖x + c • v‖ ≤ (max 1 ‖x‖ + max 1 ‖v‖) * max 1 ‖c‖ := by |
| 43 | calc |
| 44 | _ ≤ ‖x‖ + ‖c‖ * ‖v‖ := by simpa only [norm_smul] using norm_add_le x (c • v) |
| 45 | _ ≤ max 1 ‖x‖ + max 1 ‖c‖ * max 1 ‖v‖ := by gcongr <;> exact le_max_right _ _ |
| 46 | _ ≤ _ := by nlinarith |
| 47 | have hmax : max 1 ‖x + c • v‖ ≤ (max 1 ‖x‖ + max 1 ‖v‖) * max 1 ‖c‖ := by |
| 48 | apply max_le _ hnorm |
| 49 | have hx1 : 1 ≤ max 1 ‖x‖ := le_max_left _ _ |
| 50 | nlinarith |
| 51 | calc |
| 52 | _ ≤ C * max 1 ‖x + c • v‖ ^ d := hbound _ |
| 53 | _ ≤ C * ((max 1 ‖x‖ + max 1 ‖v‖) * max 1 ‖c‖) ^ d := by gcongr |
| 54 | _ = _ := by rw [mul_pow, mul_assoc] |
| 55 | |
| 56 | /-- With a common polynomial-growth bound, interpolation and continuity |
| 57 | extend holomorphy from dense translates of each line to every translate. -/ |
| 58 | theorem line_differentiable_of_dense_lines {n d : ℕ} {f : (Fin n → ℂ) → ℂ} {C : ℝ} |
| 59 | (hf : Continuous f) (hbound : ∀ z, ‖f z‖ ≤ C * (max 1 ‖z‖) ^ d) |
| 60 | (hdense : ∀ v : Fin n → ℂ, |
| 61 | Dense {x | Differentiable ℂ (fun c : ℂ => f (x + c • v))}) |
| 62 | (x v : Fin n → ℂ) : Differentiable ℂ (fun c : ℂ => f (x + c • v)) := by |
| 63 | have hC : 0 ≤ C := by |
| 64 | have h := hbound 0 |
| 65 | simp only [norm_zero, max_eq_left zero_le_one, one_pow, mul_one] at h |
| 66 | exact (norm_nonneg _).trans h |
| 67 | have hinterp (c : ℂ) : f (x + c • v) = |
| 68 | ∑ i : Fin (d + 1), f (x + PolynomialGrowth.Constructions.Growth.node d i • v) * (PolynomialGrowth.Constructions.Growth.cardinalBasis d i).eval c := by |
| 69 | apply (hdense v).induction (P := fun y => f (y + c • v) = |
| 70 | ∑ i : Fin (d + 1), f (y + PolynomialGrowth.Constructions.Growth.node d i • v) * (PolynomialGrowth.Constructions.Growth.cardinalBasis d i).eval c) ?_ ?_ x |
| 71 | · intro y hy |
| 72 | obtain ⟨p, hpdeg, hp⟩ := PolynomialGrowth.Constructions.Growth.exists_polynomial_of_growth hy |
| 73 | (growth_affineLine hC hbound y v) |
| 74 | simpa only [hp] using PolynomialGrowth.Constructions.Growth.interpolation_formula p hpdeg c |
| 75 | · apply isClosed_eq (hf.comp (continuous_id.add continuous_const)) |
| 76 | apply continuous_finsetSum |
| 77 | intro i _ |
| 78 | exact (hf.comp (continuous_id.add continuous_const)).mul continuous_const |
| 79 | have heq : (fun c : ℂ => f (x + c • v)) = |
| 80 | (fun c => ∑ i : Fin (d + 1), f (x + PolynomialGrowth.Constructions.Growth.node d i • v) * (PolynomialGrowth.Constructions.Growth.cardinalBasis d i).eval c) := |
| 81 | funext hinterp |
| 82 | rw [heq] |
| 83 | apply Differentiable.fun_sum |
| 84 | intro i _ |
| 85 | exact (PolynomialGrowth.Constructions.Growth.cardinalBasis d i).differentiable.const_mul _ |
| 86 | |
| 87 | /-- A continuous function of polynomial growth which is holomorphic on a |
| 88 | dense family of translates of every line is an actual polynomial. -/ |
| 89 | theorem exists_polynomial_of_dense_lines {n d : ℕ} {f : (Fin n → ℂ) → ℂ} {C : ℝ} |
| 90 | (hf : Continuous f) (hbound : ∀ z, ‖f z‖ ≤ C * (max 1 ‖z‖) ^ d) |
| 91 | (hdense : ∀ v : Fin n → ℂ, |
| 92 | Dense {x | Differentiable ℂ (fun c : ℂ => f (x + c • v))}) : |
| 93 | ∃ P : MvPolynomial (Fin n) ℂ, ∀ x, MvPolynomial.eval x P = f x := |
| 94 | PolynomialGrowth.Constructions.Growth.exists_mvPolynomial_of_line_growth n |
| 95 | (line_differentiable_of_dense_lines hf hbound hdense) hbound |
| 96 | |
| 97 | /-- A nonzero entire function of one complex variable has only countably |
| 98 | many zeros. -/ |
| 99 | theorem countable_zeroSet_of_entire {g : ℂ → ℂ} |
| 100 | (hg : Differentiable ℂ g) (hne : ∃ z, g z ≠ 0) : {z | g z = 0}.Countable := by |
| 101 | apply (HereditarilyLindelofSpace.isLindelof _).countable_of_isDiscrete |
| 102 | apply isDiscrete_iff_nhdsNE.mpr |
| 103 | intro x _ |
| 104 | by_contra hbot |
| 105 | have hfreq : ∃ᶠ z in 𝓝[≠] x, g z = 0 := frequently_iff_neBot.mpr ⟨hbot⟩ |
| 106 | have hga : AnalyticOnNhd ℂ g univ := fun z _ => hg.analyticAt z |
| 107 | have heq := hga.eqOn_zero_of_preconnected_of_frequently_eq_zero |
| 108 | isPreconnected_univ (mem_univ x) hfreq |
| 109 | obtain ⟨z, hz⟩ := hne |
| 110 | exact hz (heq (mem_univ z)) |
| 111 | |
| 112 | /-- Continuous polynomial-growth functions extend across a zero set whose |
| 113 | defining function is holomorphic on every affine line and nonzero densely. -/ |
| 114 | theorem exists_polynomial_off_zeroSet {n d : ℕ} {f g : (Fin n → ℂ) → ℂ} {C : ℝ} |
| 115 | (hf : Continuous f) (hbound : ∀ z, ‖f z‖ ≤ C * (max 1 ‖z‖) ^ d) |
| 116 | (hg : ∀ x v, Differentiable ℂ (fun c : ℂ => g (x + c • v))) |
| 117 | (hdense : Dense {x | g x ≠ 0}) |
| 118 | (hd : ∀ x, g x ≠ 0 → DifferentiableAt ℂ f x) : |
| 119 | ∃ P : MvPolynomial (Fin n) ℂ, ∀ x, MvPolynomial.eval x P = f x := by |
| 120 | apply exists_polynomial_of_dense_lines hf hbound |
| 121 | intro v |
| 122 | apply hdense.mono |
| 123 | intro x hx |
| 124 | change g x ≠ 0 at hx |
| 125 | have hline : Differentiable ℂ (fun c : ℂ => x + c • v) := |
| 126 | (differentiable_const x).add (differentiable_id.smul_const v) |
| 127 | apply differentiable_of_continuous_off_countable (hf.comp hline.continuous) |
| 128 | (countable_zeroSet_of_entire (hg x v) ⟨0, by simpa only [zero_smul, add_zero] using hx⟩) |
| 129 | intro c hc |
| 130 | exact (hd (x + c • v) hc).comp c (hline c) |
| 131 | |
| 132 | /-- A function holomorphic on every affine line and nonzero somewhere is |
| 133 | nonzero on a dense set. -/ |
| 134 | theorem dense_nonzero_of_line_holomorphic {n : ℕ} {g : (Fin n → ℂ) → ℂ} |
| 135 | (hg : ∀ x v, Differentiable ℂ (fun c : ℂ => g (x + c • v))) |
| 136 | (hne : ∃ z, g z ≠ 0) : Dense {x | g x ≠ 0} := by |
| 137 | apply dense_iff_inter_open.mpr |
| 138 | intro U hU hUne |
| 139 | obtain ⟨x, hx⟩ := hUne |
| 140 | obtain ⟨z, hz⟩ := hne |
| 141 | by_contra hno |
| 142 | have hzeroU : ∀ y ∈ U, g y = 0 := by |
| 143 | intro y hy |
| 144 | by_contra hgy |
| 145 | exact hno ⟨y, hy, hgy⟩ |
| 146 | have hline : Differentiable ℂ (fun c : ℂ => x + c • (z - x)) := |
| 147 | (differentiable_const x).add (differentiable_id.smul_const (z - x)) |
| 148 | have hUline : (fun c : ℂ => x + c • (z - x)) ⁻¹' U ∈ 𝓝 0 := |
| 149 | (hU.preimage hline.continuous).mem_nhds (by |
| 150 | simpa only [mem_preimage, zero_smul, add_zero] using hx) |
| 151 | have hzero : ∀ᶠ c : ℂ in 𝓝 0, g (x + c • (z - x)) = 0 := by |
| 152 | filter_upwards [hUline] with c hc |
| 153 | exact hzeroU _ hc |
| 154 | have hga : AnalyticOnNhd ℂ (fun c : ℂ => g (x + c • (z - x))) univ := |
| 155 | fun c _ => (hg x (z - x)).analyticAt c |
| 156 | have heq := hga.eqOn_zero_of_preconnected_of_frequently_eq_zero |
| 157 | isPreconnected_univ (mem_univ 0) (hzero.filter_mono nhdsWithin_le_nhds).frequently |
| 158 | apply hz |
| 159 | have hxz : x + (z - x) = z := by abel |
| 160 | simpa only [one_smul, hxz, Pi.zero_apply] using heq (mem_univ (1 : ℂ)) |
| 161 | |
| 162 | /-- A continuous polynomial-growth function holomorphic off the zero locus |
| 163 | of a nonzero entire function is polynomial, including across that zero locus. -/ |
| 164 | theorem exists_polynomial_off_entire_zeroSet {n d : ℕ} |
| 165 | {f g : (Fin n → ℂ) → ℂ} {C : ℝ} |
| 166 | (hf : Continuous f) (hbound : ∀ z, ‖f z‖ ≤ C * (max 1 ‖z‖) ^ d) |
| 167 | (hg : Differentiable ℂ g) (hne : ∃ z, g z ≠ 0) |
| 168 | (hd : ∀ x, g x ≠ 0 → DifferentiableAt ℂ f x) : |
| 169 | ∃ P : MvPolynomial (Fin n) ℂ, ∀ x, MvPolynomial.eval x P = f x := by |
| 170 | have hline (x v : Fin n → ℂ) : Differentiable ℂ (fun c : ℂ => g (x + c • v)) := |
| 171 | hg.comp ((differentiable_const x).add (differentiable_id.smul_const v)) |
| 172 | exact exists_polynomial_off_zeroSet hf hbound hline |
| 173 | (dense_nonzero_of_line_holomorphic hline hne) hd |
| 174 | |
| 175 | /-- Homogeneous continuous coefficients which are holomorphic away from an |
| 176 | entire branch equation extend as homogeneous polynomials of the same degree. -/ |
| 177 | theorem exists_homogeneousPolynomial_off_entire_zeroSet {n d : ℕ} |
| 178 | {f g : (Fin n → ℂ) → ℂ} (hd : 0 < d) |
| 179 | (hf : Continuous f) (hhom : ∀ (c : ℂ) x, f (c • x) = c ^ d * f x) |
| 180 | (hg : Differentiable ℂ g) (hne : ∃ z, g z ≠ 0) |
| 181 | (hfdiff : ∀ x, g x ≠ 0 → DifferentiableAt ℂ f x) : |
| 182 | ∃ P : MvPolynomial (Fin n) ℂ, |
| 183 | P.IsHomogeneous d ∧ ∀ x, MvPolynomial.eval x P = f x := by |
| 184 | obtain ⟨C, _, hbound⟩ := HomogeneousExtension.Constructions.Growth.polynomial_growth_of_homogeneous hd hf.continuousOn hhom |
| 185 | obtain ⟨P, hP⟩ := exists_polynomial_off_entire_zeroSet hf hbound hg hne hfdiff |
| 186 | have heq := HomogeneousExtension.Constructions.Growth.homogeneousComponent_eq_of_eval_smul P (by simpa only [hP] using hhom) |
| 187 | refine ⟨P, ?_, hP⟩ |
| 188 | rw [← heq] |
| 189 | exact MvPolynomial.homogeneousComponent_isHomogeneous d P |
| 190 | |
| 191 | end |
| 192 | |
| 193 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.BranchExtension.Constructions.Growth |