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.SurfaceGeometricIntersection |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.Divisor |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.SurfaceRationalOrderIntersection |
| 4 | |
| 5 | /-! # Surface Cartier Symmetry -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.SurfaceCartierSymmetry.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # LineBundleCycles: symmetry of actual proper Cartier intersections on a local surface |
| 13 | |
| 14 | The cycles restrict the ambient equations to the actual prime supports, |
| 15 | take their geometric principal divisors, and use the existing local |
| 16 | equation multiplicities. The two complete cycles agree by the proved |
| 17 | local length symmetry, including for singular integral surfaces. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 21 | open scoped Classical |
| 22 | |
| 23 | variable {R : Type} [CommRing R] [IsNoetherianRing R] |
| 24 | |
| 25 | theorem surfacePrimeRationalCycle_regular (a : R) (P : Ideal R) [P.IsPrime] : |
| 26 | SurfaceGeometricIntersection.BundleCycles.surfacePrimeRationalCycle a 1 P = |
| 27 | Principal.CartierCycle.BundleCycles.principalCartierPointCycle (Affine.Divisor.BundleCycles.affineAmbientSection R a) (CycleClass.Geometric.StratumClosure.integralImageClosure (Affine.PrimeSupport.BundleCycles.affinePrimeQuotientMap R P)) := by |
| 28 | have h1 : Principal.CartierCycle.BundleCycles.supportRegularFunction (Affine.Divisor.BundleCycles.affineAmbientSection R 1) |
| 29 | (CycleClass.Geometric.StratumClosure.integralImageClosure (Affine.PrimeSupport.BundleCycles.affinePrimeQuotientMap R P)) = 1 := by |
| 30 | unfold Principal.CartierCycle.BundleCycles.supportRegularFunction Affine.Divisor.BundleCycles.affineAmbientSection RegularDivisor.BundleCycles.globalFunctionFieldElement |
| 31 | rw [map_one, map_one, map_one] |
| 32 | unfold SurfaceGeometricIntersection.BundleCycles.surfacePrimeRationalCycle |
| 33 | rw [Affine.Divisor.BundleCycles.affinePrimeLocalFunction_ratio, h1, div_one] |
| 34 | rfl |
| 35 | |
| 36 | def surfaceCartierSummand (a b : R) (P : Ideal R) : Spec (CommRingCat.of R) →₀ ℚ := |
| 37 | if hP : P ∈ (Ideal.span {b}).minimalPrimes then |
| 38 | letI : P.IsPrime := hP.isPrime |
| 39 | (LocalizedEquationLength.BundleCycles.primeEquationMultiplicity b P hP.isPrime : ℚ) • |
| 40 | Principal.CartierCycle.BundleCycles.principalCartierPointCycle (Affine.Divisor.BundleCycles.affineAmbientSection R a) (CycleClass.Geometric.StratumClosure.integralImageClosure (Affine.PrimeSupport.BundleCycles.affinePrimeQuotientMap R P)) |
| 41 | else 0 |
| 42 | |
| 43 | def surfaceCartierIntersection (a b : R) : Spec (CommRingCat.of R) →₀ ℚ := |
| 44 | ∑ P ∈ (Ideal.finite_minimalPrimes_of_isNoetherianRing R (Ideal.span {b})).toFinset, |
| 45 | surfaceCartierSummand a b P |
| 46 | |
| 47 | theorem surfaceCartierSummand_eq_rational (a b : R) (P : Ideal R) : |
| 48 | surfaceCartierSummand a b P = SurfaceGeometricIntersection.BundleCycles.surfaceGeometricRationalSummand a 1 b P := by |
| 49 | by_cases hP : P ∈ (Ideal.span {b}).minimalPrimes |
| 50 | · rw [surfaceCartierSummand, dite_eq_left hP, SurfaceGeometricIntersection.BundleCycles.surfaceGeometricRationalSummand, dite_eq_left hP, |
| 51 | surfacePrimeRationalCycle_regular] |
| 52 | · rw [surfaceCartierSummand, dite_eq_right hP, SurfaceGeometricIntersection.BundleCycles.surfaceGeometricRationalSummand, dite_eq_right hP] |
| 53 | |
| 54 | theorem surfaceCartierIntersection_eq_rational (a b : R) : |
| 55 | surfaceCartierIntersection a b = SurfaceGeometricIntersection.BundleCycles.surfaceGeometricRationalIntersection a 1 b := by |
| 56 | unfold surfaceCartierIntersection SurfaceGeometricIntersection.BundleCycles.surfaceGeometricRationalIntersection |
| 57 | exact Finset.sum_congr rfl (fun P _ => surfaceCartierSummand_eq_rational a b P) |
| 58 | |
| 59 | variable [IsDomain R] [IsLocalRing R] |
| 60 | |
| 61 | theorem surfaceCartierIntersection_eq_single (a b : R) (hb : b ≠ 0) |
| 62 | (hdim : ringKrullDim R = 2) |
| 63 | (hab : (Ideal.span {a, b}).radical = IsLocalRing.maximalIdeal R) : |
| 64 | surfaceCartierIntersection a b = |
| 65 | Finsupp.single (Affine.LocalDivisor.BundleCycles.affineLocalClosedPoint R) (SurfaceIntersectionFormula.BundleCycles.surfaceIntersectionNumber a b : ℚ) := by |
| 66 | rw [surfaceCartierIntersection_eq_rational, |
| 67 | SurfaceGeometricIntersection.BundleCycles.surfaceGeometricRationalIntersection_eq_single a 1 b hb hdim, |
| 68 | SurfaceRationalOrderIntersection.BundleCycles.surfaceRationalIntersectionNumber_one_denominator a b hb hdim hab] |
| 69 | |
| 70 | theorem surfaceCartierIntersection_comm (a b : R) (ha : a ≠ 0) (hb : b ≠ 0) |
| 71 | (hdim : ringKrullDim R = 2) |
| 72 | (hab : (Ideal.span {a, b}).radical = IsLocalRing.maximalIdeal R) : |
| 73 | surfaceCartierIntersection a b = surfaceCartierIntersection b a := by |
| 74 | have hba : (Ideal.span {b, a}).radical = IsLocalRing.maximalIdeal R := |
| 75 | (congrArg (fun s : Set R => (Ideal.span s).radical) (Set.pair_comm b a)).trans hab |
| 76 | rw [surfaceCartierIntersection_eq_single a b hb hdim hab, |
| 77 | surfaceCartierIntersection_eq_single b a ha hdim hba, |
| 78 | SurfaceRationalOrderIntersection.BundleCycles.surfaceIntersectionNumber_comm a b ha hb hdim hab] |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.Divisors.LineBundles.SurfaceCartierSymmetry.BundleCycles |