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.AlgebraicGeometry.AffineScheme |
| 2 | import Mathlib.AlgebraicGeometry.Modules.Sheaf |
| 3 | import Mathlib.Topology.Sheaves.SheafCondition.UniqueGluing |
| 4 | |
| 5 | /-! # Module Affine Epi -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.ModuleAffineEpi |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Surjectivity on affine sections detects actual epimorphisms of module sheaves. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace |
| 16 | |
| 17 | namespace Construction |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | theorem moduleHom_ext_of_affine {X : Scheme.{u}} {M N : X.Modules} (a b : M ⟶ N) |
| 22 | (h : ∀ U : X.affineOpens, a.app U.1 = b.app U.1) : a = b := by |
| 23 | apply SheafOfModules.hom_ext |
| 24 | apply PresheafOfModules.hom_ext |
| 25 | intro U |
| 26 | apply ModuleCat.hom_ext |
| 27 | apply LinearMap.ext |
| 28 | intro s |
| 29 | have hc (x : U.unop) : ∃ V : X.affineOpens, x.1 ∈ V.1 ∧ V.1 ≤ U.unop := by |
| 30 | obtain ⟨_, ⟨V, hV, rfl⟩, hx, hVU⟩ := |
| 31 | X.isBasis_affineOpens.exists_subset_of_mem_open x.2 U.unop.isOpen |
| 32 | exact ⟨⟨V, hV⟩, hx, hVU⟩ |
| 33 | choose V hx hVU using hc |
| 34 | let F : TopCat.Sheaf AddCommGrpCat X := ⟨N.presheaf, N.isSheaf⟩ |
| 35 | apply F.eq_of_locally_eq' (fun x => (V x).1) U.unop |
| 36 | (fun x => homOfLE (hVU x)) |
| 37 | (by intro x hxU; exact Opens.mem_iSup.mpr ⟨⟨x, hxU⟩, hx ⟨x, hxU⟩⟩) |
| 38 | intro x |
| 39 | let j := (homOfLE (hVU x)).op |
| 40 | exact (PresheafOfModules.naturality_apply a.val j s).symm.trans |
| 41 | ((ConcreteCategory.congr_hom (h (V x)) (M.presheaf.map j s)).trans |
| 42 | (PresheafOfModules.naturality_apply b.val j s)) |
| 43 | |
| 44 | theorem moduleMap_epi_of_affine_sections_surjective {X : Scheme.{u}} {M N : X.Modules} |
| 45 | (a : M ⟶ N) (ha : ∀ U : X.affineOpens, Function.Surjective (a.app U.1)) : Epi a := by |
| 46 | constructor |
| 47 | intro Z g h he |
| 48 | apply moduleHom_ext_of_affine |
| 49 | intro U |
| 50 | apply AddCommGrpCat.hom_ext |
| 51 | apply AddMonoidHom.ext |
| 52 | intro y |
| 53 | obtain ⟨x, rfl⟩ := ha U y |
| 54 | exact congrArg (fun t : M ⟶ Z => t.app U.1 x) he |
| 55 | |
| 56 | end Construction |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.ModuleAffineEpi |