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.Data.Rat.Cast.CharZero |
| 3 | import Mathlib.Order.Interval.Set.Infinite |
| 4 | |
| 5 | /-! # Eventual Polynomial Identity -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.EventualPolynomialIdentity.Dimension |
| 8 | |
| 9 | /-! Eventual equality on the natural numbers determines a rational polynomial. -/ |
| 10 | |
| 11 | theorem polynomial_eq_of_eventually_nat_eval_eq (P Q : Polynomial ℚ) |
| 12 | (b : ℕ) (h : ∀ n : ℕ, b ≤ n → P.eval (n : ℚ) = Q.eval (n : ℚ)) : P = Q := by |
| 13 | apply Polynomial.eq_of_infinite_eval_eq |
| 14 | have hi : Set.Infinite ((fun n : ℕ => (n : ℚ)) '' Set.Ici b) := |
| 15 | (Set.Ici_infinite b).image Nat.cast_injective.injOn |
| 16 | apply hi.mono |
| 17 | rintro _ ⟨n, hn, rfl⟩ |
| 18 | exact h n hn |
| 19 | |
| 20 | theorem polynomial_comp_mul_of_eventually_eval (P Q : Polynomial ℚ) |
| 21 | (a b : ℕ) (h : ∀ n : ℕ, b ≤ n → Q.eval (n : ℚ) = P.eval ((n * a : ℕ) : ℚ)) : |
| 22 | Q = P.comp (Polynomial.X * Polynomial.C (a : ℚ)) := by |
| 23 | apply polynomial_eq_of_eventually_nat_eval_eq _ _ b |
| 24 | intro n hn |
| 25 | simpa only [Polynomial.eval_comp, Polynomial.eval_mul, Polynomial.eval_X, |
| 26 | Polynomial.eval_C, Nat.cast_mul] using h n hn |
| 27 | |
| 28 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.EventualPolynomialIdentity.Dimension |