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.LocalIntersectionFiniteness |
| 2 | import Mathlib.RingTheory.Ideal.Height |
| 3 | |
| 4 | /-! # Surface Prime Factors -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.SurfacePrimeFactors.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # LineBundleCycles: prime factors on a local surface |
| 12 | |
| 13 | In a local domain of dimension at most two, a prime containing a nonzero |
| 14 | equation is either minimal over that equation or the maximal ideal. |
| 15 | The latter factors have finite length and contribute zero to the |
| 16 | multiplication Euler length. |
| 17 | -/ |
| 18 | |
| 19 | variable {R : Type*} [CommRing R] [IsDomain R] [IsLocalRing R] [Ring.KrullDimLE 2 R] |
| 20 | |
| 21 | theorem surfacePrime_minimal_or_maximal (b : R) (hb : b ≠ 0) |
| 22 | (J : Ideal R) [J.IsPrime] (hbJ : b ∈ J) : |
| 23 | J ∈ (Ideal.span {b}).minimalPrimes ∨ J = IsLocalRing.maximalIdeal R := by |
| 24 | by_cases hmin : J ∈ (Ideal.span {b}).minimalPrimes |
| 25 | · exact Or.inl hmin |
| 26 | right |
| 27 | obtain ⟨K, hK, hKJ⟩ := Ideal.exists_minimalPrimes_le |
| 28 | (show Ideal.span {b} ≤ J from Ideal.span_le.mpr (Set.singleton_subset_iff.mpr hbJ)) |
| 29 | let : K.IsPrime := hK.isPrime |
| 30 | have hKne : K ≠ J := fun he => hmin (he ▸ hK) |
| 31 | have hKb : b ∈ K := hK.le (Ideal.subset_span (Set.mem_singleton b)) |
| 32 | have hKbot : K ≠ ⊥ := by |
| 33 | intro h |
| 34 | rw [h, Ideal.mem_bot] at hKb |
| 35 | exact hb hKb |
| 36 | have hKheight : (1 : ℕ∞) ≤ K.height := |
| 37 | Order.one_le_iff_ne_zero.mpr (Ideal.height_eq_zero_iff_eq_bot.not.mpr hKbot) |
| 38 | have hJheight : (2 : ℕ∞) ≤ J.height := |
| 39 | (add_le_add hKheight (le_refl (1 : ℕ∞))).trans |
| 40 | (Ideal.height_add_one_le_of_lt_of_isPrime (lt_of_le_of_ne hKJ hKne)) |
| 41 | have hJm : J ≤ IsLocalRing.maximalIdeal R := IsLocalRing.le_maximalIdeal Ideal.IsPrime.ne_top' |
| 42 | apply le_antisymm hJm |
| 43 | by_contra hn |
| 44 | have hjlt : J < IsLocalRing.maximalIdeal R := lt_of_le_not_ge hJm hn |
| 45 | have h3 : (3 : ℕ∞) ≤ (IsLocalRing.maximalIdeal R).height := |
| 46 | (add_le_add hJheight (le_refl (1 : ℕ∞))).trans (Ideal.height_add_one_le_of_lt_of_isPrime hjlt) |
| 47 | have h2 : (IsLocalRing.maximalIdeal R).height ≤ (2 : ℕ∞) := |
| 48 | WithBot.coe_le_coe.mp (Ideal.height_le_ringKrullDim_of_isPrime.trans |
| 49 | (Ring.krullDimLE_iff.mp ‹Ring.KrullDimLE 2 R›)) |
| 50 | exact (by norm_num : ¬ (3 : ℕ∞) ≤ 2) (h3.trans h2) |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.AlgebraicGeometry.Divisors.LineBundles.SurfacePrimeFactors.BundleCycles |