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.Localized.ModuleFreenessReflection |
| 2 | import Mathlib.RingTheory.LocalProperties.Projective |
| 3 | import Mathlib.AlgebraicGeometry.AffineScheme |
| 4 | |
| 5 | /-! # Stalk Projectivity -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.StalkProjectivity |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A finitely presented module over the functions of an affine scheme is projective if its scalar extension to every local ring is free. -/ |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | open scoped TensorProduct |
| 14 | universe u |
| 15 | |
| 16 | theorem affineModule_projective_of_stalkTensor_free (S : Scheme.{u}) [IsAffine S] |
| 17 | (M : Type u) [AddCommGroup M] [Module Γ(S, ⊤) M] [Module.FinitePresentation Γ(S, ⊤) M] |
| 18 | (hM : ∀ x : S, letI : Algebra Γ(S, ⊤) (S.presheaf.stalk x) := |
| 19 | (S.presheaf.germ ⊤ x trivial).hom.toAlgebra |
| 20 | Module.Free (S.presheaf.stalk x) ((S.presheaf.stalk x) ⊗[Γ(S, ⊤)] M)) : |
| 21 | Module.Projective Γ(S, ⊤) M := by |
| 22 | apply Module.projective_of_localization_maximal |
| 23 | intro I hI |
| 24 | have : I.IsMaximal := hI |
| 25 | let p : PrimeSpectrum Γ(S, ⊤) := ⟨I, inferInstance⟩ |
| 26 | let x : S := (isAffineOpen_top S).fromSpec p |
| 27 | let A := S.presheaf.stalk x |
| 28 | let : Algebra Γ(S, ⊤) A := (S.presheaf.germ ⊤ x trivial).hom.toAlgebra |
| 29 | have : IsLocalization I.primeCompl A := |
| 30 | (isAffineOpen_top S).isLocalization_stalk' p trivial |
| 31 | have : Module.Free A (A ⊗[Γ(S, ⊤)] M) := hM x |
| 32 | have : IsLocalizedModule I.primeCompl (TensorProduct.mk Γ(S, ⊤) A M 1) := |
| 33 | (isLocalizedModule_iff_isBaseChange I.primeCompl A _).mpr (TensorProduct.isBaseChange Γ(S, ⊤) M A) |
| 34 | have : Module.Free (Localization I.primeCompl) (LocalizedModule I.primeCompl M) := |
| 35 | Localized.ModuleFreenessReflection.free_canonical_of_isLocalizedModule_of_free I.primeCompl A (TensorProduct.mk Γ(S, ⊤) A M 1) |
| 36 | exact Module.Projective.of_free |
| 37 | |
| 38 | end |
| 39 | |
| 40 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.StalkProjectivity |