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 Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 2 | import Mathlib.RingTheory.Etale.Kaehler |
| 3 | import Mathlib.RingTheory.Spectrum.Prime.FreeLocus |
| 4 | |
| 5 | /-! # Relative Differential Rank -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Smooth.RelativeDifferentialRank.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The relative dimension of a locally standard smooth algebra is the |
| 12 | rank of its actual differential module at each prime, including on reducible bases. -/ |
| 13 | |
| 14 | theorem locallyStandardSmooth_differential_rank (R S : Type) [CommRing R] [CommRing S] [Algebra R S] |
| 15 | [Algebra.Smooth R S] |
| 16 | (n : ℕ) (h : RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension n) (algebraMap R S)) |
| 17 | (p : PrimeSpectrum S) : Module.rankAtStalk Ω[S⁄R] p = n := by |
| 18 | classical |
| 19 | obtain ⟨s, hs, hloc⟩ := h |
| 20 | have hex : ∃ r ∈ s, r ∉ p.asIdeal := by |
| 21 | by_contra hn |
| 22 | have hle : Ideal.span s ≤ p.asIdeal := Ideal.span_le.mpr (by |
| 23 | intro r hr |
| 24 | by_contra hnr |
| 25 | exact hn ⟨r, hr, hnr⟩) |
| 26 | rw [hs] at hle |
| 27 | exact p.isPrime.ne_top (top_le_iff.mp hle) |
| 28 | obtain ⟨r, hr, hpr⟩ := hex |
| 29 | let T := Localization.Away r |
| 30 | have hst : Algebra.IsStandardSmoothOfRelativeDimension n R T := by |
| 31 | have H := hloc r hr |
| 32 | rw [← IsScalarTower.algebraMap_eq R S T, |
| 33 | RingHom.isStandardSmoothOfRelativeDimension_algebraMap] at H |
| 34 | exact H |
| 35 | let := hst |
| 36 | have hmem : p ∈ Set.range (PrimeSpectrum.comap (algebraMap S T)) := by |
| 37 | rw [PrimeSpectrum.localization_away_comap_range T r] |
| 38 | exact hpr |
| 39 | obtain ⟨q, hq⟩ := hmem |
| 40 | let : Nontrivial T := q.nontrivial |
| 41 | let : Algebra.IsStandardSmooth R T := Algebra.IsStandardSmoothOfRelativeDimension.isStandardSmooth n |
| 42 | let : Algebra.FormallyEtale S T := Algebra.FormallyEtale.of_isLocalization (Submonoid.powers r) |
| 43 | have H := Module.rankAtStalk_isBaseChange (KaehlerDifferential.isBaseChange_of_formallyEtale R S T) q |
| 44 | rw [hq] at H |
| 45 | have hn : Module.finrank T Ω[T⁄R] = n := Module.finrank_eq_of_rank_eq |
| 46 | (Algebra.IsStandardSmoothOfRelativeDimension.rank_kaehlerDifferential (R := R) (S := T) n) |
| 47 | exact H.symm.trans ((congrFun (Module.rankAtStalk_eq_finrank_of_free (R := T) (M := Ω[T⁄R])) q).trans hn) |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Smooth.RelativeDifferentialRank.BundleCycles |