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.ArithmeticGeometry.OrdinaryLocus.Openness.SkyscraperRestriction |
| 2 | import Mathlib.CategoryTheory.Preadditive.Injective.Preserves |
| 3 | |
| 4 | /-! # Open Sheaf Injectives -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.OpenSheafInjectives.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Restriction to an open subspace preserves injective abelian sheaves. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {X : TopCat.{u}} (U : Opens X) |
| 17 | |
| 18 | theorem injective_openRestrictSkyscraper (x : X) (I : AddCommGrpCat.{u}) [Injective I] : |
| 19 | Injective (U.sheafRestrict.obj ((AbelianSheafInjectives.Construction.abelianSheafSkyscraper X x).obj I)) := by |
| 20 | by_cases hx : x ∈ U |
| 21 | · exact Injective.of_iso (SkyscraperRestriction.Construction.openRestrictSkyscraperIso U x I hx).symm |
| 22 | (AbelianSheafInjectives.Construction.injective_abelianSheafSkyscraper (TopCat.of U) ⟨x, hx⟩ I) |
| 23 | · exact (SkyscraperRestriction.Construction.openRestrictSkyscraper_isZero U x I hx).injective |
| 24 | |
| 25 | theorem injective_openRestrict (F : AbelianSheafInjectives.Construction.AbelianSheaves X) [Injective F] : |
| 26 | Injective (U.sheafRestrict.obj F) := by |
| 27 | have hI (x : X) : Injective |
| 28 | (U.sheafRestrict.obj (AbelianSheafInjectives.Construction.abelianSheafInjectiveFamily X F x)) := |
| 29 | injective_openRestrictSkyscraper U x _ |
| 30 | have hprod : Injective (U.sheafRestrict.obj (∏ᶜ AbelianSheafInjectives.Construction.abelianSheafInjectiveFamily X F)) := |
| 31 | Injective.of_iso (PreservesProduct.iso U.sheafRestrict (AbelianSheafInjectives.Construction.abelianSheafInjectiveFamily X F)).symm |
| 32 | inferInstance |
| 33 | let r : Retract F (∏ᶜ AbelianSheafInjectives.Construction.abelianSheafInjectiveFamily X F) := |
| 34 | { i := AbelianSheafInjectives.Construction.abelianSheafToInjective X F |
| 35 | r := Injective.factorThru (𝟙 F) (AbelianSheafInjectives.Construction.abelianSheafToInjective X F) |
| 36 | retract := Injective.comp_factorThru _ _ } |
| 37 | exact (r.map U.sheafRestrict).injective |
| 38 | |
| 39 | theorem openRestrict_preservesInjectiveObjects : |
| 40 | (U.sheafRestrict (C := AddCommGrpCat.{u})).PreservesInjectiveObjects where |
| 41 | injective_obj h := @injective_openRestrict _ U _ h |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.OpenSheafInjectives.Construction |