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.IntermediateSupports |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.AdjacentSupportCoheight |
| 3 | |
| 4 | /-! # Adjacent Support Stalk -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.AdjacentSupportStalk |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Adjacent ambient codimensions give a one-dimensional support stalk, |
| 11 | for arbitrary singular integral supports in every ambient dimension. -/ |
| 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.PrimeQuotient |
| 19 | |
| 20 | theorem coheight_one (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m r : ℕ) |
| 21 | [SmoothOfRelativeDimension m X.structureMap] |
| 22 | (A : X.DimensionCycleSupport r) (C : X.DimensionCycleSupport (r + 1)) |
| 23 | (hx : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (A.val : Set X.carrier)) : |
| 24 | coheight (CycleClass.Thom.IntersectionGeometry.supportPreimage A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx) = 1 := by |
| 25 | let R := X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) |
| 26 | let Y := CycleClass.Geometric.GenericPoint.reducedSupportScheme A.val |
| 27 | let y := CycleClass.Thom.IntersectionGeometry.supportPreimage A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx |
| 28 | let T := Y.presheaf.stalk y |
| 29 | let σ := Local.Principal.supportStalkMap X.carrier A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx |
| 30 | let : Algebra R T := σ.hom.toAlgebra |
| 31 | let p := Stalk.PrimeQuotient.kernelPrime X.carrier A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx |
| 32 | have hp : p.asIdeal.height = r := by |
| 33 | rw [Stalk.Localization.height_eq_coheight_image, Stalk.PrimeQuotient.kernelPrime_image] |
| 34 | exact IntermediateSupports.support_coheight X m r A |
| 35 | have hd : (IsLocalRing.maximalIdeal R).height = r + 1 := by |
| 36 | simpa only [Nat.cast_add, Nat.cast_one] using IntermediateSupports.stalk_height X m (r + 1) C |
| 37 | have hq := Affine.DivisorDimension.quotient_dimension_add_height_le R p |
| 38 | rw [hp, ← IsLocalRing.maximalIdeal_height_eq_ringKrullDim (R := R), hd] at hq |
| 39 | have hq' : ringKrullDim (R ⧸ p.asIdeal) ≤ 1 := by |
| 40 | apply (ENat.WithBot.add_le_add_natCast_left_iff (c := r)).mp |
| 41 | simpa only [WithBot.coe_add, WithBot.coe_natCast, WithBot.coe_one] using hq |
| 42 | have hσ : Function.Surjective (Algebra.ofId R T) := |
| 43 | Local.Principal.supportStalkMap_surjective X.carrier A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx |
| 44 | have he : ringKrullDim (R ⧸ p.asIdeal) = ringKrullDim T := |
| 45 | (Ideal.quotientKerAlgEquivOfSurjective (f := Algebra.ofId R T) hσ).toRingEquiv.ringKrullDim |
| 46 | rw [he, ringKrullDim_stalk_eq_coheight] at hq' |
| 47 | have hle : coheight y ≤ 1 := WithBot.coe_le_coe.mp hq' |
| 48 | have hy : y ≠ genericPoint Y := by |
| 49 | intro h |
| 50 | have heq : CycleClass.Thom.IntersectionGeometry.supportPoint C.val = CycleClass.Thom.IntersectionGeometry.supportPoint A.val := |
| 51 | (CycleClass.Thom.IntersectionGeometry.supportPreimage_spec A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx).symm.trans |
| 52 | ((congrArg (CycleClass.Geometric.GenericPoint.reducedSupportι A.val) h).trans (CycleClass.Geometric.GenericPoint.reducedSupport_genericPoint_eq A.val)) |
| 53 | have hc := congrArg X.supportCodimension (irreducibleSetEquivPoints.injective heq) |
| 54 | rw [C.property, A.property] at hc |
| 55 | omega |
| 56 | have hle' : y ≤ genericPoint Y := genericPoint_specializes y |
| 57 | have hlt : y < genericPoint Y := lt_of_le_not_ge hle' (by |
| 58 | intro h |
| 59 | exact hy (Specializes.antisymm h hle').eq) |
| 60 | have htop : coheight (genericPoint Y) = 0 := (isTop_top : IsTop (⊤ : Y)).isMax.coheight_eq_zero |
| 61 | have hlo := coheight_add_one_le hlt |
| 62 | rw [htop, zero_add] at hlo |
| 63 | exact le_antisymm hle hlo |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.AdjacentSupportStalk |