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.AbelianModuli.HilbertConstruction.Coefficient.ModulePresheafFunctor |
| 2 | import Mathlib.Algebra.Category.ModuleCat.ChangeOfRingsExact |
| 3 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.Limits |
| 4 | import Mathlib.CategoryTheory.Limits.Constructions.EpiMono |
| 5 | import Mathlib.CategoryTheory.Preadditive.AdditiveFunctor |
| 6 | |
| 7 | /-! # Section Evaluation -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Coefficient.SectionEvaluation |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Coefficient section evaluation is native section evaluation followed by restriction of scalars. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable {X : Scheme.{u}} {R : Type u} [CommRing R] |
| 20 | |
| 21 | def coefficientSectionFunctor (c : R →+* Γ(X, ⊤)) (U : X.Opens) : X.Modules ⥤ ModuleCat.{u} R := |
| 22 | ModulePresheafFunctor.coefficientModulePresheafFunctor c ⋙ |
| 23 | (CategoryTheory.evaluation X.Opensᵒᵖ (ModuleCat.{u} R)).obj (op U) |
| 24 | |
| 25 | def coefficientSectionEvaluationIso (c : R →+* Γ(X, ⊤)) (U : X.Opens) : |
| 26 | coefficientSectionFunctor c U ≅ |
| 27 | SheafOfModules.evaluation X.ringCatSheaf (op U) ⋙ |
| 28 | ModuleCat.restrictScalars ((X.presheaf.map U.leTop.op).hom.comp c) := by |
| 29 | refine NatIso.ofComponents (fun M ↦ ?_) ?_ |
| 30 | · refine ModuleCat.isoMk (Iso.refl _) ?_ |
| 31 | intro r |
| 32 | ext (x : Γ(M, U)) |
| 33 | rfl |
| 34 | · intro M N f |
| 35 | apply ModuleCat.hom_ext |
| 36 | ext x |
| 37 | rfl |
| 38 | |
| 39 | instance coefficientSectionFunctor_preservesFiniteLimits (c : R →+* Γ(X, ⊤)) (U : X.Opens) : |
| 40 | PreservesFiniteLimits (coefficientSectionFunctor c U) := by |
| 41 | let F : X.Modules ⥤ ModuleCat.{u} Γ(X, U) := |
| 42 | SheafOfModules.evaluation X.ringCatSheaf (op U) |
| 43 | let G : ModuleCat.{u} Γ(X, U) ⥤ ModuleCat.{u} R := |
| 44 | ModuleCat.restrictScalars ((X.presheaf.map U.leTop.op).hom.comp c) |
| 45 | have : PreservesFiniteLimits F := |
| 46 | SheafOfModules.Finite.evaluationPreservesFiniteLimits X.ringCatSheaf (op U) |
| 47 | have : PreservesFiniteLimits G := by dsimp [G]; infer_instance |
| 48 | have : PreservesFiniteLimits (F ⋙ G) := comp_preservesFiniteLimits F G |
| 49 | let e : coefficientSectionFunctor c U ≅ F ⋙ G := coefficientSectionEvaluationIso c U |
| 50 | exact preservesFiniteLimits_of_natIso e.symm |
| 51 | |
| 52 | instance coefficientSectionFunctor_additive (c : R →+* Γ(X, ⊤)) (U : X.Opens) : |
| 53 | (coefficientSectionFunctor c U).Additive where |
| 54 | map_add := by |
| 55 | intro M N f g |
| 56 | apply ModuleCat.hom_ext |
| 57 | ext x |
| 58 | rfl |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Coefficient.SectionEvaluation |