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.Eval.Defs |
| 2 | import Mathlib.Data.Rat.Cast.CharZero |
| 3 | |
| 4 | /-! # Eventual Polynomial -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.EventualPolynomial |
| 7 | |
| 8 | /-! Polynomial descriptions of rational sequences in all sufficiently large degrees. -/ |
| 9 | |
| 10 | def EventuallyPolynomial (f : ℕ → ℚ) : Prop := |
| 11 | ∃ P : Polynomial ℚ, ∃ b : ℕ, ∀ n : ℕ, b ≤ n → f n = P.eval (n : ℚ) |
| 12 | |
| 13 | theorem eventuallyPolynomial_zero : EventuallyPolynomial (fun _ => 0) := |
| 14 | ⟨0, 0, fun _ _ => (Polynomial.eval_zero).symm⟩ |
| 15 | |
| 16 | theorem EventuallyPolynomial.add {f g : ℕ → ℚ} |
| 17 | (hf : EventuallyPolynomial f) (hg : EventuallyPolynomial g) : |
| 18 | EventuallyPolynomial (fun n => f n + g n) := by |
| 19 | obtain ⟨P, p, hp⟩ := hf |
| 20 | obtain ⟨Q, q, hq⟩ := hg |
| 21 | refine ⟨P + Q, max p q, fun n hn => ?_⟩ |
| 22 | change f n + g n = (P + Q).eval (n : ℚ) |
| 23 | rw [hp n ((le_max_left p q).trans hn), hq n ((le_max_right p q).trans hn), |
| 24 | Polynomial.eval_add] |
| 25 | |
| 26 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.EventualPolynomial |