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 |
| 2 | |
| 3 | /-! # Sheafification Basis -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Comparison.Betti.SheafificationBasis |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! An isomorphism on a basis of opens induces an isomorphism after sheafification. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.TopologicalSpace Opposite |
| 12 | |
| 13 | variable {X : TopCat.{0}} {F G : X.Presheaf AddCommGrpCat.{0}} |
| 14 | (a : F ⟶ G) {B : Set (Opens X)} (hB : Opens.IsBasis B) |
| 15 | (ha : ∀ U ∈ B, IsIso (a.app (op U))) |
| 16 | |
| 17 | include hB ha |
| 18 | |
| 19 | theorem stalk_bijective (x : X) : |
| 20 | Function.Bijective ((TopCat.Presheaf.stalkFunctor AddCommGrpCat x).map a) := by |
| 21 | constructor |
| 22 | · exact TopCat.Presheaf.stalkFunctor_map_injective_of_isBasis hB |
| 23 | (fun U hU => by |
| 24 | have := ha U hU |
| 25 | exact (ConcreteCategory.bijective_of_isIso (a.app (op U))).injective) x |
| 26 | · intro t |
| 27 | obtain ⟨U, hxU, hU, s, hs⟩ := TopCat.Presheaf.exists_mem_germ_eq_of_isBasis hB G x t |
| 28 | have : IsIso (a.app (op U)) := ha U hU |
| 29 | obtain ⟨r, hr⟩ := (ConcreteCategory.bijective_of_isIso (a.app (op U))).surjective s |
| 30 | refine ⟨F.germ U x hxU r, ?_⟩ |
| 31 | rw [TopCat.Presheaf.stalkFunctor_map_germ_apply, hr] |
| 32 | exact hs |
| 33 | |
| 34 | theorem stalk_isIso (x : X) : IsIso ((TopCat.Presheaf.stalkFunctor AddCommGrpCat x).map a) := |
| 35 | (ConcreteCategory.isIso_iff_bijective _).mpr (stalk_bijective a hB ha x) |
| 36 | |
| 37 | theorem sheafifyMap_stalk_isIso (x : X) : |
| 38 | IsIso ((TopCat.Presheaf.stalkFunctor AddCommGrpCat x).map |
| 39 | (sheafifyMap (Opens.grothendieckTopology X) a)) := by |
| 40 | let T := TopCat.Presheaf.stalkFunctor AddCommGrpCat.{0} x |
| 41 | let J := Opens.grothendieckTopology X |
| 42 | have : IsIso (T.map a) := stalk_isIso a hB ha x |
| 43 | have : IsIso (T.map (toSheafify J F)) := TopCat.Presheaf.stalkFunctor_map_unit_toSheafify_isIso x _ F |
| 44 | have : IsIso (T.map (toSheafify J G)) := TopCat.Presheaf.stalkFunctor_map_unit_toSheafify_isIso x _ G |
| 45 | have he : T.map a ≫ T.map (toSheafify J G) = |
| 46 | T.map (toSheafify J F) ≫ T.map (sheafifyMap J a) := by |
| 47 | rw [← T.map_comp, ← T.map_comp, toSheafify_naturality] |
| 48 | have hi : IsIso (T.map (toSheafify J F) ≫ T.map (sheafifyMap J a)) := by |
| 49 | rw [← he] |
| 50 | infer_instance |
| 51 | exact (isIso_comp_left_iff (T.map (toSheafify J F)) (T.map (sheafifyMap J a))).mp hi |
| 52 | |
| 53 | theorem map_isIso : IsIso ((presheafToSheaf (Opens.grothendieckTopology X) AddCommGrpCat).map a) := by |
| 54 | have : ∀ x : X, IsIso ((TopCat.Presheaf.stalkFunctor AddCommGrpCat x).map |
| 55 | (sheafifyMap (Opens.grothendieckTopology X) a)) := sheafifyMap_stalk_isIso a hB ha |
| 56 | exact TopCat.Presheaf.isIso_of_stalkFunctor_map_iso |
| 57 | ((presheafToSheaf (Opens.grothendieckTopology X) AddCommGrpCat).map a) |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.Comparison.Betti.SheafificationBasis |