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 Mathlib.AlgebraicGeometry.ZariskisMainTheorem |
| 2 | import Mathlib.FieldTheory.IsAlgClosed.AlgebraicClosure |
| 3 | |
| 4 | /-! # Geometric Fiber Finiteness -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Proper.GeometricFiberFiniteness |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finiteness of a proper morphism is detected on all algebraically closed field-valued fibers. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {X Y : Scheme.{u}} |
| 17 | |
| 18 | theorem finite_preimage_of_finite_fieldPullback (f : X ⟶ Y) {K : Type u} [Field K] |
| 19 | (a : Spec (.of K) ⟶ Y) [IsFinite (Limits.pullback.snd f a)] |
| 20 | (k : Spec (.of K)) : (f ⁻¹' {a k}).Finite := by |
| 21 | have : Finite (Limits.pullback f a : Scheme.{u}) := by |
| 22 | apply Finite.of_finite_univ |
| 23 | simpa only [Set.preimage_univ] using |
| 24 | (Limits.pullback.snd f a).finite_preimage (Set.finite_univ : (Set.univ : Set (Spec (.of K))).Finite) |
| 25 | apply (Set.finite_range (Limits.pullback.fst f a)).subset |
| 26 | intro z hz |
| 27 | change f z = a k at hz |
| 28 | obtain ⟨w, hw, _⟩ := Scheme.Pullback.exists_preimage_pullback z k hz |
| 29 | exact ⟨w, hw⟩ |
| 30 | |
| 31 | theorem proper_isFinite_of_geometric_fieldPullbacks (f : X ⟶ Y) [IsProper f] |
| 32 | (h : ∀ (K : Type u) [Field K] [IsAlgClosed K] (a : Spec (.of K) ⟶ Y), |
| 33 | IsFinite (Limits.pullback.snd f a)) : IsFinite f := by |
| 34 | have hf (y : Y) : (f ⁻¹' {y}).Finite := by |
| 35 | let K := AlgebraicClosure (Y.residueField y) |
| 36 | let a : Spec (.of K) ⟶ Y := |
| 37 | Spec.map (CommRingCat.ofHom (algebraMap (Y.residueField y) K)) ≫ Y.fromSpecResidueField y |
| 38 | let k : Spec (.of K) := Classical.choice inferInstance |
| 39 | have : IsFinite (Limits.pullback.snd f a) := h K a |
| 40 | have hk : a k = y := Y.fromSpecResidueField_apply y _ |
| 41 | exact hk ▸ finite_preimage_of_finite_fieldPullback f a k |
| 42 | have : LocallyQuasiFinite f := LocallyQuasiFinite.of_finite_preimage_singleton f hf |
| 43 | exact IsFinite.of_isProper_of_locallyQuasiFinite f |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Proper.GeometricFiberFiniteness |