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.RingTheory.MvPolynomial.Symmetric.NewtonIdentities |
| 2 | import Mathlib.RingTheory.Polynomial.Vieta |
| 3 | import Mathlib.Analysis.Calculus.FDeriv.Add |
| 4 | import Mathlib.Analysis.Calculus.FDeriv.Mul |
| 5 | import Mathlib.Analysis.Complex.Basic |
| 6 | |
| 7 | /-! # Symmetric Roots On -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.SymmetricRootsOn.Constructions.SymmetricRoots |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # Holomorphic polynomial coefficients from root power sums |
| 15 | |
| 16 | Newton's identities recover elementary symmetric functions from power sums. |
| 17 | Individual root functions need no continuity or differentiability. |
| 18 | -/ |
| 19 | |
| 20 | open Set _root_.Polynomial |
| 21 | open scoped BigOperators |
| 22 | |
| 23 | def elementary {d : ℕ} (roots : Fin d → ℂ) (k : ℕ) : ℂ := |
| 24 | MvPolynomial.eval roots (MvPolynomial.esymm (Fin d) ℂ k) |
| 25 | |
| 26 | theorem elementary_zero {d : ℕ} (roots : Fin d → ℂ) : elementary roots 0 = 1 := by |
| 27 | simp [elementary, MvPolynomial.esymm_zero] |
| 28 | |
| 29 | theorem newton_identity {d : ℕ} (roots : Fin d → ℂ) (k : ℕ) : |
| 30 | (k : ℂ) * elementary roots k = (-1 : ℂ) ^ (k + 1) * |
| 31 | ∑ a ∈ (Finset.antidiagonal k).filter (fun a => a.1 < k), |
| 32 | (-1 : ℂ) ^ a.1 * elementary roots a.1 * ∑ i, roots i ^ a.2 := by |
| 33 | have h := congrArg (MvPolynomial.eval roots) (MvPolynomial.mul_esymm_eq_sum (Fin d) ℂ k) |
| 34 | simpa only [map_mul, map_pow, map_natCast, map_neg, map_one, map_sum, |
| 35 | elementary, MvPolynomial.psum, MvPolynomial.eval_X] using h |
| 36 | |
| 37 | theorem differentiableOn_elementary {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 38 | {d : ℕ} (roots : E → Fin d → ℂ) {U : Set E} |
| 39 | (hp : ∀ k : ℕ, DifferentiableOn ℂ (fun y => ∑ i, roots y i ^ k) U) (k : ℕ) : |
| 40 | DifferentiableOn ℂ (fun y => elementary (roots y) k) U := by |
| 41 | induction k using Nat.strong_induction_on with |
| 42 | | h k ih => |
| 43 | by_cases hk : k = 0 |
| 44 | · subst k |
| 45 | simpa only [elementary_zero] using (differentiableOn_const (c := (1 : ℂ)) (s := U)) |
| 46 | have hk' : (k : ℂ) ≠ 0 := Nat.cast_ne_zero.mpr hk |
| 47 | have heq (y : E) : elementary (roots y) k = (k : ℂ)⁻¹ * ((-1 : ℂ) ^ (k + 1) * |
| 48 | ∑ a ∈ (Finset.antidiagonal k).filter (fun a => a.1 < k), |
| 49 | (-1 : ℂ) ^ a.1 * elementary (roots y) a.1 * ∑ i, roots y i ^ a.2) := by |
| 50 | rw [← newton_identity, ← mul_assoc, inv_mul_cancel₀ hk', one_mul] |
| 51 | simp_rw [heq] |
| 52 | apply DifferentiableOn.const_mul |
| 53 | apply DifferentiableOn.const_mul |
| 54 | apply DifferentiableOn.fun_sum |
| 55 | intro a ha |
| 56 | exact ((ih a.1 (Finset.mem_filter.mp ha).2).const_mul _).fun_mul (hp a.2) |
| 57 | |
| 58 | def rootPolynomial {d : ℕ} (roots : Fin d → ℂ) : Polynomial ℂ := |
| 59 | ∏ i, (X - C (roots i)) |
| 60 | |
| 61 | theorem rootPolynomial_monic {d : ℕ} (roots : Fin d → ℂ) : (rootPolynomial roots).Monic := |
| 62 | monic_prod_of_monic _ _ (fun i _ => monic_X_sub_C (roots i)) |
| 63 | |
| 64 | theorem rootPolynomial_natDegree {d : ℕ} (roots : Fin d → ℂ) : |
| 65 | (rootPolynomial roots).natDegree = d := by |
| 66 | simp [rootPolynomial] |
| 67 | |
| 68 | theorem rootPolynomial_coeff {d : ℕ} (roots : Fin d → ℂ) {k : ℕ} (hk : k ≤ d) : |
| 69 | (rootPolynomial roots).coeff k = (-1 : ℂ) ^ (d - k) * elementary roots (d - k) := by |
| 70 | have he : elementary roots (d - k) = |
| 71 | (Finset.univ.val.map roots).esymm (d - k) := by |
| 72 | simpa only [elementary, MvPolynomial.aeval_eq_eval] using |
| 73 | MvPolynomial.aeval_esymm_eq_multiset_esymm (Fin d) ℂ (d - k) roots |
| 74 | rw [he] |
| 75 | have hcard : k ≤ (Finset.univ.val.map roots).card := by simpa using hk |
| 76 | have h := Multiset.prod_X_sub_C_coeff (Finset.univ.val.map roots) hcard |
| 77 | simpa only [Multiset.map_map, Function.comp_def, Multiset.card_map, Finset.card_val, |
| 78 | Finset.card_univ, Fintype.card_fin, rootPolynomial, Finset.prod] using h |
| 79 | |
| 80 | theorem differentiableOn_rootPolynomial_coeff |
| 81 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 82 | {d : ℕ} (roots : E → Fin d → ℂ) {U : Set E} |
| 83 | (hp : ∀ k : ℕ, DifferentiableOn ℂ (fun y => ∑ i, roots y i ^ k) U) (k : ℕ) : |
| 84 | DifferentiableOn ℂ (fun y => (rootPolynomial (roots y)).coeff k) U := by |
| 85 | by_cases hk : k ≤ d |
| 86 | · simp_rw [rootPolynomial_coeff _ hk] |
| 87 | exact (differentiableOn_elementary roots hp (d - k)).const_mul _ |
| 88 | · have heq : (fun y => (rootPolynomial (roots y)).coeff k) = fun _ => 0 := by |
| 89 | funext y |
| 90 | exact coeff_eq_zero_of_natDegree_lt (by rw [rootPolynomial_natDegree]; omega) |
| 91 | rw [heq] |
| 92 | exact differentiableOn_const _ |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.SymmetricRootsOn.Constructions.SymmetricRoots |