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.Degree.Operations |
| 2 | |
| 3 | /-! # Polynomial Leading Degree Drop -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.PolynomialLeadingDegreeDrop |
| 6 | |
| 7 | /-! Cancellation of equal leading data lowers a polynomial degree bound by one. -/ |
| 8 | |
| 9 | open _root_.Polynomial |
| 10 | |
| 11 | theorem polynomial_sub_degree_lt_of_same_leading_data (P Q : Polynomial ℚ) |
| 12 | (hdeg : Q.natDegree = P.natDegree) (hlc : Q.leadingCoeff = P.leadingCoeff) |
| 13 | (d : ℕ) (hP : P.degree < ((d + 1 : ℕ) : WithBot ℕ)) : |
| 14 | (Q - P).degree < (d : WithBot ℕ) := by |
| 15 | by_cases hp : P = 0 |
| 16 | · have hq : Q = 0 := leadingCoeff_eq_zero.mp (by simpa only [hp, leadingCoeff_zero] using hlc) |
| 17 | rw [hp, hq, sub_self, degree_zero] |
| 18 | exact WithBot.bot_lt_coe d |
| 19 | · have hq : Q ≠ 0 := leadingCoeff_ne_zero.mp (hlc ▸ leadingCoeff_ne_zero.mpr hp) |
| 20 | have he : Q.degree = P.degree := by rw [degree_eq_natDegree hq, degree_eq_natDegree hp, hdeg] |
| 21 | have hd := degree_sub_lt_right he hp hlc |
| 22 | have hn : P.natDegree < d + 1 := by |
| 23 | rw [degree_eq_natDegree hp] at hP |
| 24 | exact WithBot.coe_lt_coe.mp hP |
| 25 | apply hd.trans_le |
| 26 | rw [degree_eq_natDegree hp] |
| 27 | exact WithBot.coe_le_coe.mpr (Nat.le_of_lt_succ hn) |
| 28 | |
| 29 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.PolynomialLeadingDegreeDrop |