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.ReferenceFamily.Cech.ModuleAugmentation |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.Cech.Resolution |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.ShortExact |
| 4 | |
| 5 | /-! # Module Cycle Sequence -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Cech.ModuleCycleSequence |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! The exactness of the original Cech sheaf resolution is reflected |
| 14 | into its actual algebraic module enhancement. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 17 | open _root_.TopCat.Sheaf |
| 18 | |
| 19 | theorem shortComplexExact_of_equal_maps {C : Type*} [Category* C] [Abelian C] |
| 20 | {A B D : C} {f f' : A ⟶ B} {g g' : B ⟶ D} |
| 21 | {w : f ≫ g = 0} {w' : f' ≫ g' = 0} (hf : f = f') (hg : g = g') |
| 22 | (h : (ShortComplex.mk f' g' w').Exact) : (ShortComplex.mk f g w).Exact := by |
| 23 | subst f' |
| 24 | subst g' |
| 25 | exact h |
| 26 | |
| 27 | variable (X : Scheme.{0}) |
| 28 | |
| 29 | def moduleAbelianForget : X.Modules ⥤ TopCat.Sheaf AddCommGrpCat.{0} X := |
| 30 | SheafOfModules.toSheaf X.ringCatSheaf |
| 31 | |
| 32 | instance moduleAbelianForget_additive : (moduleAbelianForget X).Additive where |
| 33 | map_add := rfl |
| 34 | |
| 35 | instance moduleAbelianForget_preservesZeroMorphisms : (moduleAbelianForget X).PreservesZeroMorphisms where |
| 36 | map_zero _ _ := rfl |
| 37 | |
| 38 | instance moduleAbelianForget_faithful : (moduleAbelianForget X).Faithful where |
| 39 | map_injective h := by |
| 40 | apply Scheme.Modules.hom_ext |
| 41 | intro U |
| 42 | exact congrArg (fun f => f.hom.app (.op U)) h |
| 43 | |
| 44 | instance moduleAbelianForget_preservesFiniteLimits : PreservesFiniteLimits (moduleAbelianForget X) := |
| 45 | inferInstanceAs (PreservesFiniteLimits (SheafOfModules.toSheaf.{0} X.ringCatSheaf)) |
| 46 | |
| 47 | instance moduleAbelianForget_preservesFiniteColimits : PreservesFiniteColimits (moduleAbelianForget X) := |
| 48 | ModuleHomOf.moduleSheaf_toSheaf_preservesFiniteColimits X |
| 49 | |
| 50 | theorem moduleExact_of_underlying (S : ShortComplex X.Modules) |
| 51 | (h : (S.map (moduleAbelianForget X)).Exact) : S.Exact := |
| 52 | (S.exact_map_iff_of_faithful (moduleAbelianForget X)).mp h |
| 53 | |
| 54 | variable {I : Type} (U : I → X.Opens) (hU : iSup U = ⊤) |
| 55 | include hU |
| 56 | |
| 57 | theorem cechModuleAugmentedShortComplex_exact : (ModuleAugmentation.cechModuleAugmentedShortComplex X U).Exact := by |
| 58 | apply moduleExact_of_underlying X |
| 59 | change (ShortComplex.mk ((moduleAbelianForget X).map (ModuleAugmentation.cechModuleAugmentation X U)) |
| 60 | ((moduleAbelianForget X).map (ModuleDifferential.cechModuleDifferential X U 0)) _).Exact |
| 61 | exact shortComplexExact_of_equal_maps (ModuleAugmentation.cechModuleAugmentation_underlying X U) |
| 62 | (ModuleDifferential.cechModuleDifferential_underlying X U 0) |
| 63 | (SheafCohomology.Cech.ZeroExact.TopCat.Sheaf.cechAugmentedShortComplex_exact (TermModules.structureAbelianSheaf X) U hU) |
| 64 | |
| 65 | theorem cechModuleShortComplex_exact (n : ℕ) : (ModuleAugmentation.cechModuleShortComplex X U n).Exact := by |
| 66 | apply moduleExact_of_underlying X |
| 67 | change (ShortComplex.mk ((moduleAbelianForget X).map (ModuleDifferential.cechModuleDifferential X U n)) |
| 68 | ((moduleAbelianForget X).map (ModuleDifferential.cechModuleDifferential X U (n + 1))) _).Exact |
| 69 | exact shortComplexExact_of_equal_maps (ModuleDifferential.cechModuleDifferential_underlying X U n) |
| 70 | (ModuleDifferential.cechModuleDifferential_underlying X U (n + 1)) |
| 71 | (SheafCohomology.Cech.PositiveExact.TopCat.Sheaf.cechShortComplex_exact (TermModules.structureAbelianSheaf X) U hU n) |
| 72 | |
| 73 | theorem cechModuleAugmentation_mono : Mono (ModuleAugmentation.cechModuleAugmentation X U) := by |
| 74 | have h : Mono ((moduleAbelianForget X).map (ModuleAugmentation.cechModuleAugmentation X U)) := |
| 75 | (ModuleAugmentation.cechModuleAugmentation_underlying X U).symm ▸ SheafCohomology.Cech.Resolution.TopCat.Sheaf.cechAugmentation_mono (TermModules.structureAbelianSheaf X) U hU |
| 76 | exact (moduleAbelianForget X).mono_of_mono_map h |
| 77 | |
| 78 | end |
| 79 | |
| 80 | /-! The original degree-one Cech cycles fit into an actual short exact |
| 81 | sequence of algebraic modules. -/ |
| 82 | |
| 83 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 84 | |
| 85 | variable (X : Scheme.{0}) {I : Type} (U : I → X.Opens) |
| 86 | |
| 87 | def cechModuleOneCycles : X.Modules := kernel (ModuleDifferential.cechModuleDifferential X U 1) |
| 88 | |
| 89 | def cechModuleToOneCycles : TermModules.cechTermModule X U 0 ⟶ cechModuleOneCycles X U := |
| 90 | kernel.lift (ModuleDifferential.cechModuleDifferential X U 1) (ModuleDifferential.cechModuleDifferential X U 0) |
| 91 | (ModuleAugmentation.cechModuleDifferential_comp X U 0) |
| 92 | |
| 93 | theorem cechModuleAugmentation_toOneCycles : |
| 94 | ModuleAugmentation.cechModuleAugmentation X U ≫ cechModuleToOneCycles X U = 0 := by |
| 95 | apply (cancel_mono (kernel.ι (ModuleDifferential.cechModuleDifferential X U 1))).mp |
| 96 | have hq : cechModuleToOneCycles X U ≫ kernel.ι (ModuleDifferential.cechModuleDifferential X U 1) = |
| 97 | ModuleDifferential.cechModuleDifferential X U 0 := kernel.lift_ι _ _ _ |
| 98 | exact (Category.assoc _ _ _).trans |
| 99 | ((congrArg (ModuleAugmentation.cechModuleAugmentation X U ≫ ·) hq).trans |
| 100 | ((ModuleAugmentation.cechModuleAugmentation_comp X U).trans (zero_comp).symm)) |
| 101 | |
| 102 | def cechModuleCycleSequence : ShortComplex X.Modules := |
| 103 | ShortComplex.mk (ModuleAugmentation.cechModuleAugmentation X U) (cechModuleToOneCycles X U) |
| 104 | (cechModuleAugmentation_toOneCycles X U) |
| 105 | |
| 106 | def cechModuleCycleSequenceMap : cechModuleCycleSequence X U ⟶ ModuleAugmentation.cechModuleAugmentedShortComplex X U where |
| 107 | τ₁ := 𝟙 _ |
| 108 | τ₂ := 𝟙 _ |
| 109 | τ₃ := kernel.ι (ModuleDifferential.cechModuleDifferential X U 1) |
| 110 | comm₁₂ := (Category.id_comp _).trans (Category.comp_id _).symm |
| 111 | comm₂₃ := (Category.id_comp _).trans (kernel.lift_ι _ _ _).symm |
| 112 | |
| 113 | theorem cechModuleCycleSequence_shortExact (hU : iSup U = ⊤) : |
| 114 | (cechModuleCycleSequence X U).ShortExact := by |
| 115 | have hm : Mono (ModuleAugmentation.cechModuleAugmentation X U) := cechModuleAugmentation_mono X U hU |
| 116 | have he : Epi (cechModuleToOneCycles X U) := |
| 117 | (cechModuleShortComplex_exact X U hU 0).epi_kernelLift |
| 118 | refine { mono_f := hm, epi_g := he, exact := ?_ } |
| 119 | let φ := cechModuleCycleSequenceMap X U |
| 120 | let : Epi φ.τ₁ := inferInstanceAs (Epi (𝟙 (HilbertConstruction.Line.Bundles.structureModule X))) |
| 121 | let : IsIso φ.τ₂ := inferInstanceAs (IsIso (𝟙 (TermModules.cechTermModule X U 0))) |
| 122 | let : Mono φ.τ₃ := inferInstanceAs (Mono (kernel.ι (ModuleDifferential.cechModuleDifferential X U 1))) |
| 123 | exact (ShortComplex.exact_iff_of_epi_of_isIso_of_mono φ).mpr |
| 124 | (cechModuleAugmentedShortComplex_exact X U hU) |
| 125 | |
| 126 | end |
| 127 | |
| 128 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Cech.ModuleCycleSequence |