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.Algebra.Order.Field.Rat |
| 3 | |
| 4 | /-! # Eventual Grid -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Polynomial.EventualGrid |
| 7 | |
| 8 | section |
| 9 | |
| 10 | /-! Rational polynomials are determined by their values at positive natural numbers. -/ |
| 11 | |
| 12 | theorem polynomial_eq_of_positive_nat_evals (P Q : Polynomial ℚ) |
| 13 | (h : ∀ n : ℕ, 0 < n → P.eval (n : ℚ) = Q.eval (n : ℚ)) : P = Q := by |
| 14 | apply Polynomial.eq_of_infinite_eval_eq |
| 15 | have hinj : Function.Injective (fun n : ℕ => ((n + 1 : ℕ) : ℚ)) := by |
| 16 | intro m n he |
| 17 | exact Nat.add_right_cancel (Nat.cast_injective he) |
| 18 | refine (Set.infinite_range_of_injective hinj).mono ?_ |
| 19 | rintro x ⟨n, rfl⟩ |
| 20 | exact h (n + 1) (Nat.succ_pos n) |
| 21 | |
| 22 | end |
| 23 | |
| 24 | /-! Polynomial identities on all sufficiently large integer pairs extend |
| 25 | to every integer pair. The threshold can be different in each direction. -/ |
| 26 | |
| 27 | theorem polynomial_eq_of_eventual_nat_evals (P Q : Polynomial ℚ) (B : ℕ) |
| 28 | (h : ∀ n : ℕ, B ≤ n → P.eval (n : ℚ) = Q.eval (n : ℚ)) : P = Q := by |
| 29 | apply Polynomial.eq_of_infinite_eval_eq |
| 30 | have hinj : Function.Injective (fun n : ℕ => ((B + n : ℕ) : ℚ)) := by |
| 31 | intro m n he |
| 32 | exact Nat.add_left_cancel (Nat.cast_injective he) |
| 33 | refine (Set.infinite_range_of_injective hinj).mono ?_ |
| 34 | rintro x ⟨n, rfl⟩ |
| 35 | exact h (B + n) (Nat.le_add_right B n) |
| 36 | |
| 37 | theorem separately_polynomial_eq_of_eventual_grid |
| 38 | (F G : ℤ → ℤ → ℚ) |
| 39 | (hF₁ : ∀ b : ℤ, ∃ P : Polynomial ℚ, ∀ a : ℤ, P.eval (a : ℚ) = F a b) |
| 40 | (hF₂ : ∀ a : ℤ, ∃ P : Polynomial ℚ, ∀ b : ℤ, P.eval (b : ℚ) = F a b) |
| 41 | (hG₁ : ∀ b : ℤ, ∃ P : Polynomial ℚ, ∀ a : ℤ, P.eval (a : ℚ) = G a b) |
| 42 | (hG₂ : ∀ a : ℤ, ∃ P : Polynomial ℚ, ∀ b : ℤ, P.eval (b : ℚ) = G a b) |
| 43 | (B C : ℕ) |
| 44 | (hgrid : ∀ a b : ℕ, B ≤ a → C ≤ b → F a b = G a b) |
| 45 | (a b : ℤ) : F a b = G a b := by |
| 46 | have hnat (m : ℕ) (hm : B ≤ m) (b : ℤ) : F m b = G m b := by |
| 47 | obtain ⟨P, hP⟩ := hF₂ m |
| 48 | obtain ⟨Q, hQ⟩ := hG₂ m |
| 49 | have he : P = Q := by |
| 50 | apply polynomial_eq_of_eventual_nat_evals P Q C |
| 51 | intro n hn |
| 52 | simpa only [Int.cast_natCast] using |
| 53 | (hP (n : ℤ)).trans ((hgrid m n hm hn).trans (hQ (n : ℤ)).symm) |
| 54 | exact (hP b).symm.trans ((congrArg (fun R : Polynomial ℚ => R.eval (b : ℚ)) he).trans (hQ b)) |
| 55 | obtain ⟨P, hP⟩ := hF₁ b |
| 56 | obtain ⟨Q, hQ⟩ := hG₁ b |
| 57 | have he : P = Q := by |
| 58 | apply polynomial_eq_of_eventual_nat_evals P Q B |
| 59 | intro n hn |
| 60 | simpa only [Int.cast_natCast] using |
| 61 | (hP (n : ℤ)).trans ((hnat n hn b).trans (hQ (n : ℤ)).symm) |
| 62 | exact (hP a).symm.trans ((congrArg (fun R : Polynomial ℚ => R.eval (a : ℚ)) he).trans (hQ a)) |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Polynomial.EventualGrid |