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.PrimeFiltrationEuler |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Generic.RankEuler |
| 3 | import Mathlib.RingTheory.Ideal.KrullsHeightTheorem |
| 4 | |
| 5 | /-! # Surface Prime Euler -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SurfacePrimeEuler |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! In a two-dimensional local domain, the Euler characteristic of a |
| 12 | principal quotient against a finite torsion module is the sum of its |
| 13 | height-one prime-filtration contributions. Closed-point contributions vanish. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory IsLocalRing |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (R : Type u) [CommRing R] [IsDomain R] [IsNoetherianRing R] [IsLocalRing R] |
| 20 | |
| 21 | theorem prime_height_one_or_maximal (hdim : (maximalIdeal R).height = 2) |
| 22 | (p : PrimeSpectrum R) (hp : p.asIdeal ≠ ⊥) : |
| 23 | p.asIdeal.height = 1 ∨ p.asIdeal = maximalIdeal R := by |
| 24 | by_cases he : p.asIdeal = maximalIdeal R |
| 25 | · exact Or.inr he |
| 26 | left |
| 27 | have hlt : p.asIdeal < maximalIdeal R := |
| 28 | lt_of_le_of_ne (IsLocalRing.le_maximalIdeal p.isPrime.ne_top) he |
| 29 | have hheight := Ideal.height_strict_mono_of_isPrime hlt |
| 30 | rw [hdim] at hheight |
| 31 | apply le_antisymm (ENat.lt_two_iff.mp hheight) |
| 32 | exact Order.one_le_iff_ne_zero.mpr (Ideal.height_eq_zero_iff_eq_bot.not.mpr hp) |
| 33 | |
| 34 | omit [IsDomain R] [IsNoetherianRing R] in |
| 35 | theorem residue_quotient_length : Module.length R (R ⧸ maximalIdeal R) = 1 := by |
| 36 | let : Field (R ⧸ maximalIdeal R) := Ideal.Quotient.field (maximalIdeal R) |
| 37 | rw [Module.length_eq_of_surjective (M := R ⧸ maximalIdeal R) |
| 38 | (show Function.Surjective (algebraMap R (R ⧸ maximalIdeal R)) from Ideal.Quotient.mk_surjective)] |
| 39 | exact Module.length_eq_one (R ⧸ maximalIdeal R) (R ⧸ maximalIdeal R) |
| 40 | |
| 41 | theorem maximal_quotient_euler_zero (N : ModuleCat.{u} R) [Module.Finite R N] |
| 42 | (d : ℕ) [HasProjectiveDimensionLE N d] |
| 43 | (hN : ∀ x : N, ∃ r : R, r ≠ 0 ∧ r • x = 0) : |
| 44 | Tor.Euler.euler R (.of R (R ⧸ maximalIdeal R)) N d = 0 := by |
| 45 | apply Generic.RankEuler.finite_length_torsion_euler_zero R _ N _ d hN |
| 46 | rw [residue_quotient_length] |
| 47 | exact ENat.one_ne_top |
| 48 | |
| 49 | theorem isolated_principal_support (hdim : (maximalIdeal R).height = 2) |
| 50 | (A : Type u) [CommRing A] [IsDomain A] [Algebra R A] |
| 51 | (hker : RingHom.ker (algebraMap R A) ≠ ⊥) (r : R) (hr : algebraMap R A r ≠ 0) : |
| 52 | Module.support R (QuotSMulTop r R) ∩ Module.support R A ⊆ {closedPoint R} := by |
| 53 | let : (RingHom.ker (algebraMap R A)).IsPrime := Ideal.isPrime_bot.comap (algebraMap R A) |
| 54 | intro q hq |
| 55 | have hrq : r ∈ q.asIdeal := by |
| 56 | have h := hq.1 |
| 57 | rw [Module.support_quotSMulTop] at h |
| 58 | exact h.2 (Set.mem_singleton r) |
| 59 | have hIq : RingHom.ker (algebraMap R A) ≤ q.asIdeal := by |
| 60 | have h := hq.2 |
| 61 | rw [Module.support_of_algebra] at h |
| 62 | exact h |
| 63 | have hlt : RingHom.ker (algebraMap R A) < q.asIdeal := lt_of_le_of_ne hIq (by |
| 64 | intro h |
| 65 | exact hr (RingHom.mem_ker.mp (h ▸ hrq))) |
| 66 | have hheight := Ideal.height_add_one_le_of_lt_of_isPrime hlt |
| 67 | have hI : 1 ≤ (RingHom.ker (algebraMap R A)).height := |
| 68 | Order.one_le_iff_ne_zero.mpr (Ideal.height_eq_zero_iff_eq_bot.not.mpr hker) |
| 69 | have htwo : 2 ≤ q.asIdeal.height := by |
| 70 | calc |
| 71 | 2 = (1 : ℕ∞) + 1 := by norm_num |
| 72 | _ ≤ (RingHom.ker (algebraMap R A)).height + 1 := add_le_add hI le_rfl |
| 73 | _ ≤ q.asIdeal.height := hheight |
| 74 | have he : q.asIdeal = maximalIdeal R := q.asIdeal.eq_of_le_of_height_le |
| 75 | (IsLocalRing.le_maximalIdeal q.isPrime.ne_top) (by rw [hdim]; exact htwo) |
| 76 | exact Set.mem_singleton_iff.mpr (PrimeSpectrum.ext he) |
| 77 | |
| 78 | theorem exists_height_one_sum (hdim : (maximalIdeal R).height = 2) |
| 79 | (r : R) (hr : r ≠ 0) (N : ModuleCat.{u} R) [Module.Finite R N] |
| 80 | (d : ℕ) [HasProjectiveDimensionLE N d] |
| 81 | (hN : ∀ x : N, ∃ a : R, a ≠ 0 ∧ a • x = 0) |
| 82 | (hisolated : Module.support R (QuotSMulTop r R) ∩ Module.support R N ⊆ {closedPoint R}) : |
| 83 | ∃ (n : ℕ) (primes : Fin n → PrimeSpectrum R), |
| 84 | (∀ i, Module.support R (R ⧸ (primes i).asIdeal) ⊆ Module.support R (QuotSMulTop r R)) ∧ |
| 85 | Tor.Euler.euler R (.of R (QuotSMulTop r R)) N d = |
| 86 | ∑ i ∈ Finset.univ.filter (fun i => (primes i).asIdeal.height = 1), |
| 87 | Tor.Euler.euler R (.of R (R ⧸ (primes i).asIdeal)) N d := by |
| 88 | classical |
| 89 | obtain ⟨n, primes, hsupp, he⟩ := PrimeFiltrationEuler.exists_prime_sum R |
| 90 | (.of R (QuotSMulTop r R)) N d (closedPoint R) hisolated |
| 91 | refine ⟨n, primes, hsupp, ?_⟩ |
| 92 | rw [he] |
| 93 | symm |
| 94 | apply Finset.sum_subset (Finset.filter_subset _ _) |
| 95 | intro i _ hi |
| 96 | have hp : primes i ∈ Module.support R (R ⧸ (primes i).asIdeal) := by |
| 97 | rw [Module.mem_support_iff'] |
| 98 | refine ⟨1, fun a ha hz => ha ?_⟩ |
| 99 | apply Ideal.Quotient.eq_zero_iff_mem.mp |
| 100 | change algebraMap R (R ⧸ (primes i).asIdeal) a = 0 |
| 101 | simpa only [Algebra.smul_def, mul_one] using hz |
| 102 | have hmem := hsupp i hp |
| 103 | rw [Module.support_quotSMulTop] at hmem |
| 104 | have hrp : r ∈ (primes i).asIdeal := hmem.2 (Set.mem_singleton r) |
| 105 | have hne : (primes i).asIdeal ≠ ⊥ := by |
| 106 | intro hz |
| 107 | rw [hz, Submodule.mem_bot] at hrp |
| 108 | exact hr hrp |
| 109 | have hh : (primes i).asIdeal.height ≠ 1 := by simpa only [Finset.mem_filter, Finset.mem_univ, |
| 110 | true_and] using hi |
| 111 | have hmax := (prime_height_one_or_maximal R hdim (primes i) hne).resolve_left hh |
| 112 | rw [hmax] |
| 113 | exact maximal_quotient_euler_zero R N d hN |
| 114 | |
| 115 | end |
| 116 | |
| 117 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SurfacePrimeEuler |