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.AbelianModuli.HilbertConstruction.Module.TensorFunctor |
| 2 | import Mathlib.RingTheory.QuotSMulTop |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Scalar.RegularCategory |
| 4 | import Mathlib.Algebra.Homology.Linear |
| 5 | import Mathlib.Algebra.Homology.HomologicalComplexAbelian |
| 6 | import Mathlib.Algebra.Homology.HomologySequence |
| 7 | |
| 8 | /-! # Quotient Complex -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Scalar.QuotientComplex |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! Scalar reduction of a cochain complex, its tensor description, and the actual short exact sequence associated to a scalar regular on every term. -/ |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 16 | open scoped Pointwise |
| 17 | universe u |
| 18 | variable {R : Type u} [CommRing R] |
| 19 | |
| 20 | def moduleScalarQuotientFunctor (r : R) : ModuleCat.{u} R ⥤ ModuleCat.{u} R where |
| 21 | obj M := ModuleCat.of R (QuotSMulTop r M) |
| 22 | map f := ModuleCat.ofHom (QuotSMulTop.map r f.hom) |
| 23 | map_id M := ModuleCat.hom_ext (QuotSMulTop.map_id r M) |
| 24 | map_comp f g := ModuleCat.hom_ext (QuotSMulTop.map_comp r g.hom f.hom) |
| 25 | |
| 26 | instance moduleScalarQuotientFunctor_additive (r : R) : (moduleScalarQuotientFunctor r).Additive where |
| 27 | map_add {_X _Y f g} := ModuleCat.hom_ext ((QuotSMulTop.map r).map_add f.hom g.hom) |
| 28 | |
| 29 | def moduleScalarQuotientTensorIso (r : R) : |
| 30 | moduleScalarQuotientFunctor r ≅ Module.TensorFunctor.ModuleTensorFunctor.tensor (R ⧸ Ideal.span {r}) := by |
| 31 | refine NatIso.ofComponents (fun M => (QuotSMulTop.equivQuotTensor r M).toModuleIso) ?_ |
| 32 | intro M N f |
| 33 | apply ModuleCat.hom_ext |
| 34 | exact QuotSMulTop.equivQuotTensor_naturality r f.hom |
| 35 | |
| 36 | def cochainScalarQuotient (C : CochainComplex (ModuleCat.{u} R) ℕ) (r : R) : |
| 37 | CochainComplex (ModuleCat.{u} R) ℕ := |
| 38 | ((moduleScalarQuotientFunctor r).mapHomologicalComplex (.up ℕ)).obj C |
| 39 | |
| 40 | def cochainScalarQuotientProjection (C : CochainComplex (ModuleCat.{u} R) ℕ) (r : R) : |
| 41 | C ⟶ cochainScalarQuotient C r where |
| 42 | f q := ModuleCat.ofHom (Submodule.mkQ (r • (⊤ : Submodule R (C.X q)))) |
| 43 | comm' i j _hij := by |
| 44 | apply ModuleCat.hom_ext |
| 45 | exact (QuotSMulTop.map_comp_mkQ r (C.d i j).hom).symm |
| 46 | |
| 47 | def cochainScalarQuotientSequence (C : CochainComplex (ModuleCat.{u} R) ℕ) (r : R) : |
| 48 | ShortComplex (CochainComplex (ModuleCat.{u} R) ℕ) := |
| 49 | ShortComplex.mk (r • 𝟙 C) (cochainScalarQuotientProjection C r) (by |
| 50 | apply HomologicalComplex.Hom.ext |
| 51 | funext q |
| 52 | exact (RegularCategory.ModuleCat.smulShortComplex (C.X q) r).zero) |
| 53 | |
| 54 | theorem cochainScalarQuotientSequence_shortExact |
| 55 | (C : CochainComplex (ModuleCat.{u} R) ℕ) (r : R) |
| 56 | (hreg : ∀ q, IsSMulRegular (C.X q) r) : (cochainScalarQuotientSequence C r).ShortExact := by |
| 57 | apply HomologicalComplex.shortExact_of_degreewise_shortExact _ |
| 58 | intro q |
| 59 | exact RegularCategory.IsSMulRegular.smulShortComplex_shortExact (M := C.X q) (hreg q) |
| 60 | |
| 61 | def cochainScalarQuotientTensorIso (C : CochainComplex (ModuleCat.{u} R) ℕ) (r : R) : |
| 62 | cochainScalarQuotient C r ≅ Module.TensorFunctor.ModuleTensorFunctor.complex (R ⧸ Ideal.span {r}) C := |
| 63 | (NatIso.mapHomologicalComplex (moduleScalarQuotientTensorIso r) (.up ℕ)).app C |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Scalar.QuotientComplex |