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.PrimeQuotient |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.Stalk |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.DivisorDimension |
| 4 | |
| 5 | /-! # Relative Height -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.RelativeHeight |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! An ambient codimension-two point lying on a divisor has native |
| 12 | codimension one inside the reduced divisor, including singular divisors. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace _root_.Order |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeQuotient |
| 20 | |
| 21 | theorem supportPreimage_coheight (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m : ℕ) |
| 22 | [SmoothOfRelativeDimension m X.structureMap] |
| 23 | (A : X.DimensionCycleSupport 1) (C : X.DimensionCycleSupport 2) |
| 24 | (hx : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (A.val : Set X.carrier)) : |
| 25 | coheight (CycleClass.Thom.IntersectionGeometry.supportPreimage A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx) = 1 := by |
| 26 | let R := X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) |
| 27 | let Y := CycleClass.Geometric.GenericPoint.reducedSupportScheme A.val |
| 28 | let y := CycleClass.Thom.IntersectionGeometry.supportPreimage A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx |
| 29 | let T := Y.presheaf.stalk y |
| 30 | let σ := Local.Principal.supportStalkMap X.carrier A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx |
| 31 | let : Algebra R T := σ.hom.toAlgebra |
| 32 | let : IsDomain R := X.stalk_isDomain (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) |
| 33 | let p := Stalk.PrimeQuotient.kernelPrime X.carrier A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx |
| 34 | have hp : p.asIdeal.height = 1 := by |
| 35 | rw [Stalk.Localization.height_eq_coheight_image, Stalk.PrimeQuotient.kernelPrime_image] |
| 36 | exact CurveSupports.coheight_one X m A |
| 37 | have hCA : C.val ≤ A.val := |
| 38 | (Supports.supportPoint_mem_iff_subset |
| 39 | (⟨(A.val : Set X.carrier), A.val.isClosed⟩ : Closeds X.carrier) C.val).mp hx |
| 40 | have hdim : (IsLocalRing.maximalIdeal R).height = 2 := |
| 41 | Stalk.maximalIdeal_height_two X m A C hCA |
| 42 | have hq := Affine.DivisorDimension.quotient_dimension_add_height_le R p |
| 43 | rw [hp, ← IsLocalRing.maximalIdeal_height_eq_ringKrullDim (R := R), hdim] at hq |
| 44 | have hq' : ringKrullDim (R ⧸ p.asIdeal) ≤ 1 := by |
| 45 | apply (ENat.WithBot.add_le_add_natCast_left_iff (c := 1)).mp |
| 46 | convert hq using 1 <;> norm_num |
| 47 | have hσ : Function.Surjective (Algebra.ofId R T) := |
| 48 | Local.Principal.supportStalkMap_surjective X.carrier A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx |
| 49 | have he : ringKrullDim (R ⧸ p.asIdeal) = ringKrullDim T := |
| 50 | (Ideal.quotientKerAlgEquivOfSurjective hσ).toRingEquiv.ringKrullDim |
| 51 | rw [he, ringKrullDim_stalk_eq_coheight] at hq' |
| 52 | have hle : coheight y ≤ 1 := WithBot.coe_le_coe.mp hq' |
| 53 | have hy : y ≠ genericPoint Y := by |
| 54 | intro h |
| 55 | have heq : CycleClass.Thom.IntersectionGeometry.supportPoint C.val = CycleClass.Thom.IntersectionGeometry.supportPoint A.val := |
| 56 | (CycleClass.Thom.IntersectionGeometry.supportPreimage_spec A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx).symm.trans |
| 57 | ((congrArg (CycleClass.Geometric.GenericPoint.reducedSupportι A.val) h).trans (CycleClass.Geometric.GenericPoint.reducedSupport_genericPoint_eq A.val)) |
| 58 | have hAC : C.val = A.val := irreducibleSetEquivPoints.injective heq |
| 59 | have hd := congrArg X.supportCodimension hAC |
| 60 | rw [C.property, A.property] at hd |
| 61 | omega |
| 62 | have hle' : y ≤ genericPoint Y := genericPoint_specializes y |
| 63 | have hlt : y < genericPoint Y := lt_of_le_not_ge hle' (by |
| 64 | intro h |
| 65 | exact hy (Specializes.antisymm h hle').eq) |
| 66 | have htop : coheight (genericPoint Y) = 0 := (isTop_top : IsTop (⊤ : Y)).isMax.coheight_eq_zero |
| 67 | have hlo := coheight_add_one_le hlt |
| 68 | rw [htop, zero_add] at hlo |
| 69 | exact le_antisymm hle hlo |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.RelativeHeight |