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.Localization.AtPrime.Basic |
| 2 | import Mathlib.RingTheory.Localization.Away.Basic |
| 3 | import Mathlib.RingTheory.Ideal.Colon |
| 4 | import Mathlib.RingTheory.Finiteness.Ideal |
| 5 | |
| 6 | /-! # Local Containment Neighborhood -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.LocalContainmentNeighborhood.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! Finite local ideal containments hold on an actual affine open neighborhood. -/ |
| 15 | |
| 16 | variable {R : Type*} [CommRing R] |
| 17 | |
| 18 | /-- A finite ideal containment at a prime has one common denominator |
| 19 | outside that prime. -/ |
| 20 | theorem exists_common_ideal_denominator (J K q : Ideal R) [q.IsPrime] (hJ : J.FG) |
| 21 | (h : J.map (algebraMap R (Localization.AtPrime q)) ≤ K.map (algebraMap R (Localization.AtPrime q))) : |
| 22 | ∃ f ∉ q, ∀ x ∈ J, f * x ∈ K := by |
| 23 | classical |
| 24 | obtain ⟨s, hs⟩ := hJ |
| 25 | have hex : ∀ t : s, ∃ d ∉ q, d * t.val ∈ K := by |
| 26 | intro t |
| 27 | have ht : t.val ∈ J := hs ▸ Ideal.subset_span t.property |
| 28 | simpa only [Ideal.mem_primeCompl_iff] using |
| 29 | (IsLocalization.algebraMap_mem_map_algebraMap_iff q.primeCompl (Localization.AtPrime q) K t.val).mp |
| 30 | (h (Ideal.mem_map_of_mem _ ht)) |
| 31 | choose d hd hdK using hex |
| 32 | let f := ∏ t : s, d t |
| 33 | have hf : f ∉ q := by |
| 34 | exact (q.primeCompl.prod_mem (fun t _ => hd t)) |
| 35 | refine ⟨f, hf, ?_⟩ |
| 36 | have hle : J ≤ K.colon (Ideal.span {f}) := by |
| 37 | rw [← hs] |
| 38 | apply Ideal.span_le.mpr |
| 39 | intro x hx |
| 40 | apply Ideal.mem_colon_span_singleton.mpr |
| 41 | let t : s := ⟨x, hx⟩ |
| 42 | obtain ⟨v, hv⟩ := Finset.dvd_prod_of_mem d (Finset.mem_univ t) |
| 43 | have he : f = d t * v := hv |
| 44 | rw [he] |
| 45 | convert K.mul_mem_left v (hdK t) using 1 |
| 46 | change x * (d t * v) = v * (d t * x) |
| 47 | ring |
| 48 | intro x hx |
| 49 | simpa only [mul_comm x f] using Ideal.mem_colon_span_singleton.mp (hle hx) |
| 50 | |
| 51 | /-- The localization at that common denominator is an actual affine open |
| 52 | neighborhood on which the ideal containment holds. -/ |
| 53 | theorem exists_neighborhood_ideal_containment (J K q : Ideal R) [q.IsPrime] (hJ : J.FG) |
| 54 | (h : J.map (algebraMap R (Localization.AtPrime q)) ≤ K.map (algebraMap R (Localization.AtPrime q))) : |
| 55 | ∃ f ∉ q, J.map (algebraMap R (Localization.Away f)) ≤ K.map (algebraMap R (Localization.Away f)) := by |
| 56 | obtain ⟨f, hf, hmul⟩ := exists_common_ideal_denominator J K q hJ h |
| 57 | refine ⟨f, hf, ?_⟩ |
| 58 | rw [Ideal.map_le_iff_le_comap] |
| 59 | intro x hx |
| 60 | change algebraMap R (Localization.Away f) x ∈ K.map (algebraMap R (Localization.Away f)) |
| 61 | apply (Ideal.unit_mul_mem_iff_mem _ (IsLocalization.Away.algebraMap_isUnit (S := Localization.Away f) f)).mp |
| 62 | rw [← map_mul] |
| 63 | exact Ideal.mem_map_of_mem _ (hmul x hx) |
| 64 | |
| 65 | /-- In particular, local divisibility by a prescribed ideal power can be |
| 66 | spread to an actual open neighborhood without changing the exponent. -/ |
| 67 | theorem exists_neighborhood_ideal_power_containment (J K q : Ideal R) [q.IsPrime] (hJ : J.FG) |
| 68 | (n : ℕ) (h : J.map (algebraMap R (Localization.AtPrime q)) ≤ |
| 69 | K.map (algebraMap R (Localization.AtPrime q)) ^ n) : |
| 70 | ∃ f ∉ q, J.map (algebraMap R (Localization.Away f)) ≤ |
| 71 | K.map (algebraMap R (Localization.Away f)) ^ n := by |
| 72 | rw [← Ideal.map_pow] at h |
| 73 | obtain ⟨f, hf, hle⟩ := exists_neighborhood_ideal_containment J (K ^ n) q hJ h |
| 74 | exact ⟨f, hf, by simpa only [Ideal.map_pow] using hle⟩ |
| 75 | |
| 76 | end |
| 77 | |
| 78 | /-! Finite ideal equalities spread from a local ring to an actual affine neighborhood. -/ |
| 79 | |
| 80 | variable {R T : Type*} [CommRing R] [CommRing T] |
| 81 | |
| 82 | theorem ideal_map_le_of_unit_common_denominator (φ : R →+* T) (J K : Ideal R) |
| 83 | (f : R) (hf : IsUnit (φ f)) (h : ∀ x ∈ J, f * x ∈ K) : J.map φ ≤ K.map φ := by |
| 84 | rw [Ideal.map_le_iff_le_comap] |
| 85 | intro x hx |
| 86 | change φ x ∈ K.map φ |
| 87 | apply (Ideal.unit_mul_mem_iff_mem _ hf).mp |
| 88 | rw [← map_mul] |
| 89 | exact Ideal.mem_map_of_mem _ (h x hx) |
| 90 | |
| 91 | /-- Two finite ideals equal at a prime are equal on a principal affine |
| 92 | open containing that prime. The open is constructed by clearing denominators |
| 93 | for both inclusions. -/ |
| 94 | theorem exists_neighborhood_ideal_equality (J K q : Ideal R) [q.IsPrime] |
| 95 | (hJ : J.FG) (hK : K.FG) |
| 96 | (h : J.map (algebraMap R (Localization.AtPrime q)) = K.map (algebraMap R (Localization.AtPrime q))) : |
| 97 | ∃ f ∉ q, J.map (algebraMap R (Localization.Away f)) = K.map (algebraMap R (Localization.Away f)) := by |
| 98 | obtain ⟨f, hf, hJK⟩ := exists_common_ideal_denominator J K q hJ h.le |
| 99 | obtain ⟨g, hg, hKJ⟩ := exists_common_ideal_denominator K J q hK h.ge |
| 100 | refine ⟨f * g, q.primeCompl.mul_mem hf hg, le_antisymm ?_ ?_⟩ |
| 101 | · apply ideal_map_le_of_unit_common_denominator _ J K (f * g) |
| 102 | (IsLocalization.Away.algebraMap_isUnit (S := Localization.Away (f * g)) (f * g)) |
| 103 | intro x hx |
| 104 | convert K.mul_mem_left g (hJK x hx) using 1 |
| 105 | ring |
| 106 | · apply ideal_map_le_of_unit_common_denominator _ K J (f * g) |
| 107 | (IsLocalization.Away.algebraMap_isUnit (S := Localization.Away (f * g)) (f * g)) |
| 108 | intro x hx |
| 109 | rw [mul_assoc] |
| 110 | exact J.mul_mem_left f (hKJ x hx) |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.AlgebraicGeometry.Resolution.Blowups.LocalContainmentNeighborhood.Construction |