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.Principal.ModuleHomology |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.AtOne |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ComposedHomologyNaturality |
| 4 | import Mathlib.CategoryTheory.Limits.Preserves.FunctorCategory |
| 5 | |
| 6 | /-! # At One Homology -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.AtOneHomology |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The principal-section homology comparison at the unit open is |
| 13 | the original affine-section homology comparison. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite _root_.HomologicalComplex |
| 16 | |
| 17 | set_option backward.defeqAttrib.useBackward true |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | |
| 21 | universe u |
| 22 | variable {X : Scheme.{u}} (U : X.Opens) (hU : IsAffineOpen U) |
| 23 | |
| 24 | theorem preservesRight (S : ShortComplex X.Modules) |
| 25 | [S.X₁.IsQuasicoherent] [S.X₂.IsQuasicoherent] : |
| 26 | (ModuleFunctor.functor U hU).PreservesRightHomologyOf S := by |
| 27 | let h := ShortComplex.RightHomologyData.ofHasCokernelOfHasKernel S |
| 28 | let : h.IsPreservedBy (ModuleFunctor.functor U hU) := |
| 29 | { f := ModuleHomology.preservesCokernel U hU S.f |
| 30 | g' := ModuleHomology.preservesKernel U hU h.g' } |
| 31 | exact Functor.PreservesRightHomologyOf.mk' (ModuleFunctor.functor U hU) h |
| 32 | |
| 33 | variable (K : CochainComplex X.Modules ℕ) [∀ q, (K.X q).IsQuasicoherent] (c : ℕ) |
| 34 | |
| 35 | def affineIso : |
| 36 | (((Affine.ModuleExactSections.sections U).mapHomologicalComplex (.up ℕ)).obj K).homology c ≅ |
| 37 | (Affine.ModuleExactSections.sections U).obj (K.homology c) := by |
| 38 | let : (K.sc c).X₁.IsQuasicoherent := inferInstanceAs (K.X ((ComplexShape.up ℕ).prev c)).IsQuasicoherent |
| 39 | let : (K.sc c).X₂.IsQuasicoherent := inferInstanceAs (K.X c).IsQuasicoherent |
| 40 | let : (K.sc c).X₃.IsQuasicoherent := inferInstanceAs (K.X ((ComplexShape.up ℕ).next c)).IsQuasicoherent |
| 41 | exact Affine.ModuleHomology.iso U hU (K.sc c) |
| 42 | |
| 43 | local notation "F" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ModuleFunctor.functor U hU |
| 44 | |
| 45 | abbrev evaluation := (CategoryTheory.evaluation (SectionPresheaf.Index U)ᵒᵖ |
| 46 | (ModuleCat Γ(X, U))).obj (op (AtOne.object U)) |
| 47 | |
| 48 | local notation "E" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.AtOneHomology.evaluation U |
| 49 | |
| 50 | def evaluationIso := |
| 51 | (((((F).mapHomologicalComplex (.up ℕ)).obj K).sc c).mapHomologyIso E) |
| 52 | |
| 53 | theorem square : |
| 54 | ((AtOne.iso U hU).app (K.homology c)).hom ≫ |
| 55 | (ModuleHomology.complexIso U hU K c).inv.app (op (AtOne.object U)) = |
| 56 | (affineIso U hU K c).inv ≫ |
| 57 | homologyMap (((NatIso.mapHomologicalComplex (AtOne.iso U hU) (.up ℕ)).app K).hom) c ≫ |
| 58 | (evaluationIso U hU K c).hom := by |
| 59 | let : (K.sc c).X₁.IsQuasicoherent := inferInstanceAs (K.X ((ComplexShape.up ℕ).prev c)).IsQuasicoherent |
| 60 | let : (K.sc c).X₂.IsQuasicoherent := inferInstanceAs (K.X c).IsQuasicoherent |
| 61 | let : (K.sc c).X₃.IsQuasicoherent := inferInstanceAs (K.X ((ComplexShape.up ℕ).next c)).IsQuasicoherent |
| 62 | let : (F).PreservesLeftHomologyOf (K.sc c) := ModuleHomology.preservesLeft U hU (K.sc c) |
| 63 | let : (F).PreservesRightHomologyOf (K.sc c) := preservesRight U hU (K.sc c) |
| 64 | let : (Affine.ModuleExactSections.sections U).PreservesLeftHomologyOf (K.sc c) := |
| 65 | Affine.ModuleHomology.preservesLeft U hU (K.sc c) |
| 66 | let : (Affine.ModuleExactSections.sections U).PreservesRightHomologyOf (K.sc c) := |
| 67 | Affine.ModuleHomology.preservesRight U hU (K.sc c) |
| 68 | exact ComposedHomologyNaturality.square F E (Affine.ModuleExactSections.sections U) |
| 69 | (AtOne.iso U hU).hom (K.sc c) |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.AtOneHomology |