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.DivisorClass.Chern.Sheaf.ResolutionClasses |
| 2 | import Mathlib.Topology.Sheaves.Flasque |
| 3 | import Mathlib.Topology.Sheaves.SheafOfFunctions |
| 4 | |
| 5 | /-! # Flasque Injectives -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.Abelian.FlasqueInjectives |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Injective abelian sheaves are flasque via the actual sheaf of stalk families. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite _root_.TopCat.Presheaf |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | set_option backward.defeqAttrib.useBackward true |
| 18 | |
| 19 | variable {X : TopCat.{0}} |
| 20 | |
| 21 | def abelianStalkFamilyPresheaf (F : TopCat.Sheaf AddCommGrpCat.{0} X) : X.Presheaf AddCommGrpCat.{0} where |
| 22 | obj U := AddCommGrpCat.of (∀ x : U.unop, ↥(stalk F.obj x.val)) |
| 23 | map i := AddCommGrpCat.ofHom { |
| 24 | toFun s x := s (i.unop x) |
| 25 | map_zero' := rfl |
| 26 | map_add' := fun _ _ => rfl } |
| 27 | map_id _ := by |
| 28 | apply AddCommGrpCat.hom_ext |
| 29 | apply AddMonoidHom.ext |
| 30 | intro s |
| 31 | rfl |
| 32 | map_comp _ _ := by |
| 33 | apply AddCommGrpCat.hom_ext |
| 34 | apply AddMonoidHom.ext |
| 35 | intro s |
| 36 | rfl |
| 37 | |
| 38 | theorem abelianStalkFamilyPresheaf_isSheaf (F : TopCat.Sheaf AddCommGrpCat.{0} X) : |
| 39 | (abelianStalkFamilyPresheaf F).IsSheaf := by |
| 40 | apply (TopCat.Presheaf.isSheaf_iff_isSheaf_comp (forget AddCommGrpCat) _).mpr |
| 41 | exact TopCat.Presheaf.toTypes_isSheaf X (fun x => ↥(stalk F.obj x)) |
| 42 | |
| 43 | def abelianStalkFamilySheaf (F : TopCat.Sheaf AddCommGrpCat.{0} X) : TopCat.Sheaf AddCommGrpCat.{0} X := |
| 44 | ⟨abelianStalkFamilyPresheaf F, abelianStalkFamilyPresheaf_isSheaf F⟩ |
| 45 | |
| 46 | theorem abelianStalkFamilySheaf_isFlasque (F : TopCat.Sheaf AddCommGrpCat.{0} X) : |
| 47 | TopCat.Sheaf.IsFlasque (abelianStalkFamilySheaf F) where |
| 48 | epi {U V} i := by |
| 49 | classical |
| 50 | apply (AddCommGrpCat.epi_iff_surjective _).mpr |
| 51 | intro s |
| 52 | refine ⟨fun x => if hx : x.val ∈ V.unop then s ⟨x.val, hx⟩ else 0, ?_⟩ |
| 53 | funext x |
| 54 | change (if hx : x.val ∈ V.unop then s ⟨x.val, hx⟩ else 0) = s x |
| 55 | rw [dite_eq_left x.property] |
| 56 | |
| 57 | def abelianStalkFamilyEmbedding (F : TopCat.Sheaf AddCommGrpCat.{0} X) : F ⟶ abelianStalkFamilySheaf F := |
| 58 | ObjectProperty.homMk { |
| 59 | app U := AddCommGrpCat.ofHom { |
| 60 | toFun s x := germ F.obj U.unop x.val x.property s |
| 61 | map_zero' := by funext x; exact map_zero _ |
| 62 | map_add' := by intro s t; funext x; exact map_add _ _ _ } |
| 63 | naturality := by |
| 64 | intro U V i |
| 65 | apply AddCommGrpCat.hom_ext |
| 66 | apply AddMonoidHom.ext |
| 67 | intro s |
| 68 | funext x |
| 69 | exact ConcreteCategory.congr_hom (germ_res F.obj i.unop x.val x.property) s } |
| 70 | |
| 71 | theorem abelianStalkFamilyEmbedding_mono (F : TopCat.Sheaf AddCommGrpCat.{0} X) : |
| 72 | Mono (abelianStalkFamilyEmbedding F) := by |
| 73 | apply (CategoryTheory.Sheaf.Hom.mono_iff_presheaf_mono _ _ _).mpr |
| 74 | apply (NatTrans.mono_iff_mono_app _).mpr |
| 75 | intro U |
| 76 | apply (AddCommGrpCat.mono_iff_injective _).mpr |
| 77 | intro s t h |
| 78 | apply section_ext F U.unop |
| 79 | intro x hx |
| 80 | exact congrFun h ⟨x, hx⟩ |
| 81 | |
| 82 | theorem abelianSheafFlasque_of_retract {F G : TopCat.Sheaf AddCommGrpCat.{0} X} |
| 83 | (i : F ⟶ G) (r : G ⟶ F) (hir : i ≫ r = 𝟙 F) [TopCat.Sheaf.IsFlasque G] : |
| 84 | TopCat.Sheaf.IsFlasque F where |
| 85 | epi {U V} j := by |
| 86 | have hV : i.hom.app V ≫ r.hom.app V = 𝟙 _ := congrArg (fun f => f.hom.app V) hir |
| 87 | have : Epi (r.hom.app V) := (show SplitEpi (r.hom.app V) from |
| 88 | { section_ := i.hom.app V, id := hV }).epi |
| 89 | have : Epi (r.hom.app U ≫ F.obj.map j) := by |
| 90 | rw [← r.hom.naturality] |
| 91 | infer_instance |
| 92 | exact epi_of_epi (r.hom.app U) (F.obj.map j) |
| 93 | |
| 94 | theorem injectiveAbelianSheaf_isFlasque (F : TopCat.Sheaf AddCommGrpCat.{0} X) [Injective F] : |
| 95 | TopCat.Sheaf.IsFlasque F := by |
| 96 | have := abelianStalkFamilyEmbedding_mono F |
| 97 | have := abelianStalkFamilySheaf_isFlasque F |
| 98 | exact abelianSheafFlasque_of_retract (abelianStalkFamilyEmbedding F) |
| 99 | (Injective.factorThru (𝟙 F) (abelianStalkFamilyEmbedding F)) |
| 100 | (Injective.comp_factorThru (𝟙 F) (abelianStalkFamilyEmbedding F)) |
| 101 | |
| 102 | end |
| 103 | |
| 104 | end OAI.AlgebraicGeometry.DivisorClass.Chern.Abelian.FlasqueInjectives |