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.RingTheory.Regular.ProjectiveDimension |
| 2 | |
| 3 | /-! # Quotient Projective Dimension -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Regular.QuotientProjectiveDimension.Constructions |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The actual quotient by a local regular sequence has projective |
| 10 | dimension equal to its number of equations. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory RingTheory.Sequence |
| 13 | open scoped Pointwise |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | universe u |
| 18 | variable (R : Type u) [CommRing R] [IsNoetherianRing R] [IsLocalRing R] |
| 19 | (rs : List R) (hr : IsWeaklyRegular R rs) |
| 20 | (hm : ∀ r ∈ rs, r ∈ IsLocalRing.maximalIdeal R) |
| 21 | |
| 22 | include hr hm |
| 23 | |
| 24 | theorem projectiveDimension_eq : |
| 25 | projectiveDimension (ModuleCat.of R (R ⧸ Ideal.ofList rs)) = rs.length := by |
| 26 | have h := ModuleCat.projectiveDimension_quotient_eq_add_length_of_isWeaklyRegular |
| 27 | (ModuleCat.of R R) rs hr hm |
| 28 | have hi : (Ideal.ofList rs • ⊤ : Submodule R R) = Ideal.ofList rs := by |
| 29 | change Ideal.ofList rs * ⊤ = Ideal.ofList rs |
| 30 | exact Ideal.mul_top _ |
| 31 | rw [hi, ModuleCat.projectiveDimension_eq_zero_of_projective (ModuleCat.of R R), zero_add] at h |
| 32 | exact h |
| 33 | |
| 34 | theorem bound : HasProjectiveDimensionLE (ModuleCat.of R (R ⧸ Ideal.ofList rs)) rs.length := |
| 35 | (projectiveDimension_le_iff _ _).mp (projectiveDimension_eq R rs hr hm).le |
| 36 | |
| 37 | end |
| 38 | |
| 39 | end OAI.AlgebraicGeometry.CycleClass.Thom.Regular.QuotientProjectiveDimension.Constructions |