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.HilbertScheme.Presentations.Finite.IdealLocalizationZero |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Principal.PrimeLocalization |
| 3 | import Mathlib.RingTheory.KrullDimension.Zero |
| 4 | import Mathlib.RingTheory.LocalProperties.Reduced |
| 5 | import Mathlib.RingTheory.Noetherian.Basic |
| 6 | import Mathlib.Algebra.Ring.Hom.InjSurj |
| 7 | |
| 8 | /-! # Reduced Principal Domain -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.ReducedPrincipalDomain |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! Around a minimal prime of a reduced Noetherian ring there is a |
| 15 | principal open whose coordinate ring is a domain. -/ |
| 16 | |
| 17 | universe u |
| 18 | variable {R : Type u} [CommRing R] [IsReduced R] [IsNoetherianRing R] |
| 19 | |
| 20 | theorem reduced_minimalPrime_principal_domain (p : Ideal R) (hp : p ∈ minimalPrimes R) : |
| 21 | ∃ s : R, s ∉ p ∧ IsDomain (Localization.Away s) := by |
| 22 | let : p.IsPrime := hp.1.1 |
| 23 | let K := Localization.AtPrime p |
| 24 | let : Ring.KrullDimLE 0 K := Ring.KrullDimLE.of_isLocalization p hp K |
| 25 | let : Field K := Ring.KrullDimLE.isField_of_isReduced.toField |
| 26 | have hk (x : R) : algebraMap R K x = 0 ↔ x ∈ p := by |
| 27 | apply not_iff_not.mp |
| 28 | exact isUnit_iff_ne_zero.symm.trans (IsLocalization.AtPrime.isUnit_to_map_iff K p x) |
| 29 | have hp0 : p.map (algebraMap R K) = ⊥ := by |
| 30 | apply (Ideal.map_eq_bot_iff_le_ker _).mpr |
| 31 | intro x hx |
| 32 | exact (hk x).mpr hx |
| 33 | obtain ⟨s, hs⟩ := Finite.IdealLocalizationZero.finite_ideal_localization_zero p.primeCompl K p |
| 34 | (IsNoetherian.noetherian p) hp0 |
| 35 | let A := Localization.Away s.val |
| 36 | let φ : A →+* K := Principal.PrimeLocalization.principalToPrimeMap p s.val s.property |
| 37 | have hφmap (r : R) : φ (algebraMap R A r) = algebraMap R K r := |
| 38 | Principal.PrimeLocalization.principalToPrimeMap_algebraMap p s.val s.property r |
| 39 | have hφ : Function.Injective φ := by |
| 40 | apply (IsLocalization.injective_iff_map_algebraMap_eq (Submonoid.powers s.val) φ).mpr |
| 41 | intro x y |
| 42 | constructor |
| 43 | · exact congrArg φ |
| 44 | · intro hxy |
| 45 | have hxy' := (hφmap x).symm.trans (hxy.trans (hφmap y)) |
| 46 | have hmem : x - y ∈ p := (hk (x - y)).mp (by rw [map_sub, hxy', sub_self]) |
| 47 | have hzero : algebraMap R A (x - y) = 0 := |
| 48 | (Ideal.map_eq_bot_iff_le_ker _).mp hs hmem |
| 49 | rwa [map_sub, sub_eq_zero] at hzero |
| 50 | exact ⟨s.val, s.property, Function.Injective.isDomain φ hφ⟩ |
| 51 | |
| 52 | theorem exists_reduced_principal_domain [Nontrivial R] : |
| 53 | ∃ s : R, s ≠ 0 ∧ IsDomain (Localization.Away s) := by |
| 54 | obtain ⟨p, hp⟩ := Ideal.nonempty_minimalPrimes (R := R) (I := ⊥) bot_ne_top |
| 55 | obtain ⟨s, hs, hS⟩ := reduced_minimalPrime_principal_domain p hp |
| 56 | exact ⟨s, fun h => hs (h ▸ p.zero_mem), hS⟩ |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.ReducedPrincipalDomain |