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.Finite.OrderDimension |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.PrincipalOrder |
| 3 | |
| 4 | /-! # Every Stalk Order -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.EveryStalkOrder |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! For a nonzero regular germ, the native geometric order at |
| 11 | every point is the natural-number value of its principal colength. |
| 12 | Outside codimension one both sides vanish. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.Order |
| 15 | |
| 16 | theorem order (X : Scheme) [IsIntegral X] [IsLocallyNoetherian X] |
| 17 | (x : X) (r : X.presheaf.stalk x) (hr : r ≠ 0) : |
| 18 | X.ord (algebraMap (X.presheaf.stalk x) X.functionField r) x = |
| 19 | ((Ring.ord (X.presheaf.stalk x) r).toNat : ℤ) := by |
| 20 | by_cases hx : coheight x = 1 |
| 21 | · exact Affine.PrincipalOrder.stalk_order X x hx r hr |
| 22 | · have hn : (Ring.ord (X.presheaf.stalk x) r).toNat = 0 := by |
| 23 | by_contra h |
| 24 | have hd := Finite.OrderDimension.dimension (X.presheaf.stalk x) r hr h |
| 25 | rw [ringKrullDim_stalk_eq_coheight] at hd |
| 26 | exact hx (WithBot.coe_inj.mp hd) |
| 27 | rw [Scheme.ord_eq_zero_of_coheight_neq_one hx, hn, Int.ofNat_zero] |
| 28 | |
| 29 | end |
| 30 | |
| 31 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.EveryStalkOrder |