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.CycleClass.Thom.Affine.PrincipalSchemeOrder |
| 2 | import Mathlib.RingTheory.Ideal.KrullsHeightTheorem |
| 3 | |
| 4 | /-! # Order Minimal Prime -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Affine.OrderMinimalPrime.Constructions |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A nonzero affine regular function has nonzero order precisely at |
| 11 | the height-one primes containing it, which are its minimal primes. -/ |
| 12 | |
| 13 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 14 | |
| 15 | open OAI.AlgebraicGeometry.CycleClass.Thom.Affine.PrincipalSchemeOrder.Constructions |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | universe u |
| 21 | variable (R : Type u) [CommRing R] [IsDomain R] [IsNoetherianRing R] |
| 22 | (a : R) (ha : a ≠ 0) (q : PrimeSpectrum R) (hq : q.asIdeal.height = 1) |
| 23 | |
| 24 | local instance : q.asIdeal.IsPrime := q.isPrime |
| 25 | |
| 26 | include ha hq |
| 27 | |
| 28 | theorem mem_minimalPrimes_iff_mem : |
| 29 | q.asIdeal ∈ (Ideal.span {a}).minimalPrimes ↔ a ∈ q.asIdeal := by |
| 30 | constructor |
| 31 | · intro h |
| 32 | exact h.le (Ideal.subset_span (Set.mem_singleton a)) |
| 33 | · intro h |
| 34 | obtain ⟨P, hP, hPq⟩ := Ideal.exists_minimalPrimes_le (Ideal.span_le.mpr (Set.singleton_subset_iff.mpr h)) |
| 35 | let : P.IsPrime := hP.isPrime |
| 36 | have hlow : 1 ≤ P.height := |
| 37 | (Ideal.one_le_height_span_singleton_of_mem_nonZeroDivisors |
| 38 | (mem_nonZeroDivisors_of_ne_zero ha)).trans (Ideal.height_mono hP.le) |
| 39 | have he : P = q.asIdeal := Ideal.eq_of_le_of_height_le P hPq (hq.le.trans hlow) |
| 40 | rwa [← he] |
| 41 | |
| 42 | theorem schemeOrder_eq_zero_iff_not_mem : |
| 43 | (Spec (.of R)).ord (PrincipalSchemeOrder.Constructions.affineFunction R a) q = 0 ↔ a ∉ q.asIdeal := by |
| 44 | let S := Localization.AtPrime q.asIdeal |
| 45 | let : Ring.KrullDimLE 1 S := Ring.krullDimLE_iff.mpr (by |
| 46 | rw [IsLocalization.AtPrime.ringKrullDim_eq_height q.asIdeal S, hq] |
| 47 | rfl) |
| 48 | have hne : algebraMap R S a ≠ 0 := |
| 49 | (map_ne_zero_iff _ (IsLocalization.injective S q.asIdeal.primeCompl_le_nonZeroDivisors)).mpr ha |
| 50 | have hfin := Ring.ord_ne_top (mem_nonZeroDivisors_of_ne_zero hne) |
| 51 | rw [PrincipalSchemeOrder.Constructions.schemeOrder_eq_localOrder R q hq a ha, Int.natCast_eq_zero, ENat.toNat_eq_zero, |
| 52 | or_iff_left hfin, Ring.ord, Module.length_eq_zero_iff, Submodule.Quotient.subsingleton_iff, |
| 53 | Ideal.span_singleton_eq_top, IsLocalization.AtPrime.isUnit_to_map_iff S q.asIdeal a] |
| 54 | rfl |
| 55 | |
| 56 | theorem schemeOrder_ne_zero_iff_minimal : |
| 57 | (Spec (.of R)).ord (PrincipalSchemeOrder.Constructions.affineFunction R a) q ≠ 0 ↔ q.asIdeal ∈ (Ideal.span {a}).minimalPrimes := by |
| 58 | exact (not_congr (schemeOrder_eq_zero_iff_not_mem R a ha q hq)).trans |
| 59 | (not_not.trans (mem_minimalPrimes_iff_mem R a ha q hq).symm) |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.CycleClass.Thom.Affine.OrderMinimalPrime.Constructions |