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.ClosedRationalPoints |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.QuasiFinite |
| 3 | |
| 4 | /-! # Fiber Closed Support -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Rational.FiberClosedSupport |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finiteness of rational scheme fibers detects finite set-theoretic fibers at closed points. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {K : Type u} [Field K] [IsAlgClosed K] {X Y : Scheme.{u}} |
| 17 | |
| 18 | theorem closedFiber_finite_of_rationalFibers (f : X ⟶ Y) (p : Y ⟶ Spec (.of K)) |
| 19 | [LocallyOfFiniteType p] |
| 20 | (h : ∀ (a : Spec (.of K) ⟶ Y), a ≫ p = 𝟙 _ → IsFinite (Limits.pullback.snd f a)) |
| 21 | (y : Y) (hy : IsClosed ({y} : Set Y)) : (f ⁻¹' {y}).Finite := by |
| 22 | let a := pointOfClosedPoint p y hy |
| 23 | have : IsFinite (Limits.pullback.snd f a) := h a (pointOfClosedPoint_comp p y hy) |
| 24 | have hP : Finite (Limits.pullback f a : Scheme.{u}) := by |
| 25 | apply Finite.of_finite_univ |
| 26 | simpa only [Set.preimage_univ] using |
| 27 | (Limits.pullback.snd f a).finite_preimage (Set.finite_univ : (Set.univ : Set (Spec (.of K))).Finite) |
| 28 | have hR : (Set.range (Limits.pullback.fst f a)).Finite := Set.finite_range _ |
| 29 | apply hR.subset |
| 30 | intro z hz |
| 31 | change f z = y at hz |
| 32 | let k : Spec (.of K) := Classical.choice inferInstance |
| 33 | have he : f z = a k := hz.trans (pointOfClosedPoint_apply p y hy k).symm |
| 34 | obtain ⟨w, hw, _⟩ := Scheme.Pullback.exists_preimage_pullback z k he |
| 35 | exact ⟨w, hw⟩ |
| 36 | |
| 37 | end |
| 38 | |
| 39 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Rational.FiberClosedSupport |