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.NumberTheory.PadicHodge.IntegralComparison.ProjectiveResolution.DualPurity |
| 2 | import Mathlib.CategoryTheory.Preadditive.Yoneda.Basic |
| 3 | import Mathlib.Algebra.Category.Grp.Limits |
| 4 | |
| 5 | /-! # Hom Complex Dual -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.HomComplexDual.Comparison |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The ordinary Hom complex into the coefficient ring is the genuine |
| 12 | coefficient-dual complex. This also transports purity to any specified |
| 13 | rank-one trivialization of the target. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable (R : Type u) [CommRing R] |
| 22 | |
| 23 | def functorIso : preadditiveYoneda.obj (ModuleCat.of R R) ≅ |
| 24 | ExactModuleDualFunctor.functor R ⋙ forget₂ (ModuleCat R) AddCommGrpCat := |
| 25 | NatIso.ofComponents |
| 26 | (fun M => (ModuleCat.homAddEquiv (M := M.unop) (N := ModuleCat.of R R)).toAddCommGrpIso) (by |
| 27 | intro M N f |
| 28 | ext q |
| 29 | rfl) |
| 30 | |
| 31 | variable (P : ChainComplex (ModuleCat.{u} R) ℕ) |
| 32 | |
| 33 | def complexIso : |
| 34 | (((preadditiveYoneda.obj (ModuleCat.of R R)).mapHomologicalComplex |
| 35 | (ComplexShape.down ℕ).symm).obj P.op) ≅ |
| 36 | (((forget₂ (ModuleCat R) AddCommGrpCat).mapHomologicalComplex |
| 37 | (ComplexShape.down ℕ).symm).obj (DualComplexHomology.complex R P)) := |
| 38 | (NatIso.mapHomologicalComplex (functorIso R) (ComplexShape.down ℕ).symm).app P.op |
| 39 | |
| 40 | def homologyIso (n : ℕ) : |
| 41 | ((((preadditiveYoneda.obj (ModuleCat.of R R)).mapHomologicalComplex |
| 42 | (ComplexShape.down ℕ).symm).obj P.op).homology n) ≅ |
| 43 | (forget₂ (ModuleCat R) AddCommGrpCat).obj ((DualComplexHomology.complex R P).homology n) := |
| 44 | HomologicalComplex.homologyMapIso (complexIso R P) n ≪≫ |
| 45 | ((DualComplexHomology.complex R P).sc n).mapHomologyIso (forget₂ (ModuleCat R) AddCommGrpCat) |
| 46 | |
| 47 | def targetHomologyIso (N : ModuleCat.{u} R) (e : N ≅ ModuleCat.of R R) (n : ℕ) : |
| 48 | ((((preadditiveYoneda.obj N).mapHomologicalComplex |
| 49 | (ComplexShape.down ℕ).symm).obj P.op).homology n) ≅ |
| 50 | (forget₂ (ModuleCat R) AddCommGrpCat).obj ((DualComplexHomology.complex R P).homology n) := |
| 51 | HomologicalComplex.homologyMapIso |
| 52 | ((NatIso.mapHomologicalComplex (preadditiveYoneda.mapIso e) (ComplexShape.down ℕ).symm).app P.op) n ≪≫ |
| 53 | homologyIso R P n |
| 54 | |
| 55 | variable (rs : List R) (hreg : RingTheory.Sequence.IsWeaklyRegular R rs) |
| 56 | (Q : ProjectiveResolution (IntegralComparison.ProjectiveResolution.DualPurity.quotient R rs)) |
| 57 | (N : ModuleCat.{u} R) (e : N ≅ ModuleCat.of R R) |
| 58 | |
| 59 | def purityIso : |
| 60 | ((((preadditiveYoneda.obj N).mapHomologicalComplex |
| 61 | (ComplexShape.down ℕ).symm).obj Q.complex.op).homology rs.length) ≅ |
| 62 | (forget₂ (ModuleCat R) AddCommGrpCat).obj (IntegralComparison.ProjectiveResolution.DualPurity.quotient R rs) := |
| 63 | targetHomologyIso R Q.complex N e rs.length ≪≫ |
| 64 | (forget₂ (ModuleCat R) AddCommGrpCat).mapIso |
| 65 | (IntegralComparison.ProjectiveResolution.DualPurity.homologyIso R rs hreg Q) |
| 66 | |
| 67 | include hreg e in |
| 68 | theorem exactAt (n : ℕ) (hn : n ≠ rs.length) : |
| 69 | (((preadditiveYoneda.obj N).mapHomologicalComplex |
| 70 | (ComplexShape.down ℕ).symm).obj Q.complex.op).ExactAt n := by |
| 71 | rw [HomologicalComplex.exactAt_iff_isZero_homology] |
| 72 | apply (targetHomologyIso R Q.complex N e n).isZero_iff.mpr |
| 73 | exact (forget₂ (ModuleCat R) AddCommGrpCat).map_isZero |
| 74 | ((HomologicalComplex.exactAt_iff_isZero_homology _ _).mp |
| 75 | (IntegralComparison.ProjectiveResolution.DualPurity.exactAt R rs hreg Q n hn)) |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.NumberTheory.PadicHodge.IntegralComparison.HomComplexDual.Comparison |