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.Quotients.FiniteDescent.SmoothStalk |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.Factorial |
| 3 | import Mathlib.AlgebraicGeometry.Geometrically.Integral |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 5 | |
| 6 | /-! # Stalk Factorial -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Smooth.StalkFactorial.SmoothStalkFactorial |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Factoriality of smooth geometrically integral stalks over arbitrary fields, by faithfully flat descent from the algebraic closure. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | theorem of_flat_surjective {X Y : Scheme.{u}} |
| 19 | [IsIntegral X] [IsIntegral Y] [IsLocallyNoetherian X] |
| 20 | (g : Y ⟶ X) [Flat g] [Surjective g] |
| 21 | (hY : ∀ y : Y, UniqueFactorizationMonoid (Y.presheaf.stalk y)) (x : X) : |
| 22 | UniqueFactorizationMonoid (X.presheaf.stalk x) := by |
| 23 | obtain ⟨y, rfl⟩ := g.surjective x |
| 24 | let : Algebra (X.presheaf.stalk (g y)) (Y.presheaf.stalk y) := |
| 25 | (g.stalkMap y).hom.toAlgebra |
| 26 | let : Module.FaithfullyFlat (X.presheaf.stalk (g y)) (Y.presheaf.stalk y) := |
| 27 | @Module.FaithfullyFlat.of_flat_of_isLocalHom _ _ _ _ _ _ _ |
| 28 | (Flat.stalkMap g y) (g.toLRSHom.prop y) |
| 29 | let : UniqueFactorizationMonoid (Y.presheaf.stalk y) := hY y |
| 30 | exact OAI.AlgebraicGeometry.Quotients.FiniteDescent.Factorial.Construction.FactorialDescent.of_faithfullyFlat (S := Y.presheaf.stalk y) |
| 31 | |
| 32 | theorem stalk {K : Type u} [Field K] {X : Scheme.{u}} |
| 33 | (f : X ⟶ Spec (.of K)) [Smooth f] [GeometricallyIntegral f] (x : X) : |
| 34 | UniqueFactorizationMonoid (X.presheaf.stalk x) := by |
| 35 | let : IsIntegral X := GeometricallyIntegral.isIntegral_of_subsingleton f |
| 36 | let : IsLocallyNoetherian X := LocallyOfFiniteType.isLocallyNoetherian f |
| 37 | let g : Spec (.of (AlgebraicClosure K)) ⟶ Spec (.of K) := |
| 38 | Spec.map (CommRingCat.ofHom (algebraMap K (AlgebraicClosure K))) |
| 39 | let : Surjective g := ⟨fun z => ⟨IsLocalRing.closedPoint (AlgebraicClosure K), |
| 40 | Subsingleton.elim _ z⟩⟩ |
| 41 | exact of_flat_surjective (pullback.fst f g) |
| 42 | (OAI.AlgebraicGeometry.Quotients.FiniteDescent.SmoothStalk.Construction.SmoothStalkFactorial.stalk (pullback.snd f g)) x |
| 43 | |
| 44 | end |
| 45 | |
| 46 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Smooth.StalkFactorial.SmoothStalkFactorial |