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.CanonicalSurfaceReciprocity |
| 2 | |
| 3 | /-! # Order Positive -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.OrderPositive |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A nonzero equation has strictly positive order at every height-one |
| 10 | prime containing it, including singular and nonnormal localizations. -/ |
| 11 | |
| 12 | theorem ord_eq_zero_iff_isUnit (R : Type*) [CommRing R] (r : R) : |
| 13 | Ring.ord R r = 0 ↔ IsUnit r := by |
| 14 | rw [Ring.ord, Module.length_eq_zero_iff, Ideal.Quotient.subsingleton_iff, Ideal.span_singleton_eq_top] |
| 15 | |
| 16 | theorem weight_pos (R : Type*) [CommRing R] [IsDomain R] [IsNoetherianRing R] |
| 17 | (p : PrimeSpectrum R) (hp : p.asIdeal.height = 1) (r : R) (hr : r ≠ 0) (hrp : r ∈ p.asIdeal) : |
| 18 | 0 < CanonicalSurfaceReciprocity.weight R p r := by |
| 19 | let S := Localization.AtPrime p.asIdeal |
| 20 | have hm : (IsLocalRing.maximalIdeal S).height = 1 := by |
| 21 | rw [← IsLocalization.height_under p.asIdeal.primeCompl, Localization.AtPrime.under_maximalIdeal, hp] |
| 22 | let : Ring.KrullDimLE 1 S := Ring.krullDimLE_iff.mpr (by |
| 23 | rw [← IsLocalRing.maximalIdeal_height_eq_ringKrullDim, hm] |
| 24 | rfl) |
| 25 | have hi : Function.Injective (algebraMap R S) := |
| 26 | IsLocalization.injective S p.asIdeal.primeCompl_le_nonZeroDivisors |
| 27 | have hrS : algebraMap R S r ≠ 0 := (map_ne_zero_iff _ hi).mpr hr |
| 28 | have hn : Ring.ord S (algebraMap R S r) ≠ 0 := by |
| 29 | intro hz |
| 30 | have hu := (ord_eq_zero_iff_isUnit S _).mp hz |
| 31 | have hmem : algebraMap R S r ∈ IsLocalRing.maximalIdeal S := by |
| 32 | rw [← Localization.AtPrime.map_eq_maximalIdeal] |
| 33 | exact Ideal.mem_map_of_mem _ hrp |
| 34 | exact (IsLocalRing.notMem_maximalIdeal.mpr hu) hmem |
| 35 | have hfin := Ring.ord_ne_top (mem_nonZeroDivisors_of_ne_zero hrS) |
| 36 | have hnat : (Ring.ord S (algebraMap R S r)).toNat ≠ 0 := by |
| 37 | intro hz |
| 38 | apply hn |
| 39 | rw [← ENat.natCast_toNat hfin, hz, Nat.cast_zero] |
| 40 | change 0 < ((Ring.ord S (algebraMap R S r)).toNat : ℚ) |
| 41 | exact_mod_cast Nat.pos_of_ne_zero hnat |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.OrderPositive |