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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/SchemeModuleQuasicoherent.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.ModulePresentations |
| 8 | |
| 9 | /-! # Quasicoherent Epimorphisms -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.QuasicoherentEpimorphisms |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! Global sections on affine schemes preserve epimorphisms between quasicoherent modules. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.AlgebraicGeometry.Scheme.Modules Opposite |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {R : CommRingCat.{u}} {X : Scheme.{u}} |
| 22 | |
| 23 | lemma quasicoherent_moduleSpecΓ_epi {M N : (Spec R).Modules} (f : M ⟶ N) |
| 24 | [M.IsQuasicoherent] [N.IsQuasicoherent] [Epi f] : |
| 25 | Epi (moduleSpecΓFunctor.map f) := by |
| 26 | have : IsIso M.fromTildeΓ := inferInstance |
| 27 | have : IsIso N.fromTildeΓ := inferInstance |
| 28 | have hnat : tilde.map (moduleSpecΓFunctor.map f) ≫ N.fromTildeΓ = |
| 29 | M.fromTildeΓ ≫ f := by |
| 30 | have h := Scheme.Modules.fromTildeΓNatTrans.naturality f |
| 31 | change tilde.map (moduleSpecΓFunctor.map f) ≫ N.fromTildeΓ = |
| 32 | M.fromTildeΓ ≫ f at h |
| 33 | exact h |
| 34 | have hright : Epi (M.fromTildeΓ ≫ f) := |
| 35 | epi_comp' (by infer_instance) (by infer_instance) |
| 36 | have hcomp : Epi (tilde.map (moduleSpecΓFunctor.map f) ≫ N.fromTildeΓ) := |
| 37 | hnat.symm ▸ hright |
| 38 | have hmapped : Epi (tilde.map (moduleSpecΓFunctor.map f)) := |
| 39 | (epi_comp_iff_of_isIso _ N.fromTildeΓ).mp hcomp |
| 40 | exact (tilde.functor R).epi_of_epi_map hmapped |
| 41 | |
| 42 | theorem quasicoherent_spec_surjective_of_epi |
| 43 | {M N : (Spec R).Modules} (f : M ⟶ N) |
| 44 | [M.IsQuasicoherent] [N.IsQuasicoherent] [Epi f] : |
| 45 | Function.Surjective (f.val.app (op ⊤)).hom := |
| 46 | (ModuleCat.epi_iff_surjective (moduleSpecΓFunctor.map f)).mp |
| 47 | (quasicoherent_moduleSpecΓ_epi f) |
| 48 | |
| 49 | theorem quasicoherent_affine_surjective_of_epi [IsAffine X] |
| 50 | {M N : X.Modules} (f : M ⟶ N) |
| 51 | [M.IsQuasicoherent] [N.IsQuasicoherent] [Epi f] : |
| 52 | Function.Surjective (f.val.app (op ⊤)).hom := by |
| 53 | have hs : Function.Surjective (f.app (X.isoSpec.inv ''ᵁ ⊤)) := |
| 54 | quasicoherent_spec_surjective_of_epi |
| 55 | ((restrictFunctor X.isoSpec.inv).map f) |
| 56 | have ht : X.isoSpec.inv ''ᵁ ⊤ = ⊤ := |
| 57 | X.isoSpec.inv.image_top_eq_opensRange.trans X.isoSpec.inv.opensRange_of_isIso |
| 58 | rw [ht] at hs |
| 59 | exact hs |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.QuasicoherentEpimorphisms |