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.Sheaf.PushforwardInjective |
| 2 | import Mathlib.Topology.Sheaves.Abelian |
| 3 | import Mathlib.Algebra.Category.Grp.AB |
| 4 | import Mathlib.Algebra.Homology.ShortComplex.ExactFunctor |
| 5 | |
| 6 | /-! # Additive Pushforward -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Closed.AdditivePushforward.Cech |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Direct image along a closed embedding is exact for actual abelian sheaves, with its original stalk maps. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 15 | open _root_.TopCat.Presheaf |
| 16 | |
| 17 | def additiveSheafStalk (X : TopCat.{0}) (x : X) : |
| 18 | TopCat.Sheaf AddCommGrpCat.{0} X ⥤ AddCommGrpCat.{0} := |
| 19 | TopCat.Sheaf.forget AddCommGrpCat X ⋙ TopCat.Presheaf.stalkFunctor AddCommGrpCat x |
| 20 | |
| 21 | instance additiveSheafStalk_additive (X : TopCat.{0}) (x : X) : |
| 22 | (additiveSheafStalk X x).Additive := by |
| 23 | constructor |
| 24 | intro F G φ ψ |
| 25 | change (TopCat.Presheaf.stalkFunctor AddCommGrpCat x).map (φ.hom + ψ.hom) = |
| 26 | (TopCat.Presheaf.stalkFunctor AddCommGrpCat x).map φ.hom + |
| 27 | (TopCat.Presheaf.stalkFunctor AddCommGrpCat x).map ψ.hom |
| 28 | exact (TopCat.Presheaf.stalkFunctor AddCommGrpCat x).map_add |
| 29 | |
| 30 | variable {X Y : TopCat.{0}} (f : X ⟶ Y) |
| 31 | |
| 32 | theorem additivePushforwardStalk_naturality |
| 33 | {F G : TopCat.Presheaf AddCommGrpCat.{0} X} (φ : F ⟶ G) (x : X) : |
| 34 | (TopCat.Presheaf.stalkFunctor AddCommGrpCat (f x)).map |
| 35 | ((TopCat.Presheaf.pushforward AddCommGrpCat f).map φ) ≫ |
| 36 | G.stalkPushforward AddCommGrpCat f x = |
| 37 | F.stalkPushforward AddCommGrpCat f x ≫ |
| 38 | (TopCat.Presheaf.stalkFunctor AddCommGrpCat x).map φ := by |
| 39 | apply ((TopCat.Presheaf.pushforward AddCommGrpCat f).obj F).stalk_hom_ext |
| 40 | intro U hx |
| 41 | erw [← Category.assoc, TopCat.Presheaf.stalkFunctor_map_germ, Category.assoc, |
| 42 | TopCat.Presheaf.stalkPushforward_germ, ← Category.assoc, |
| 43 | TopCat.Presheaf.stalkPushforward_germ, TopCat.Presheaf.stalkFunctor_map_germ] |
| 44 | rfl |
| 45 | |
| 46 | def additivePushforwardStalkIso (hf : Topology.IsInducing f) (x : X) : |
| 47 | TopCat.Sheaf.pushforward AddCommGrpCat f ⋙ additiveSheafStalk Y (f x) ≅ |
| 48 | additiveSheafStalk X x := by |
| 49 | exact NatIso.ofComponents (fun F => |
| 50 | @asIso _ _ _ _ (TopCat.Presheaf.stalkPushforward AddCommGrpCat f F.obj x) |
| 51 | (TopCat.Presheaf.stalkPushforward.stalkPushforward_iso_of_isInducing AddCommGrpCat hf F.obj x)) |
| 52 | (fun φ => additivePushforwardStalk_naturality f φ.hom x) |
| 53 | |
| 54 | theorem closedAdditivePushforwardStalkZero (hclosed : IsClosed (Set.range f)) |
| 55 | (F : TopCat.Sheaf AddCommGrpCat.{0} X) (y : Y) (hy : y ∉ Set.range f) : |
| 56 | IsZero ((additiveSheafStalk Y y).obj ((TopCat.Sheaf.pushforward AddCommGrpCat f).obj F)) := by |
| 57 | let P : TopCat.Presheaf AddCommGrpCat.{0} Y := ((TopCat.Sheaf.pushforward AddCommGrpCat f).obj F).obj |
| 58 | let U : Opens Y := ⟨(Set.range f)ᶜ, hclosed.isOpen_compl⟩ |
| 59 | change IsZero (P.stalk y) |
| 60 | rw [IsZero.iff_id_eq_zero] |
| 61 | apply P.stalk_hom_ext |
| 62 | intro V hyV |
| 63 | simp only [Category.comp_id, comp_zero] |
| 64 | have hempty : (Opens.map f).obj (V ⊓ U) = ⊥ := by |
| 65 | ext x |
| 66 | constructor |
| 67 | · intro hx |
| 68 | change f x ∈ V ∧ f x ∉ Set.range f at hx |
| 69 | exact (hx.2 ⟨x, rfl⟩).elim |
| 70 | · intro hx |
| 71 | exact hx.elim |
| 72 | have hz : IsZero (P.obj (op (V ⊓ U))) := (F.isTerminalOfEqEmpty hempty).isZero |
| 73 | have hw : P.germ (V ⊓ U) y ⟨hyV, hy⟩ = 0 := hz.eq_of_src _ _ |
| 74 | have hr := P.germ_res (homOfLE inf_le_left : V ⊓ U ⟶ V) y ⟨hyV, hy⟩ |
| 75 | exact hr.symm.trans (by rw [hw, comp_zero]) |
| 76 | |
| 77 | theorem closedAdditivePushforward_map_exact (hf : Topology.IsInducing f) |
| 78 | (hclosed : IsClosed (Set.range f)) |
| 79 | (S : ShortComplex (TopCat.Sheaf AddCommGrpCat.{0} X)) (hS : S.Exact) : |
| 80 | (S.map (TopCat.Sheaf.pushforward AddCommGrpCat f)).Exact := by |
| 81 | apply (TopCat.Sheaf.exact_iff_stalkFunctor_map_exact _).mpr |
| 82 | intro y |
| 83 | by_cases hy : y ∈ Set.range f |
| 84 | · obtain ⟨x, rfl⟩ := hy |
| 85 | have hs : (S.map (additiveSheafStalk X x)).Exact := |
| 86 | (TopCat.Sheaf.exact_iff_stalkFunctor_map_exact S).mp hS x |
| 87 | exact (ShortComplex.exact_iff_of_iso |
| 88 | (S.mapNatIso (additivePushforwardStalkIso f hf x))).mpr hs |
| 89 | · exact ShortComplex.exact_of_isZero_X₂ _ (closedAdditivePushforwardStalkZero f hclosed S.X₂ y hy) |
| 90 | |
| 91 | theorem closedAdditivePushforwardExact (hf : Topology.IsInducing f) |
| 92 | (hclosed : IsClosed (Set.range f)) : |
| 93 | PreservesFiniteLimits (TopCat.Sheaf.pushforward AddCommGrpCat.{0} f) ∧ |
| 94 | PreservesFiniteColimits (TopCat.Sheaf.pushforward AddCommGrpCat.{0} f) := |
| 95 | ((TopCat.Sheaf.pushforward AddCommGrpCat.{0} f).exact_tfae.out 2 4).mp |
| 96 | (closedAdditivePushforward_map_exact f hf hclosed) |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicGeometry.Comparison.Betti.Closed.AdditivePushforward.Cech |