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.Algebra.Polynomial.Roots |
| 2 | import Mathlib.LinearAlgebra.Matrix.Charpoly.Basic |
| 3 | |
| 4 | /-! # Finite Polynomial Avoidance -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.Adelic.FinitePolynomialAvoidance |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A finite set of more than the combined polynomial degrees contains |
| 11 | a point avoiding two independently parametrized root sets. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | |
| 15 | variable {k I : Type*} [Field k] [Fintype I] |
| 16 | |
| 17 | theorem root_indices_card_le (p : Polynomial k) (hp : p ≠ 0) |
| 18 | (a : I → k) (ha : Function.Injective a) : |
| 19 | (Finset.univ.filter (fun i => p.eval (a i) = 0)).card ≤ p.natDegree := by |
| 20 | let s := Finset.univ.filter (fun i => p.eval (a i) = 0) |
| 21 | have hsub : s.image a ⊆ p.roots.toFinset := by |
| 22 | intro x hx |
| 23 | obtain ⟨i, hi, rfl⟩ := Finset.mem_image.mp hx |
| 24 | exact Multiset.mem_toFinset.mpr ((Polynomial.mem_roots hp).mpr (Finset.mem_filter.mp hi).2) |
| 25 | calc |
| 26 | s.card = (s.image a).card := (Finset.card_image_of_injective s ha).symm |
| 27 | _ ≤ p.roots.toFinset.card := Finset.card_le_card hsub |
| 28 | _ ≤ p.roots.card := Multiset.toFinset_card_le _ |
| 29 | _ ≤ p.natDegree := Polynomial.card_roots' p |
| 30 | |
| 31 | theorem two_polynomial_avoidance (p q : Polynomial k) (hp : p ≠ 0) (hq : q ≠ 0) |
| 32 | (a b : I → k) (ha : Function.Injective a) (hb : Function.Injective b) |
| 33 | (hcard : p.natDegree + q.natDegree < Fintype.card I) : |
| 34 | ∃ i, p.eval (a i) ≠ 0 ∧ q.eval (b i) ≠ 0 := by |
| 35 | by_contra! h |
| 36 | let s := Finset.univ.filter (fun i => p.eval (a i) = 0) |
| 37 | let t := Finset.univ.filter (fun i => q.eval (b i) = 0) |
| 38 | have he : s ∪ t = Finset.univ := by |
| 39 | ext i |
| 40 | simp only [s, t, Finset.mem_union, Finset.mem_filter, Finset.mem_univ, true_and, |
| 41 | iff_true] |
| 42 | by_cases hi : p.eval (a i) = 0 |
| 43 | · exact Or.inl hi |
| 44 | · exact Or.inr (h i hi) |
| 45 | have hc : Fintype.card I ≤ s.card + t.card := by |
| 46 | rw [← Finset.card_univ, ← he] |
| 47 | exact Finset.card_union_le _ _ |
| 48 | have hs := root_indices_card_le p hp a ha |
| 49 | have ht := root_indices_card_le q hq b hb |
| 50 | change s.card ≤ p.natDegree at hs |
| 51 | change t.card ≤ q.natDegree at ht |
| 52 | omega |
| 53 | |
| 54 | theorem polynomial_avoidance (p : Polynomial k) (hp : p ≠ 0) |
| 55 | (a : I → k) (ha : Function.Injective a) (hcard : p.natDegree < Fintype.card I) : |
| 56 | ∃ i, p.eval (a i) ≠ 0 := by |
| 57 | obtain ⟨i, hi, _⟩ := two_polynomial_avoidance p 1 hp one_ne_zero a a ha ha |
| 58 | (by simpa using hcard) |
| 59 | exact ⟨i, hi⟩ |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.RepresentationTheory.Theta.Adelic.FinitePolynomialAvoidance |