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.Local.MinimalShortComplex |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.BaseChangeComplex |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FiberFlatCriterion |
| 4 | import Mathlib.Algebra.Homology.ShortComplex.HomologicalComplex |
| 5 | |
| 6 | /-! # Residue Exactness -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.ResidueExactness.LocalSectionLifting |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Exactness of a finite free short complex over a local ring follows from exactness over its residue field. Minimal reduction and Nakayama prove the assertion. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | open scoped TensorProduct |
| 15 | universe u |
| 16 | |
| 17 | variable {R : Type u} [CommRing R] [IsLocalRing R] |
| 18 | |
| 19 | theorem finiteFreeShortComplex_exact_of_residue_exact |
| 20 | (S : ShortComplex (ModuleCat.{u} R)) |
| 21 | [Module.Finite R S.X₁] [Module.Free R S.X₁] |
| 22 | [Module.Finite R S.X₂] [Module.Free R S.X₂] |
| 23 | [Module.Finite R S.X₃] [Module.Free R S.X₃] |
| 24 | (hS : (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R (IsLocalRing.ResidueField R) S).Exact) : S.Exact := by |
| 25 | obtain ⟨P⟩ := MinimalShortComplex.LocalSectionLifting.exists_localMinimalShortComplex S |
| 26 | let F := HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeFunctor R (IsLocalRing.ResidueField R) |
| 27 | let T : ShortComplex (ModuleCat.{u} (IsLocalRing.ResidueField R)) := |
| 28 | HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R (IsLocalRing.ResidueField R) P.complex |
| 29 | let eH : (HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R (IsLocalRing.ResidueField R) S).homology ≅ T.homology := |
| 30 | ShortComplexEndpointHomotopy.LocalSectionLifting.shortComplexHomotopyEquivMapHomologyIso F P.equivalence |
| 31 | have hz : IsZero T.homology := eH.isZero_iff.mp |
| 32 | ((HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex R (IsLocalRing.ResidueField R) S).exact_iff_isZero_homology.mp hS) |
| 33 | have hf : T.f = 0 := HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex_f_zero R (IsLocalRing.ResidueField R) |
| 34 | P.complex P.incoming_residue_zero |
| 35 | have hg : T.g = 0 := HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeComplex_g_zero R (IsLocalRing.ResidueField R) |
| 36 | P.complex P.outgoing_residue_zero |
| 37 | let eT : T.homology ≅ T.X₂ := (ShortComplex.LeftHomologyData.ofZeros T hf hg).homologyIso |
| 38 | have ht : Subsingleton (IsLocalRing.ResidueField R ⊗[R] P.complex.X₂) := |
| 39 | ModuleCat.subsingleton_of_isZero (eT.isZero_iff.mp hz) |
| 40 | have : Subsingleton P.complex.X₂ := |
| 41 | (IsLocalRing.subsingleton_tensorProduct (R := R) (M := P.complex.X₂)).mp ht |
| 42 | have hp : IsZero P.complex.homology := |
| 43 | ShortComplex.isZero_homology_of_isZero_X₂ (S := P.complex) (ModuleCat.isZero_of_subsingleton _) |
| 44 | exact S.exact_iff_isZero_homology.mpr (P.homologyIso.isZero_iff.mpr hp) |
| 45 | |
| 46 | theorem finiteFreeCochain_acyclic_of_residue_acyclic |
| 47 | (C : CochainComplex (ModuleCat.{u} R) ℕ) |
| 48 | (hfin : ∀ n, Module.Finite R (C.X n)) (hfree : ∀ n, Module.Free R (C.X n)) |
| 49 | (hC : (((HilbertConstruction.Module.BaseChangeComplex.LocalSectionLifting.moduleBaseChangeFunctor R (IsLocalRing.ResidueField R)).mapHomologicalComplex |
| 50 | (.up ℕ)).obj C).Acyclic) : C.Acyclic := by |
| 51 | intro n |
| 52 | have : Module.Finite R (C.sc n).X₁ := hfin ((ComplexShape.up ℕ).prev n) |
| 53 | have : Module.Free R (C.sc n).X₁ := hfree ((ComplexShape.up ℕ).prev n) |
| 54 | have : Module.Finite R (C.sc n).X₂ := hfin n |
| 55 | have : Module.Free R (C.sc n).X₂ := hfree n |
| 56 | have : Module.Finite R (C.sc n).X₃ := hfin ((ComplexShape.up ℕ).next n) |
| 57 | have : Module.Free R (C.sc n).X₃ := hfree ((ComplexShape.up ℕ).next n) |
| 58 | change (C.sc n).Exact |
| 59 | exact finiteFreeShortComplex_exact_of_residue_exact (C.sc n) (hC n) |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.ResidueExactness.LocalSectionLifting |