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 OAI.AlgebraicGeometry.FormalGeometry.Completion.PolynomialPositivity |
| 2 | import Mathlib.Algebra.Polynomial.Taylor |
| 3 | |
| 4 | /-! # Polynomial Comparison -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.PolynomialComparison.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Eventual inequalities of section counts compare polynomial degrees. |
| 11 | Mutual bounds after fixed shifts force equality of degrees and leading coefficients. -/ |
| 12 | |
| 13 | open _root_.Polynomial |
| 14 | |
| 15 | theorem polynomial_natDegree_le_of_eventual_nat_eval_le |
| 16 | (P Q : Polynomial ℚ) (hP : 0 < P.leadingCoeff) |
| 17 | (b : ℕ) (h : ∀ n : ℕ, b ≤ n → P.eval (n : ℚ) ≤ Q.eval (n : ℚ)) : |
| 18 | P.natDegree ≤ Q.natDegree := by |
| 19 | by_contra hd |
| 20 | have hdeg : Q.degree < P.degree := degree_lt_degree (lt_of_not_ge hd) |
| 21 | have hc := PolynomialPositivity.Construction.polynomial_leadingCoeff_nonneg_of_eventual_nat_nonneg (Q - P) b |
| 22 | (fun n hn => by simpa only [eval_sub, sub_nonneg] using h n hn) |
| 23 | rw [leadingCoeff_sub_of_degree_lt' hdeg] at hc |
| 24 | exact (neg_neg_of_pos hP).not_ge hc |
| 25 | |
| 26 | theorem polynomial_coeff_le_of_eventual_nat_eval_le |
| 27 | (P Q : Polynomial ℚ) (d : ℕ) (hP : P.natDegree ≤ d) (hQ : Q.natDegree ≤ d) |
| 28 | (b : ℕ) (h : ∀ n : ℕ, b ≤ n → P.eval (n : ℚ) ≤ Q.eval (n : ℚ)) : |
| 29 | P.coeff d ≤ Q.coeff d := by |
| 30 | let S := Q - P |
| 31 | have hd : S.natDegree ≤ d := (natDegree_sub_le Q P).trans (max_le hQ hP) |
| 32 | have hc : 0 ≤ S.coeff d := by |
| 33 | rcases lt_or_eq_of_le hd with hd | hd |
| 34 | · rw [coeff_eq_zero_of_natDegree_lt hd] |
| 35 | · rw [← hd, coeff_natDegree] |
| 36 | exact PolynomialPositivity.Construction.polynomial_leadingCoeff_nonneg_of_eventual_nat_nonneg S b |
| 37 | (fun n hn => by simpa only [S, eval_sub, sub_nonneg] using h n hn) |
| 38 | simpa only [S, coeff_sub, sub_nonneg] using hc |
| 39 | |
| 40 | theorem polynomial_degree_leadingCoeff_eq_of_mutual_shift_bounds |
| 41 | (P Q : Polynomial ℚ) (hP : 0 < P.leadingCoeff) (hQ : 0 < Q.leadingCoeff) |
| 42 | (b c : ℕ) |
| 43 | (hPQ : ∀ n : ℕ, b ≤ n → P.eval (n : ℚ) ≤ Q.eval ((n : ℚ) + c)) |
| 44 | (hQP : ∀ n : ℕ, b ≤ n → Q.eval (n : ℚ) ≤ P.eval ((n : ℚ) + c)) : |
| 45 | P.natDegree = Q.natDegree ∧ P.leadingCoeff = Q.leadingCoeff := by |
| 46 | have hdPQ : P.natDegree ≤ Q.natDegree := by |
| 47 | simpa only [natDegree_taylor] using |
| 48 | polynomial_natDegree_le_of_eventual_nat_eval_le P (taylor (c : ℚ) Q) hP b |
| 49 | (fun n hn => by simpa only [taylor_eval] using hPQ n hn) |
| 50 | have hdQP : Q.natDegree ≤ P.natDegree := by |
| 51 | simpa only [natDegree_taylor] using |
| 52 | polynomial_natDegree_le_of_eventual_nat_eval_le Q (taylor (c : ℚ) P) hQ b |
| 53 | (fun n hn => by simpa only [taylor_eval] using hQP n hn) |
| 54 | have hd := le_antisymm hdPQ hdQP |
| 55 | refine ⟨hd, le_antisymm ?_ ?_⟩ |
| 56 | · have hc := polynomial_coeff_le_of_eventual_nat_eval_le P (taylor (c : ℚ) Q) |
| 57 | Q.natDegree hdPQ (by rw [natDegree_taylor]) b |
| 58 | (fun n hn => by simpa only [taylor_eval] using hPQ n hn) |
| 59 | rw [← hd, coeff_natDegree] at hc |
| 60 | simpa only [hd, coeff_taylor_natDegree] using hc |
| 61 | · have hc := polynomial_coeff_le_of_eventual_nat_eval_le Q (taylor (c : ℚ) P) |
| 62 | P.natDegree hdQP (by rw [natDegree_taylor]) b |
| 63 | (fun n hn => by simpa only [taylor_eval] using hQP n hn) |
| 64 | rw [hd, coeff_natDegree] at hc |
| 65 | simpa only [← hd, coeff_taylor_natDegree] using hc |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.PolynomialComparison.Construction |