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.Divisor.RelativeHeight |
| 2 | |
| 3 | /-! # Adjacent Support Coheight -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.AdjacentSupportCoheight |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A codimension-two point on a codimension-one integral support has |
| 10 | codimension one in that support, without ambient smoothness or normality. -/ |
| 11 | |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | set_option backward.isDefEq.respectTransparency.types false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace _root_.Order |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeQuotient |
| 18 | |
| 19 | theorem coheight_one (X : Scheme) [IsIntegral X] [IsLocallyNoetherian X] |
| 20 | (W : IrreducibleCloseds X) (hW : coheight (CycleClass.Thom.IntersectionGeometry.supportPoint W) = 1) |
| 21 | (x : X) (hx : coheight x = 2) (hxW : x ∈ (W : Set X)) : |
| 22 | coheight (CycleClass.Thom.IntersectionGeometry.supportPreimage W x hxW) = 1 := by |
| 23 | let R := X.presheaf.stalk x |
| 24 | let Y := CycleClass.Geometric.GenericPoint.reducedSupportScheme W |
| 25 | let y := CycleClass.Thom.IntersectionGeometry.supportPreimage W x hxW |
| 26 | let T := Y.presheaf.stalk y |
| 27 | let σ := Local.Principal.supportStalkMap X W x hxW |
| 28 | let : Algebra R T := σ.hom.toAlgebra |
| 29 | let p := Stalk.PrimeQuotient.kernelPrime X W x hxW |
| 30 | have hp : p.asIdeal.height = 1 := by |
| 31 | rw [Stalk.Localization.height_eq_coheight_image, Stalk.PrimeQuotient.kernelPrime_image, hW] |
| 32 | have hdim : (IsLocalRing.maximalIdeal R).height = 2 := by |
| 33 | apply WithBot.coe_injective |
| 34 | rw [IsLocalRing.maximalIdeal_height_eq_ringKrullDim, ringKrullDim_stalk_eq_coheight, hx] |
| 35 | have hq := Affine.DivisorDimension.quotient_dimension_add_height_le R p |
| 36 | rw [hp, ← IsLocalRing.maximalIdeal_height_eq_ringKrullDim (R := R), hdim] at hq |
| 37 | have hq' : ringKrullDim (R ⧸ p.asIdeal) ≤ 1 := by |
| 38 | apply (ENat.WithBot.add_le_add_natCast_left_iff (c := 1)).mp |
| 39 | convert hq using 1 <;> norm_num |
| 40 | have hσ : Function.Surjective (Algebra.ofId R T) := Local.Principal.supportStalkMap_surjective X W x hxW |
| 41 | have he : ringKrullDim (R ⧸ p.asIdeal) = ringKrullDim T := |
| 42 | (Ideal.quotientKerAlgEquivOfSurjective (f := Algebra.ofId R T) hσ).toRingEquiv.ringKrullDim |
| 43 | rw [he, ringKrullDim_stalk_eq_coheight] at hq' |
| 44 | have hle : coheight y ≤ 1 := WithBot.coe_le_coe.mp hq' |
| 45 | have hy : y ≠ genericPoint Y := by |
| 46 | intro h |
| 47 | have heq : x = CycleClass.Thom.IntersectionGeometry.supportPoint W := (CycleClass.Thom.IntersectionGeometry.supportPreimage_spec W x hxW).symm.trans |
| 48 | ((congrArg (CycleClass.Geometric.GenericPoint.reducedSupportι W) h).trans (CycleClass.Geometric.GenericPoint.reducedSupport_genericPoint_eq W)) |
| 49 | rw [heq, hW] at hx |
| 50 | exact (by decide : (1 : ℕ∞) ≠ 2) hx |
| 51 | have hle' : y ≤ genericPoint Y := genericPoint_specializes y |
| 52 | have hlt : y < genericPoint Y := lt_of_le_not_ge hle' (by |
| 53 | intro h |
| 54 | exact hy (Specializes.antisymm h hle').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 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.AdjacentSupportCoheight |