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.Divisors.LineBundles.FlatOrderEq |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 3 | |
| 4 | /-! # Flat Morphism Order -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.FlatMorphismOrder.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # LineBundleCycles: native scheme orders at a reduced generic point of a flat fiber |
| 12 | -/ |
| 13 | |
| 14 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.Order |
| 15 | |
| 16 | variable {X Y : Scheme.{0}} [IsIntegral X] [IsIntegral Y] |
| 17 | [IsLocallyNoetherian X] [IsLocallyNoetherian Y] |
| 18 | |
| 19 | omit [IsLocallyNoetherian X] [IsLocallyNoetherian Y] in |
| 20 | theorem genericMorphism_stalkMap_injective (f : X ⟶ Y) |
| 21 | (hη : f (genericPoint X) = genericPoint Y) (x : X) : Function.Injective (f.stalkMap x) := by |
| 22 | intro a b hab |
| 23 | apply IsFractionRing.injective (Y.presheaf.stalk (f x)) Y.functionField |
| 24 | apply (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη).hom.injective |
| 25 | rw [RationalDivisorRestriction.BundleCycles.genericFieldMap_stalk f hη x a, RationalDivisorRestriction.BundleCycles.genericFieldMap_stalk f hη x b] |
| 26 | exact congrArg (algebraMap (X.presheaf.stalk x) X.functionField) hab |
| 27 | |
| 28 | theorem ord_flat_stalk_eq (f : X ⟶ Y) [Flat f] |
| 29 | (hη : f (genericPoint X) = genericPoint Y) (x : X) |
| 30 | (hx : coheight x = 1) (hy : coheight (f x) = 1) |
| 31 | (hmax : (IsLocalRing.maximalIdeal (Y.presheaf.stalk (f x))).map (f.stalkMap x).hom = |
| 32 | IsLocalRing.maximalIdeal (X.presheaf.stalk x)) (g : Y.functionField) : |
| 33 | X.ord (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη g) x = Y.ord g (f x) := by |
| 34 | let R := Y.presheaf.stalk (f x) |
| 35 | let S := X.presheaf.stalk x |
| 36 | let : Algebra R S := (f.stalkMap x).hom.toAlgebra |
| 37 | let : IsLocalHom (algebraMap R S) := inferInstanceAs (IsLocalHom (f.stalkMap x).hom) |
| 38 | let : Module.Flat R S := Flat.stalkMap f x |
| 39 | let : Ring.KrullDimLE 1 R := krullDimLE_of_coheight_le hy.le |
| 40 | let : Ring.KrullDimLE 1 S := krullDimLE_of_coheight_le hx.le |
| 41 | rw [Scheme.ord_eq_ordHom_of_coheight_eq_one hx, Scheme.ord_eq_ordHom_of_coheight_eq_one hy] |
| 42 | exact congrArg WithZero.log (FlatOrderEq.BundleCycles.FlatOrder.ordFrac_eq R S hmax (genericMorphism_stalkMap_injective f hη x) |
| 43 | (Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη).hom (RationalDivisorRestriction.BundleCycles.genericFieldMap_stalk f hη x) g) |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.AlgebraicGeometry.Divisors.LineBundles.FlatMorphismOrder.BundleCycles |