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.AbelianModuli.HilbertConstruction.Line.Bundles |
| 2 | import Mathlib.AlgebraicGeometry.Modules.Tilde |
| 3 | import Mathlib.RingTheory.PicardGroup |
| 4 | |
| 5 | /-! # Line Bundle Epi -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.LineBundleEpi |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Homomorphisms: epimorphisms between line bundles are isomorphisms |
| 13 | |
| 14 | On affine trivializing opens, the assertion reduces through the fully |
| 15 | faithful tilde functor to a surjective map between free rank-one modules. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 19 | open OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Line.Bundles |
| 20 | |
| 21 | set_option backward.isDefEq.respectTransparency.types false |
| 22 | |
| 23 | namespace Construction |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | theorem unit_spec_epi_isIso (R : CommRingCat.{u}) |
| 28 | (f : AbelianModuli.HilbertConstruction.Line.Bundles.structureModule (Spec R) ⟶ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule (Spec R)) [Epi f] : IsIso f := by |
| 29 | let e := tildeSelf (R := R) |
| 30 | let g := (tilde.fullyFaithfulFunctor (R := R)).preimage (e.hom ≫ f ≫ e.inv) |
| 31 | have hg : (tilde.functor R).map g = e.hom ≫ f ≫ e.inv := |
| 32 | (tilde.fullyFaithfulFunctor (R := R)).map_preimage _ |
| 33 | have he : e.hom ≫ f ≫ e.inv = f := by |
| 34 | change (𝟙 _) ≫ f ≫ (𝟙 _) = f |
| 35 | rw [Category.id_comp, Category.comp_id] |
| 36 | have hge : Epi ((tilde.functor R).map g) := (hg.trans he).symm ▸ inferInstanceAs (Epi f) |
| 37 | have : Epi g := (tilde.functor R).epi_of_epi_map hge |
| 38 | have hgBij : Function.Bijective g.hom := |
| 39 | Module.Invertible.bijective_of_surjective ((ModuleCat.epi_iff_surjective g).mp inferInstance) |
| 40 | have : IsIso g := (ConcreteCategory.isIso_iff_bijective g).mpr hgBij |
| 41 | exact (hg.trans he) ▸ inferInstanceAs (IsIso ((tilde.functor R).map g)) |
| 42 | |
| 43 | def moduleFrameRestrict {X : Scheme.{u}} (L : X.Modules) {U V : X.Opens} (h : V ≤ U) |
| 44 | (e : (Scheme.Modules.pullback U.ι).obj L ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule U.toScheme) : |
| 45 | (Scheme.Modules.pullback V.ι).obj L ≅ AbelianModuli.HilbertConstruction.Line.Bundles.structureModule V.toScheme := |
| 46 | (Scheme.Modules.pullbackCongr (X.homOfLE_ι h).symm).app L ≪≫ |
| 47 | (Scheme.Modules.pullbackComp (X.homOfLE h) U.ι).symm.app L ≪≫ |
| 48 | (Scheme.Modules.pullback (X.homOfLE h)).mapIso e ≪≫ AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso (X.homOfLE h) |
| 49 | |
| 50 | theorem lineBundle_epi_locally_injective {X : Scheme.{u}} (L M : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) |
| 51 | (f : L.sheaf ⟶ M.sheaf) [Epi f] (U : X.Opens) (x : X) (hx : x ∈ U) : |
| 52 | ∃ V : X.Opens, V ≤ U ∧ x ∈ V ∧ Function.Injective (f.app V) := by |
| 53 | obtain ⟨U₁, hx₁, ⟨e₁⟩⟩ := L.locallyTrivial x |
| 54 | obtain ⟨U₂, hx₂, ⟨e₂⟩⟩ := M.locallyTrivial x |
| 55 | obtain ⟨V, hV, hxV, hVU⟩ := exists_isAffineOpen_mem_and_subset |
| 56 | (show x ∈ U ⊓ (U₁ ⊓ U₂) from ⟨hx, hx₁, hx₂⟩) |
| 57 | have : IsAffine V.toScheme := hV |
| 58 | let a := V.toScheme.isoSpec.inv ≫ V.ι |
| 59 | let l : (Scheme.Modules.pullback a).obj L.sheaf ≅ |
| 60 | AbelianModuli.HilbertConstruction.Line.Bundles.structureModule (Spec (CommRingCat.of Γ(V.toScheme, ⊤))) := |
| 61 | (Scheme.Modules.pullbackComp V.toScheme.isoSpec.inv V.ι).symm.app L.sheaf ≪≫ |
| 62 | (Scheme.Modules.pullback V.toScheme.isoSpec.inv).mapIso |
| 63 | (moduleFrameRestrict L.sheaf (hVU.trans (inf_le_right.trans inf_le_left)) e₁) ≪≫ |
| 64 | AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso V.toScheme.isoSpec.inv |
| 65 | let m : (Scheme.Modules.pullback a).obj M.sheaf ≅ |
| 66 | AbelianModuli.HilbertConstruction.Line.Bundles.structureModule (Spec (CommRingCat.of Γ(V.toScheme, ⊤))) := |
| 67 | (Scheme.Modules.pullbackComp V.toScheme.isoSpec.inv V.ι).symm.app M.sheaf ≪≫ |
| 68 | (Scheme.Modules.pullback V.toScheme.isoSpec.inv).mapIso |
| 69 | (moduleFrameRestrict M.sheaf (hVU.trans (inf_le_right.trans inf_le_right)) e₂) ≪≫ |
| 70 | AbelianModuli.HilbertConstruction.Line.Bundles.structureModulePullbackIso V.toScheme.isoSpec.inv |
| 71 | have hu : IsIso (l.inv ≫ (Scheme.Modules.pullback a).map f ≫ m.hom) := |
| 72 | unit_spec_epi_isIso _ _ |
| 73 | have hi : IsIso ((Scheme.Modules.pullback a).map f) := by |
| 74 | simpa only [isIso_comp_left_iff, isIso_comp_right_iff] using hu |
| 75 | let e := Scheme.Modules.restrictFunctorIsoPullback a |
| 76 | have hj : IsIso ((Scheme.Modules.restrictFunctor a).map f ≫ e.hom.app M.sheaf) := by |
| 77 | erw [e.hom.naturality f] |
| 78 | infer_instance |
| 79 | have : IsIso ((Scheme.Modules.restrictFunctor a).map f) := |
| 80 | (isIso_comp_right_iff _ (e.hom.app M.sheaf)).mp hj |
| 81 | have ht : IsIso (f.app (a ''ᵁ ⊤)) := |
| 82 | inferInstanceAs (IsIso (((Scheme.Modules.restrictFunctor a).map f).app ⊤)) |
| 83 | have ha : a ''ᵁ ⊤ = V := by |
| 84 | rw [Scheme.Hom.image_top_eq_opensRange, Scheme.Hom.opensRange_comp, |
| 85 | Scheme.Hom.opensRange_of_isIso, Scheme.Opens.ι_image_top] |
| 86 | have ht' : IsIso (f.app V) := ha ▸ ht |
| 87 | exact ⟨V, hVU.trans inf_le_left, hxV, (ConcreteCategory.bijective_of_isIso (f.app V)).injective⟩ |
| 88 | |
| 89 | theorem lineBundle_epi_isIso {X : Scheme.{u}} (L M : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) |
| 90 | (f : L.sheaf ⟶ M.sheaf) [Epi f] : IsIso f := by |
| 91 | have hinj (U : X.Opens) : Function.Injective (f.app U) := by |
| 92 | intro s t h |
| 93 | apply L.sheaf.isSheaf.section_ext |
| 94 | intro x hx |
| 95 | obtain ⟨V, hVU, hxV, hV⟩ := lineBundle_epi_locally_injective L M f U x hx |
| 96 | refine ⟨V, hVU, hxV, hV ?_⟩ |
| 97 | have hn (s : Γ(L.sheaf, U)) := |
| 98 | PresheafOfModules.naturality_apply f.val (homOfLE hVU).op s |
| 99 | exact (hn s).trans ((congrArg (M.sheaf.presheaf.map (homOfLE hVU).op) h).trans (hn t).symm) |
| 100 | have : Mono f := { |
| 101 | right_cancellation := fun g h e => by |
| 102 | apply Scheme.Modules.hom_ext |
| 103 | intro U |
| 104 | apply ConcreteCategory.hom_ext |
| 105 | intro s |
| 106 | apply hinj U |
| 107 | exact ConcreteCategory.congr_hom (congrArg (fun k => k.app U) e) s } |
| 108 | exact isIso_of_mono_of_epi f |
| 109 | |
| 110 | end Construction |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.LineBundleEpi |