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.AffineOpen.HomComplex |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.Resolution |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.HomComplexDual |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveResolution.Transport |
| 5 | |
| 6 | /-! # Resolution Dual Purity -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ResolutionDualPurity |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Local duality for the actual internal-Hom complex of a sheaf |
| 13 | resolution, using its affine section resolution and a regular-sequence |
| 14 | presentation of the resolved module. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {X : Scheme.{u}} (U : X.Opens) (hU : IsAffineOpen U) |
| 23 | (N : X.Modules) (K : ChainComplex X.Modules ℕ) |
| 24 | |
| 25 | open OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.InternalHom OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.HomComplex |
| 26 | |
| 27 | def algebraicComplexIso : |
| 28 | (((AffineOpen.HomComplex.algebraicHom U hU N).mapHomologicalComplex (ComplexShape.down ℕ).symm).obj K.op) ≅ |
| 29 | (((preadditiveYoneda.obj ((AffineOpen.InternalHom.sections U hU).obj N)).mapHomologicalComplex |
| 30 | (ComplexShape.down ℕ).symm).obj |
| 31 | (((AffineOpen.InternalHom.sections U hU).mapHomologicalComplex (.down ℕ)).obj K).op) := |
| 32 | HomologicalComplex.Hom.isoOfComponents (fun _ => Iso.refl _) (by intros; rfl) |
| 33 | |
| 34 | variable [∀ n, (K.X n).IsQuasicoherent] |
| 35 | |
| 36 | def sectionComplexIso : |
| 37 | (((AffineOpen.HomComplex.sectionHom U N).mapHomologicalComplex (ComplexShape.down ℕ).symm).obj K.op) ≅ |
| 38 | (((preadditiveYoneda.obj ((AffineOpen.InternalHom.sections U hU).obj N)).mapHomologicalComplex |
| 39 | (ComplexShape.down ℕ).symm).obj |
| 40 | (((AffineOpen.InternalHom.sections U hU).mapHomologicalComplex (.down ℕ)).obj K).op) := by |
| 41 | let (n : ℕ) : (K.op.X n).unop.IsQuasicoherent := |
| 42 | inferInstanceAs ((K.X n).IsQuasicoherent) |
| 43 | exact AffineOpen.HomComplex.complexIso U hU N (ComplexShape.down ℕ).symm K.op ≪≫ algebraicComplexIso U hU N K |
| 44 | |
| 45 | variable (M : X.Modules) [M.IsQuasicoherent] |
| 46 | (ε : K ⟶ (ChainComplex.single₀ X.Modules).obj M) [QuasiIso ε] |
| 47 | [∀ n, Projective ((AffineOpen.InternalHom.sections U hU).obj (K.X n))] |
| 48 | (rs : List Γ(X, U)) (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(X, U) rs) |
| 49 | (eM : (AffineOpen.InternalHom.sections U hU).obj M ≅ IntegralComparison.ProjectiveResolution.DualPurity.quotient Γ(X, U) rs) |
| 50 | (eN : (AffineOpen.InternalHom.sections U hU).obj N ≅ ModuleCat.of Γ(X, U) Γ(X, U)) |
| 51 | |
| 52 | def resolution : ProjectiveResolution (IntegralComparison.ProjectiveResolution.DualPurity.quotient Γ(X, U) rs) := |
| 53 | IntegralComparison.ProjectiveResolution.Transport.alongIso |
| 54 | (AffineOpen.Resolution.ofAugmentation U hU M K ε) eM |
| 55 | |
| 56 | def purityIso : |
| 57 | ((((AffineOpen.HomComplex.sectionHom U N).mapHomologicalComplex (ComplexShape.down ℕ).symm).obj K.op).homology |
| 58 | rs.length) ≅ |
| 59 | (forget₂ (ModuleCat Γ(X, U)) AddCommGrpCat).obj |
| 60 | (IntegralComparison.ProjectiveResolution.DualPurity.quotient Γ(X, U) rs) := |
| 61 | HomologicalComplex.homologyMapIso (sectionComplexIso U hU N K) rs.length ≪≫ |
| 62 | HomComplexDual.Comparison.purityIso Γ(X, U) rs hreg (resolution U hU K M ε rs eM) |
| 63 | ((AffineOpen.InternalHom.sections U hU).obj N) eN |
| 64 | |
| 65 | include ε hreg eM eN in |
| 66 | theorem exactAt (n : ℕ) (hn : n ≠ rs.length) : |
| 67 | (((AffineOpen.HomComplex.sectionHom U N).mapHomologicalComplex (ComplexShape.down ℕ).symm).obj K.op).ExactAt n := by |
| 68 | rw [HomologicalComplex.exactAt_iff_isZero_homology] |
| 69 | apply (HomologicalComplex.homologyMapIso (sectionComplexIso U hU N K) n).isZero_iff.mpr |
| 70 | exact (HomologicalComplex.exactAt_iff_isZero_homology _ _).mp |
| 71 | (HomComplexDual.Comparison.exactAt Γ(X, U) rs hreg (resolution U hU K M ε rs eM) |
| 72 | ((AffineOpen.InternalHom.sections U hU).obj N) eN n hn) |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ResolutionDualPurity |