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.Quotient |
| 2 | import OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.MonicRoots |
| 3 | import Mathlib.Algebra.Polynomial.OfFn |
| 4 | |
| 5 | /-! # Coefficient Extension -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.CoefficientExtension.Constructions.GenericPolynomial |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! |
| 14 | # Extending bounded monic polynomial families |
| 15 | |
| 16 | Extend the finitely many coefficients across the exceptional zero set and |
| 17 | assemble them into one polynomial family. Density preserves the monic top |
| 18 | coefficient and hence the degree throughout the resulting neighborhood. |
| 19 | -/ |
| 20 | |
| 21 | open Set Filter _root_.Metric _root_.Polynomial |
| 22 | open scoped _root_.Topology |
| 23 | |
| 24 | theorem exists_extended_monic_family {n k : ℕ} |
| 25 | {P : (Fin n → ℂ) → ℂ[X]} {c : (Fin n → ℂ) → ℂ} {U : Set (Fin n → ℂ)} |
| 26 | (hU : IsOpen U) (hc : DifferentiableOn ℂ c U) |
| 27 | (hcoeff : ∀ j, DifferentiableOn ℂ (fun y => (P y).coeff j) {y | y ∈ U ∧ c y ≠ 0}) |
| 28 | (hP : ∀ y ∈ U, c y ≠ 0 → (P y).Monic ∧ (P y).natDegree = k) |
| 29 | (hbound : ∀ j, ∃ M : ℝ, ∀ y ∈ U, c y ≠ 0 → ‖(P y).coeff j‖ ≤ M) |
| 30 | {x : Fin n → ℂ} (hx : x ∈ U) (hcn : ¬∀ᶠ y in 𝓝 x, c y = 0) : |
| 31 | ∃ (V : Set (Fin n → ℂ)) (Q : (Fin n → ℂ) → ℂ[X]), |
| 32 | IsOpen V ∧ x ∈ V ∧ V ⊆ U ∧ V ⊆ closure {y | y ∈ V ∧ c y ≠ 0} ∧ |
| 33 | (∀ j, DifferentiableOn ℂ (fun y => (Q y).coeff j) V) ∧ |
| 34 | (∀ y ∈ V, (Q y).Monic ∧ (Q y).natDegree = k) ∧ |
| 35 | ∀ y ∈ V, c y ≠ 0 → Q y = P y := by |
| 36 | classical |
| 37 | have hex (i : Fin (k + 1)) := Quotient.Constructions.Removable.exists_extension_off_zero_set hU hc |
| 38 | (hcoeff i.val) hx hcn (hbound i.val) |
| 39 | choose W F hW hxW hWU hF hFeq using hex |
| 40 | let Z := U ∩ ⋂ i, W i |
| 41 | have hZ : IsOpen Z := hU.inter (isOpen_iInter_of_finite hW) |
| 42 | have hxZ : x ∈ Z := ⟨hx, mem_iInter.mpr hxW⟩ |
| 43 | have hZU : Z ⊆ U := inter_subset_left |
| 44 | obtain ⟨V, hV, hxV, hVZ, hdense⟩ := |
| 45 | GenericDegree.Constructions.GenericPolynomial.exists_dense_nonzero_neighborhood hZ hxZ (hc.mono hZU) hcn |
| 46 | have hVU : V ⊆ U := hVZ.trans hZU |
| 47 | have hVW (i : Fin (k + 1)) : V ⊆ W i := fun y hy => mem_iInter.mp (hVZ hy).2 i |
| 48 | let Q : (Fin n → ℂ) → ℂ[X] := fun y => ofFn (k + 1) (fun i => F i y) |
| 49 | have hQcoeff (j : ℕ) : DifferentiableOn ℂ (fun y => (Q y).coeff j) V := by |
| 50 | by_cases hj : j < k + 1 |
| 51 | · simp only [Q, ofFn_coeff_eq_val_of_lt _ hj] |
| 52 | exact (hF ⟨j, hj⟩).mono (hVW ⟨j, hj⟩) |
| 53 | · simp only [Q, ofFn_coeff_eq_zero_of_ge _ (Nat.le_of_not_gt hj)] |
| 54 | exact differentiableOn_const _ |
| 55 | have hQeq (y : Fin n → ℂ) (hy : y ∈ V) (hcy : c y ≠ 0) : Q y = P y := by |
| 56 | apply Polynomial.ext |
| 57 | intro j |
| 58 | by_cases hj : j < k + 1 |
| 59 | · simp only [Q, ofFn_coeff_eq_val_of_lt _ hj] |
| 60 | exact hFeq ⟨j, hj⟩ y (hVW ⟨j, hj⟩ hy) hcy |
| 61 | · rw [show (Q y).coeff j = 0 from ofFn_coeff_eq_zero_of_ge _ (Nat.le_of_not_gt hj)] |
| 62 | exact (coeff_eq_zero_of_natDegree_lt (by rw [(hP y (hVU hy) hcy).2]; omega)).symm |
| 63 | have hQtop (y : Fin n → ℂ) (hy : y ∈ V) : (Q y).coeff k = 1 := by |
| 64 | apply tendsto_nhds_unique_of_frequently_eq |
| 65 | ((hQcoeff k).differentiableAt (hV.mem_nhds hy)).continuousAt.tendsto tendsto_const_nhds |
| 66 | apply (mem_closure_iff_frequently.mp (hdense hy)).mono |
| 67 | intro z hz |
| 68 | rw [hQeq z hz.1 hz.2, ← (hP z (hVU hz.1) hz.2).2] |
| 69 | exact (hP z (hVU hz.1) hz.2).1.coeff_natDegree |
| 70 | refine ⟨V, Q, hV, hxV, hVU, hdense, hQcoeff, ?_, hQeq⟩ |
| 71 | intro y hy |
| 72 | have hdeg : (Q y).natDegree ≤ k := Nat.le_of_lt_succ (ofFn_natDegree_lt (by omega) _) |
| 73 | exact ⟨monic_of_natDegree_le_of_coeff_eq_one k hdeg (hQtop y hy), |
| 74 | le_antisymm hdeg (le_natDegree_of_ne_zero (by rw [hQtop y hy]; exact one_ne_zero))⟩ |
| 75 | |
| 76 | end |
| 77 | |
| 78 | /-! |
| 79 | # Uniqueness of extended generic root polynomials |
| 80 | |
| 81 | Two holomorphic polynomial families with the same generic distinct roots |
| 82 | agree near the base point. The nonzero locus of the product of their |
| 83 | exceptional functions is dense, and continuity identifies all coefficients. |
| 84 | -/ |
| 85 | |
| 86 | open Set Filter _root_.Polynomial |
| 87 | open scoped _root_.Topology |
| 88 | |
| 89 | theorem eventually_eq_of_generic_roots {n : ℕ} |
| 90 | {P Q : (Fin n → ℂ) → ℂ[X]} {c d : (Fin n → ℂ) → ℂ} |
| 91 | {U : Set (Fin n → ℂ)} (hU : IsOpen U) {x : Fin n → ℂ} (hx : x ∈ U) |
| 92 | (hc : DifferentiableOn ℂ c U) (hd : DifferentiableOn ℂ d U) |
| 93 | (hcn : ¬∀ᶠ y in 𝓝 x, c y = 0) (hdn : ¬∀ᶠ y in 𝓝 x, d y = 0) |
| 94 | (hP : ∀ j, ContinuousOn (fun y => (P y).coeff j) U) |
| 95 | (hQ : ∀ j, ContinuousOn (fun y => (Q y).coeff j) U) |
| 96 | (hroot : ∀ y ∈ U, c y ≠ 0 → d y ≠ 0 → |
| 97 | (P y).Monic ∧ (Q y).Monic ∧ (P y).Separable ∧ (Q y).Separable ∧ |
| 98 | ∀ z : ℂ, (P y).eval z = 0 ↔ (Q y).eval z = 0) : |
| 99 | P =ᶠ[𝓝 x] Q := by |
| 100 | have hprod := GenericDegree.Constructions.GenericPolynomial.not_eventually_zero_mul hU hx hc hd hcn hdn |
| 101 | obtain ⟨V, hV, hxV, hVU, hdense⟩ := |
| 102 | GenericDegree.Constructions.GenericPolynomial.exists_dense_nonzero_neighborhood hU hx (hc.fun_mul hd) hprod |
| 103 | filter_upwards [hV.mem_nhds hxV] with y hy |
| 104 | apply Polynomial.ext |
| 105 | intro j |
| 106 | apply tendsto_nhds_unique_of_frequently_eq |
| 107 | ((hP j).continuousAt (hU.mem_nhds (hVU hy))).tendsto |
| 108 | ((hQ j).continuousAt (hU.mem_nhds (hVU hy))).tendsto |
| 109 | apply (mem_closure_iff_frequently.mp (hdense hy)).mono |
| 110 | intro z hz |
| 111 | obtain ⟨hcz, hdz⟩ := mul_ne_zero_iff.mp hz.2 |
| 112 | obtain ⟨hPm, hQm, hPs, hQs, hr⟩ := hroot z (hVU hz.1) hcz hdz |
| 113 | exact congrArg (fun R : ℂ[X] => R.coeff j) (MonicRoots.Constructions.RootPolynomials.eq_of_same_roots hPm hQm hPs hQs hr) |
| 114 | |
| 115 | end |
| 116 | |
| 117 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.CoefficientExtension.Constructions.GenericPolynomial |