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.Divisors.LineBundles.Affine.PrimeSupport |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.SurfaceRationalOrderIntersection |
| 3 | |
| 4 | /-! # Local Divisor -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.LocalDivisor.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! |
| 13 | # LineBundleCycles: the native closed-point order on an arbitrary local integral curve |
| 14 | |
| 15 | The stalk at the closed point of Spec R is canonically R. Together with |
| 16 | the actual generic-field map, this identifies Scheme.ord with the |
| 17 | existing rational ring order, including for singular local domains. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.Order |
| 21 | |
| 22 | variable (R : Type) [CommRing R] [IsDomain R] |
| 23 | |
| 24 | local instance affineLocalOrder_fieldAlgebra : Algebra R (Spec (CommRingCat.of R)).functionField := |
| 25 | (StructureSheaf.toStalk R (genericPoint (Spec (CommRingCat.of R)))).hom.toAlgebra |
| 26 | |
| 27 | local instance affineLocalOrder_isFractionRing : IsFractionRing R (Spec (CommRingCat.of R)).functionField := |
| 28 | functionField_isFractionRing_of_affine (CommRingCat.of R) |
| 29 | |
| 30 | def affineGenericFieldIso : FractionRing R ≃ₐ[R] (Spec (CommRingCat.of R)).functionField := |
| 31 | FractionRing.algEquiv R (Spec (CommRingCat.of R)).functionField |
| 32 | |
| 33 | variable [IsLocalRing R] |
| 34 | |
| 35 | def affineLocalClosedPoint : Spec (CommRingCat.of R) := IsLocalRing.closedPoint R |
| 36 | |
| 37 | def affineClosedStalkIso : R ≃+* |
| 38 | (Spec (CommRingCat.of R)).presheaf.stalk (affineLocalClosedPoint R) := |
| 39 | (stalkClosedPointIso (CommRingCat.of R)).symm.commRingCatIsoToRingEquiv |
| 40 | |
| 41 | omit [IsDomain R] in |
| 42 | theorem affineLocalClosedPoint_coheight (hdim : ringKrullDim R = 1) : |
| 43 | coheight (affineLocalClosedPoint R) = 1 := by |
| 44 | have he := (ringKrullDim_eq_of_ringEquiv (affineClosedStalkIso R)).symm |
| 45 | rw [ringKrullDim_stalk_eq_coheight] at he |
| 46 | exact WithBot.coe_inj.mp (he.trans hdim) |
| 47 | |
| 48 | theorem affineClosedStalkIso_generic (a : R) : |
| 49 | affineGenericFieldIso R (algebraMap R (FractionRing R) a) = |
| 50 | algebraMap ((Spec (CommRingCat.of R)).presheaf.stalk (affineLocalClosedPoint R)) |
| 51 | (Spec (CommRingCat.of R)).functionField (affineClosedStalkIso R a) := by |
| 52 | have hi : affineClosedStalkIso R a = StructureSheaf.toStalk R (affineLocalClosedPoint R) a := |
| 53 | congrArg (fun j : CommRingCat.of R ⟶ |
| 54 | (Spec (CommRingCat.of R)).presheaf.stalk (affineLocalClosedPoint R) => j a) |
| 55 | (stalkClosedPointIso_inv (CommRingCat.of R)) |
| 56 | rw [AlgEquiv.commutes, hi] |
| 57 | exact (congrArg (fun j : CommRingCat.of R ⟶ (Spec (CommRingCat.of R)).functionField => j a) |
| 58 | (StructureSheaf.toStalk_stalkSpecializes |
| 59 | ((genericPoint_spec (Spec (CommRingCat.of R))).specializes trivial))).symm |
| 60 | |
| 61 | variable [IsNoetherianRing R] [Ring.KrullDimLE 1 R] |
| 62 | |
| 63 | theorem affineLocalOrder_eq_ringOrder |
| 64 | (hx : coheight (affineLocalClosedPoint R) = 1) |
| 65 | (g : FractionRing R) : |
| 66 | (Spec (CommRingCat.of R)).ord (affineGenericFieldIso R g) (affineLocalClosedPoint R) = |
| 67 | SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R g := by |
| 68 | let : Ring.KrullDimLE 1 |
| 69 | ((Spec (CommRingCat.of R)).presheaf.stalk (affineLocalClosedPoint R)) := |
| 70 | krullDimLE_of_coheight_le hx.le |
| 71 | rw [Scheme.ord_eq_ordHom_of_coheight_eq_one hx] |
| 72 | exact congrArg (fun z : WithZero (Multiplicative ℤ) => Multiplicative.toAdd (z.unzeroD 1)) |
| 73 | (RationalDivisorRestriction.BundleCycles.ringOrderFrac_equiv (affineClosedStalkIso R) (affineGenericFieldIso R).toRingEquiv |
| 74 | (affineClosedStalkIso_generic R) g) |
| 75 | |
| 76 | end |
| 77 | |
| 78 | section |
| 79 | |
| 80 | /-! |
| 81 | # LineBundleCycles: the complete divisor on an actual one-dimensional local spectrum |
| 82 | |
| 83 | The only possible divisor point is the closed point. Its coefficient |
| 84 | is the existing rational ring order, with no normality assumption. |
| 85 | -/ |
| 86 | |
| 87 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.Order |
| 88 | open scoped Classical |
| 89 | |
| 90 | variable (R : Type) [CommRing R] [IsDomain R] [IsLocalRing R] |
| 91 | variable [IsNoetherianRing R] [Ring.KrullDimLE 1 R] |
| 92 | |
| 93 | local instance affineLocalDivisor_fieldAlgebra : Algebra R (Spec (CommRingCat.of R)).functionField := |
| 94 | (StructureSheaf.toStalk R (genericPoint (Spec (CommRingCat.of R)))).hom.toAlgebra |
| 95 | |
| 96 | local instance affineLocalDivisor_isFractionRing : IsFractionRing R (Spec (CommRingCat.of R)).functionField := |
| 97 | functionField_isFractionRing_of_affine (CommRingCat.of R) |
| 98 | |
| 99 | theorem affineLocal_principalDivisor (hdim : ringKrullDim R = 1) (g : FractionRing R) : |
| 100 | RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor (Spec (CommRingCat.of R)) (affineGenericFieldIso R g) = |
| 101 | Finsupp.single (affineLocalClosedPoint R) (SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R g : ℚ) := by |
| 102 | ext x |
| 103 | rw [RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor_apply] |
| 104 | by_cases hx : x.asIdeal = ⊥ |
| 105 | · have hc : coheight x ≠ 1 := by |
| 106 | rw [← idealHeight_eq_coheight, hx, Ideal.height_bot] |
| 107 | decide |
| 108 | rw [Scheme.ord_eq_zero_of_coheight_neq_one hc, Int.cast_zero] |
| 109 | symm |
| 110 | apply Finsupp.single_eq_of_ne |
| 111 | intro he |
| 112 | have hhc := affineLocalClosedPoint_coheight R hdim |
| 113 | exact hc ((congrArg coheight he).trans hhc) |
| 114 | · have he : x = affineLocalClosedPoint R := by |
| 115 | apply PrimeSpectrum.ext |
| 116 | exact IsLocalRing.eq_maximalIdeal (x.isPrime.isMaximal_of_ne_bot hx) |
| 117 | rw [he, Finsupp.single_eq_same, |
| 118 | affineLocalOrder_eq_ringOrder R (affineLocalClosedPoint_coheight R hdim)] |
| 119 | |
| 120 | end |
| 121 | |
| 122 | /-! |
| 123 | # LineBundleCycles: a prime local curve's divisor as an actual ambient geometric cycle |
| 124 | |
| 125 | The quotient spectrum is its reduced image support, and its closed point |
| 126 | maps to the ambient closed point. The complete transported principal |
| 127 | divisor therefore has its actual rational ring order as sole coefficient. |
| 128 | -/ |
| 129 | |
| 130 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 131 | |
| 132 | local instance affinePrimeLocal_fieldAlgebra (S : Type) [CommRing S] [IsDomain S] : Algebra S (Spec (.of S)).functionField := |
| 133 | (StructureSheaf.toStalk S (genericPoint (Spec (.of S)))).hom.toAlgebra |
| 134 | |
| 135 | local instance affinePrimeLocal_isFractionRing (S : Type) [CommRing S] [IsDomain S] : IsFractionRing S (Spec (.of S)).functionField := |
| 136 | functionField_isFractionRing_of_affine (CommRingCat.of S) |
| 137 | |
| 138 | variable (R : Type) [CommRing R] (P : Ideal R) [P.IsPrime] |
| 139 | |
| 140 | def affinePrimeLocalFunction (g : FractionRing (R ⧸ P)) : |
| 141 | (CycleClass.Geometric.GenericPoint.reducedSupportScheme (CycleClass.Geometric.StratumClosure.integralImageClosure (PrimeSupport.BundleCycles.affinePrimeQuotientMap R P))).functionField := |
| 142 | Integral.ClosedImage.BundleCycles.integralClosedImageFunction (PrimeSupport.BundleCycles.affinePrimeQuotientMap R P) (affineGenericFieldIso (R ⧸ P) g) |
| 143 | |
| 144 | variable [IsLocalRing R] |
| 145 | |
| 146 | local instance affinePrimeLocal_quotientLocalRing : IsLocalRing (R ⧸ P) := |
| 147 | IsLocalRing.of_surjective' (Ideal.Quotient.mk P) Ideal.Quotient.mk_surjective |
| 148 | |
| 149 | theorem affinePrimeQuotientMap_closedPoint : |
| 150 | PrimeSupport.BundleCycles.affinePrimeQuotientMap R P (affineLocalClosedPoint (R ⧸ P)) = affineLocalClosedPoint R := by |
| 151 | let : IsLocalHom (Ideal.Quotient.mk P) := |
| 152 | IsLocalHom.of_surjective (Ideal.Quotient.mk P) Ideal.Quotient.mk_surjective |
| 153 | exact Spec_closedPoint (f := CommRingCat.ofHom (Ideal.Quotient.mk P)) |
| 154 | |
| 155 | variable [IsNoetherianRing R] |
| 156 | |
| 157 | theorem affinePrimeLocal_principalDivisor (hdim : ringKrullDim (R ⧸ P) = 1) |
| 158 | (g : FractionRing (R ⧸ P)) : |
| 159 | letI : Ring.KrullDimLE 1 (R ⧸ P) := Ring.krullDimLE_iff.mpr hdim.le |
| 160 | Graded.GlobalSpecialization.BundleCycles.schemePrincipalPointDivisor (CycleClass.Geometric.StratumClosure.integralImageClosure (PrimeSupport.BundleCycles.affinePrimeQuotientMap R P)) |
| 161 | (affinePrimeLocalFunction R P g) = |
| 162 | Finsupp.single (affineLocalClosedPoint R) (SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder (R ⧸ P) g : ℚ) := by |
| 163 | let : Ring.KrullDimLE 1 (R ⧸ P) := Ring.krullDimLE_iff.mpr hdim.le |
| 164 | change Graded.GlobalSpecialization.BundleCycles.schemePrincipalPointDivisor (CycleClass.Geometric.StratumClosure.integralImageClosure (PrimeSupport.BundleCycles.affinePrimeQuotientMap R P)) |
| 165 | (Integral.ClosedImage.BundleCycles.integralClosedImageFunction (PrimeSupport.BundleCycles.affinePrimeQuotientMap R P) (affineGenericFieldIso (R ⧸ P) g)) = _ |
| 166 | rw [← PrimeSupport.BundleCycles.affinePrimeSupport_principalDivisor, affineLocal_principalDivisor (R ⧸ P) hdim, |
| 167 | Finsupp.mapDomain_single, affinePrimeQuotientMap_closedPoint] |
| 168 | |
| 169 | end |
| 170 | |
| 171 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.LocalDivisor.BundleCycles |