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.IntersectionTheory.ProjectionFormula.Regular.SequenceVanishing |
| 2 | import Mathlib.RingTheory.Ideal.KrullsHeightTheorem |
| 3 | |
| 4 | /-! # Sequence Dimension Vanishing -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Regular.SequenceDimensionVanishing |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The support-rank vanishing theorem specialized to the actual Krull |
| 11 | dimension of prime quotients in a Noetherian local ring. -/ |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | open _root_.Order RingTheory.Sequence OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Regular.SequenceModule |
| 16 | |
| 17 | variable (R : Type u) [CommRing R] [IsNoetherianRing R] [IsLocalRing R] |
| 18 | |
| 19 | def rank (p : PrimeSpectrum R) : ℕ := (coheight p).toNat |
| 20 | |
| 21 | theorem rank_coe (p : PrimeSpectrum R) : (rank R p : ℕ∞) = coheight p := |
| 22 | ENat.natCast_toNat (coheight_lt_top p).ne |
| 23 | |
| 24 | theorem rank_strict : StrictAnti (rank R) := by |
| 25 | intro p q hpq |
| 26 | have h := coheight_strictAnti hpq (coheight_lt_top q) |
| 27 | rw [← rank_coe R p, ← rank_coe R q] at h |
| 28 | exact_mod_cast h |
| 29 | |
| 30 | theorem rank_dimension (p : PrimeSpectrum R) : |
| 31 | (rank R p : WithBot ℕ∞) = ringKrullDim (R ⧸ p.asIdeal) := by |
| 32 | rw [ringKrullDim_quotient] |
| 33 | change (rank R p : WithBot ℕ∞) = krullDim (Set.Ici p) |
| 34 | rw [← coheight_eq_krullDim_Ici] |
| 35 | exact congrArg (fun x : ℕ∞ => (x : WithBot ℕ∞)) (rank_coe R p) |
| 36 | |
| 37 | theorem euler_zero (rs : List R) (hreg : IsRegular R rs) |
| 38 | (M : ModuleCat.{u} R) [Module.Finite R M] |
| 39 | (hdim : ∀ p ∈ Module.support R M, ringKrullDim (R ⧸ p.asIdeal) < rs.length) |
| 40 | (hiso : Module.support R M ∩ Module.support R (SequenceModule.quotient R rs) ⊆ {IsLocalRing.closedPoint R}) : |
| 41 | Tor.Euler.euler R M (SequenceModule.quotient R rs) rs.length = 0 := by |
| 42 | apply SequenceVanishing.euler_zero R rs hreg (rank R) (rank_strict R) M _ hiso |
| 43 | intro p hp |
| 44 | have h := hdim p hp |
| 45 | rw [← rank_dimension R p] at h |
| 46 | exact_mod_cast h |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Regular.SequenceDimensionVanishing |