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.RankOneLocalFrames |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RestrictionFrameImage |
| 3 | |
| 4 | /-! # Of Affine Rank One -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LineBundle.OfAffineRankOne |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finite flat rank-one section modules on affine restrictions construct a line bundle on an arbitrary scheme. -/ |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | universe u |
| 13 | variable {X : Scheme.{u}} (M : X.Modules) [M.IsQuasicoherent] |
| 14 | |
| 15 | def lineBundleOfAffineRankOne |
| 16 | (h : ∀ U : X.Opens, IsAffineOpen U → |
| 17 | Module.Finite Γ(U.toScheme, ⊤) Γ(M.restrict U.ι, ⊤) ∧ |
| 18 | Module.Flat Γ(U.toScheme, ⊤) Γ(M.restrict U.ι, ⊤) ∧ |
| 19 | ∀ p : PrimeSpectrum Γ(U.toScheme, ⊤), Module.rankAtStalk Γ(M.restrict U.ι, ⊤) p = 1) : |
| 20 | Line.Bundles.LineBundle X where |
| 21 | sheaf := M |
| 22 | locallyTrivial x := by |
| 23 | have hx : x ∈ ⨆ U : X.affineOpens, U.1 := by |
| 24 | rw [iSup_affineOpens_eq_top] |
| 25 | trivial |
| 26 | obtain ⟨U, hxU⟩ := TopologicalSpace.Opens.mem_iSup.mp hx |
| 27 | have : IsAffine U.1.toScheme := U.2 |
| 28 | obtain ⟨hfinite, hflat, hrank⟩ := h U.1 U.2 |
| 29 | obtain ⟨V, hxV, ⟨frame⟩⟩ := Affine.RankOneLocalFrames.affineRankOne_localFrames (M.restrict U.1.ι) hrank ⟨x, hxU⟩ |
| 30 | exact ⟨U.1.ι ''ᵁ V, U.1.mem_ι_image_iff.mpr hxV, ⟨RestrictionFrameImage.restrictionFrameImage M U.1 V frame⟩⟩ |
| 31 | |
| 32 | end |
| 33 | |
| 34 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LineBundle.OfAffineRankOne |