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.Stalk.PrimeOrder |
| 2 | |
| 3 | /-! # Geometric Order -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.GeometricOrder |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A nonclosed prime of an ambient stalk with one-dimensional |
| 10 | quotient determines a codimension-one point on its actual reduced |
| 11 | closure. Its principal parameter order is the geometric divisor order. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace _root_.Order |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.DivisorSupport |
| 19 | |
| 20 | variable (X : Scheme) [IsLocallyNoetherian X] (x : X) |
| 21 | (p : PrimeSpectrum (X.presheaf.stalk x)) |
| 22 | |
| 23 | omit [IsLocallyNoetherian X] in |
| 24 | theorem coheight_one (hp : p ≠ IsLocalRing.closedPoint (X.presheaf.stalk x)) |
| 25 | (hd : ringKrullDim ((X.presheaf.stalk x) ⧸ p.asIdeal) ≤ 1) : |
| 26 | coheight (CycleClass.Thom.IntersectionGeometry.supportPreimage (Stalk.DivisorSupport.primeClosure X x p) x (Stalk.DivisorSupport.point_mem_primeClosure X x p)) = 1 := by |
| 27 | let W := Stalk.DivisorSupport.primeClosure X x p |
| 28 | let Y := CycleClass.Geometric.GenericPoint.reducedSupportScheme W |
| 29 | let y := CycleClass.Thom.IntersectionGeometry.supportPreimage W x (Stalk.DivisorSupport.point_mem_primeClosure X x p) |
| 30 | let R := X.presheaf.stalk x |
| 31 | let T := Y.presheaf.stalk y |
| 32 | let σ := Local.Principal.supportStalkMap X W x (Stalk.DivisorSupport.point_mem_primeClosure X x p) |
| 33 | let : Algebra R T := σ.hom.toAlgebra |
| 34 | have hσ : Function.Surjective (Algebra.ofId R T) := |
| 35 | Local.Principal.supportStalkMap_surjective X W x (Stalk.DivisorSupport.point_mem_primeClosure X x p) |
| 36 | have hk : RingHom.ker σ.hom = p.asIdeal := Stalk.PrimeQuotient.kernel_eq X W x |
| 37 | (Stalk.DivisorSupport.point_mem_primeClosure X x p) p (Stalk.DivisorSupport.primeClosure_point X x p).symm |
| 38 | have he : ringKrullDim (R ⧸ p.asIdeal) = ringKrullDim T := by |
| 39 | rw [← hk] |
| 40 | exact (Ideal.quotientKerAlgEquivOfSurjective (f := Algebra.ofId R T) hσ).toRingEquiv.ringKrullDim |
| 41 | rw [he, ringKrullDim_stalk_eq_coheight] at hd |
| 42 | have hle : coheight y ≤ 1 := WithBot.coe_le_coe.mp hd |
| 43 | have hy : y ≠ genericPoint Y := by |
| 44 | intro hy |
| 45 | apply hp |
| 46 | apply (X.fromSpecStalk x).isEmbedding.injective |
| 47 | rw [Scheme.fromSpecStalk_closedPoint, ← Stalk.DivisorSupport.primeClosure_point X x p] |
| 48 | exact (CycleClass.Geometric.GenericPoint.reducedSupport_genericPoint_eq W).symm.trans |
| 49 | ((congrArg (CycleClass.Geometric.GenericPoint.reducedSupportι W) hy.symm).trans |
| 50 | (CycleClass.Thom.IntersectionGeometry.supportPreimage_spec W x (Stalk.DivisorSupport.point_mem_primeClosure X x p))) |
| 51 | have hspec : y ≤ genericPoint Y := genericPoint_specializes y |
| 52 | have hlt : y < genericPoint Y := lt_of_le_not_ge hspec (by |
| 53 | intro h |
| 54 | exact hy (Specializes.antisymm h hspec).eq) |
| 55 | have htop : coheight (genericPoint Y) = 0 := (isTop_top : IsTop (⊤ : Y)).isMax.coheight_eq_zero |
| 56 | have hlo := coheight_add_one_le hlt |
| 57 | rw [htop, zero_add] at hlo |
| 58 | exact le_antisymm hle hlo |
| 59 | |
| 60 | theorem order (hp : p ≠ IsLocalRing.closedPoint (X.presheaf.stalk x)) |
| 61 | (hd : ringKrullDim ((X.presheaf.stalk x) ⧸ p.asIdeal) ≤ 1) |
| 62 | (r : X.presheaf.stalk x) (hr : r ∉ p.asIdeal) : |
| 63 | let W := Stalk.DivisorSupport.primeClosure X x p |
| 64 | let y := CycleClass.Thom.IntersectionGeometry.supportPreimage W x (Stalk.DivisorSupport.point_mem_primeClosure X x p) |
| 65 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).ord |
| 66 | (algebraMap ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W).presheaf.stalk y) (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField |
| 67 | (Local.Principal.supportStalkMap X W x (Stalk.DivisorSupport.point_mem_primeClosure X x p) r)) y = |
| 68 | ((Ring.ord ((X.presheaf.stalk x) ⧸ p.asIdeal) (Ideal.Quotient.mk p.asIdeal r)).toNat : ℤ) := by |
| 69 | apply (Affine.PrincipalOrder.stalk_order _ _ (coheight_one X x p hp hd) _ |
| 70 | (Stalk.PrimeOrder.image_ne_zero X x p r hr)).trans |
| 71 | exact congrArg (fun n : ℕ∞ => (n.toNat : ℤ)) (Stalk.PrimeOrder.quotient_order X x p r) |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.GeometricOrder |