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.Divisors.LineBundles.Branch.AuxiliaryParameter |
| 2 | import Mathlib.RingTheory.DiscreteValuationRing.TFAE |
| 3 | import Mathlib.RingTheory.IntegralClosure.IntegrallyClosed |
| 4 | import Mathlib.RingTheory.KrullDimension.Field |
| 5 | |
| 6 | /-! # Prime DVR -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Normal.PrimeDVR.BundleCycles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # LineBundleCycles: the actual DVR at a principal divisor on a normal ring |
| 14 | |
| 15 | The height is exactly one by the principal ideal theorem. Normality |
| 16 | localizes, and the one-dimensional normal Noetherian local ring is a |
| 17 | DVR. A numerator of a local uniformizer gives a uniformizer coming |
| 18 | from an actual element of the original ring. |
| 19 | -/ |
| 20 | |
| 21 | variable {R : Type*} [CommRing R] [IsDomain R] [IsNoetherianRing R] |
| 22 | |
| 23 | theorem minimalPrincipalPrime_height_eq_one (r : R) (hr : r ≠ 0) |
| 24 | (P : Ideal R) [P.IsPrime] (hP : P ∈ (Ideal.span {r}).minimalPrimes) : P.height = 1 := by |
| 25 | have hPbot : P ≠ ⊥ := by |
| 26 | intro he |
| 27 | have hp := hP.le (Ideal.subset_span (Set.mem_singleton r)) |
| 28 | rw [he, Ideal.mem_bot] at hp |
| 29 | exact hr hp |
| 30 | exact le_antisymm |
| 31 | (Ideal.height_le_one_of_isPrincipal_of_mem_minimalPrimes (Ideal.span {r}) P hP) |
| 32 | (Order.one_le_iff_ne_zero.mpr (Ideal.height_eq_zero_iff_eq_bot.not.mpr hPbot)) |
| 33 | |
| 34 | theorem normalMinimalPrime_isDVR [IsIntegrallyClosed R] (r : R) (hr : r ≠ 0) |
| 35 | (P : Ideal R) [P.IsPrime] (hP : P ∈ (Ideal.span {r}).minimalPrimes) : |
| 36 | IsDiscreteValuationRing (Localization P.primeCompl) := by |
| 37 | let A := Localization P.primeCompl |
| 38 | have hS : P.primeCompl ≤ nonZeroDivisors R := by |
| 39 | intro x hx |
| 40 | exact mem_nonZeroDivisors_iff_ne_zero.mpr (fun he => hx (he ▸ P.zero_mem)) |
| 41 | let normalPrimeClosure : IsIntegrallyClosed A := isIntegrallyClosed_of_isLocalization A P.primeCompl hS |
| 42 | have hdim : ringKrullDim A = 1 := by |
| 43 | rw [IsLocalization.AtPrime.ringKrullDim_eq_height P A, minimalPrincipalPrime_height_eq_one r hr P hP] |
| 44 | rfl |
| 45 | let normalPrimeDimension : Ring.KrullDimLE 1 A := Ring.krullDimLE_iff.mpr hdim.le |
| 46 | let normalPrimeDimensionOne : Ring.DimensionLEOne A := ⟨fun hn hp => hp.isMaximal_of_ne_bot hn⟩ |
| 47 | let normalPrimeDedekind : IsDedekindDomain A := |
| 48 | { toIsDomain := inferInstance |
| 49 | toIsDedekindRing := |
| 50 | { toIsNoetherian := inferInstance |
| 51 | toDimensionLEOne := inferInstance |
| 52 | toIsIntegralClosure := inferInstance } } |
| 53 | have hfield : ¬ IsField A := by |
| 54 | intro hf |
| 55 | have he := (ringKrullDim_eq_zero_of_isField hf).symm.trans hdim |
| 56 | exact (by decide : (0 : WithBot ℕ∞) ≠ 1) he |
| 57 | exact ((IsDiscreteValuationRing.TFAE A hfield).out 1 3).mpr normalPrimeDedekind |
| 58 | |
| 59 | omit [IsNoetherianRing R] in |
| 60 | theorem exists_originalRing_uniformizer (P : Ideal R) [P.IsPrime] |
| 61 | [IsDiscreteValuationRing (Localization P.primeCompl)] : |
| 62 | ∃ t : R, t ≠ 0 ∧ Irreducible (algebraMap R (Localization P.primeCompl) t) := by |
| 63 | let A := Localization P.primeCompl |
| 64 | obtain ⟨π, hπ⟩ := IsDiscreteValuationRing.exists_irreducible A |
| 65 | obtain ⟨t, s, hs⟩ := IsLocalization.exists_mk'_eq P.primeCompl π |
| 66 | have ht : algebraMap R A t = π * algebraMap R A s := by |
| 67 | rw [← hs] |
| 68 | exact (IsLocalization.mk'_spec A t s).symm |
| 69 | have hirr : Irreducible (algebraMap R A t) := by |
| 70 | rw [ht] |
| 71 | exact (irreducible_mul_isUnit (IsLocalization.map_units A s)).mpr hπ |
| 72 | exact ⟨t, fun he => hirr.ne_zero (he ▸ map_zero _), hirr⟩ |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Normal.PrimeDVR.BundleCycles |