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.AlgebraicGeometry.Modules.Tilde |
| 2 | import Mathlib.CategoryTheory.Limits.Preserves.FunctorCategory |
| 3 | import Mathlib.CategoryTheory.Limits.Preserves.Limits |
| 4 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.Limits |
| 5 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.Affine.QuasiCoherent |
| 6 | |
| 7 | /-! # Tilde Exact -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.TildeExact |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # Exactness of affine module sheaves for PoincareBundle |
| 15 | |
| 16 | On principal opens, the tilde functor is module localization. These |
| 17 | identifications provide the local finite-limit tests needed to compare |
| 18 | quasi-coherent descent with invariant sheaves among all module sheaves. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | variable {R : CommRingCat.{u}} |
| 26 | |
| 27 | /-- Sections over a principal open, as an abelian group. -/ |
| 28 | def basicSections (r : R) : (Spec R).Modules ⥤ AddCommGrpCat.{u} := |
| 29 | Scheme.Modules.toPresheaf (Spec R) ⋙ |
| 30 | (evaluation _ _).obj (op (PrimeSpectrum.basicOpen r)) |
| 31 | |
| 32 | /-- Sections of an associated sheaf on a principal open are localized modules. -/ |
| 33 | def basicLocalizationEquiv (M : ModuleCat.{u} R) (r : R) : |
| 34 | M.localizedModule (.powers r) ≃ₗ[R] |
| 35 | (modulesSpecToSheaf.obj (tilde M)).obj.obj (op (PrimeSpectrum.basicOpen r)) := |
| 36 | IsLocalizedModule.linearEquiv (.powers r) (M.localizedModuleMkLinearMap (.powers r)) |
| 37 | (tilde.toOpen M (PrimeSpectrum.basicOpen r)).hom |
| 38 | |
| 39 | @[simp] |
| 40 | theorem basicLocalizationEquiv_mk (M : ModuleCat.{u} R) (r : R) (m : M) : |
| 41 | basicLocalizationEquiv M r (M.localizedModuleMkLinearMap (.powers r) m) = |
| 42 | tilde.toOpen M (PrimeSpectrum.basicOpen r) m := |
| 43 | IsLocalizedModule.linearEquiv_apply _ _ _ _ |
| 44 | |
| 45 | /-- The localization identification is natural in the original module. -/ |
| 46 | theorem basicLocalizationEquiv_naturality {M N : ModuleCat.{u} R} (a : M ⟶ N) (r : R) : |
| 47 | (basicLocalizationEquiv N r).toLinearMap ∘ₗ |
| 48 | (ModuleCat.localizedModuleMap (.powers r) a).hom.restrictScalars R = |
| 49 | ((modulesSpecToSheaf.map (tilde.map a)).hom.app |
| 50 | (op (PrimeSpectrum.basicOpen r))).hom ∘ₗ |
| 51 | (basicLocalizationEquiv M r).toLinearMap := by |
| 52 | apply IsLocalizedModule.linearMap_ext (.powers r) |
| 53 | (M.localizedModuleMkLinearMap (.powers r)) |
| 54 | (tilde.toOpen N (PrimeSpectrum.basicOpen r)).hom |
| 55 | ext m |
| 56 | change basicLocalizationEquiv N r |
| 57 | (IsLocalizedModule.map (.powers r) (M.localizedModuleMkLinearMap (.powers r)) |
| 58 | (N.localizedModuleMkLinearMap (.powers r)) a.hom |
| 59 | (M.localizedModuleMkLinearMap (.powers r) m)) = _ |
| 60 | rw [IsLocalizedModule.map_apply, basicLocalizationEquiv_mk] |
| 61 | change tilde.toOpen N (PrimeSpectrum.basicOpen r) (a m) = |
| 62 | ((modulesSpecToSheaf.map (tilde.map a)).hom.app (op (PrimeSpectrum.basicOpen r))) |
| 63 | (basicLocalizationEquiv M r (M.localizedModuleMkLinearMap (.powers r) m)) |
| 64 | rw [basicLocalizationEquiv_mk] |
| 65 | exact congrArg (fun b => b m) (tilde.toOpen_map_app a (PrimeSpectrum.basicOpen r)).symm |
| 66 | |
| 67 | /-- The tilde functor evaluated on a principal open agrees naturally |
| 68 | with the exact module localization functor. -/ |
| 69 | def localizationSectionsIso (r : R) : |
| 70 | ModuleCat.localizedModuleFunctor (.powers r) ⋙ |
| 71 | forget₂ (ModuleCat (Localization.Away r)) AddCommGrpCat.{u} ≅ |
| 72 | tilde.functor R ⋙ basicSections r := by |
| 73 | refine NatIso.ofComponents (fun M => |
| 74 | (basicLocalizationEquiv M r).toAddEquiv.toAddCommGrpIso) ?_ |
| 75 | intro M N a |
| 76 | ext m |
| 77 | exact LinearMap.congr_fun (basicLocalizationEquiv_naturality a r) m |
| 78 | |
| 79 | /-- Evaluation on a principal open preserves limits of module sheaves. -/ |
| 80 | instance basicSections_preservesFiniteLimits (r : R) : |
| 81 | PreservesFiniteLimits (basicSections r) := by |
| 82 | have : PreservesFiniteLimits |
| 83 | ((evaluation (TopologicalSpace.Opens (Spec R))ᵒᵖ AddCommGrpCat.{u}).obj |
| 84 | (op (PrimeSpectrum.basicOpen r))) := ⟨fun _ _ _ => inferInstance⟩ |
| 85 | exact comp_preservesFiniteLimits _ _ |
| 86 | |
| 87 | /-- Associated sheaves preserve finite limits after evaluation on a principal open. -/ |
| 88 | theorem tilde_basicSections_preservesFiniteLimits (r : R) : |
| 89 | PreservesFiniteLimits (tilde.functor R ⋙ basicSections r) := by |
| 90 | have : PreservesFiniteLimits (ModuleCat.localizedModuleFunctor (.powers r) ⋙ |
| 91 | forget₂ (ModuleCat (Localization.Away r)) AddCommGrpCat.{u}) := |
| 92 | comp_preservesFiniteLimits _ _ |
| 93 | exact preservesFiniteLimits_of_natIso (localizationSectionsIso r) |
| 94 | |
| 95 | /-- Principal-open sections jointly detect isomorphisms of module sheaves. -/ |
| 96 | theorem isIso_of_basicSections {M N : (Spec R).Modules} (a : M ⟶ N) |
| 97 | (h : ∀ r : R, IsIso ((basicSections r).map a)) : IsIso a := by |
| 98 | let b : (⟨M.presheaf, M.isSheaf⟩ : TopCat.Sheaf AddCommGrpCat.{u} (Spec R)) ⟶ |
| 99 | (⟨N.presheaf, N.isSheaf⟩ : TopCat.Sheaf AddCommGrpCat.{u} (Spec R)) := |
| 100 | ⟨a.mapPresheaf⟩ |
| 101 | have hb : IsIso b := TopCat.Sheaf.isIso_iff_isIso_basis |
| 102 | PrimeSpectrum.isBasis_basic_opens h |
| 103 | have : IsIso ((Scheme.Modules.toPresheaf (Spec R)).map a) := |
| 104 | @Functor.map_isIso _ _ _ _ _ _ (TopCat.Sheaf.forget AddCommGrpCat.{u} (Spec R)) b hb |
| 105 | exact isIso_of_reflects_iso a (Scheme.Modules.toPresheaf (Spec R)) |
| 106 | |
| 107 | /-- The sheaf associated to a module preserves finite limits. -/ |
| 108 | theorem tilde_preservesFiniteLimits : PreservesFiniteLimits (tilde.functor R) := by |
| 109 | constructor |
| 110 | intro J _ _ |
| 111 | constructor |
| 112 | intro K |
| 113 | have hiso : IsIso (limit.post K (tilde.functor R)) := by |
| 114 | apply isIso_of_basicSections |
| 115 | intro r |
| 116 | have := tilde_basicSections_preservesFiniteLimits r |
| 117 | have hcomp : IsIso ((basicSections r).map (limit.post K (tilde.functor R)) ≫ |
| 118 | limit.post (K ⋙ tilde.functor R) (basicSections r)) := by |
| 119 | rw [limit.post_post] |
| 120 | infer_instance |
| 121 | exact (isIso_comp_right_iff _ |
| 122 | (limit.post (K ⋙ tilde.functor R) (basicSections r))).mp hcomp |
| 123 | exact preservesLimit_of_isIso_post (tilde.functor R) K |
| 124 | |
| 125 | /-- The inclusion of affine quasi-coherent sheaves is an exact functor. -/ |
| 126 | theorem inclusion_preservesFiniteLimits : |
| 127 | PreservesFiniteLimits (Affine.QuasiCoherent.inclusion R) := by |
| 128 | have := tilde_preservesFiniteLimits (R := R) |
| 129 | have : PreservesFiniteLimits ((tildeEquiv (R := R)).inverse ⋙ tilde.functor R) := |
| 130 | comp_preservesFiniteLimits _ _ |
| 131 | let e0 : tilde.functor R ≅ (tildeEquiv (R := R)).functor ⋙ |
| 132 | Affine.QuasiCoherent.inclusion R := Iso.refl _ |
| 133 | let e : (tildeEquiv (R := R)).inverse ⋙ tilde.functor R ≅ |
| 134 | Affine.QuasiCoherent.inclusion R := |
| 135 | Functor.isoWhiskerLeft (tildeEquiv (R := R)).inverse e0 ≪≫ |
| 136 | (Functor.associator _ _ _).symm ≪≫ |
| 137 | Functor.isoWhiskerRight (tildeEquiv (R := R)).counitIso |
| 138 | (Affine.QuasiCoherent.inclusion R) ≪≫ Functor.leftUnitor _ |
| 139 | exact preservesFiniteLimits_of_natIso e |
| 140 | |
| 141 | /-- Flat geometric pullback preserves finite diagrams of quasi-coherent sheaves, |
| 142 | with the limits computed among all module sheaves. -/ |
| 143 | theorem pullback_preserves_qc_diagram {S : CommRingCat.{u}} (f : R ⟶ S) |
| 144 | (hf : f.hom.Flat) {J : Type} [SmallCategory J] [FinCategory J] |
| 145 | (K : J ⥤ Affine.QuasiCoherent.QCSheaves R) : |
| 146 | PreservesLimit (K ⋙ Affine.QuasiCoherent.inclusion R) |
| 147 | (Scheme.Modules.pullback (Spec.map f)) := by |
| 148 | have := inclusion_preservesFiniteLimits (R := R) |
| 149 | have := inclusion_preservesFiniteLimits (R := S) |
| 150 | have := Affine.QuasiCoherent.pullback_preservesFiniteLimits f hf |
| 151 | have : PreservesFiniteLimits (Affine.QuasiCoherent.pullback f ⋙ |
| 152 | Affine.QuasiCoherent.inclusion S) := comp_preservesFiniteLimits _ _ |
| 153 | exact preservesLimit_of_preserves_limit_cone |
| 154 | (isLimitOfPreserves (Affine.QuasiCoherent.inclusion R) (limit.isLimit K)) |
| 155 | (isLimitOfPreserves (Affine.QuasiCoherent.pullback f ⋙ |
| 156 | Affine.QuasiCoherent.inclusion S) (limit.isLimit K)) |
| 157 | |
| 158 | /-- A finite diagram of quasi-coherent sheaves has its raw limit preserved |
| 159 | by flat affine pullback. -/ |
| 160 | theorem pullback_preserves_diagram {S : CommRingCat.{u}} (f : R ⟶ S) |
| 161 | (hf : f.hom.Flat) {J : Type} [SmallCategory J] [FinCategory J] |
| 162 | (K : J ⥤ (Spec R).Modules) (hK : ∀ j, (K.obj j).IsQuasicoherent) : |
| 163 | PreservesLimit K (Scheme.Modules.pullback (Spec.map f)) := by |
| 164 | let P := SheafOfModules.isQuasicoherent (Spec R).ringCatSheaf |
| 165 | let K' := P.lift K hK |
| 166 | have hp : PreservesLimit (P.lift K hK ⋙ P.ι) |
| 167 | (Scheme.Modules.pullback (Spec.map f)) := pullback_preserves_qc_diagram f hf K' |
| 168 | exact (preservesLimit_iff_of_iso_diagram (Scheme.Modules.pullback (Spec.map f)) |
| 169 | (P.liftCompιIso K hK)).mp hp |
| 170 | |
| 171 | /-- The raw equalizer of maps of quasi-coherent sheaves remains quasi-coherent. -/ |
| 172 | theorem limit_isQuasicoherent {J : Type} [SmallCategory J] [FinCategory J] |
| 173 | (K : J ⥤ (Spec R).Modules) (hK : ∀ j, (K.obj j).IsQuasicoherent) : |
| 174 | (limit K).IsQuasicoherent := by |
| 175 | let P := SheafOfModules.isQuasicoherent (Spec R).ringCatSheaf |
| 176 | let K' := P.lift K hK |
| 177 | have := inclusion_preservesFiniteLimits (R := R) |
| 178 | let e : (Affine.QuasiCoherent.inclusion R).obj (limit K') ≅ limit K := |
| 179 | preservesLimitIso (Affine.QuasiCoherent.inclusion R) K' ≪≫ |
| 180 | HasLimit.isoOfNatIso (P.liftCompιIso K hK) |
| 181 | exact P.prop_of_iso e (limit K').property |
| 182 | |
| 183 | end |
| 184 | |
| 185 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.TildeExact |