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.Linear |
| 2 | import Mathlib.RingTheory.Regular.Category |
| 3 | import Mathlib.Algebra.Homology.HomologicalComplexAbelian |
| 4 | |
| 5 | /-! # Quotient Complex -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.QuotientComplex |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Reduction of an actual chain complex modulo a regular parameter |
| 12 | gives a short exact sequence of complexes and its native homology |
| 13 | connecting maps. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 18 | open scoped Pointwise |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (R : Type u) [CommRing R] (r : R) |
| 23 | |
| 24 | def quotient : ModuleCat.{u} R ⥤ ModuleCat.{u} R where |
| 25 | obj M := .of R (QuotSMulTop r M) |
| 26 | map f := ModuleCat.ofHom (QuotSMulTop.map r f.hom) |
| 27 | map_id M := by |
| 28 | apply ModuleCat.hom_ext |
| 29 | exact QuotSMulTop.map_id r M |
| 30 | map_comp f g := by |
| 31 | apply ModuleCat.hom_ext |
| 32 | exact QuotSMulTop.map_comp r g.hom f.hom |
| 33 | |
| 34 | instance : (quotient R r).Additive where |
| 35 | map_add := by |
| 36 | intro M N f g |
| 37 | apply ModuleCat.hom_ext |
| 38 | exact (QuotSMulTop.map r).map_add f.hom g.hom |
| 39 | |
| 40 | variable (K : ChainComplex (ModuleCat.{u} R) ℕ) |
| 41 | |
| 42 | def complex : ChainComplex (ModuleCat.{u} R) ℕ := |
| 43 | ((quotient R r).mapHomologicalComplex (ComplexShape.down ℕ)).obj K |
| 44 | |
| 45 | def projection : K ⟶ complex R r K where |
| 46 | f i := ModuleCat.ofHom (r • (⊤ : Submodule R (K.X i))).mkQ |
| 47 | comm' i j _ := by |
| 48 | apply ModuleCat.hom_ext |
| 49 | apply LinearMap.ext |
| 50 | intro x |
| 51 | rfl |
| 52 | |
| 53 | theorem scalar_projection : (r • 𝟙 K) ≫ projection R r K = 0 := by |
| 54 | apply HomologicalComplex.Hom.ext |
| 55 | funext i |
| 56 | apply ModuleCat.hom_ext |
| 57 | apply LinearMap.ext |
| 58 | intro x |
| 59 | change (Submodule.Quotient.mk (r • x) : QuotSMulTop r (K.X i)) = 0 |
| 60 | exact (Submodule.Quotient.mk_eq_zero (r • (⊤ : Submodule R (K.X i)))).mpr |
| 61 | (Submodule.smul_mem_pointwise_smul x r ⊤ trivial) |
| 62 | |
| 63 | def sequence : ShortComplex (ChainComplex (ModuleCat.{u} R) ℕ) := |
| 64 | ShortComplex.mk (r • 𝟙 K) (projection R r K) (scalar_projection R r K) |
| 65 | |
| 66 | theorem shortExact (hr : ∀ i, IsSMulRegular (K.X i) r) : (sequence R r K).ShortExact := by |
| 67 | apply HomologicalComplex.shortExact_of_degreewise_shortExact |
| 68 | intro i |
| 69 | exact IsSMulRegular.smulShortComplex_shortExact (hr i) |
| 70 | |
| 71 | theorem homology_scalar (i : ℕ) : |
| 72 | HomologicalComplex.homologyMap (sequence R r K).f i = r • 𝟙 (K.homology i) := by |
| 73 | change (HomologicalComplex.homologyFunctor (ModuleCat R) (ComplexShape.down ℕ) i).map (r • 𝟙 K) = _ |
| 74 | rw [Functor.map_smul, CategoryTheory.Functor.map_id] |
| 75 | rfl |
| 76 | |
| 77 | def connecting (hr : ∀ i, IsSMulRegular (K.X i) r) (i : ℕ) : |
| 78 | (complex R r K).homology (i + 1) ⟶ K.homology i := |
| 79 | (shortExact R r K hr).δ (i + 1) i (by simp) |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.QuotientComplex |