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.SchemeSmoothFiberCriterion |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.FiberRestriction |
| 3 | |
| 4 | /-! # Fiber Point Criterion -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.FiberPointCriterion |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Every point of a smooth fiber of a flat finitely presented morphism lies in its smooth locus. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem stalk_formallySmooth_of_smooth_fiber |
| 17 | {X S : Scheme.{u}} (f : X ⟶ S) [Flat f] [LocallyOfFinitePresentation f] |
| 18 | (x : X) [Smooth (f.fiberToSpecResidueField (f x))] : (f.stalkMap x).hom.FormallySmooth := by |
| 19 | obtain ⟨U, hU, hfx, _⟩ := Opens.isBasis_iff_nbhd.mp S.isBasis_affineOpens (Opens.mem_top (f x)) |
| 20 | change S.Opens at U |
| 21 | obtain ⟨V, hV, hx, e⟩ := Opens.isBasis_iff_nbhd.mp X.isBasis_affineOpens |
| 22 | (show x ∈ f ⁻¹ᵁ U from hfx) |
| 23 | change X.Opens at V |
| 24 | have : IsAffine U.toScheme := hU |
| 25 | have : IsAffine V.toScheme := hV |
| 26 | let y : V.toScheme := ⟨x, hx⟩ |
| 27 | have : Smooth (f.fiberToSpecResidueField (f (V.ι y))) := |
| 28 | inferInstanceAs (Smooth (f.fiberToSpecResidueField (f x))) |
| 29 | have : Smooth ((f.resLE U V e).fiberToSpecResidueField ((f.resLE U V e) y)) := |
| 30 | FiberRestriction.smooth_fiber_resLE f U V e y |
| 31 | have h := Affine.SchemeSmoothFiberCriterion.affineScheme_stalk_formallySmooth_of_smooth_fiber (f.resLE U V e) y |
| 32 | exact (RingHom.FormallySmooth.respectsIso.arrow_mk_iso_iff (Scheme.Hom.resLEStalkMap f e y)).mp h |
| 33 | |
| 34 | theorem fiber_smoothLocus_of_smooth_fiber |
| 35 | {X S : Scheme.{u}} (f : X ⟶ S) [Flat f] [LocallyOfFinitePresentation f] |
| 36 | (s : S) [Smooth (f.fiberToSpecResidueField s)] (x : X) (hx : f x = s) : x ∈ f.smoothLocus := by |
| 37 | have : Smooth (f.fiberToSpecResidueField (f x)) := hx.symm ▸ (inferInstanceAs (Smooth (f.fiberToSpecResidueField s))) |
| 38 | exact stalk_formallySmooth_of_smooth_fiber f x |
| 39 | |
| 40 | end |
| 41 | |
| 42 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.FiberPointCriterion |