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.ConeCoefficientScaling |
| 2 | import OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.HomogeneousExtension |
| 3 | |
| 4 | /-! # Cone Fiber Equation -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ConeFiberEquation.Constructions.Cone |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! |
| 13 | # Polynomial coefficients of the cone-fiber equation |
| 14 | |
| 15 | The scaling law makes each lower coefficient positively homogeneous. The |
| 16 | punctured homogeneous extension theorem makes it an actual homogeneous |
| 17 | polynomial, while the leading coefficient is the constant one. |
| 18 | -/ |
| 19 | |
| 20 | open Set Filter _root_.Polynomial |
| 21 | open scoped _root_.Topology |
| 22 | |
| 23 | theorem exists_polynomial_coefficients_of_scaling {n d : ℕ} |
| 24 | {P : (Fin n → ℂ) → ℂ[X]} |
| 25 | (hcoeff : ∀ j, DifferentiableOn ℂ (fun y => (P y).coeff j) {0}ᶜ) |
| 26 | (hP : ∀ y, y ≠ 0 → (P y).Monic ∧ (P y).natDegree = d) |
| 27 | (hscale : ∀ t : ℂ, t ≠ 0 → ∀ x, x ≠ 0 → P (t • x) = (P x).scaleRoots t) : |
| 28 | ∃ a : Fin (d + 1) → MvPolynomial (Fin n) ℂ, |
| 29 | (∀ j, (a j).IsHomogeneous (d - j.val)) ∧ |
| 30 | ∀ j x, x ≠ 0 → MvPolynomial.eval x (a j) = (P x).coeff j.val := by |
| 31 | have hex (j : Fin (d + 1)) : ∃ a : MvPolynomial (Fin n) ℂ, |
| 32 | a.IsHomogeneous (d - j.val) ∧ ∀ x, x ≠ 0 → MvPolynomial.eval x a = (P x).coeff j.val := by |
| 33 | by_cases hj : j.val = d |
| 34 | · refine ⟨1, ?_, ?_⟩ |
| 35 | · simpa only [hj, Nat.sub_self] using MvPolynomial.isHomogeneous_one (Fin n) ℂ |
| 36 | · intro x hx |
| 37 | rw [map_one, hj, ← (hP x hx).2] |
| 38 | exact (hP x hx).1.coeff_natDegree.symm |
| 39 | · have hpos : 0 < d - j.val := by have := j.isLt; omega |
| 40 | apply HomogeneousExtension.Constructions.Growth.extend_punctured_homogeneous hpos (hcoeff j.val) |
| 41 | intro t ht x hx |
| 42 | rw [hscale t ht x hx, coeff_scaleRoots, (hP x hx).2, mul_comm] |
| 43 | choose a ha heq using hex |
| 44 | exact ⟨a, ha, heq⟩ |
| 45 | |
| 46 | def fiberCoordinates {n : ℕ} (y : Fin n → ℂ) (z : ℂ) : Option (Fin n) → ℂ := |
| 47 | fun i => i.elim z y |
| 48 | |
| 49 | theorem exists_homogeneous_fiber_equation_of_scaling {n d : ℕ} |
| 50 | {P : (Fin n → ℂ) → ℂ[X]} |
| 51 | (hcoeff : ∀ j, DifferentiableOn ℂ (fun y => (P y).coeff j) {0}ᶜ) |
| 52 | (hP : ∀ y, y ≠ 0 → (P y).Monic ∧ (P y).natDegree = d) |
| 53 | (hscale : ∀ t : ℂ, t ≠ 0 → ∀ x, x ≠ 0 → P (t • x) = (P x).scaleRoots t) : |
| 54 | ∃ F : MvPolynomial (Option (Fin n)) ℂ, |
| 55 | F.IsHomogeneous d ∧ |
| 56 | ∀ y, y ≠ 0 → ∀ z : ℂ, MvPolynomial.eval (fiberCoordinates y z) F = (P y).eval z := by |
| 57 | classical |
| 58 | obtain ⟨a, ha, heq⟩ := exists_polynomial_coefficients_of_scaling hcoeff hP hscale |
| 59 | let F : MvPolynomial (Option (Fin n)) ℂ := |
| 60 | ∑ j : Fin (d + 1), MvPolynomial.rename some (a j) * MvPolynomial.X none ^ j.val |
| 61 | refine ⟨F, ?_, ?_⟩ |
| 62 | · apply MvPolynomial.IsHomogeneous.sum Finset.univ _ d |
| 63 | intro j _ |
| 64 | have hmul := ((ha j).rename_isHomogeneous (f := some)).mul ((MvPolynomial.isHomogeneous_X ℂ |
| 65 | (none : Option (Fin n))).pow j.val) |
| 66 | convert hmul using 1 |
| 67 | have := j.isLt |
| 68 | omega |
| 69 | · intro y hy z |
| 70 | simp only [F, map_sum, map_mul, map_pow, MvPolynomial.eval_rename, MvPolynomial.eval_X] |
| 71 | change (∑ j : Fin (d + 1), MvPolynomial.eval y (a j) * z ^ j.val) = (P y).eval z |
| 72 | simp_rw [heq _ y hy] |
| 73 | rw [Fin.sum_univ_eq_sum_range (fun j : ℕ => (P y).coeff j * z ^ j)] |
| 74 | exact (eval_eq_sum_range' (show (P y).natDegree < d + 1 from by rw [(hP y hy).2]; omega) z).symm |
| 75 | |
| 76 | theorem exists_generic_homogeneous_fiber_equation {n : ℕ} (hn : 0 < n) |
| 77 | {S : Set ((Fin n → ℂ) × ℂ)} |
| 78 | (hproper : IsProperMap (fun p : S => p.val.1)) |
| 79 | (hfinite : ∀ x, {z : ℂ | (x, z) ∈ S}.Finite) |
| 80 | (hlocal : ∀ p ∈ S, p ≠ 0 → ZeroLocus.Constructions.Cone.HolomorphicZeroSetAt S p) |
| 81 | (hcone : ∀ t : ℂ, ∀ p ∈ S, t • p ∈ S) : |
| 82 | ∃ (d : ℕ) (F : MvPolynomial (Option (Fin n)) ℂ), |
| 83 | F.IsHomogeneous d ∧ F ≠ 0 ∧ |
| 84 | ∀ x, x ≠ 0 → ∃ (V : Set (Fin n → ℂ)) (c : (Fin n → ℂ) → ℂ), |
| 85 | IsOpen V ∧ x ∈ V ∧ V ⊆ {0}ᶜ ∧ DifferentiableOn ℂ c V ∧ |
| 86 | (¬∀ᶠ y in 𝓝 x, c y = 0) ∧ V ⊆ closure {y | y ∈ V ∧ c y ≠ 0} ∧ |
| 87 | ∀ y ∈ V, c y ≠ 0 → ∀ z : ℂ, |
| 88 | (y, z) ∈ S ↔ MvPolynomial.eval (fiberCoordinates y z) F = 0 := by |
| 89 | obtain ⟨d, P, hcoeff, hP, hnear⟩ := PuncturedFiberPolynomial.Constructions.Cone.exists_punctured_fiber_polynomial hn hproper hfinite hlocal |
| 90 | have hnear' (x : Fin n → ℂ) (hx : x ≠ 0) := hnear x hx |
| 91 | have hscale (t : ℂ) (ht : t ≠ 0) (x : Fin n → ℂ) (hx : x ≠ 0) : |
| 92 | P (t • x) = (P x).scaleRoots t := by |
| 93 | apply ConeCoefficientScaling.Constructions.Cone.fiber_polynomial_scaleRoots hcone hcoeff hP _ ht hx |
| 94 | intro y hy |
| 95 | obtain ⟨V, c, hV, hyV, hV0, hc, hcn, _, hroot⟩ := hnear' y hy |
| 96 | exact ⟨V, c, hV, hyV, hV0, hc, hcn, hroot⟩ |
| 97 | obtain ⟨F, hF, hFeq⟩ := exists_homogeneous_fiber_equation_of_scaling hcoeff hP hscale |
| 98 | have hFne : F ≠ 0 := by |
| 99 | intro hzero |
| 100 | let y : Fin n → ℂ := fun _ => 1 |
| 101 | have hy : y ≠ 0 := by |
| 102 | intro hy |
| 103 | have h := congrFun hy ⟨0, hn⟩ |
| 104 | exact one_ne_zero h |
| 105 | apply (hP y hy).1.ne_zero |
| 106 | apply Polynomial.zero_of_eval_zero |
| 107 | intro z |
| 108 | rw [← hFeq y hy z, hzero, map_zero] |
| 109 | refine ⟨d, F, hF, hFne, ?_⟩ |
| 110 | intro x hx |
| 111 | obtain ⟨V, c, hV, hxV, hV0, hc, hcn, hdense, hroot⟩ := hnear x hx |
| 112 | refine ⟨V, c, hV, hxV, hV0, hc, hcn, hdense, ?_⟩ |
| 113 | intro y hy hcy z |
| 114 | rw [hFeq y (hV0 hy) z] |
| 115 | exact (hroot y hy hcy).2 z |
| 116 | |
| 117 | end |
| 118 | |
| 119 | /-! |
| 120 | # The monic term of a homogeneous cone-fiber equation |
| 121 | |
| 122 | The homogeneous equation can be chosen to restrict to exactly `z ^ d` on |
| 123 | the vertical axis. This also controls the fiber over the cone vertex. |
| 124 | -/ |
| 125 | |
| 126 | open Set _root_.Polynomial |
| 127 | |
| 128 | theorem exists_monic_homogeneous_fiber_equation_of_scaling {n d : ℕ} |
| 129 | {P : (Fin n → ℂ) → ℂ[X]} |
| 130 | (hcoeff : ∀ j, DifferentiableOn ℂ (fun y => (P y).coeff j) {0}ᶜ) |
| 131 | (hP : ∀ y, y ≠ 0 → (P y).Monic ∧ (P y).natDegree = d) |
| 132 | (hscale : ∀ t : ℂ, t ≠ 0 → ∀ x, x ≠ 0 → P (t • x) = (P x).scaleRoots t) : |
| 133 | ∃ F : MvPolynomial (Option (Fin n)) ℂ, |
| 134 | F.IsHomogeneous d ∧ |
| 135 | (∀ y, y ≠ 0 → ∀ z : ℂ, MvPolynomial.eval (fiberCoordinates y z) F = (P y).eval z) ∧ |
| 136 | ∀ z : ℂ, MvPolynomial.eval (fiberCoordinates 0 z) F = z ^ d := by |
| 137 | classical |
| 138 | obtain ⟨a, ha, heq⟩ := exists_polynomial_coefficients_of_scaling hcoeff hP hscale |
| 139 | let b : Fin (d + 1) → MvPolynomial (Fin n) ℂ := fun j => if j.val = d then 1 else a j |
| 140 | have hb (j : Fin (d + 1)) : (b j).IsHomogeneous (d - j.val) := by |
| 141 | by_cases hj : j.val = d |
| 142 | · simpa only [b, ite_eq_left hj, hj, Nat.sub_self] using MvPolynomial.isHomogeneous_one (Fin n) ℂ |
| 143 | · simpa only [b, ite_eq_right hj] using ha j |
| 144 | have hbeq (j : Fin (d + 1)) (y : Fin n → ℂ) (hy : y ≠ 0) : |
| 145 | MvPolynomial.eval y (b j) = (P y).coeff j.val := by |
| 146 | by_cases hj : j.val = d |
| 147 | · rw [show b j = 1 from ite_eq_left hj, map_one, hj, ← (hP y hy).2] |
| 148 | exact (hP y hy).1.coeff_natDegree.symm |
| 149 | · simpa only [b, ite_eq_right hj] using heq j y hy |
| 150 | have hbzero (j : Fin (d + 1)) : |
| 151 | MvPolynomial.eval (0 : Fin n → ℂ) (b j) = if j.val = d then 1 else 0 := by |
| 152 | by_cases hj : j.val = d |
| 153 | · simp only [b, ite_eq_left hj, map_one] |
| 154 | · rw [ite_eq_right hj, MvPolynomial.eval_zero] |
| 155 | change AddMonoidAlgebra.coeff ((b j)) (0) = 0 |
| 156 | apply (hb j).coeff_eq_zero |
| 157 | simp only [map_zero] |
| 158 | have := j.isLt |
| 159 | omega |
| 160 | let F : MvPolynomial (Option (Fin n)) ℂ := |
| 161 | ∑ j : Fin (d + 1), MvPolynomial.rename some (b j) * MvPolynomial.X none ^ j.val |
| 162 | refine ⟨F, ?_, ?_, ?_⟩ |
| 163 | · apply MvPolynomial.IsHomogeneous.sum Finset.univ _ d |
| 164 | intro j _ |
| 165 | have hmul := ((hb j).rename_isHomogeneous (f := some)).mul |
| 166 | ((MvPolynomial.isHomogeneous_X ℂ (none : Option (Fin n))).pow j.val) |
| 167 | convert hmul using 1 |
| 168 | have := j.isLt |
| 169 | omega |
| 170 | · intro y hy z |
| 171 | simp only [F, map_sum, map_mul, map_pow, MvPolynomial.eval_rename, MvPolynomial.eval_X] |
| 172 | change (∑ j : Fin (d + 1), MvPolynomial.eval y (b j) * z ^ j.val) = (P y).eval z |
| 173 | simp_rw [hbeq _ y hy] |
| 174 | rw [Fin.sum_univ_eq_sum_range (fun j : ℕ => (P y).coeff j * z ^ j)] |
| 175 | exact (eval_eq_sum_range' (show (P y).natDegree < d + 1 from by rw [(hP y hy).2]; omega) z).symm |
| 176 | · intro z |
| 177 | simp only [F, map_sum, map_mul, map_pow, MvPolynomial.eval_rename, MvPolynomial.eval_X] |
| 178 | change (∑ j : Fin (d + 1), MvPolynomial.eval 0 (b j) * z ^ j.val) = z ^ d |
| 179 | rw [Finset.sum_eq_single (⟨d, Nat.lt_succ_self d⟩ : Fin (d + 1))] |
| 180 | · rw [hbzero, ite_eq_left rfl, one_mul] |
| 181 | · intro j _ hj |
| 182 | have hjd : j.val ≠ d := fun h => hj (Fin.ext h) |
| 183 | rw [hbzero, ite_eq_right hjd, zero_mul] |
| 184 | · intro h |
| 185 | exact False.elim (h (Finset.mem_univ _)) |
| 186 | |
| 187 | end |
| 188 | |
| 189 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ConeFiberEquation.Constructions.Cone |