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.InternalHomOpenRestriction |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ChartSections |
| 3 | |
| 4 | /-! # Linear Hom -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.LinearHom |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The affine-open internal-Hom comparison as a natural map of modules. |
| 11 | Its source retains the literal section-module structure on the open. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {X : Scheme.{u}} (U : X.Opens) (hU : IsAffineOpen U) |
| 21 | |
| 22 | def fromSpecSectionsIso : Affine.ModuleExactSections.sections U ≅ |
| 23 | Scheme.Modules.restrictFunctor hU.fromSpec ⋙ Affine.InternalHom.sections := |
| 24 | NatIso.ofComponents (Affine.ChartSections.fromSpecIso U hU) (by |
| 25 | intro M N a |
| 26 | apply ModuleCat.hom_ext |
| 27 | apply LinearMap.ext |
| 28 | intro x |
| 29 | exact (PresheafOfModules.naturality_apply a.val |
| 30 | (eqToHom (Affine.ChartSections.image_top U hU)).op x).symm) |
| 31 | |
| 32 | def sectionsIso : Affine.ModuleExactSections.sections U ≅ |
| 33 | InternalHom.sections U hU := |
| 34 | fromSpecSectionsIso U hU ≪≫ |
| 35 | Functor.isoWhiskerRight (Scheme.Modules.restrictFunctorComp hU.isoSpec.inv U.ι) |
| 36 | Affine.InternalHom.sections |
| 37 | |
| 38 | variable (N : X.Modules) |
| 39 | |
| 40 | def chartHomIso (M : X.Modules) : |
| 41 | (InternalHom.chartFunctor U hU).obj (ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule M N) ≅ |
| 42 | ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule |
| 43 | ((InternalHom.chartFunctor U hU).obj M) |
| 44 | ((InternalHom.chartFunctor U hU).obj N) := |
| 45 | (Scheme.Modules.restrictFunctor hU.isoSpec.inv).mapIso |
| 46 | (InternalHomOpenRestriction.iso U.ι M N) ≪≫ |
| 47 | InternalHomOpenRestriction.iso hU.isoSpec.inv (M.restrict U.ι) (N.restrict U.ι) |
| 48 | |
| 49 | def chartHomFunctorIso : |
| 50 | SchemeInternalHom.functor N ⋙ InternalHom.chartFunctor U hU ≅ |
| 51 | (InternalHom.chartFunctor U hU).op ⋙ |
| 52 | SchemeInternalHom.functor ((InternalHom.chartFunctor U hU).obj N) := |
| 53 | NatIso.ofComponents (fun M => chartHomIso U hU N M.unop) (by |
| 54 | intro M P a |
| 55 | change (Scheme.Modules.restrictFunctor hU.isoSpec.inv).map |
| 56 | ((Scheme.Modules.restrictFunctor U.ι).map (ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomFunctoriality.Construction.sheafHomMap a.unop (𝟙 N))) ≫ |
| 57 | (Scheme.Modules.restrictFunctor hU.isoSpec.inv).map |
| 58 | (InternalHomOpenRestriction.iso U.ι P.unop N).hom ≫ |
| 59 | (InternalHomOpenRestriction.iso hU.isoSpec.inv (P.unop.restrict U.ι) |
| 60 | (N.restrict U.ι)).hom = _ |
| 61 | rw [← Category.assoc, ← CategoryTheory.Functor.map_comp, |
| 62 | InternalHomOpenRestriction.precomp, CategoryTheory.Functor.map_comp, Category.assoc, |
| 63 | InternalHomOpenRestriction.precomp] |
| 64 | rfl) |
| 65 | |
| 66 | def sectionHom : X.Modulesᵒᵖ ⥤ ModuleCat Γ(X, U) := |
| 67 | SchemeInternalHom.functor N ⋙ Affine.ModuleExactSections.sections U |
| 68 | |
| 69 | def algebraicHom : X.Modulesᵒᵖ ⥤ ModuleCat Γ(X, U) := |
| 70 | (InternalHom.sections U hU).op ⋙ |
| 71 | (linearYoneda Γ(X, U) (ModuleCat Γ(X, U))).obj |
| 72 | ((InternalHom.sections U hU).obj N) |
| 73 | |
| 74 | instance sectionHom_additive : (sectionHom U N).Additive := by |
| 75 | unfold sectionHom |
| 76 | infer_instance |
| 77 | |
| 78 | instance algebraicHom_additive : (algebraicHom U hU N).Additive := by |
| 79 | let : (InternalHom.sections U hU).Additive := { map_add := rfl } |
| 80 | unfold algebraicHom |
| 81 | infer_instance |
| 82 | |
| 83 | def comparison : sectionHom U N ⟶ algebraicHom U hU N := |
| 84 | Functor.whiskerLeft (SchemeInternalHom.functor N) (sectionsIso U hU).hom ≫ |
| 85 | Functor.whiskerRight (chartHomFunctorIso U hU N).hom Affine.InternalHom.sections ≫ |
| 86 | Functor.whiskerLeft (InternalHom.chartFunctor U hU).op |
| 87 | (Affine.InternalHomComplex.comparison |
| 88 | ((InternalHom.chartFunctor U hU).obj N)) |
| 89 | |
| 90 | theorem comparison_isIso (M : X.Modulesᵒᵖ) [M.unop.IsQuasicoherent] : |
| 91 | IsIso ((comparison U hU N).app M) := by |
| 92 | let : ((InternalHom.chartFunctor U hU).obj M.unop).IsQuasicoherent := |
| 93 | InternalHom.chart_quasicoherent U hU M.unop |
| 94 | let := Affine.InternalHomComplex.comparison_isIso |
| 95 | ((InternalHom.chartFunctor U hU).obj N) |
| 96 | (op ((InternalHom.chartFunctor U hU).obj M.unop)) |
| 97 | change IsIso ((sectionsIso U hU).hom.app _ ≫ |
| 98 | Affine.InternalHom.sections.map ((chartHomFunctorIso U hU N).hom.app M) ≫ |
| 99 | (Affine.InternalHomComplex.comparison |
| 100 | ((InternalHom.chartFunctor U hU).obj N)).app |
| 101 | (op ((InternalHom.chartFunctor U hU).obj M.unop))) |
| 102 | infer_instance |
| 103 | |
| 104 | def complexMap {ι : Type*} (c : ComplexShape ι) |
| 105 | (K : HomologicalComplex X.Modulesᵒᵖ c) : |
| 106 | ((sectionHom U N).mapHomologicalComplex c).obj K ⟶ |
| 107 | ((algebraicHom U hU N).mapHomologicalComplex c).obj K := |
| 108 | ((comparison U hU N).mapHomologicalComplex c).app K |
| 109 | |
| 110 | theorem complexMap_isIso {ι : Type*} (c : ComplexShape ι) |
| 111 | (K : HomologicalComplex X.Modulesᵒᵖ c) |
| 112 | [∀ i, (K.X i).unop.IsQuasicoherent] : IsIso (complexMap U hU N c K) := by |
| 113 | let (i : ι) : IsIso ((complexMap U hU N c K).f i) := comparison_isIso U hU N (K.X i) |
| 114 | exact HomologicalComplex.Hom.isIso_of_components _ |
| 115 | |
| 116 | def complexIso {ι : Type*} (c : ComplexShape ι) |
| 117 | (K : HomologicalComplex X.Modulesᵒᵖ c) |
| 118 | [∀ i, (K.X i).unop.IsQuasicoherent] : |
| 119 | ((sectionHom U N).mapHomologicalComplex c).obj K ≅ |
| 120 | ((algebraicHom U hU N).mapHomologicalComplex c).obj K := by |
| 121 | letI := complexMap_isIso U hU N c K |
| 122 | exact asIso (complexMap U hU N c K) |
| 123 | |
| 124 | end |
| 125 | |
| 126 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.LinearHom |