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.NormalLocalDenominator |
| 2 | import Mathlib.RingTheory.Ideal.KrullsHeightTheorem |
| 3 | import Mathlib.RingTheory.Localization.Ideal |
| 4 | |
| 5 | /-! # Normal Principal Associated -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.NormalPrincipalAssociated |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Associated primes of a nonzero principal quotient in a normal |
| 12 | Noetherian domain have height one. -/ |
| 13 | |
| 14 | open IsLocalRing |
| 15 | |
| 16 | variable (R : Type*) [CommRing R] [IsDomain R] [IsNoetherianRing R] |
| 17 | [IsIntegrallyClosed R] |
| 18 | |
| 19 | theorem colon_height_one (a b : R) (ha : a ≠ 0) |
| 20 | (p : Ideal R) [p.IsPrime] (hp : p = (Ideal.span {a}).colon {b}) : |
| 21 | p.height = 1 := by |
| 22 | let S := Localization.AtPrime p |
| 23 | let : IsIntegrallyClosed S := isIntegrallyClosed_of_isLocalization S p.primeCompl |
| 24 | p.primeCompl_le_nonZeroDivisors |
| 25 | have hi : Function.Injective (algebraMap R S) := |
| 26 | IsLocalization.injective S p.primeCompl_le_nonZeroDivisors |
| 27 | have haS : algebraMap R S a ≠ 0 := (map_ne_zero_iff _ hi).mpr ha |
| 28 | have he : (Ideal.span {a}).map (algebraMap R S) = Ideal.span {algebraMap R S a} := by |
| 29 | rw [Ideal.map_span, Set.image_singleton] |
| 30 | have hbS : algebraMap R S b ∉ Ideal.span {algebraMap R S a} := by |
| 31 | rw [← he, IsLocalization.algebraMap_mem_map_algebraMap_iff p.primeCompl] |
| 32 | rintro ⟨r, hr, hrb⟩ |
| 33 | apply hr |
| 34 | change r ∈ p |
| 35 | rw [hp] |
| 36 | exact Submodule.mem_colon_singleton.mpr hrb |
| 37 | have hm : ∀ m ∈ maximalIdeal S, ∃ k : S, |
| 38 | k * algebraMap R S a = algebraMap R S b * m := by |
| 39 | intro m hm |
| 40 | rw [← IsLocalization.AtPrime.map_eq_maximalIdeal p S] at hm |
| 41 | obtain ⟨⟨⟨r, hr⟩, s⟩, hms⟩ := |
| 42 | (IsLocalization.mem_map_algebraMap_iff p.primeCompl S).mp hm |
| 43 | change m * algebraMap R S s = algebraMap R S r at hms |
| 44 | have hrb : r * b ∈ Ideal.span {a} := by |
| 45 | exact Submodule.mem_colon_singleton.mp (hp ▸ hr) |
| 46 | obtain ⟨k, hk⟩ := Ideal.mem_span_singleton'.mp hrb |
| 47 | have hs : IsUnit (algebraMap R S s) := IsLocalization.map_units S s |
| 48 | refine ⟨IsLocalization.mk' S k s, ?_⟩ |
| 49 | apply hs.mul_right_cancel |
| 50 | calc |
| 51 | (IsLocalization.mk' S k s * algebraMap R S a) * algebraMap R S s = |
| 52 | (IsLocalization.mk' S k s * algebraMap R S s) * algebraMap R S a := by ring |
| 53 | _ = algebraMap R S k * algebraMap R S a := by rw [IsLocalization.mk'_spec] |
| 54 | _ = algebraMap R S b * algebraMap R S r := by rw [← map_mul, hk, map_mul, mul_comm] |
| 55 | _ = (algebraMap R S b * m) * algebraMap R S s := by rw [mul_assoc, hms] |
| 56 | let : (maximalIdeal S).IsPrincipal := |
| 57 | NormalLocalDenominator.maximal_principal S _ _ haS hbS hm |
| 58 | have hheight : (maximalIdeal S).height ≤ 1 := by |
| 59 | apply Ideal.height_le_one_of_isPrincipal_of_mem_minimalPrimes (maximalIdeal S) |
| 60 | simp only [Ideal.minimalPrimes_eq_subsingleton_self, Set.mem_singleton_iff] |
| 61 | rw [← IsLocalization.height_under p.primeCompl, Localization.AtPrime.under_maximalIdeal] |
| 62 | at hheight |
| 63 | apply le_antisymm hheight |
| 64 | apply Order.one_le_iff_ne_zero.mpr |
| 65 | apply Ideal.height_eq_zero_iff_eq_bot.not.mpr |
| 66 | intro hp₀ |
| 67 | have haP : a ∈ p := by |
| 68 | rw [hp, Submodule.mem_colon_singleton] |
| 69 | exact Ideal.mul_mem_right b _ (Ideal.subset_span (Set.mem_singleton a)) |
| 70 | exact ha (by simpa only [hp₀, Submodule.mem_bot] using haP) |
| 71 | |
| 72 | theorem height_one (a : R) (ha : a ≠ 0) (p : Ideal R) |
| 73 | (hp : IsAssociatedPrime p (R ⧸ Ideal.span {a})) : p.height = 1 := by |
| 74 | obtain ⟨hprime, x, hx⟩ := isAssociatedPrime_iff.mp hp |
| 75 | let := hprime |
| 76 | obtain ⟨b, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 77 | apply colon_height_one R a b ha p |
| 78 | rw [hx] |
| 79 | ext r |
| 80 | simp only [Submodule.mem_colon_singleton, Submodule.mem_bot, Algebra.smul_def, |
| 81 | Ideal.Quotient.algebraMap_eq, ← map_mul, Ideal.Quotient.eq_zero_iff_mem] |
| 82 | rfl |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.NormalPrincipalAssociated |