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.HeightOneEscape |
| 2 | import Mathlib.RingTheory.LocalRing.Quotient |
| 3 | |
| 4 | /-! # Curve Escape -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.CurveEscape |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A positive-dimensional noetherian local domain has a |
| 11 | one-dimensional prime quotient in which any fixed nonzero element survives. -/ |
| 12 | |
| 13 | open IsLocalRing |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | theorem exists_prime (R : Type u) [CommRing R] [IsDomain R] [IsNoetherianRing R] [IsLocalRing R] |
| 18 | (hd : 0 < (maximalIdeal R).height) (f : R) (hf : f ≠ 0) : |
| 19 | ∃ p : PrimeSpectrum R, |
| 20 | ringKrullDim (R ⧸ p.asIdeal) = 1 ∧ f ∉ p.asIdeal := by |
| 21 | have hm : maximalIdeal R ≠ ⊥ := by |
| 22 | intro he |
| 23 | have hz : (maximalIdeal R).height = 0 := by rw [he]; simp |
| 24 | rw [hz] at hd |
| 25 | exact (lt_irrefl _ hd) |
| 26 | obtain ⟨h, hhm, hh⟩ := Submodule.exists_mem_ne_zero_of_ne_bot hm |
| 27 | obtain ⟨p, hp, hmax⟩ := exists_maximal_of_wellFoundedGT |
| 28 | (fun p : Ideal R => p.IsPrime ∧ h * f ∉ p) |
| 29 | ⟨⊥, Ideal.isPrime_bot, by simpa using mul_ne_zero hh hf⟩ |
| 30 | let : p.IsPrime := hp.1 |
| 31 | let : IsLocalRing (R ⧸ p) := IsLocalRing.of_surjective' (Ideal.Quotient.mk p) Ideal.Quotient.mk_surjective |
| 32 | have hhp : h ∉ p := fun he => hp.2 (p.mul_mem_right f he) |
| 33 | have hfp : f ∉ p := fun he => hp.2 (p.mul_mem_left h he) |
| 34 | have hhq : Ideal.Quotient.mk p h ≠ 0 := by |
| 35 | simpa only [ne_eq, Ideal.Quotient.eq_zero_iff_mem] using hhp |
| 36 | have hfq : Ideal.Quotient.mk p f ≠ 0 := by |
| 37 | simpa only [ne_eq, Ideal.Quotient.eq_zero_iff_mem] using hfp |
| 38 | have hqm : maximalIdeal (R ⧸ p) ≠ ⊥ := by |
| 39 | intro he |
| 40 | have hhmem : Ideal.Quotient.mk p h ∈ maximalIdeal (R ⧸ p) := by |
| 41 | rw [← map_maximalIdeal_of_surjective (Ideal.Quotient.mk p) Ideal.Quotient.mk_surjective] |
| 42 | exact Ideal.mem_map_of_mem _ hhm |
| 43 | exact hhq (by simpa only [he, Submodule.mem_bot] using hhmem) |
| 44 | refine ⟨⟨p, hp.1⟩, ?_, hfp⟩ |
| 45 | rw [← maximalIdeal_height_eq_ringKrullDim] |
| 46 | apply WithBot.coe_injective.eq_iff.mpr |
| 47 | change (maximalIdeal (R ⧸ p)).height = 1 |
| 48 | apply le_antisymm _ |
| 49 | (Order.one_le_iff_ne_zero.mpr (Ideal.height_eq_zero_iff_eq_bot.not.mpr hqm)) |
| 50 | by_contra hn |
| 51 | obtain ⟨q, hq, hfq'⟩ := HeightOneEscape.exists_prime (R ⧸ p) (lt_of_not_ge hn) |
| 52 | (Ideal.Quotient.mk p (h * f)) (by rw [map_mul]; exact mul_ne_zero hhq hfq) |
| 53 | let Q := q.asIdeal.comap (Ideal.Quotient.mk p) |
| 54 | have hpQ : p ≤ Q := by |
| 55 | intro a ha |
| 56 | change Ideal.Quotient.mk p a ∈ q.asIdeal |
| 57 | rw [Ideal.Quotient.eq_zero_iff_mem.mpr ha] |
| 58 | exact Ideal.zero_mem _ |
| 59 | have hQ : Q.IsPrime ∧ h * f ∉ Q := ⟨q.isPrime.comap _, hfq'⟩ |
| 60 | have heq : Q = p := le_antisymm (hmax hQ hpQ) hpQ |
| 61 | change q.asIdeal.comap (Ideal.Quotient.mk p) = p at heq |
| 62 | have hq0 : q.asIdeal = ⊥ := by |
| 63 | rw [← Ideal.map_comap_of_surjective (Ideal.Quotient.mk p) Ideal.Quotient.mk_surjective q.asIdeal, |
| 64 | heq, Ideal.map_quotient_self] |
| 65 | have hz : q.asIdeal.height = 0 := by rw [hq0]; simp |
| 66 | rw [hz] at hq |
| 67 | exact (by decide : (0 : ℕ∞) ≠ 1) hq |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.CurveEscape |