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.AdjacentSupportCoheight |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.DivisorSupport |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.OrderQuotientTransport |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.PrincipalOrder |
| 5 | |
| 6 | /-! # Prime Order -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeOrder |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Prime-quotient orders in a surface stalk are the native geometric |
| 13 | orders on the actual reduced closures of its height-one primes. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.DivisorSupport |
| 21 | |
| 22 | variable (X : Scheme) [IsIntegral X] [IsLocallyNoetherian X] (x : X) |
| 23 | (p : PrimeSpectrum (X.presheaf.stalk x)) |
| 24 | |
| 25 | omit [IsIntegral X] [IsLocallyNoetherian X] in |
| 26 | theorem image_ne_zero (r : X.presheaf.stalk x) (hr : r ∉ p.asIdeal) : |
| 27 | Local.Principal.supportStalkMap X (DivisorSupport.primeClosure X x p) x (DivisorSupport.point_mem_primeClosure X x p) r ≠ 0 := by |
| 28 | intro hz |
| 29 | apply hr |
| 30 | have hk := PrimeQuotient.kernel_eq X (DivisorSupport.primeClosure X x p) x |
| 31 | (DivisorSupport.point_mem_primeClosure X x p) p (DivisorSupport.primeClosure_point X x p).symm |
| 32 | rw [← hk] |
| 33 | exact RingHom.mem_ker.mpr hz |
| 34 | |
| 35 | omit [IsIntegral X] [IsLocallyNoetherian X] in |
| 36 | theorem quotient_order (r : X.presheaf.stalk x) : |
| 37 | Ring.ord ((CycleClass.Geometric.GenericPoint.reducedSupportScheme (DivisorSupport.primeClosure X x p)).presheaf.stalk |
| 38 | (CycleClass.Thom.IntersectionGeometry.supportPreimage (DivisorSupport.primeClosure X x p) x (DivisorSupport.point_mem_primeClosure X x p))) |
| 39 | (Local.Principal.supportStalkMap X (DivisorSupport.primeClosure X x p) x (DivisorSupport.point_mem_primeClosure X x p) r) = |
| 40 | Ring.ord ((X.presheaf.stalk x) ⧸ p.asIdeal) (Ideal.Quotient.mk p.asIdeal r) := by |
| 41 | let σ := Local.Principal.supportStalkMap X (DivisorSupport.primeClosure X x p) x (DivisorSupport.point_mem_primeClosure X x p) |
| 42 | have hk : RingHom.ker σ.hom = p.asIdeal := PrimeQuotient.kernel_eq X |
| 43 | (DivisorSupport.primeClosure X x p) x (DivisorSupport.point_mem_primeClosure X x p) p (DivisorSupport.primeClosure_point X x p).symm |
| 44 | rw [← hk] |
| 45 | exact OrderQuotientTransport.ord σ.hom |
| 46 | (Local.Principal.supportStalkMap_surjective X (DivisorSupport.primeClosure X x p) x (DivisorSupport.point_mem_primeClosure X x p)) r |
| 47 | |
| 48 | theorem geometric_order (hx : Order.coheight x = 2) (hp : p.asIdeal.height = 1) |
| 49 | (r : X.presheaf.stalk x) (hr : r ∉ p.asIdeal) : |
| 50 | let W := DivisorSupport.primeClosure X x p |
| 51 | let y := CycleClass.Thom.IntersectionGeometry.supportPreimage W x (DivisorSupport.point_mem_primeClosure X x p) |
| 52 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).ord |
| 53 | (algebraMap ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W).presheaf.stalk y) (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField |
| 54 | (Local.Principal.supportStalkMap X W x (DivisorSupport.point_mem_primeClosure X x p) r)) y = |
| 55 | ((Ring.ord ((X.presheaf.stalk x) ⧸ p.asIdeal) (Ideal.Quotient.mk p.asIdeal r)).toNat : ℤ) := by |
| 56 | have hW : Order.coheight (CycleClass.Thom.IntersectionGeometry.supportPoint (DivisorSupport.primeClosure X x p)) = 1 := by |
| 57 | rw [DivisorSupport.primeClosure_point, ← Localization.height_eq_coheight_image] |
| 58 | exact hp |
| 59 | have hy := AdjacentSupportCoheight.coheight_one X (DivisorSupport.primeClosure X x p) hW x hx |
| 60 | (DivisorSupport.point_mem_primeClosure X x p) |
| 61 | apply (Affine.PrincipalOrder.stalk_order _ _ hy _ (image_ne_zero X x p r hr)).trans |
| 62 | exact congrArg (fun n : ℕ∞ => (n.toNat : ℤ)) (quotient_order X x p r) |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeOrder |