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.Linear.Yoneda |
| 3 | |
| 4 | /-! # Linear Hom Dual Purity -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.LinearHomDualPurity |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The coefficient-dual purity is an isomorphism of modules for the |
| 11 | linear Hom complex, before forgetting the coefficient action. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (R : Type u) [CommRing R] |
| 20 | |
| 21 | def functorIso : (linearYoneda R (ModuleCat.{u} R)).obj (ModuleCat.of R R) ≅ |
| 22 | ExactModuleDualFunctor.functor R := |
| 23 | NatIso.ofComponents |
| 24 | (fun M => (ModuleCat.homLinearEquiv (R := R) (S := R) |
| 25 | (M := M.unop) (N := ModuleCat.of R R)).toModuleIso) (by |
| 26 | intro M N f |
| 27 | ext q |
| 28 | rfl) |
| 29 | |
| 30 | variable (P : ChainComplex (ModuleCat.{u} R) ℕ) |
| 31 | |
| 32 | def complexIso : |
| 33 | ((((linearYoneda R (ModuleCat.{u} R)).obj (ModuleCat.of R R)).mapHomologicalComplex |
| 34 | (ComplexShape.down ℕ).symm).obj P.op) ≅ |
| 35 | DualComplexHomology.complex R P := |
| 36 | (NatIso.mapHomologicalComplex (functorIso R) (ComplexShape.down ℕ).symm).app P.op |
| 37 | |
| 38 | def homologyIso (n : ℕ) : |
| 39 | (((((linearYoneda R (ModuleCat.{u} R)).obj (ModuleCat.of R R)).mapHomologicalComplex |
| 40 | (ComplexShape.down ℕ).symm).obj P.op).homology n) ≅ |
| 41 | (DualComplexHomology.complex R P).homology n := |
| 42 | HomologicalComplex.homologyMapIso (complexIso R P) n |
| 43 | |
| 44 | def targetHomologyIso (N : ModuleCat.{u} R) (e : N ≅ ModuleCat.of R R) (n : ℕ) : |
| 45 | (((((linearYoneda R (ModuleCat.{u} R)).obj N).mapHomologicalComplex |
| 46 | (ComplexShape.down ℕ).symm).obj P.op).homology n) ≅ |
| 47 | (DualComplexHomology.complex R P).homology n := |
| 48 | HomologicalComplex.homologyMapIso |
| 49 | ((NatIso.mapHomologicalComplex ((linearYoneda R (ModuleCat.{u} R)).mapIso e) |
| 50 | (ComplexShape.down ℕ).symm).app P.op) n ≪≫ homologyIso R P n |
| 51 | |
| 52 | variable (rs : List R) (hreg : RingTheory.Sequence.IsWeaklyRegular R rs) |
| 53 | (Q : ProjectiveResolution (IntegralComparison.ProjectiveResolution.DualPurity.quotient R rs)) |
| 54 | (N : ModuleCat.{u} R) (e : N ≅ ModuleCat.of R R) |
| 55 | |
| 56 | def purityIso : |
| 57 | (((((linearYoneda R (ModuleCat.{u} R)).obj N).mapHomologicalComplex |
| 58 | (ComplexShape.down ℕ).symm).obj Q.complex.op).homology rs.length) ≅ |
| 59 | IntegralComparison.ProjectiveResolution.DualPurity.quotient R rs := |
| 60 | targetHomologyIso R Q.complex N e rs.length ≪≫ |
| 61 | IntegralComparison.ProjectiveResolution.DualPurity.homologyIso R rs hreg Q |
| 62 | |
| 63 | include hreg e in |
| 64 | theorem exactAt (n : ℕ) (hn : n ≠ rs.length) : |
| 65 | ((((linearYoneda R (ModuleCat.{u} R)).obj N).mapHomologicalComplex |
| 66 | (ComplexShape.down ℕ).symm).obj Q.complex.op).ExactAt n := by |
| 67 | rw [HomologicalComplex.exactAt_iff_isZero_homology] |
| 68 | apply (targetHomologyIso R Q.complex N e n).isZero_iff.mpr |
| 69 | exact (HomologicalComplex.exactAt_iff_isZero_homology _ _).mp |
| 70 | (IntegralComparison.ProjectiveResolution.DualPurity.exactAt R rs hreg Q n hn) |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.NumberTheory.PadicHodge.IntegralComparison.LinearHomDualPurity |