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.Polynomial.Resultant.Basic |
| 2 | import Mathlib.Analysis.Complex.Polynomial.Basic |
| 3 | import Mathlib.Analysis.Calculus.Deriv.Mul |
| 4 | |
| 5 | /-! # Resultant Elimination -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ResultantElimination.Constructions.Elimination |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Finite resultant tests for a common root |
| 13 | |
| 14 | Encode a finite family by a polynomial in one auxiliary parameter. The |
| 15 | product of these encodings over the roots of a monic polynomial has bounded |
| 16 | degree. Testing its values at enough distinct constants detects whether a |
| 17 | root is common to the entire family. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.Polynomial |
| 21 | open scoped BigOperators |
| 22 | |
| 23 | def combination {m : ℕ} (Q : Fin m → Polynomial ℂ) (t : ℂ) : Polynomial ℂ := |
| 24 | ∑ j, (t ^ j.val) • Q j |
| 25 | |
| 26 | def rootEncoding {m : ℕ} (Q : Fin m → Polynomial ℂ) (z : ℂ) : Polynomial ℂ := |
| 27 | ∑ j, monomial j.val ((Q j).eval z) |
| 28 | |
| 29 | theorem rootEncoding_coeff {m : ℕ} (Q : Fin m → Polynomial ℂ) (z : ℂ) (j : Fin m) : |
| 30 | (rootEncoding Q z).coeff j.val = (Q j).eval z := by |
| 31 | simp [rootEncoding, finsetSum_coeff, coeff_monomial, Fin.val_inj] |
| 32 | |
| 33 | theorem rootEncoding_natDegree_le {m : ℕ} (Q : Fin m → Polynomial ℂ) (z : ℂ) : |
| 34 | (rootEncoding Q z).natDegree ≤ m := by |
| 35 | apply natDegree_sum_le_of_forall_le |
| 36 | intro j _ |
| 37 | exact (natDegree_monomial_le _).trans j.isLt.le |
| 38 | |
| 39 | theorem combination_natDegree_le {m d : ℕ} (Q : Fin m → Polynomial ℂ) |
| 40 | (hQ : ∀ j, (Q j).natDegree ≤ d) (t : ℂ) : (combination Q t).natDegree ≤ d := by |
| 41 | apply natDegree_sum_le_of_forall_le |
| 42 | intro j _ |
| 43 | exact (natDegree_smul_le _ _).trans (hQ j) |
| 44 | |
| 45 | theorem eval_rootEncoding {m : ℕ} (Q : Fin m → Polynomial ℂ) (z t : ℂ) : |
| 46 | (rootEncoding Q z).eval t = (combination Q t).eval z := by |
| 47 | simp [rootEncoding, combination, eval_finsetSum, eval_smul, smul_eq_mul, mul_comm] |
| 48 | |
| 49 | theorem rootEncoding_eq_zero_iff {m : ℕ} (Q : Fin m → Polynomial ℂ) (z : ℂ) : |
| 50 | rootEncoding Q z = 0 ↔ ∀ j, (Q j).eval z = 0 := by |
| 51 | constructor |
| 52 | · intro h j |
| 53 | rw [← rootEncoding_coeff Q z j, h, coeff_zero] |
| 54 | · intro h |
| 55 | simp [rootEncoding, h] |
| 56 | |
| 57 | def rootEncodingProduct {m : ℕ} (P : Polynomial ℂ) (Q : Fin m → Polynomial ℂ) : Polynomial ℂ := |
| 58 | (P.roots.map (rootEncoding Q)).prod |
| 59 | |
| 60 | theorem encodingProduct_natDegree_le {m : ℕ} (Q : Fin m → Polynomial ℂ) (s : Multiset ℂ) : |
| 61 | (s.map (rootEncoding Q)).prod.natDegree ≤ s.card * m := by |
| 62 | induction s using Multiset.induction_on with |
| 63 | | empty => simp |
| 64 | | @cons z s ih => |
| 65 | simp only [Multiset.map_cons, Multiset.prod_cons, Multiset.card_cons] |
| 66 | exact natDegree_mul_le.trans (by |
| 67 | calc |
| 68 | _ ≤ m + s.card * m := add_le_add (rootEncoding_natDegree_le Q z) ih |
| 69 | _ = _ := by ring) |
| 70 | |
| 71 | theorem rootEncodingProduct_natDegree_le {m d : ℕ} (P : Polynomial ℂ) |
| 72 | (Q : Fin m → Polynomial ℂ) (hP : P.natDegree = d) : |
| 73 | (rootEncodingProduct P Q).natDegree ≤ d * m := by |
| 74 | have h := encodingProduct_natDegree_le Q P.roots |
| 75 | simpa only [rootEncodingProduct, (IsAlgClosed.splits P).natDegree_eq_card_roots.symm, hP] using h |
| 76 | |
| 77 | theorem eval_encodingProduct_eq_resultant {m d : ℕ} (P : Polynomial ℂ) |
| 78 | (hP : P.Monic) (hdeg : P.natDegree = d) (Q : Fin m → Polynomial ℂ) |
| 79 | (hQ : ∀ j, (Q j).natDegree ≤ d) (t : ℂ) : |
| 80 | (rootEncodingProduct P Q).eval t = P.resultant (combination Q t) d d := by |
| 81 | have hr := P.resultant_eq_prod_eval (combination Q t) d |
| 82 | (combination_natDegree_le Q hQ t) (IsAlgClosed.splits P) |
| 83 | rw [hdeg, hP.leadingCoeff, one_pow, one_mul] at hr |
| 84 | rw [hr] |
| 85 | simp only [rootEncodingProduct, eval_multiset_prod, Multiset.map_map, Function.comp_def, |
| 86 | eval_rootEncoding] |
| 87 | |
| 88 | theorem encodingProduct_eq_zero_iff {m : ℕ} (P : Polynomial ℂ) (hP : P ≠ 0) |
| 89 | (Q : Fin m → Polynomial ℂ) : |
| 90 | rootEncodingProduct P Q = 0 ↔ ∃ z, P.eval z = 0 ∧ ∀ j, (Q j).eval z = 0 := by |
| 91 | rw [rootEncodingProduct, Multiset.prod_eq_zero_iff, Multiset.mem_map] |
| 92 | constructor |
| 93 | · rintro ⟨z, hz, henc⟩ |
| 94 | exact ⟨z, (mem_roots hP).mp hz, (rootEncoding_eq_zero_iff Q z).mp henc⟩ |
| 95 | · rintro ⟨z, hz, hQ⟩ |
| 96 | exact ⟨z, (mem_roots hP).mpr hz, (rootEncoding_eq_zero_iff Q z).mpr hQ⟩ |
| 97 | |
| 98 | /-- A common root is detected by `d*m+1` fixed resultant evaluations. -/ |
| 99 | theorem common_root_iff_resultant_tests {m d : ℕ} (P : Polynomial ℂ) |
| 100 | (hP : P.Monic) (hdeg : P.natDegree = d) (Q : Fin m → Polynomial ℂ) |
| 101 | (hQ : ∀ j, (Q j).natDegree ≤ d) : |
| 102 | (∃ z, P.eval z = 0 ∧ ∀ j, (Q j).eval z = 0) ↔ |
| 103 | ∀ k : Fin (d * m + 1), P.resultant (combination Q (k.val : ℂ)) d d = 0 := by |
| 104 | rw [← encodingProduct_eq_zero_iff P hP.ne_zero Q] |
| 105 | constructor |
| 106 | · intro h k |
| 107 | rw [← eval_encodingProduct_eq_resultant P hP hdeg Q hQ, h, eval_zero] |
| 108 | · intro h |
| 109 | apply eq_zero_of_natDegree_lt_card_of_eval_eq_zero (rootEncodingProduct P Q) |
| 110 | (f := fun k : Fin (d * m + 1) => (k.val : ℂ)) |
| 111 | · intro i j hij |
| 112 | exact Fin.ext (Nat.cast_injective hij) |
| 113 | · intro k |
| 114 | rw [eval_encodingProduct_eq_resultant P hP hdeg Q hQ] |
| 115 | exact h k |
| 116 | · simpa only [Fintype.card_fin] using |
| 117 | lt_of_le_of_lt (rootEncodingProduct_natDegree_le P Q hdeg) (Nat.lt_succ_self _) |
| 118 | |
| 119 | end |
| 120 | |
| 121 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ResultantElimination.Constructions.Elimination |