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.Tor.Annihilator |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.LocalFree |
| 3 | import Mathlib.LinearAlgebra.Dimension.FreeAndStrongRankCondition |
| 4 | import Mathlib.RingTheory.Regular.IsSMulRegular |
| 5 | |
| 6 | /-! # Prime Principal -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.PrimePrincipal |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! In a noetherian local ring whose residue field has projective |
| 13 | dimension at most two, every nonmaximal prime ideal is principal. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits IsLocalRing |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable (R : Type u) [CommRing R] [IsLocalRing R] |
| 22 | |
| 23 | theorem residue_annihilated (r : R) (hr : r ∈ maximalIdeal R) |
| 24 | (x : ResidueField R) : r • x = 0 := by |
| 25 | rw [Algebra.smul_def, ResidueField.algebraMap_eq, (residue_eq_zero_iff r).mpr hr, zero_mul] |
| 26 | |
| 27 | theorem regular_tor_vanishing (M : ModuleCat.{u} R) (r : R) |
| 28 | (hr : r ∈ maximalIdeal R) (hm : IsSMulRegular M r) (d : ℕ) |
| 29 | [HasProjectiveDimensionLE (ModuleCat.of R (ResidueField R)) d] : |
| 30 | IsZero (((Tor (ModuleCat R) d).obj M).obj |
| 31 | (ModuleCat.of R (ResidueField R))) := |
| 32 | ProjectionFormula.Tor.Annihilator.isZero_of_regular R M (ModuleCat.of R (ResidueField R)) r hm |
| 33 | (residue_annihilated R r hr) d |
| 34 | (BoundedResolution.tor_isZero R (ModuleCat.of R (QuotSMulTop r M)) |
| 35 | (ModuleCat.of R (ResidueField R)) d (d + 1) (by omega)) |
| 36 | |
| 37 | variable [IsNoetherianRing R] |
| 38 | [HasProjectiveDimensionLE (ModuleCat.of R (ResidueField R)) 2] |
| 39 | |
| 40 | theorem prime_free (p : Ideal R) [p.IsPrime] (hp : p ≠ maximalIdeal R) : Module.Free R p := by |
| 41 | have hprime : p.IsPrime := inferInstance |
| 42 | have hlt : p < maximalIdeal R := lt_of_le_of_ne (le_maximalIdeal hprime.ne_top) hp |
| 43 | obtain ⟨r, hr, hrp⟩ := SetLike.exists_of_lt hlt |
| 44 | have hreg : IsSMulRegular (R ⧸ p) r := by |
| 45 | rw [isSMulRegular_quotient_iff_mem_of_smul_mem] |
| 46 | intro x hx |
| 47 | exact (hprime.mem_or_mem hx).resolve_left hrp |
| 48 | have hz := regular_tor_vanishing R (ModuleCat.of R (R ⧸ p)) r hr hreg 2 |
| 49 | let S := IsolatedTorEuler.submoduleSequence R (ModuleCat.of R R) p |
| 50 | have hS := IsolatedTorEuler.submoduleSequence_shortExact R (ModuleCat.of R R) p |
| 51 | let : Projective S.X₂ := inferInstanceAs (Projective (ModuleCat.of R R)) |
| 52 | let e := ProjectionFormula.Tor.FirstShift.shiftIso R (ModuleCat.of R (ResidueField R)) S hS 0 |
| 53 | let : Module.FinitePresentation R p := Module.finitePresentation_of_finite R p |
| 54 | exact ProjectionFormula.Tor.LocalFree.of_residue_second R (ModuleCat.of R p) (hz.of_iso e.symm) |
| 55 | |
| 56 | theorem prime_principal (p : Ideal R) [p.IsPrime] (hp : p ≠ maximalIdeal R) : |
| 57 | p.IsPrincipal := by |
| 58 | let := prime_free R p hp |
| 59 | apply (Submodule.rank_le_one_iff_isPrincipal p).mp |
| 60 | exact (Submodule.rank_le p).trans_eq (Module.rank_self R) |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.PrimePrincipal |