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.IntersectionTheory.ProjectionFormula.Stalk.PointAlgebra |
| 2 | import Mathlib.RingTheory.Smooth.Field |
| 3 | |
| 4 | /-! # Smooth Morphism -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Generic.SmoothMorphism |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A dominant morphism of integral schemes over a characteristic-zero |
| 11 | field is smooth on an actual nonempty source open. The proof uses its |
| 12 | native generic stalk map and the native open smooth locus. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {K : Type u} [Field K] [CharZero K] {X Y : Scheme.{u}} |
| 22 | [IsIntegral X] [IsIntegral Y] (f : X ⟶ Y) [LocallyOfFinitePresentation f] |
| 23 | (g : Y ⟶ Spec (.of K)) (hη : f (genericPoint X) = genericPoint Y) |
| 24 | |
| 25 | include g hη in |
| 26 | theorem generic_formallySmooth : (f.stalkMap (genericPoint X)).hom.FormallySmooth := by |
| 27 | let R := Y.presheaf.stalk (f (genericPoint X)) |
| 28 | have hR : IsField R := by |
| 29 | change IsField (Y.presheaf.stalk (f (genericPoint X))) |
| 30 | rw [hη] |
| 31 | exact Field.toIsField Y.functionField |
| 32 | let : Field R := hR.toField |
| 33 | let : Algebra K R := Stalk.PointAlgebra.scalarAlgebra g (f (genericPoint X)) |
| 34 | let : CharZero R := charZero_of_injective_algebraMap (algebraMap K R).injective |
| 35 | let : Algebra R X.functionField := (f.stalkMap (genericPoint X)).hom.toAlgebra |
| 36 | let : Algebra.EssFiniteType R X.functionField := LocallyOfFiniteType.stalkMap f (genericPoint X) |
| 37 | exact Algebra.FormallySmooth.of_perfectField |
| 38 | |
| 39 | include g hη in |
| 40 | theorem generic_mem : genericPoint X ∈ f.smoothLocus := generic_formallySmooth f g hη |
| 41 | |
| 42 | omit [IsIntegral X] [IsIntegral Y] in |
| 43 | theorem smooth_restrict : Smooth (f.smoothLocus.ι ≫ f) := by |
| 44 | apply Scheme.Hom.smoothLocus_eq_top_iff.mp |
| 45 | rw [← Scheme.Hom.preimage_smoothLocus_eq] |
| 46 | ext x |
| 47 | change x.val ∈ f.smoothLocus ↔ True |
| 48 | exact iff_true_intro x.property |
| 49 | |
| 50 | include g hη in |
| 51 | theorem exists_open : ∃ U : X.Opens, genericPoint X ∈ U ∧ Smooth (U.ι ≫ f) := |
| 52 | ⟨f.smoothLocus, generic_mem f g hη, smooth_restrict f⟩ |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Generic.SmoothMorphism |