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.AlgebraicGeometry.Crystalline.Cohomology.OrdinaryFormBase |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Open.SectionAlgebraIso |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Module.SheafificationRestriction |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.SchemeModuleSheafification |
| 5 | import Mathlib.Algebra.Category.ModuleCat.Presheaf.Pushforward |
| 6 | |
| 7 | /-! # Ordinary Form Open -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.OrdinaryFormOpen.OrdinaryFormOpenRestriction |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! # Ordinary structure-sheaf module forms commute with the original open restriction -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u v w |
| 18 | |
| 19 | variable (R : Type u) [CommRing R] |
| 20 | |
| 21 | def moduleIso {A B : CommAlgCat.{u} R} (e : A ≅ B) (n : ℕ) : |
| 22 | OrdinaryFormBase.OrdinaryFormModulePresheaf.formModule R A n ≅ |
| 23 | (ModuleCat.restrictScalars e.hom.hom.toRingHom).obj (OrdinaryFormBase.OrdinaryFormModulePresheaf.formModule R B n) := |
| 24 | (LinearEquiv.ofBijective (OrdinaryFormBase.OrdinaryFormModulePresheaf.formMap R e.hom n).hom |
| 25 | (ConcreteCategory.bijective_of_isIso ((DeRhamGlobalId.DeRhamGlobal.formsFunctor n).map e.hom))).toModuleIso |
| 26 | |
| 27 | section Presheaves |
| 28 | |
| 29 | variable {C D : Type v} [Category.{w} C] [Category.{w} D] |
| 30 | (F : C ⥤ D) (H : Dᵒᵖ ⥤ CommAlgCat.{u} R) (K : Cᵒᵖ ⥤ CommAlgCat.{u} R) |
| 31 | (e : K ≅ F.op ⋙ H) |
| 32 | |
| 33 | def ringMap : NumberTheory.PadicHodge.IntegralComparison.AlgebraPresheafScalars.rings R K ⟶ F.op ⋙ NumberTheory.PadicHodge.IntegralComparison.AlgebraPresheafScalars.rings R H := |
| 34 | Functor.whiskerRight e.hom (forget₂ (CommAlgCat.{u} R) CommRingCat ⋙ forget₂ CommRingCat RingCat) |
| 35 | |
| 36 | def presheafIso (n : ℕ) : OrdinaryFormBase.OrdinaryFormModulePresheaf.presheaf R K n ≅ |
| 37 | (PresheafOfModules.pushforward (ringMap R F H K e)).obj (OrdinaryFormBase.OrdinaryFormModulePresheaf.presheaf R H n) := |
| 38 | PresheafOfModules.isoMk (fun U => moduleIso R (e.app U) n) (by |
| 39 | intro U V f |
| 40 | apply ModuleCat.hom_ext |
| 41 | apply LinearMap.ext |
| 42 | intro x |
| 43 | exact (DeRhamGlobalId.DeRhamGlobal.formMap_comp (K.map f) (e.hom.app V) n x).symm.trans |
| 44 | ((congrArg (fun g => DeRhamGlobalId.DeRhamGlobal.formMap g n x) (e.hom.naturality f)).trans |
| 45 | (DeRhamGlobalId.DeRhamGlobal.formMap_comp (e.hom.app U) (H.map (F.op.map f)) n x))) |
| 46 | |
| 47 | end Presheaves |
| 48 | |
| 49 | variable (X Y : Over (Spec (CommRingCat.of R))) (g : X.left ⟶ Y.left) |
| 50 | [IsOpenImmersion g] (hg : g ≫ Y.hom = X.hom) |
| 51 | |
| 52 | def schemeRingMap : X.left.ringCatSheaf ⟶ |
| 53 | (g.opensFunctor.sheafPushforwardContinuous RingCat (Opens.grothendieckTopology X.left) |
| 54 | (Opens.grothendieckTopology Y.left)).obj Y.left.ringCatSheaf := |
| 55 | ⟨ringMap R g.opensFunctor (AlgebraicForms.AlgebraicDeRham.sectionAlgebras R Y) |
| 56 | (AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X) (NumberTheory.PadicHodge.IntegralComparison.Open.SectionAlgebraIso.iso R X Y g hg)⟩ |
| 57 | |
| 58 | def iso (n : ℕ) : OrdinaryFormBase.OrdinaryFormModulePresheaf.sheaf R X n ≅ |
| 59 | (Scheme.Modules.restrictFunctor g).obj (OrdinaryFormBase.OrdinaryFormModulePresheaf.sheaf R Y n) := |
| 60 | (NumberTheory.PadicHodge.IntegralComparison.SchemeModuleSheafification.functor X.left).mapIso |
| 61 | (presheafIso R g.opensFunctor (AlgebraicForms.AlgebraicDeRham.sectionAlgebras R Y) |
| 62 | (AlgebraicForms.AlgebraicDeRham.sectionAlgebras R X) (NumberTheory.PadicHodge.IntegralComparison.Open.SectionAlgebraIso.iso R X Y g hg) n) ≪≫ |
| 63 | NumberTheory.PadicHodge.IntegralComparison.Module.SheafificationRestriction.iso (schemeRingMap R X Y g hg) |
| 64 | (OrdinaryFormBase.OrdinaryFormModulePresheaf.presheaf R (AlgebraicForms.AlgebraicDeRham.sectionAlgebras R Y) n) |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.OrdinaryFormOpen.OrdinaryFormOpenRestriction |