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.HodgeConjecture.DegreeTwo.LocalStalkQuasiIso |
| 2 | import Mathlib.Topology.Sheaves.SheafOfFunctions |
| 3 | import Mathlib.CategoryTheory.Preadditive.Injective.Basic |
| 4 | |
| 5 | /-! # Godement Embedding -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.GodementEmbedding.Constructions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Every module sheaf embeds into the genuine flasque sheaf of all families of its stalk values. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite _root_.TopCat.Presheaf |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | variable {R : Type} [Ring R] {X : TopCat.{0}} |
| 18 | |
| 19 | def stalkFamilyPresheaf (F : TopCat.Sheaf (ModuleCat.{0} R) X) : X.Presheaf (ModuleCat.{0} R) where |
| 20 | obj U := ModuleCat.of R (∀ x : U.unop, F.presheaf.stalk x.val) |
| 21 | map {U W} i := ModuleCat.ofHom |
| 22 | { toFun := fun s x => s (i.unop x) |
| 23 | map_add' := fun _ _ => rfl |
| 24 | map_smul' := fun _ _ => rfl } |
| 25 | map_id U := by ext s x; rfl |
| 26 | map_comp i j := by ext s x; rfl |
| 27 | |
| 28 | theorem stalkFamilyPresheaf_isSheaf (F : TopCat.Sheaf (ModuleCat.{0} R) X) : |
| 29 | (stalkFamilyPresheaf F).IsSheaf := by |
| 30 | apply (TopCat.Presheaf.isSheaf_iff_isSheaf_comp (forget (ModuleCat.{0} R)) _).mpr |
| 31 | exact TopCat.Presheaf.toTypes_isSheaf X (fun x => F.presheaf.stalk x) |
| 32 | |
| 33 | def stalkFamilySheaf (F : TopCat.Sheaf (ModuleCat.{0} R) X) : TopCat.Sheaf (ModuleCat.{0} R) X := |
| 34 | ⟨stalkFamilyPresheaf F, stalkFamilyPresheaf_isSheaf F⟩ |
| 35 | |
| 36 | theorem stalkFamilySheaf_isFlasque (F : TopCat.Sheaf (ModuleCat.{0} R) X) : |
| 37 | TopCat.Sheaf.IsFlasque (stalkFamilySheaf F) where |
| 38 | epi {U W} i := by |
| 39 | classical |
| 40 | apply (ModuleCat.epi_iff_surjective _).mpr |
| 41 | intro s |
| 42 | refine ⟨fun x => if hx : x.val ∈ W.unop then s ⟨x.val,hx⟩ else 0, ?_⟩ |
| 43 | funext x |
| 44 | change (if hx : x.val ∈ W.unop then s ⟨x.val,hx⟩ else 0) = s x |
| 45 | rw [dite_eq_left x.property] |
| 46 | |
| 47 | def stalkFamilyEmbedding (F : TopCat.Sheaf (ModuleCat.{0} R) X) : F ⟶ stalkFamilySheaf F := |
| 48 | ⟨{ app U := ModuleCat.ofHom |
| 49 | { toFun := fun s x => germ F.presheaf U.unop x.val x.property s |
| 50 | map_add' := by intros; funext x; exact map_add _ _ _ |
| 51 | map_smul' := by intros; funext x; exact map_smul _ _ _ } |
| 52 | naturality U W i := by |
| 53 | apply ModuleCat.hom_ext |
| 54 | apply LinearMap.ext |
| 55 | intro s |
| 56 | funext x |
| 57 | exact ConcreteCategory.congr_hom (germ_res F.presheaf i.unop x.val x.property) s }⟩ |
| 58 | |
| 59 | theorem stalkFamilyEmbedding_mono (F : TopCat.Sheaf (ModuleCat.{0} R) X) : |
| 60 | Mono (stalkFamilyEmbedding F) := by |
| 61 | have : Mono (stalkFamilyEmbedding F).hom := by |
| 62 | apply (NatTrans.mono_iff_mono_app _).mpr |
| 63 | intro U |
| 64 | apply (ModuleCat.mono_iff_injective _).mpr |
| 65 | intro s t h |
| 66 | apply section_ext F U.unop |
| 67 | intro x hx |
| 68 | exact congrFun h ⟨x,hx⟩ |
| 69 | exact (CategoryTheory.Sheaf.Hom.mono_iff_presheaf_mono _ _ _).mpr this |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.GodementEmbedding.Constructions |