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 Mathlib.RingTheory.Ideal.GoingUp |
| 2 | import Mathlib.RingTheory.Ideal.GoingDown |
| 3 | import Mathlib.RingTheory.KrullDimension.Basic |
| 4 | |
| 5 | /-! # Integral Dimension -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.IntegralDimension.Construction |
| 8 | |
| 9 | /-! |
| 10 | # ChernClass: dimension comparisons for integral algebra extensions |
| 11 | |
| 12 | These order-theoretic facts support the comparison between divisor points |
| 13 | and the function-field dimension grading of the geometric cycle-class map. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.Order |
| 17 | |
| 18 | variable {R S : Type*} [CommRing R] [CommRing S] [Algebra R S] [Algebra.IsIntegral R S] |
| 19 | |
| 20 | /-- Incomparability makes contraction strictly monotone on chains of prime ideals. -/ |
| 21 | theorem integral_comap_strictMono : StrictMono (PrimeSpectrum.comap (algebraMap R S)) := by |
| 22 | intro p q hpq |
| 23 | exact Ideal.IsIntegral.under_lt_under hpq |
| 24 | |
| 25 | /-- Integral extensions preserve the lengths of chains above a prime, by going up. -/ |
| 26 | theorem integral_comap_coheight (p : PrimeSpectrum S) : |
| 27 | coheight p = coheight (PrimeSpectrum.comap (algebraMap R S) p) := by |
| 28 | apply coheight_eq_of_strictMono _ integral_comap_strictMono |
| 29 | intro q r hqr |
| 30 | obtain ⟨r', hle, hprime, hcomap⟩ := |
| 31 | Ideal.exists_ideal_over_prime_of_isIntegral_of_isPrime r.asIdeal q.asIdeal hqr.le |
| 32 | refine ⟨⟨r', hprime⟩, ?_, PrimeSpectrum.ext hcomap⟩ |
| 33 | apply lt_of_le_of_ne hle |
| 34 | intro heq |
| 35 | have he : PrimeSpectrum.comap (algebraMap R S) q = r := by |
| 36 | apply PrimeSpectrum.ext |
| 37 | change q.asIdeal.comap (algebraMap R S) = r.asIdeal |
| 38 | rw [heq] |
| 39 | exact hcomap |
| 40 | exact hqr.ne he |
| 41 | |
| 42 | /-- When going down is available, contraction also preserves prime height. -/ |
| 43 | theorem integral_comap_height [Algebra.HasGoingDown R S] (p : PrimeSpectrum S) : |
| 44 | height p = height (PrimeSpectrum.comap (algebraMap R S) p) := by |
| 45 | apply height_eq_of_strictMono _ integral_comap_strictMono |
| 46 | intro q r hrq |
| 47 | let : q.asIdeal.LiesOver (q.asIdeal.under R) := ⟨rfl⟩ |
| 48 | obtain ⟨r', hlt, hprime, hover⟩ := Ideal.exists_ideal_lt_liesOver_of_lt |
| 49 | (R := R) (S := S) (p := r.asIdeal) (q := q.asIdeal.under R) q.asIdeal hrq |
| 50 | exact ⟨⟨r', hprime⟩, hlt, PrimeSpectrum.ext hover.over.symm⟩ |
| 51 | |
| 52 | /-- An injective integral extension preserves Krull dimension. -/ |
| 53 | theorem integral_ringKrullDim_eq (hinj : Function.Injective (algebraMap R S)) : |
| 54 | ringKrullDim S = ringKrullDim R := by |
| 55 | have hsurj : Function.Surjective (PrimeSpectrum.comap (algebraMap R S)) := by |
| 56 | intro p |
| 57 | obtain ⟨q, _, hprime, hcomap⟩ := Ideal.exists_ideal_over_prime_of_isIntegral p.asIdeal (⊥ : Ideal S) |
| 58 | (by simpa only [← RingHom.ker_eq_comap_bot, (RingHom.injective_iff_ker_eq_bot _).mp hinj] |
| 59 | using (bot_le : (⊥ : Ideal R) ≤ p.asIdeal)) |
| 60 | exact ⟨⟨q, hprime⟩, PrimeSpectrum.ext hcomap⟩ |
| 61 | unfold ringKrullDim |
| 62 | rw [krullDim_eq_iSup_coheight, krullDim_eq_iSup_coheight] |
| 63 | simp_rw [integral_comap_coheight (R := R) (S := S)] |
| 64 | exact hsurj.iSup_comp (fun p : PrimeSpectrum R => (coheight p : WithBot ℕ∞)) |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.DivisorClass.Chern.IntegralDimension.Construction |