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.ModuleFunctor |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedCech.CoefficientTotal |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Abelian |
| 4 | |
| 5 | /-! # Additive Sections -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.AdditiveSections |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Forgetting the affine scalar ring gives exactly the original |
| 12 | additive sheaf sections on every principal open, with literal restriction maps. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite _root_.HomologicalComplex |
| 14 | set_option backward.defeqAttrib.useBackward true |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | universe u |
| 18 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf |
| 19 | variable {X : Scheme.{u}} (U : X.Opens) (hU : IsAffineOpen U) |
| 20 | |
| 21 | def opens : SectionPresheaf.Index U ⥤ X.Opens where |
| 22 | obj := SectionPresheaf.openSubset U |
| 23 | map := SectionPresheaf.arrow U hU |
| 24 | map_id _ := Subsingleton.elim _ _ |
| 25 | map_comp _ _ := Subsingleton.elim _ _ |
| 26 | |
| 27 | abbrev forgetScalars : ModuleCat.{u} Γ(X, U) ⥤ AddCommGrpCat.{u} := forget₂ _ _ |
| 28 | |
| 29 | def additiveFunctor : X.Modules ⥤ (SectionPresheaf.Index U)ᵒᵖ ⥤ AddCommGrpCat.{u} := |
| 30 | SheafOfModules.toSheaf X.ringCatSheaf ⋙ |
| 31 | sheafToPresheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} ⋙ |
| 32 | (Functor.whiskeringLeft (SectionPresheaf.Index U)ᵒᵖ X.Opensᵒᵖ AddCommGrpCat.{u}).obj (opens U hU).op |
| 33 | |
| 34 | instance additive : (additiveFunctor U hU).Additive where |
| 35 | map_add := rfl |
| 36 | |
| 37 | def functorIso : ModuleFunctor.functor U hU ⋙ |
| 38 | (Functor.whiskeringRight (SectionPresheaf.Index U)ᵒᵖ (ModuleCat.{u} Γ(X, U)) AddCommGrpCat.{u}).obj |
| 39 | (forgetScalars U) ≅ additiveFunctor U hU := |
| 40 | NatIso.ofComponents (fun M => NatIso.ofComponents (fun r => Iso.refl _) (by |
| 41 | intro r s f |
| 42 | rfl)) (by |
| 43 | intro M N f |
| 44 | apply NatTrans.ext |
| 45 | funext r |
| 46 | rfl) |
| 47 | |
| 48 | variable (K : CochainComplex X.Modules ℕ) |
| 49 | |
| 50 | abbrev linearComplex := ((ModuleFunctor.functor U hU).mapHomologicalComplex (.up ℕ)).obj K |
| 51 | abbrev additiveComplex := ((additiveFunctor U hU).mapHomologicalComplex (.up ℕ)).obj K |
| 52 | |
| 53 | def complexIso : AugmentedCech.CoefficientTotal.mapped (forgetScalars U) |
| 54 | (linearComplex U hU K) ≅ additiveComplex U hU K := |
| 55 | (NatIso.mapHomologicalComplex (functorIso U hU) (.up ℕ)).app K |
| 56 | |
| 57 | variable {ι : Type u} [LinearOrder ι] (W : ι → SectionPresheaf.Index U) |
| 58 | |
| 59 | local instance finiteBiproducts : HasFiniteBiproducts (ModuleCat.{u} Γ(X, U)) := |
| 60 | Abelian.hasFiniteBiproducts |
| 61 | |
| 62 | def totalIso : ((forgetScalars U).mapHomologicalComplex (.up ℕ)).obj |
| 63 | ((AugmentedOrdered.CechFunctor.bicomplex W (linearComplex U hU K)).total (.up ℕ)) ≅ |
| 64 | (AugmentedOrdered.CechFunctor.bicomplex W (additiveComplex U hU K)).total (.up ℕ) := |
| 65 | AugmentedCech.CoefficientTotal.totalIso W (forgetScalars U) (linearComplex U hU K) ≪≫ |
| 66 | HomologicalComplex₂.total.mapIso |
| 67 | (((AugmentedOrdered.CechFunctor.functor W).mapHomologicalComplex (.up ℕ)).mapIso |
| 68 | (complexIso U hU K)) (.up ℕ) |
| 69 | |
| 70 | def homologyIso (q : ℕ) : (forgetScalars U).obj |
| 71 | (((AugmentedOrdered.CechFunctor.bicomplex W (linearComplex U hU K)).total (.up ℕ)).homology q) ≅ |
| 72 | ((AugmentedOrdered.CechFunctor.bicomplex W (additiveComplex U hU K)).total (.up ℕ)).homology q := |
| 73 | ((((AugmentedOrdered.CechFunctor.bicomplex W (linearComplex U hU K)).total (.up ℕ)).sc q).mapHomologyIso |
| 74 | (forgetScalars U)).symm ≪≫ homologyMapIso (totalIso U hU K W) q |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.AdditiveSections |