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.IntersectionTheory.ProjectionFormula.Finite.PrincipalPrimes |
| 2 | import Mathlib.RingTheory.Ideal.KrullsHeightTheorem |
| 3 | |
| 4 | /-! # Height One Escape -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.HeightOneEscape |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! In a noetherian local domain of dimension at least two, a |
| 11 | height-one prime can be chosen to avoid any prescribed nonzero element. -/ |
| 12 | |
| 13 | open IsLocalRing |
| 14 | open scoped Classical |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | theorem exists_prime (R : Type u) [CommRing R] [IsDomain R] [IsNoetherianRing R] [IsLocalRing R] |
| 19 | (hd : 1 < (maximalIdeal R).height) (f : R) (hf : f ≠ 0) : |
| 20 | ∃ p : PrimeSpectrum R, p.asIdeal.height = 1 ∧ f ∉ p.asIdeal := by |
| 21 | let T := (Finite.PrincipalPrimes.finite R f hf).toFinset |
| 22 | let S : Finset (Ideal R) := insert ⊥ (T.image PrimeSpectrum.asIdeal) |
| 23 | have hS (p : Ideal R) (hp : p ∈ S) : p.IsPrime ∧ p.height ≤ 1 := by |
| 24 | rcases Finset.mem_insert.mp hp with rfl | hp |
| 25 | · exact ⟨Ideal.isPrime_bot, by simp⟩ |
| 26 | · obtain ⟨q, hq, rfl⟩ := Finset.mem_image.mp hp |
| 27 | have hq' := (Finite.PrincipalPrimes.finite R f hf).mem_toFinset.mp hq |
| 28 | exact ⟨q.isPrime, hq'.1.le⟩ |
| 29 | have hnot : ¬ (maximalIdeal R : Set R) ⊆ ⋃ p ∈ S, (p : Set R) := by |
| 30 | intro h |
| 31 | obtain ⟨p, hp, hmp⟩ := (Ideal.subset_union_prime (⊥ : Ideal R) (⊥ : Ideal R) |
| 32 | (fun p hp _ _ => (hS p hp).1)).mp h |
| 33 | exact (not_le_of_gt hd) ((Ideal.height_mono hmp).trans (hS p hp).2) |
| 34 | obtain ⟨a, ham, hao⟩ := Set.not_subset.mp hnot |
| 35 | have ha (p : Ideal R) (hp : p ∈ S) : a ∉ p := fun h => |
| 36 | hao (Set.mem_iUnion.mpr ⟨p, Set.mem_iUnion.mpr ⟨hp, h⟩⟩) |
| 37 | have ha0 : a ≠ 0 := fun h => ha ⊥ (Finset.mem_insert_self _ _) (by simpa using h) |
| 38 | obtain ⟨p, hp, _⟩ := Ideal.exists_minimalPrimes_le |
| 39 | (show Ideal.span {a} ≤ maximalIdeal R from Ideal.span_le.mpr (Set.singleton_subset_iff.mpr ham)) |
| 40 | let : p.IsPrime := hp.isPrime |
| 41 | have hap : a ∈ p := hp.le (Ideal.subset_span (Set.mem_singleton a)) |
| 42 | have hp0 : p ≠ ⊥ := fun he => ha0 (by simpa only [he, Submodule.mem_bot] using hap) |
| 43 | have hheight : p.height = 1 := le_antisymm |
| 44 | (Ideal.height_le_one_of_isPrincipal_of_mem_minimalPrimes (Ideal.span {a}) p hp) |
| 45 | (Order.one_le_iff_ne_zero.mpr (Ideal.height_eq_zero_iff_eq_bot.not.mpr hp0)) |
| 46 | refine ⟨⟨p, hp.isPrime⟩, hheight, ?_⟩ |
| 47 | intro hfp |
| 48 | have hpT : (⟨p, hp.isPrime⟩ : PrimeSpectrum R) ∈ T := |
| 49 | (Finite.PrincipalPrimes.finite R f hf).mem_toFinset.mpr ⟨hheight, hfp⟩ |
| 50 | exact ha p (Finset.mem_insert_of_mem (Finset.mem_image.mpr ⟨⟨p, hp.isPrime⟩, hpT, rfl⟩)) hap |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.HeightOneEscape |