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.HodgeConjecture.DegreeTwo.SmoothDVR |
| 2 | import Mathlib.RingTheory.Localization.Ideal |
| 3 | import Mathlib.Algebra.BigOperators.Group.Finset.Piecewise |
| 4 | |
| 5 | /-! # Uniformizer Support -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.UniformizerSupport |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # ChernClass: a local uniformizer defines the actual prime support nearby |
| 13 | |
| 14 | Finite generation lets one clear the finitely many localization denominators |
| 15 | of an ideal containment. For a DVR uniformizer, the localized principal |
| 16 | ideal is the maximal ideal. Consequently its zero locus on a genuine |
| 17 | principal neighborhood is exactly the original prime support. |
| 18 | -/ |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {R : Type u} [CommRing R] |
| 23 | |
| 24 | /-- A finitely generated ideal containment at a prime has one common |
| 25 | denominator outside that prime, obtained from its actual generators. -/ |
| 26 | theorem exists_common_localization_denominator (P I J : Ideal R) [P.IsPrime] |
| 27 | (hJ : J.FG) |
| 28 | (h : J.map (algebraMap R (Localization.AtPrime P)) ≤ |
| 29 | I.map (algebraMap R (Localization.AtPrime P))) : |
| 30 | ∃ b : R, b ∉ P ∧ ∀ a ∈ J, b * a ∈ I := by |
| 31 | classical |
| 32 | obtain ⟨s, hs⟩ := hJ |
| 33 | have hd (a : s) : ∃ b : P.primeCompl, (b : R) * a.val ∈ I := by |
| 34 | have ha : a.val ∈ J := hs ▸ Ideal.subset_span a.property |
| 35 | have hm := h (Ideal.mem_map_of_mem (algebraMap R (Localization.AtPrime P)) ha) |
| 36 | obtain ⟨b, hb, hba⟩ := |
| 37 | (IsLocalization.algebraMap_mem_map_algebraMap_iff P.primeCompl (Localization.AtPrime P) I a.val).mp hm |
| 38 | exact ⟨⟨b, hb⟩, hba⟩ |
| 39 | choose b hb using hd |
| 40 | let c : R := ∏ a : s, (b a : R) |
| 41 | have hc : c ∉ P := by |
| 42 | change c ∈ P.primeCompl |
| 43 | exact Submonoid.prod_mem _ (fun a _ => (b a).property) |
| 44 | refine ⟨c, hc, ?_⟩ |
| 45 | intro a ha |
| 46 | rw [← hs] at ha |
| 47 | induction ha using Submodule.span_induction with |
| 48 | | mem a ha => |
| 49 | have hdvd : (b ⟨a, ha⟩ : R) ∣ c := |
| 50 | Finset.dvd_prod_of_mem (fun t : s => (b t : R)) (Finset.mem_univ (⟨a, ha⟩ : s)) |
| 51 | obtain ⟨d, hd⟩ := hdvd |
| 52 | rw [hd, mul_right_comm] |
| 53 | exact I.mul_mem_right d (hb ⟨a, ha⟩) |
| 54 | | zero => simpa only [mul_zero] using I.zero_mem |
| 55 | | add a b ha hb ia ib => |
| 56 | rw [mul_add] |
| 57 | exact I.add_mem ia ib |
| 58 | | smul r a ha ia => |
| 59 | change c * (r * a) ∈ I |
| 60 | rw [mul_left_comm] |
| 61 | exact I.mul_mem_left r ia |
| 62 | |
| 63 | /-- A genuine local uniformizer cuts out the actual prime support on |
| 64 | some principal neighborhood of that prime. -/ |
| 65 | theorem uniformizer_prime_support_neighborhood [IsNoetherianRing R] |
| 66 | (P : Ideal R) [P.IsPrime] |
| 67 | [IsDomain (Localization.AtPrime P)] [IsDiscreteValuationRing (Localization.AtPrime P)] |
| 68 | (p : R) (hp : Irreducible (algebraMap R (Localization.AtPrime P) p)) : |
| 69 | ∃ b : R, b ∉ P ∧ ∀ (Q : Ideal R), Q.IsPrime → b ∉ Q → (p ∈ Q ↔ P ≤ Q) := by |
| 70 | have hpP : p ∈ P := by |
| 71 | by_contra h |
| 72 | exact hp.not_isUnit (IsLocalization.map_units (Localization.AtPrime P) (⟨p, h⟩ : P.primeCompl)) |
| 73 | have he : P.map (algebraMap R (Localization.AtPrime P)) = |
| 74 | (Ideal.span {p}).map (algebraMap R (Localization.AtPrime P)) := by |
| 75 | rw [Localization.AtPrime.map_eq_maximalIdeal, Ideal.map_span, Set.image_singleton] |
| 76 | exact (IsDiscreteValuationRing.irreducible_iff_uniformizer _).mp hp |
| 77 | obtain ⟨b, hb, hm⟩ := exists_common_localization_denominator P (Ideal.span {p}) P |
| 78 | (IsNoetherian.noetherian P) he.le |
| 79 | refine ⟨b, hb, ?_⟩ |
| 80 | intro Q hQ hbQ |
| 81 | constructor |
| 82 | · intro hpQ a ha |
| 83 | have hmul : b * a ∈ Q := (Ideal.span_singleton_le_iff_mem Q).mpr hpQ (hm a ha) |
| 84 | exact (hQ.mem_or_mem hmul).resolve_left hbQ |
| 85 | · intro hPQ |
| 86 | exact hPQ hpP |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.AlgebraicGeometry.DivisorClass.Chern.UniformizerSupport |