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.Koszul.ProjectiveResolution |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.DualCohomology |
| 3 | |
| 4 | /-! # Dual Purity -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveResolution.DualPurity |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Every genuine projective resolution of a regular-sequence quotient |
| 11 | has the same ordinary dual purity as its Koszul resolution. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex Opposite |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (R : Type u) [CommRing R] |
| 20 | |
| 21 | abbrev shape := NonpositiveProjectiveResolution.shape |
| 22 | abbrev quotient (rs : List R) := RegularSequenceKoszul.quotient (ModuleCat.of R R) rs |
| 23 | abbrev ordinary (rs : List R) := Koszul.DualCohomology.ordinary R rs |
| 24 | abbrev koszul (rs : List R) (hreg : RingTheory.Sequence.IsWeaklyRegular R rs) := |
| 25 | Koszul.ProjectiveResolution.resolution (ModuleCat.of R R) rs hreg |
| 26 | |
| 27 | instance ordinary_supported (rs : List R) : (ordinary R rs).IsStrictlySupported shape.op := by |
| 28 | change (((ExactModuleDualFunctor.functor R).mapHomologicalComplex (ComplexShape.up ℤ).symm).obj |
| 29 | (RegularSequenceKoszul.complex (ModuleCat.of R R) rs).op).IsStrictlySupported shape.op |
| 30 | infer_instance |
| 31 | |
| 32 | def restrictionIso (rs : List R) (hreg : RingTheory.Sequence.IsWeaklyRegular R rs) : |
| 33 | DualComplexHomology.complex R (koszul R rs hreg).complex ≅ |
| 34 | (ordinary R rs).restriction shape.op := |
| 35 | Hom.isoOfComponents (fun _ => Iso.refl _) (by intros; rfl) |
| 36 | |
| 37 | def koszulHomologyIso (rs : List R) (hreg : RingTheory.Sequence.IsWeaklyRegular R rs) (n : ℕ) : |
| 38 | (DualComplexHomology.complex R (koszul R rs hreg).complex).homology n ≅ |
| 39 | (ordinary R rs).homology (-(n : ℤ)) := by |
| 40 | simpa only [shape, NonpositiveProjectiveResolution.shape, ComplexShape.Embedding.op_f, |
| 41 | ComplexShape.embeddingUpIntLE_f, zero_sub] using |
| 42 | (homologyMapIso (restrictionIso R rs hreg) n ≪≫ |
| 43 | Supported.SupportedRestriction.homologyIso shape.op (ordinary R rs) n) |
| 44 | |
| 45 | variable (rs : List R) (hreg : RingTheory.Sequence.IsWeaklyRegular R rs) |
| 46 | (P : ProjectiveResolution (quotient R rs)) |
| 47 | |
| 48 | def homologyIso : (DualComplexHomology.complex R P.complex).homology rs.length ≅ quotient R rs := |
| 49 | IntegralComparison.ProjectiveResolution.Hom.Comparison.homologyIso (ExactModuleDualFunctor.functor R) |
| 50 | P (koszul R rs hreg) rs.length ≪≫ |
| 51 | koszulHomologyIso R rs hreg rs.length ≪≫ Koszul.DualCohomology.homologyIso R rs hreg |
| 52 | |
| 53 | include hreg in |
| 54 | theorem exactAt (n : ℕ) (hn : n ≠ rs.length) : |
| 55 | (DualComplexHomology.complex R P.complex).ExactAt n := by |
| 56 | rw [HomologicalComplex.exactAt_iff_isZero_homology] |
| 57 | let e := IntegralComparison.ProjectiveResolution.Hom.Comparison.homologyIso (ExactModuleDualFunctor.functor R) |
| 58 | P (koszul R rs hreg) n ≪≫ koszulHomologyIso R rs hreg n |
| 59 | exact e.isZero_iff.mpr ((HomologicalComplex.exactAt_iff_isZero_homology _ _).mp |
| 60 | (Koszul.DualCohomology.exactAt R rs hreg (-(n : ℤ)) (by omega))) |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveResolution.DualPurity |