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.Comparison.Betti.FlasqueBiproduct |
| 2 | import Mathlib |
| 3 | |
| 4 | /-! # Injective Flasque -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Comparison.Betti.InjectiveFlasque |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Injective complex sheaves are flasque |
| 12 | |
| 13 | The free complex sheaf represented by an open set represents its actual |
| 14 | section module. Inclusions of opens induce monomorphisms of these free |
| 15 | sheaves, so injectivity gives extensions of sections. This is the complex |
| 16 | coefficient version of the argument in `Affine/AffineVanishing`. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite _root_.TopologicalSpace |
| 20 | |
| 21 | attribute [local instance] AlgebraicTopology.Cohomology.Singular.StalkExactnessAt.stalkModulesForget₂PreservesFilteredColimits |
| 22 | AlgebraicTopology.Cohomology.Singular.StalkExactnessAt.stalkModulesForgetPreservesFilteredColimits |
| 23 | |
| 24 | local instance complexModuleLimits : HasLimitsOfSize.{0, 0} (ModuleCat.{0} ℂ) := |
| 25 | ModuleCat.hasLimitsOfSize.{0, 0, 0, 0} |
| 26 | |
| 27 | instance freeComplexPreservesMonomorphisms : (ModuleCat.free ℂ).PreservesMonomorphisms where |
| 28 | preserves f hf := by |
| 29 | apply (ModuleCat.mono_iff_injective _).mpr |
| 30 | exact Finsupp.mapDomain_injective ((CategoryTheory.mono_iff_injective f).mp hf) |
| 31 | |
| 32 | variable {X : TopCat.{0}} |
| 33 | |
| 34 | def freeComplexRepresentable (U : Opens X) : FlasqueBiproduct.ComplexSheaves X := |
| 35 | (presheafToSheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ)).obj |
| 36 | (yoneda.obj U ⋙ ModuleCat.free ℂ) |
| 37 | |
| 38 | def freeComplexRepresentableMap {U V : Opens X} (i : U ⟶ V) : |
| 39 | freeComplexRepresentable U ⟶ freeComplexRepresentable V := |
| 40 | (presheafToSheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ)).map |
| 41 | (Functor.whiskerRight (yoneda.map i) (ModuleCat.free ℂ)) |
| 42 | |
| 43 | def freeComplexRepresentableHomEquiv {U : Opens X} {F : FlasqueBiproduct.ComplexSheaves X} : |
| 44 | (freeComplexRepresentable U ⟶ F) ≃ F.obj.obj (op U) := |
| 45 | ((sheafificationAdjunction (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ)).homEquiv _ _).trans |
| 46 | (((ModuleCat.adj ℂ).whiskerRight (Opens X)ᵒᵖ).homEquiv _ _ |>.trans yonedaEquiv) |
| 47 | |
| 48 | theorem freeComplexRepresentableMap_mono {U V : Opens X} (i : U ⟶ V) : |
| 49 | Mono (freeComplexRepresentableMap i) := by |
| 50 | let S := presheafToSheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ) |
| 51 | have : PreservesFiniteLimits S := inferInstance |
| 52 | have : S.PreservesMonomorphisms := inferInstance |
| 53 | exact Functor.map_mono S (Functor.whiskerRight (yoneda.map i) (ModuleCat.free ℂ)) |
| 54 | |
| 55 | theorem freeComplexRepresentableHomEquiv_map {U V : Opens X} (i : U ⟶ V) |
| 56 | {F : FlasqueBiproduct.ComplexSheaves X} (f : freeComplexRepresentable V ⟶ F) : |
| 57 | freeComplexRepresentableHomEquiv (freeComplexRepresentableMap i ≫ f) = |
| 58 | F.obj.map i.op (freeComplexRepresentableHomEquiv f) := by |
| 59 | let a₁ := sheafificationAdjunction (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ) |
| 60 | let a₂ := (ModuleCat.adj ℂ).whiskerRight (Opens X)ᵒᵖ |
| 61 | let α := Functor.whiskerRight (yoneda.map i) (ModuleCat.free ℂ) |
| 62 | have h₁ := a₁.homEquiv_naturality_left α f |
| 63 | have h₂ := a₂.homEquiv_naturality_left (yoneda.map i) (a₁.homEquiv _ _ f) |
| 64 | change yonedaEquiv (a₂.homEquiv _ _ (a₁.homEquiv _ _ |
| 65 | ((presheafToSheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ)).map α ≫ f))) = _ |
| 66 | erw [h₁, h₂] |
| 67 | exact (yonedaEquiv_naturality _ _).symm |
| 68 | |
| 69 | /-- Injectivity extends every actual section along every inclusion of opens. -/ |
| 70 | theorem injective_flasque (F : FlasqueBiproduct.ComplexSheaves X) [Injective F] : TopCat.Sheaf.IsFlasque F := by |
| 71 | constructor |
| 72 | intro U V i |
| 73 | apply (ModuleCat.epi_iff_surjective _).mpr |
| 74 | intro s |
| 75 | let g : freeComplexRepresentable V.unop ⟶ F := freeComplexRepresentableHomEquiv.symm s |
| 76 | let m : freeComplexRepresentable V.unop ⟶ freeComplexRepresentable U.unop := |
| 77 | freeComplexRepresentableMap i.unop |
| 78 | have : Mono m := freeComplexRepresentableMap_mono i.unop |
| 79 | let h : freeComplexRepresentable U.unop ⟶ F := Injective.factorThru g m |
| 80 | refine ⟨freeComplexRepresentableHomEquiv h, ?_⟩ |
| 81 | have hnat : F.obj.map i (freeComplexRepresentableHomEquiv h) = |
| 82 | freeComplexRepresentableHomEquiv (m ≫ h) := by |
| 83 | exact (freeComplexRepresentableHomEquiv_map i.unop h).symm |
| 84 | rw [hnat, Injective.comp_factorThru] |
| 85 | exact Equiv.apply_symm_apply _ _ |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicGeometry.Comparison.Betti.InjectiveFlasque |