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.Topology.Sheaves.Functors |
| 2 | import Mathlib.Topology.Sheaves.Abelian |
| 3 | import Mathlib.CategoryTheory.Sites.ConstantSheaf |
| 4 | import Mathlib.Algebra.Category.Grp.Abelian |
| 5 | import Mathlib.Algebra.Category.Grp.FilteredColimits |
| 6 | import Mathlib.CategoryTheory.Sites.LeftExact |
| 7 | import Mathlib.CategoryTheory.Adjunction.Additive |
| 8 | import Mathlib.CategoryTheory.Adjunction.CompositionIso |
| 9 | |
| 10 | /-! # Sheaf Inverse Image -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Constant.SheafInverseImage |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | /-! The inverse image of a constant abelian sheaf is constant, via the actual top-section adjunctions. Inverse image is additive and exact. -/ |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 18 | universe u |
| 19 | |
| 20 | variable {X Y : TopCat.{u}} |
| 21 | |
| 22 | def additivePushforwardTopIso (f : X ⟶ Y) : |
| 23 | TopCat.Sheaf.pushforward AddCommGrpCat.{u} f ⋙ |
| 24 | (sheafSections (Opens.grothendieckTopology Y) AddCommGrpCat.{u}).obj (op ⊤) ≅ |
| 25 | (sheafSections (Opens.grothendieckTopology X) AddCommGrpCat.{u}).obj (op ⊤) := |
| 26 | NatIso.ofComponents (fun _ => Iso.refl _) (by intros; rfl) |
| 27 | |
| 28 | def constantSheafInverseImageIso (f : X ⟶ Y) : |
| 29 | constantSheaf (Opens.grothendieckTopology Y) AddCommGrpCat.{u} ⋙ |
| 30 | TopCat.Sheaf.pullback AddCommGrpCat.{u} f ≅ |
| 31 | constantSheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u} := |
| 32 | Adjunction.leftAdjointCompIso |
| 33 | (constantSheafAdj (Opens.grothendieckTopology Y) AddCommGrpCat.{u} isTerminalTop) |
| 34 | (TopCat.Sheaf.pullbackPushforwardAdjunction AddCommGrpCat.{u} f) |
| 35 | (constantSheafAdj (Opens.grothendieckTopology X) AddCommGrpCat.{u} isTerminalTop) |
| 36 | (additivePushforwardTopIso f) |
| 37 | |
| 38 | instance additiveSheafInverseImage_preservesFiniteLimits (f : X ⟶ Y) : |
| 39 | PreservesFiniteLimits (TopCat.Sheaf.pullback AddCommGrpCat.{u} f) := by |
| 40 | change PreservesFiniteLimits ((Opens.map f).sheafPullback AddCommGrpCat.{u} |
| 41 | (Opens.grothendieckTopology Y) (Opens.grothendieckTopology X)) |
| 42 | have : ReflectsLimits (forget AddCommGrpCat.{u}) := |
| 43 | reflectsLimits_of_reflectsIsomorphisms |
| 44 | have : PreservesFiniteLimits |
| 45 | ((Opens.map f).op.lan : ((Opens Y)ᵒᵖ ⥤ AddCommGrpCat.{u}) ⥤ |
| 46 | ((Opens X)ᵒᵖ ⥤ AddCommGrpCat.{u})) := |
| 47 | lan_preservesFiniteLimits_of_flat AddCommGrpCat.{u} (Opens.map f) |
| 48 | exact Functor.sheafPullbackConstruction.preservesFiniteLimits |
| 49 | (Opens.map f) AddCommGrpCat.{u} (Opens.grothendieckTopology Y) (Opens.grothendieckTopology X) |
| 50 | |
| 51 | instance additiveSheafInverseImage_additive (f : X ⟶ Y) : |
| 52 | (TopCat.Sheaf.pullback AddCommGrpCat.{u} f).Additive := |
| 53 | Functor.additive_of_preserves_binary_products _ |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Constant.SheafInverseImage |