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.AlgebraicTopology.DeRham.Comparison.RationalSheafForget |
| 2 | import Mathlib.Basic.Complex.Basic |
| 3 | |
| 4 | /-! # Sheaf Forget -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Complex.SheafForget.Flasque |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Exact forgetting of complex scalars on actual sheaves |
| 12 | |
| 13 | Literal postcomposition with the module forgetful functor preserves exactness |
| 14 | and detects flasqueness. This transfers the proved abelian-group sheaf-gluing |
| 15 | theorems to complex coefficients without changing section groups or maps. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite _root_.TopologicalSpace |
| 19 | |
| 20 | abbrev scalarForget : ModuleCat.{0} ℂ ⥤ AddCommGrpCat.{0} := |
| 21 | forget₂ (ModuleCat.{0} ℂ) AddCommGrpCat.{0} |
| 22 | |
| 23 | def sheafForget (X : TopCat.{0}) : |
| 24 | TopCat.Sheaf (ModuleCat.{0} ℂ) X ⥤ TopCat.Sheaf AddCommGrpCat.{0} X := |
| 25 | sheafCompose (Opens.grothendieckTopology X) scalarForget |
| 26 | |
| 27 | instance sheafForgetAdditive (X : TopCat.{0}) : (sheafForget X).Additive where |
| 28 | map_add := rfl |
| 29 | |
| 30 | instance sheafForgetFaithful (X : TopCat.{0}) : (sheafForget X).Faithful := |
| 31 | inferInstanceAs (sheafCompose (Opens.grothendieckTopology X) scalarForget).Faithful |
| 32 | |
| 33 | instance sheafForgetPreservesFiniteLimits (X : TopCat.{0}) : |
| 34 | PreservesFiniteLimits (sheafForget X) where |
| 35 | preservesFiniteLimits J _ _ := by |
| 36 | have : PreservesLimitsOfShape J (sheafForget X ⋙ TopCat.Sheaf.forget AddCommGrpCat.{0} X) := by |
| 37 | change PreservesLimitsOfShape J |
| 38 | (sheafToPresheaf (Opens.grothendieckTopology X) (ModuleCat.{0} ℂ) ⋙ |
| 39 | (Functor.whiskeringRight (Opens X)ᵒᵖ (ModuleCat.{0} ℂ) AddCommGrpCat.{0}).obj scalarForget) |
| 40 | infer_instance |
| 41 | exact preservesLimitsOfShape_of_reflects_of_preserves |
| 42 | (sheafForget X) (TopCat.Sheaf.forget AddCommGrpCat.{0} X) |
| 43 | |
| 44 | instance sheafForgetPreservesEpimorphisms (X : TopCat.{0}) : |
| 45 | (sheafForget X).PreservesEpimorphisms where |
| 46 | preserves {F G} f hf := by |
| 47 | apply (TopCat.Sheaf.isLocallySurjective_iff_epi ((sheafForget X).map f)).mp |
| 48 | have h := (TopCat.Sheaf.isLocallySurjective_iff_epi f).mpr hf |
| 49 | constructor |
| 50 | intro U s |
| 51 | exact h.imageSieve_mem s |
| 52 | |
| 53 | instance sheafForgetPreservesHomology (X : TopCat.{0}) : (sheafForget X).PreservesHomology := |
| 54 | Functor.preservesHomology_of_preservesEpis_and_kernels (sheafForget X) |
| 55 | |
| 56 | instance sheafForgetFlasque {X : TopCat.{0}} |
| 57 | (F : TopCat.Sheaf (ModuleCat.{0} ℂ) X) [TopCat.Sheaf.IsFlasque F] : |
| 58 | TopCat.Sheaf.IsFlasque ((sheafForget X).obj F) where |
| 59 | epi i := by |
| 60 | change Epi (scalarForget.map (F.obj.map i)) |
| 61 | infer_instance |
| 62 | |
| 63 | theorem flasque_of_sheafForget {X : TopCat.{0}} (F : TopCat.Sheaf (ModuleCat.{0} ℂ) X) |
| 64 | [TopCat.Sheaf.IsFlasque ((sheafForget X).obj F)] : TopCat.Sheaf.IsFlasque F where |
| 65 | epi i := by |
| 66 | apply (ModuleCat.epi_iff_surjective _).mpr |
| 67 | exact (AddCommGrpCat.epi_iff_surjective (((sheafForget X).obj F).obj.map i)).mp inferInstance |
| 68 | |
| 69 | theorem sheafForget_shortExact {X : TopCat.{0}} |
| 70 | (S : ShortComplex (TopCat.Sheaf (ModuleCat.{0} ℂ) X)) (hS : S.ShortExact) : |
| 71 | (S.map (sheafForget X)).ShortExact := by |
| 72 | have := hS.mono_f |
| 73 | have := hS.epi_g |
| 74 | exact hS.map (sheafForget X) |
| 75 | |
| 76 | /-- Actual open-section surjectivity for a short exact sequence with flasque kernel. -/ |
| 77 | theorem flasque_section_epi {X : TopCat.{0}} (U : Opens X) |
| 78 | (S : ShortComplex (TopCat.Sheaf (ModuleCat.{0} ℂ) X)) |
| 79 | (hS : S.ShortExact) [TopCat.Sheaf.IsFlasque S.X₁] : Epi (S.g.hom.app (op U)) := by |
| 80 | have hSA := sheafForget_shortExact S hS |
| 81 | have : TopCat.Sheaf.IsFlasque (S.map (sheafForget X)).X₁ := sheafForgetFlasque S.X₁ |
| 82 | have he : Epi ((S.map (sheafForget X)).g.hom.app (op U)) := |
| 83 | TopCat.Sheaf.IsFlasque.epi_of_shortExact hSA |
| 84 | apply (ModuleCat.epi_iff_surjective _).mpr |
| 85 | exact (AddCommGrpCat.epi_iff_surjective _).mp he |
| 86 | |
| 87 | theorem flasque_of_shortExact₁₂ {X : TopCat.{0}} |
| 88 | (S : ShortComplex (TopCat.Sheaf (ModuleCat.{0} ℂ) X)) (hS : S.ShortExact) |
| 89 | [TopCat.Sheaf.IsFlasque S.X₁] [TopCat.Sheaf.IsFlasque S.X₂] : TopCat.Sheaf.IsFlasque S.X₃ := by |
| 90 | have : TopCat.Sheaf.IsFlasque (S.map (sheafForget X)).X₁ := sheafForgetFlasque S.X₁ |
| 91 | have : TopCat.Sheaf.IsFlasque (S.map (sheafForget X)).X₂ := sheafForgetFlasque S.X₂ |
| 92 | have : TopCat.Sheaf.IsFlasque ((sheafForget X).obj S.X₃) := |
| 93 | TopCat.Sheaf.IsFlasque.of_shortExact_of_isFlasque₁₂ (sheafForget_shortExact S hS) |
| 94 | exact flasque_of_sheafForget S.X₃ |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.AlgebraicGeometry.Comparison.Betti.Complex.SheafForget.Flasque |