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.AdjacentSupportStalk |
| 2 | |
| 3 | /-! # Support Surface Stalk -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.SupportSurfaceStalk |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Two steps of ambient codimension give a two-dimensional local |
| 10 | domain on the larger support, including singular and nonnormal supports |
| 11 | 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 | variable (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m r : ℕ) [SmoothOfRelativeDimension m X.structureMap] |
| 21 | |
| 22 | include m |
| 23 | |
| 24 | theorem coheight_two (W : X.DimensionCycleSupport r) (A : X.DimensionCycleSupport (r + 1)) |
| 25 | (C : X.DimensionCycleSupport (r + 2)) (hAW : A.val ≤ W.val) |
| 26 | (hxA : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (A.val : Set X.carrier)) |
| 27 | (hxW : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (W.val : Set X.carrier)) : |
| 28 | coheight (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW) = 2 := by |
| 29 | let R := X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) |
| 30 | let Y := CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val |
| 31 | let y := CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW |
| 32 | let T := Y.presheaf.stalk y |
| 33 | let σ := Local.Principal.supportStalkMap X.carrier W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW |
| 34 | let : Algebra R T := σ.hom.toAlgebra |
| 35 | let : IsDomain R := X.stalk_isDomain (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) |
| 36 | let p := Stalk.PrimeQuotient.kernelPrime X.carrier W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW |
| 37 | have hp : p.asIdeal.height = r := by |
| 38 | rw [Stalk.Localization.height_eq_coheight_image, Stalk.PrimeQuotient.kernelPrime_image] |
| 39 | exact IntermediateSupports.support_coheight X m r W |
| 40 | have hq := Affine.DivisorDimension.quotient_dimension_add_height_le R p |
| 41 | rw [hp, ← IsLocalRing.maximalIdeal_height_eq_ringKrullDim (R := R), |
| 42 | IntermediateSupports.stalk_height X m (r + 2) C] at hq |
| 43 | have hq' : ringKrullDim (R ⧸ p.asIdeal) ≤ 2 := by |
| 44 | apply (ENat.WithBot.add_le_add_natCast_left_iff (c := r)).mp |
| 45 | simpa only [Nat.cast_add, Nat.cast_ofNat, WithBot.coe_add, WithBot.coe_natCast, WithBot.coe_ofNat] using hq |
| 46 | have hσ : Function.Surjective (Algebra.ofId R T) := |
| 47 | Local.Principal.supportStalkMap_surjective X.carrier W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW |
| 48 | have he : ringKrullDim (R ⧸ p.asIdeal) = ringKrullDim T := |
| 49 | (Ideal.quotientKerAlgEquivOfSurjective (f := Algebra.ofId R T) hσ).toRingEquiv.ringKrullDim |
| 50 | rw [he, ringKrullDim_stalk_eq_coheight] at hq' |
| 51 | have hle : coheight y ≤ 2 := WithBot.coe_le_coe.mp hq' |
| 52 | have hzW : CycleClass.Thom.IntersectionGeometry.supportPoint A.val ∈ (W.val : Set X.carrier) := |
| 53 | hAW (A.val.isIrreducible.isGenericPoint_genericPoint A.val.isClosed).mem |
| 54 | let z := CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint A.val) hzW |
| 55 | have hz : coheight z = 1 := AdjacentSupportStalk.coheight_one X m r W A hzW |
| 56 | have hyz : y ≤ z := by |
| 57 | change z ⤳ y |
| 58 | apply (CycleClass.Geometric.GenericPoint.reducedSupportι W.val).isEmbedding.isInducing.specializes_iff.mp |
| 59 | rw [CycleClass.Thom.IntersectionGeometry.supportPreimage_spec, CycleClass.Thom.IntersectionGeometry.supportPreimage_spec] |
| 60 | exact (A.val.isIrreducible.isGenericPoint_genericPoint A.val.isClosed).specializes hxA |
| 61 | have hne : y ≠ z := by |
| 62 | intro h |
| 63 | have hh := congrArg (CycleClass.Geometric.GenericPoint.reducedSupportι W.val) h |
| 64 | rw [CycleClass.Thom.IntersectionGeometry.supportPreimage_spec, CycleClass.Thom.IntersectionGeometry.supportPreimage_spec] at hh |
| 65 | have hc := congrArg X.supportCodimension (irreducibleSetEquivPoints.injective hh) |
| 66 | rw [C.property, A.property] at hc |
| 67 | omega |
| 68 | have hlt : y < z := lt_of_le_not_ge hyz (by |
| 69 | intro h |
| 70 | exact hne (Specializes.antisymm h hyz).eq) |
| 71 | have hlo := coheight_add_one_le hlt |
| 72 | rw [hz, one_add_one_eq_two] at hlo |
| 73 | exact le_antisymm hle hlo |
| 74 | |
| 75 | theorem maximal_height (W : X.DimensionCycleSupport r) (A : X.DimensionCycleSupport (r + 1)) |
| 76 | (C : X.DimensionCycleSupport (r + 2)) (hAW : A.val ≤ W.val) |
| 77 | (hxA : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (A.val : Set X.carrier)) |
| 78 | (hxW : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (W.val : Set X.carrier)) : |
| 79 | (IsLocalRing.maximalIdeal ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk |
| 80 | (CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW))).height = 2 := by |
| 81 | apply WithBot.coe_injective |
| 82 | rw [IsLocalRing.maximalIdeal_height_eq_ringKrullDim, ringKrullDim_stalk_eq_coheight, |
| 83 | coheight_two X m r W A C hAW hxA hxW] |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Relative.SupportSurfaceStalk |