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.SchemeInternalHom |
| 2 | import Mathlib.CategoryTheory.HomCongr |
| 3 | import Mathlib.CategoryTheory.Preadditive.AdditiveFunctor |
| 4 | |
| 5 | /-! # Internal Hom -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Open.InternalHom |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Sections of the genuine internal Hom on an open subscheme are |
| 12 | morphisms of the restricted module sheaves. The equivalence respects |
| 13 | precomposition, so it applies to complexes of internal Homs. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {X : Scheme.{u}} (M N : X.Modules) (U : X.Opens) |
| 22 | |
| 23 | def overEquiv : Γ(ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule M N, U) ≃+ (M.over U ⟶ N.over U) where |
| 24 | toEquiv := ArithmeticGeometry.OrdinaryLocus.Openness.ModuleHomSheaf.Construction.moduleHomOverEquiv M N U |
| 25 | map_add' q q' := by |
| 26 | apply SheafOfModules.hom_ext |
| 27 | apply PresheafOfModules.hom_ext |
| 28 | intro V |
| 29 | ext m |
| 30 | rfl |
| 31 | |
| 32 | instance overFunctor_additive : (Scheme.Modules.overEquiv U).functor.Additive := |
| 33 | Functor.additive_of_preserves_binary_products _ |
| 34 | |
| 35 | def restrictionHomEquiv : (M.over U ⟶ N.over U) ≃+ |
| 36 | (M.restrict U.ι ⟶ N.restrict U.ι) where |
| 37 | toEquiv := (Scheme.Modules.overEquiv U).fullyFaithfulFunctor.homEquiv.trans |
| 38 | (Iso.homCongr ((Scheme.Modules.overFunctorEquiv U).app M) |
| 39 | ((Scheme.Modules.overFunctorEquiv U).app N)) |
| 40 | map_add' f g := by |
| 41 | change _ ≫ (Scheme.Modules.overEquiv U).functor.map (f + g) ≫ _ = _ |
| 42 | rw [(Scheme.Modules.overEquiv U).functor.map_add, |
| 43 | Preadditive.add_comp, Preadditive.comp_add] |
| 44 | rfl |
| 45 | |
| 46 | def sectionEquiv : Γ(ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule M N, U) ≃+ |
| 47 | (M.restrict U.ι ⟶ N.restrict U.ι) := |
| 48 | (InternalHom.overEquiv M N U).trans (restrictionHomEquiv M N U) |
| 49 | |
| 50 | theorem over_precomp {M' : X.Modules} (f : M ⟶ M') |
| 51 | (q : Γ(ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule M' N, U)) : |
| 52 | InternalHom.overEquiv M N U ((ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomFunctoriality.Construction.sheafHomMap f (𝟙 N)).val.app (op U) q) = |
| 53 | f.over U ≫ InternalHom.overEquiv M' N U q := by |
| 54 | apply SheafOfModules.hom_ext |
| 55 | apply PresheafOfModules.hom_ext |
| 56 | intro V |
| 57 | ext m |
| 58 | rfl |
| 59 | |
| 60 | theorem restrictionHomEquiv_precomp {M' : X.Modules} (f : M ⟶ M') |
| 61 | (q : M'.over U ⟶ N.over U) : |
| 62 | restrictionHomEquiv M N U (f.over U ≫ q) = |
| 63 | (Scheme.Modules.restrictFunctor U.ι).map f ≫ restrictionHomEquiv M' N U q := by |
| 64 | change ((Scheme.Modules.overFunctorEquiv U).app M).inv ≫ |
| 65 | (Scheme.Modules.overEquiv U).functor.map (f.over U ≫ q) ≫ |
| 66 | ((Scheme.Modules.overFunctorEquiv U).app N).hom = _ |
| 67 | rw [CategoryTheory.Functor.map_comp] |
| 68 | have h := (Scheme.Modules.overFunctorEquiv U).inv.naturality f |
| 69 | change (Scheme.Modules.restrictFunctor U.ι).map f ≫ |
| 70 | ((Scheme.Modules.overFunctorEquiv U).app M').inv = |
| 71 | ((Scheme.Modules.overFunctorEquiv U).app M).inv ≫ |
| 72 | (Scheme.Modules.overEquiv U).functor.map (f.over U) at h |
| 73 | simp only [← Category.assoc] |
| 74 | rw [← h] |
| 75 | simp only [Category.assoc] |
| 76 | rfl |
| 77 | |
| 78 | theorem sectionEquiv_precomp {M' : X.Modules} (f : M ⟶ M') |
| 79 | (q : Γ(ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule M' N, U)) : |
| 80 | sectionEquiv M N U ((ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomFunctoriality.Construction.sheafHomMap f (𝟙 N)).val.app (op U) q) = |
| 81 | (Scheme.Modules.restrictFunctor U.ι).map f ≫ sectionEquiv M' N U q := by |
| 82 | change restrictionHomEquiv M N U (InternalHom.overEquiv M N U _) = _ |
| 83 | rw [over_precomp, restrictionHomEquiv_precomp] |
| 84 | rfl |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Open.InternalHom |