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.SurfaceProperCriterion |
| 2 | import Mathlib.RingTheory.Ideal.MinimalPrime.Noetherian |
| 3 | import Mathlib.RingTheory.Ideal.KrullsHeightTheorem |
| 4 | |
| 5 | /-! # Auxiliary Parameter -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Branch.AuxiliaryParameter.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # LineBundleCycles: an actual auxiliary annihilator transverse to a branch equation |
| 13 | |
| 14 | Prime avoidance selects an element of an ideal with radical P which |
| 15 | avoids all minimal primes of x, provided x is outside P. On a local |
| 16 | surface, this gives a proper parameter pair (x,y), with y in the |
| 17 | original ideal. It permits reuse of the proved two-equation filtration |
| 18 | formula for a module supported on the single branch P. |
| 19 | -/ |
| 20 | |
| 21 | variable {R : Type*} [CommRing R] [IsDomain R] [IsNoetherianRing R] |
| 22 | |
| 23 | theorem minimalPrincipalPrimes_comparable_eq (r s : R) (hr : r ≠ 0) |
| 24 | (P Q : Ideal R) (hP : P ∈ (Ideal.span {r}).minimalPrimes) |
| 25 | (hQ : Q ∈ (Ideal.span {s}).minimalPrimes) (hpq : P ≤ Q) : P = Q := by |
| 26 | let auxiliaryFirstPrime : P.IsPrime := hP.isPrime |
| 27 | let auxiliarySecondPrime : Q.IsPrime := hQ.isPrime |
| 28 | have hPbot : P ≠ ⊥ := by |
| 29 | intro he |
| 30 | have hp := hP.le (Ideal.subset_span (Set.mem_singleton r)) |
| 31 | rw [he, Ideal.mem_bot] at hp |
| 32 | exact hr hp |
| 33 | have hPheight : (1 : ℕ∞) ≤ P.height := |
| 34 | Order.one_le_iff_ne_zero.mpr (Ideal.height_eq_zero_iff_eq_bot.not.mpr hPbot) |
| 35 | by_contra hne |
| 36 | have hQheight : (2 : ℕ∞) ≤ Q.height := |
| 37 | (add_le_add hPheight (le_refl (1 : ℕ∞))).trans |
| 38 | (Ideal.height_add_one_le_of_lt_of_isPrime (lt_of_le_of_ne hpq hne)) |
| 39 | have hQone : Q.height ≤ (1 : ℕ∞) := |
| 40 | Ideal.height_le_one_of_isPrincipal_of_mem_minimalPrimes (Ideal.span {s}) Q hQ |
| 41 | exact (by norm_num : ¬ (2 : ℕ∞) ≤ 1) (hQheight.trans hQone) |
| 42 | |
| 43 | theorem branchIdeal_exists_avoiding_equation (r x : R) (hr : r ≠ 0) |
| 44 | (P I : Ideal R) (hP : P ∈ (Ideal.span {r}).minimalPrimes) |
| 45 | (hI : I.radical = P) (hxP : x ∉ P) : |
| 46 | ∃ y ∈ I, ∀ Q : Ideal R, Q ∈ (Ideal.span {x}).minimalPrimes → y ∉ Q := by |
| 47 | classical |
| 48 | let S := (Ideal.finite_minimalPrimes_of_isNoetherianRing R (Ideal.span {x})).toFinset |
| 49 | have hnot : ¬ (I : Set R) ⊆ ⋃ Q ∈ (S : Set (Ideal R)), (Q : Set R) := by |
| 50 | intro hi |
| 51 | obtain ⟨Q, hQS, hIQ⟩ := (Ideal.subset_union_prime (s := S) (f := fun Q : Ideal R => Q) |
| 52 | (⊥ : Ideal R) (⊥ : Ideal R) (fun Q hQS _ _ => by |
| 53 | exact ((Ideal.finite_minimalPrimes_of_isNoetherianRing R (Ideal.span {x})).mem_toFinset.mp hQS).isPrime)).mp hi |
| 54 | have hQ : Q ∈ (Ideal.span {x}).minimalPrimes := |
| 55 | (Ideal.finite_minimalPrimes_of_isNoetherianRing R (Ideal.span {x})).mem_toFinset.mp hQS |
| 56 | have hpq : P ≤ Q := hI ▸ hQ.isPrime.radical_le_iff.mpr hIQ |
| 57 | have he := minimalPrincipalPrimes_comparable_eq r x hr P Q hP hQ hpq |
| 58 | exact hxP (he.symm ▸ hQ.le (Ideal.subset_span (Set.mem_singleton x))) |
| 59 | obtain ⟨y, hyI, hy⟩ := Set.not_subset.mp hnot |
| 60 | refine ⟨y, hyI, ?_⟩ |
| 61 | intro Q hQ hyQ |
| 62 | apply hy |
| 63 | exact Set.mem_iUnion₂.mpr ⟨Q, |
| 64 | (Ideal.finite_minimalPrimes_of_isNoetherianRing R (Ideal.span {x})).mem_toFinset.mpr hQ, hyQ⟩ |
| 65 | |
| 66 | omit [IsDomain R] in |
| 67 | theorem minimalPrincipalPrime_ne_maximal [IsLocalRing R] |
| 68 | (r : R) (hdim : ringKrullDim R = 2) (P : Ideal R) |
| 69 | (hP : P ∈ (Ideal.span {r}).minimalPrimes) : P ≠ IsLocalRing.maximalIdeal R := by |
| 70 | intro he |
| 71 | have hh : P.height ≤ (1 : ℕ∞) := |
| 72 | Ideal.height_le_one_of_isPrincipal_of_mem_minimalPrimes (Ideal.span {r}) P hP |
| 73 | have hm : ((IsLocalRing.maximalIdeal R).height : WithBot ℕ∞) ≤ 1 := |
| 74 | WithBot.coe_le_coe.mpr (he ▸ hh) |
| 75 | rw [IsLocalRing.maximalIdeal_height_eq_ringKrullDim, hdim] at hm |
| 76 | exact (by norm_num : ¬ (2 : WithBot ℕ∞) ≤ 1) hm |
| 77 | |
| 78 | theorem branchIdeal_exists_proper_parameter [IsLocalRing R] |
| 79 | (r x : R) (hr : r ≠ 0) (hdim : ringKrullDim R = 2) |
| 80 | (P I : Ideal R) (hP : P ∈ (Ideal.span {r}).minimalPrimes) |
| 81 | (hI : I.radical = P) (hxP : x ∉ P) (hxunit : ¬ IsUnit x) : |
| 82 | ∃ y ∈ I, y ≠ 0 ∧ (Ideal.span {x, y}).radical = IsLocalRing.maximalIdeal R := by |
| 83 | obtain ⟨y, hyI, hy⟩ := branchIdeal_exists_avoiding_equation r x hr P I hP hI hxP |
| 84 | have hx : x ≠ 0 := fun he => hxP (he ▸ P.zero_mem) |
| 85 | have hIproper : I ≠ ⊤ := by |
| 86 | intro he |
| 87 | have ht : P = ⊤ := hI.symm.trans (by rw [he, Ideal.radical_top]) |
| 88 | exact hP.isPrime.ne_top ht |
| 89 | have hyunit : ¬ IsUnit y := fun hu => hIproper (Ideal.eq_top_of_isUnit_mem I hyI hu) |
| 90 | have hxmax : Ideal.span {x} ≤ IsLocalRing.maximalIdeal R := |
| 91 | Ideal.span_le.mpr (Set.singleton_subset_iff.mpr hxunit) |
| 92 | obtain ⟨Q, hQ, _⟩ := Ideal.exists_minimalPrimes_le hxmax |
| 93 | have hyzero : y ≠ 0 := fun he => hy Q hQ (he ▸ Q.zero_mem) |
| 94 | refine ⟨y, hyI, hyzero, ?_⟩ |
| 95 | rw [Set.pair_comm x y] |
| 96 | exact SurfaceProperCriterion.BundleCycles.surfaceProperPair_radical y x hx hdim hyunit hxunit hy |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Branch.AuxiliaryParameter.BundleCycles |