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.Modules.Sheaf |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.PullbackFree |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.ClosedImmersion |
| 4 | import Mathlib.Topology.Sheaves.SheafCondition.UniqueGluing |
| 5 | |
| 6 | /-! # Closed Immersion Module Epi -/ |
| 7 | |
| 8 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ClosedImmersionModuleEpi.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A closed immersion gives a quotient of the actual structure sheaf as a module sheaf. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | theorem moduleMap_epi_of_affine_sections_surjective |
| 19 | {X : Scheme.{u}} {M N : X.Modules} (a : M ⟶ N) |
| 20 | (ha : ∀ U : X.affineOpens, Function.Surjective (a.app U.1)) : Epi a := by |
| 21 | constructor |
| 22 | intro Z g h he |
| 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 := ⟨Z.presheaf, Z.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 | obtain ⟨r, hr⟩ := ha (V x) (N.presheaf.map j s) |
| 41 | have hh := congrArg (fun k : M ⟶ Z => k.app (V x).1 r) he |
| 42 | change g.app (V x).1 (a.app (V x).1 r) = h.app (V x).1 (a.app (V x).1 r) at hh |
| 43 | rw [hr] at hh |
| 44 | exact (PresheafOfModules.naturality_apply g.val j s).symm.trans |
| 45 | (hh.trans (PresheafOfModules.naturality_apply h.val j s)) |
| 46 | |
| 47 | theorem closedImmersion_structureModule_epi |
| 48 | {X Y : Scheme.{u}} (f : X ⟶ Y) [IsClosedImmersion f] : |
| 49 | Epi (SheafOfModules.unitToPushforwardObjUnit f.toRingCatSheafHom) := by |
| 50 | apply moduleMap_epi_of_affine_sections_surjective |
| 51 | intro U |
| 52 | exact f.app_surjective U.1 U.2 |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ClosedImmersionModuleEpi.Construction |