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.SurfaceRationalOrderIntersection |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.LocalDivisor |
| 3 | |
| 4 | /-! # Surface Prime Curve -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.SurfacePrimeCurve.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # LineBundleCycles: every minimal prime section of a local surface is an actual local curve |
| 12 | |
| 13 | Krull's principal ideal theorem excludes the maximal ideal among the |
| 14 | minimal primes of a nonzero equation on a two-dimensional local domain. |
| 15 | The quotient is consequently one-dimensional, including singular curves. |
| 16 | -/ |
| 17 | |
| 18 | variable {R : Type} [CommRing R] [IsDomain R] [IsNoetherianRing R] [IsLocalRing R] |
| 19 | |
| 20 | omit [IsDomain R] in |
| 21 | theorem surfaceMinimalPrime_ne_maximal (b : R) (hdim : ringKrullDim R = 2) |
| 22 | (P : Ideal R) (hP : P ∈ (Ideal.span {b}).minimalPrimes) : |
| 23 | P ≠ IsLocalRing.maximalIdeal R := by |
| 24 | intro he |
| 25 | have hh : P.height ≤ (1 : ℕ∞) := |
| 26 | Ideal.height_le_one_of_isPrincipal_of_mem_minimalPrimes (Ideal.span {b}) P hP |
| 27 | have hm : ((IsLocalRing.maximalIdeal R).height : WithBot ℕ∞) ≤ 1 := |
| 28 | WithBot.coe_le_coe.mpr (he ▸ hh) |
| 29 | rw [IsLocalRing.maximalIdeal_height_eq_ringKrullDim, hdim] at hm |
| 30 | exact (by norm_num : ¬ (2 : WithBot ℕ∞) ≤ 1) hm |
| 31 | |
| 32 | theorem surfacePrimeQuotient_dimension (b : R) (hb : b ≠ 0) (hdim : ringKrullDim R = 2) |
| 33 | (P : Ideal R) (hP : P ∈ (Ideal.span {b}).minimalPrimes) : ringKrullDim (R ⧸ P) = 1 := by |
| 34 | let : P.IsPrime := hP.isPrime |
| 35 | let : IsLocalRing (R ⧸ P) := |
| 36 | IsLocalRing.of_surjective' (Ideal.Quotient.mk P) Ideal.Quotient.mk_surjective |
| 37 | let : Ring.KrullDimLE 1 (R ⧸ P) := |
| 38 | SurfaceRationalOrderIntersection.BundleCycles.surfacePrimeSupport_krullDimLE b hb hdim P (hP.le (Ideal.subset_span (Set.mem_singleton b))) |
| 39 | have hfield : ¬ IsField (R ⧸ P) := fun hf => |
| 40 | surfaceMinimalPrime_ne_maximal b hdim P hP |
| 41 | (IsLocalRing.eq_maximalIdeal (Ideal.Quotient.maximal_of_isField P hf)) |
| 42 | have hn : IsLocalRing.maximalIdeal (R ⧸ P) ≠ ⊥ := |
| 43 | Ring.ne_bot_of_isMaximal_of_not_isField inferInstance hfield |
| 44 | have hh : (1 : ℕ∞) ≤ (IsLocalRing.maximalIdeal (R ⧸ P)).height := |
| 45 | Order.one_le_iff_ne_zero.mpr (Ideal.height_eq_zero_iff_eq_bot.not.mpr hn) |
| 46 | apply le_antisymm (Ring.krullDimLE_iff.mp inferInstance) |
| 47 | exact (WithBot.coe_le_coe.mpr hh).trans_eq IsLocalRing.maximalIdeal_height_eq_ringKrullDim |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.AlgebraicGeometry.Divisors.LineBundles.SurfacePrimeCurve.BundleCycles |