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 Mathlib |
| 2 | |
| 3 | /-! # Module Generators -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.ModuleGenerators |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: affine-coordinate generators give generators on the original open subscheme |
| 11 | -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {X : Scheme.{u}} (M : X.Modules) (U : X.Opens) (hU : IsAffineOpen U) |
| 18 | |
| 19 | def iso : (M.restrict hU.fromSpec).restrict hU.isoSpec.hom ≅ M.restrict U.ι := |
| 20 | ((Scheme.Modules.restrictFunctorComp hU.isoSpec.hom hU.fromSpec).app M).symm ≪≫ |
| 21 | (Scheme.Modules.restrictFunctorCongr hU.isoSpec_hom_fromSpec).app M |
| 22 | |
| 23 | include hU in |
| 24 | theorem quasicoherent [(M.restrict hU.fromSpec).IsQuasicoherent] : (M.restrict U.ι).IsQuasicoherent := by |
| 25 | let : ((M.restrict hU.fromSpec).restrict hU.isoSpec.hom).IsQuasicoherent := |
| 26 | inferInstance |
| 27 | exact (SheafOfModules.isQuasicoherent U.toScheme.ringCatSheaf).prop_of_iso (iso M U hU) inferInstance |
| 28 | |
| 29 | def generatingSections (G : (M.restrict hU.fromSpec).GeneratingSections) : |
| 30 | (M.restrict U.ι).GeneratingSections := by |
| 31 | let hPres : Limits.PreservesColimitsOfSize.{u, u} (Scheme.Modules.restrictFunctor hU.isoSpec.hom) := |
| 32 | (Scheme.Modules.restrictAdjunction hU.isoSpec.hom).leftAdjoint_preservesColimits |
| 33 | let G' := @SheafOfModules.GeneratingSections.map |
| 34 | _ _ _ _ _ _ _ _ _ _ _ _ _ G (Scheme.Modules.restrictFunctor hU.isoSpec.hom) hPres |
| 35 | (Scheme.Modules.restrictUnitIso hU.isoSpec.hom).symm |
| 36 | exact (SheafOfModules.GeneratingSections.equivOfIso (iso M U hU)) |
| 37 | G' |
| 38 | |
| 39 | theorem generatingSections_finite (G : (M.restrict hU.fromSpec).GeneratingSections) [hG : G.IsFiniteType] : |
| 40 | (generatingSections M U hU G).IsFiniteType := by |
| 41 | constructor |
| 42 | change Finite G.I |
| 43 | exact hG.finite |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.ModuleGenerators |