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 OAI.AlgebraicGeometry.FormalGeometry.Completion.Geometric.MapFaithful |
| 4 | import Mathlib.AlgebraicGeometry.Geometrically.Integral |
| 5 | |
| 6 | /-! # Ground Stalk Factorial -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.GroundStalkFactorial |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Local factoriality over the ground field descends from the actual |
| 13 | geometric fiber through its faithfully flat local stalk maps. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 18 | |
| 19 | namespace Construction |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | theorem ground_stalk_uniqueFactorization |
| 24 | {K : Type u} [Field K] {X : Scheme.{u}} |
| 25 | (f : X ⟶ Spec (CommRingCat.of K)) [Smooth f] [GeometricallyIntegral f] (x : X) : |
| 26 | UniqueFactorizationMonoid (X.presheaf.stalk x) := by |
| 27 | let B := pullback f (Geometric.Frobenius.Construction.algebraicClosureBase K) |
| 28 | let p : B ⟶ X := pullback.fst f (Geometric.Frobenius.Construction.algebraicClosureBase K) |
| 29 | let g : B ⟶ Spec (CommRingCat.of (AlgebraicClosure K)) := pullback.snd f (Geometric.Frobenius.Construction.algebraicClosureBase K) |
| 30 | have : Flat (Geometric.Frobenius.Construction.algebraicClosureBase K) := (Geometric.MapFaithful.Construction.algebraicClosureBase_flat_surjective K).1 |
| 31 | have : Surjective (Geometric.Frobenius.Construction.algebraicClosureBase K) := (Geometric.MapFaithful.Construction.algebraicClosureBase_flat_surjective K).2 |
| 32 | have : Flat p := inferInstanceAs (Flat (pullback.fst f (Geometric.Frobenius.Construction.algebraicClosureBase K))) |
| 33 | have : Surjective p := inferInstanceAs (Surjective (pullback.fst f (Geometric.Frobenius.Construction.algebraicClosureBase K))) |
| 34 | have : Smooth g := inferInstanceAs (Smooth (pullback.snd f (Geometric.Frobenius.Construction.algebraicClosureBase K))) |
| 35 | have : GeometricallyIntegral g := |
| 36 | inferInstanceAs (GeometricallyIntegral (pullback.snd f (Geometric.Frobenius.Construction.algebraicClosureBase K))) |
| 37 | have : IsIntegral B := GeometricallyIntegral.isIntegral_of_subsingleton g |
| 38 | have : IsIntegral X := GeometricallyIntegral.isIntegral_of_subsingleton f |
| 39 | have : IsLocallyNoetherian X := LocallyOfFiniteType.isLocallyNoetherian f |
| 40 | obtain ⟨y, rfl⟩ := (inferInstance : Surjective p).surj x |
| 41 | let R := X.presheaf.stalk (p y) |
| 42 | let S := B.presheaf.stalk y |
| 43 | let : Algebra R S := (p.stalkMap y).hom.toAlgebra |
| 44 | have : Module.Flat R S := Flat.stalkMap p y |
| 45 | have : IsLocalHom (algebraMap R S) := inferInstanceAs (IsLocalHom (p.stalkMap y).hom) |
| 46 | have : Module.FaithfullyFlat R S := Module.FaithfullyFlat.of_flat_of_isLocalHom |
| 47 | have : UniqueFactorizationMonoid S := Quotients.FiniteDescent.SmoothStalk.Construction.SmoothStalkFactorial.stalk g y |
| 48 | exact Quotients.FiniteDescent.Factorial.Construction.FactorialDescent.of_faithfullyFlat (R := R) (S := S) |
| 49 | |
| 50 | end Construction |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.GroundStalkFactorial |