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.ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle |
| 2 | |
| 3 | /-! # Module Sections -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ModuleSections.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Global sections and endomorphisms of the structure sheaf. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | /-- Compatible sections over all opens are determined by the section over the whole scheme. -/ |
| 16 | def moduleSectionsEquivGlobal {X : Scheme.{u}} (M : X.Modules) : |
| 17 | M.sections ≃ Γ(M, ⊤) where |
| 18 | toFun s := s.val (.op ⊤) |
| 19 | invFun s := PresheafOfModules.sectionsMk |
| 20 | (fun U ↦ M.val.map (homOfLE (show U.unop ≤ ⊤ from le_top)).op s) |
| 21 | (by |
| 22 | intro U V f |
| 23 | change M.presheaf.map f |
| 24 | (M.presheaf.map (homOfLE (show U.unop ≤ ⊤ from le_top)).op s) = _ |
| 25 | rw [← ConcreteCategory.comp_apply, ← Functor.map_comp] |
| 26 | rfl) |
| 27 | left_inv s := by |
| 28 | apply PresheafOfModules.sections_ext |
| 29 | intro U |
| 30 | exact PresheafOfModules.sections_property s _ |
| 31 | right_inv s := by |
| 32 | change M.presheaf.map (𝟙 (.op ⊤)) s = s |
| 33 | simp |
| 34 | |
| 35 | /-- A morphism from the structure sheaf is determined by the image of its global unit section. -/ |
| 36 | def structureSheafHomEquiv {X : Scheme.{u}} (M : X.Modules) : |
| 37 | (LineBundle.Construction.structureSheafModule X ⟶ M) ≃ Γ(M, ⊤) := |
| 38 | (SheafOfModules.unitHomEquiv M).trans (moduleSectionsEquivGlobal M) |
| 39 | |
| 40 | theorem structureSheafHomEquiv_apply {X : Scheme.{u}} (M : X.Modules) |
| 41 | (f : LineBundle.Construction.structureSheafModule X ⟶ M) : |
| 42 | structureSheafHomEquiv M f = f.app ⊤ (1 : Γ(X, ⊤)) := rfl |
| 43 | |
| 44 | /-- On every open set, a map from the structure sheaf acts by multiplication |
| 45 | by the restriction of its global section. -/ |
| 46 | theorem structureSheafHom_apply {X : Scheme.{u}} {M : X.Modules} |
| 47 | (f : LineBundle.Construction.structureSheafModule X ⟶ M) (U : X.Opens) (r : Γ(X, U)) : |
| 48 | f.app U r = r • M.presheaf.map (homOfLE (show U ≤ ⊤ from le_top)).op |
| 49 | (structureSheafHomEquiv M f) := by |
| 50 | have h := PresheafOfModules.sections_property (SheafOfModules.unitHomEquiv M f) |
| 51 | (homOfLE (show U ≤ ⊤ from le_top)).op |
| 52 | change M.presheaf.map _ (f.app ⊤ (1 : Γ(X, ⊤))) = f.app U (1 : Γ(X, U)) at h |
| 53 | rw [structureSheafHomEquiv_apply, h] |
| 54 | calc |
| 55 | f.app U r = f.app U (r • (1 : Γ(X, U))) := congrArg (f.app U) (mul_one r).symm |
| 56 | _ = r • f.app U (1 : Γ(X, U)) := f.app_smul r _ |
| 57 | |
| 58 | /-- Endomorphisms of the structure sheaf form the ring of global regular functions. -/ |
| 59 | def structureSheafEndRingEquiv (X : Scheme.{u}) : |
| 60 | End (LineBundle.Construction.structureSheafModule X) ≃+* Γ(X, ⊤) where |
| 61 | __ := structureSheafHomEquiv (LineBundle.Construction.structureSheafModule X) |
| 62 | map_add' f g := rfl |
| 63 | map_mul' f g := by |
| 64 | let a : Γ(X, ⊤) := f.app ⊤ (1 : Γ(X, ⊤)) |
| 65 | let b : Γ(X, ⊤) := g.app ⊤ (1 : Γ(X, ⊤)) |
| 66 | change (f.app ⊤ b : Γ(X, ⊤)) = a * b |
| 67 | rw [structureSheafHom_apply] |
| 68 | change b * X.presheaf.map (𝟙 (.op ⊤)) a = a * b |
| 69 | simp [mul_comm] |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ModuleSections.Construction |