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.Affine.PrincipalRankOneSections |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.RankOneLocalBasis |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.ModuleFrameFromSections |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Open.RestrictedSectionBases |
| 5 | |
| 6 | /-! # Rank One Local Frames -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.RankOneLocalFrames |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A quasicoherent sheaf on an affine scheme with finite flat global sections of constant rank one has actual local frames. -/ |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | universe u |
| 15 | variable {X : Scheme.{u}} [IsAffine X] (M : X.Modules) [M.IsQuasicoherent] |
| 16 | [Module.Finite Γ(X, ⊤) Γ(M, ⊤)] [Module.Flat Γ(X, ⊤) Γ(M, ⊤)] |
| 17 | |
| 18 | theorem affineRankOne_localFrames |
| 19 | (hrank : ∀ p : PrimeSpectrum Γ(X, ⊤), Module.rankAtStalk Γ(M, ⊤) p = 1) (x : X) : |
| 20 | ∃ U : X.Opens, x ∈ U ∧ Nonempty |
| 21 | ((Scheme.Modules.pullback U.ι).obj M ≅ Line.Bundles.structureModule U.toScheme) := by |
| 22 | let hX := isAffineOpen_top X |
| 23 | let p := hX.primeIdealOf ⟨x, by trivial⟩ |
| 24 | obtain ⟨r, hr, ⟨e⟩⟩ := HilbertConstruction.Finite.RankOneLocalBasis.finiteFlatRankOne_localBasis hrank p |
| 25 | let U := X.basicOpen r |
| 26 | have hU : IsAffineOpen U := hX.basicOpen r |
| 27 | have hxU : x ∈ U := by |
| 28 | have hp : p ∈ hX.fromSpec ⁻¹ᵁ X.basicOpen r := by |
| 29 | rw [hX.fromSpec_preimage_basicOpen r] |
| 30 | exact hr |
| 31 | change hX.fromSpec p ∈ U at hp |
| 32 | simpa only [p, hX.fromSpec_primeIdealOf] using hp |
| 33 | have : IsAffine U.toScheme := hU |
| 34 | refine ⟨U, hxU, ⟨?_⟩⟩ |
| 35 | exact (Scheme.Modules.restrictFunctorIsoPullback U.ι).symm.app M ≪≫ |
| 36 | ModuleFrameFromSections.affineModuleFrameFromSections (M.restrict U.ι) |
| 37 | (Open.RestrictedSectionBases.moduleRestrictTopBasisEquiv M U (PrincipalRankOneSections.affinePrincipalRankOneSections M r e)) |
| 38 | |
| 39 | def affineRankOneLineBundle |
| 40 | (hrank : ∀ p : PrimeSpectrum Γ(X, ⊤), Module.rankAtStalk Γ(M, ⊤) p = 1) : Line.Bundles.LineBundle X := |
| 41 | ⟨M, affineRankOne_localFrames M hrank⟩ |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.RankOneLocalFrames |