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.ArithmeticGeometry.OrdinaryLocus.Openness.CotangentDimension |
| 2 | import Mathlib.RingTheory.Localization.FractionRing |
| 3 | |
| 4 | /-! # Function Field Differentials -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FunctionFieldDifferentials.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Differential dimension of function fields of smooth integral affine schemes. -/ |
| 11 | |
| 12 | open KaehlerDifferential |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | /-- The rank of differentials at any prime of a smooth integral algebra |
| 16 | equals the differential dimension of its fraction field. -/ |
| 17 | theorem finrank_fractionField_kaehler_eq_rankAtStalk |
| 18 | (K B Q : Type*) [Field K] [CommRing B] [IsDomain B] [Algebra K B] |
| 19 | [Algebra.Smooth K B] [Field Q] [Algebra B Q] [IsFractionRing B Q] |
| 20 | [Algebra K Q] [IsScalarTower K B Q] (p : PrimeSpectrum B) : |
| 21 | Module.finrank Q Ω[Q⁄K] = Module.rankAtStalk Ω[B⁄K] p := by |
| 22 | have : Algebra.FormallyEtale B Q := |
| 23 | Algebra.FormallyEtale.of_isLocalization (Rₘ := Q) (nonZeroDivisors B) |
| 24 | let q : PrimeSpectrum Q := ⟨⊥, inferInstance⟩ |
| 25 | have hq : q.comap (algebraMap B Q) = ⊥ := by |
| 26 | apply PrimeSpectrum.ext |
| 27 | exact (RingHom.injective_iff_ker_eq_bot (algebraMap B Q)).mp (IsFractionRing.injective B Q) |
| 28 | have h := Module.rankAtStalk_isBaseChange |
| 29 | (isBaseChange_of_formallyEtale K B Q) q |
| 30 | rw [Module.rankAtStalk_eq_finrank_of_free, hq] at h |
| 31 | exact h.trans (Module.rankAtStalk_eq_of_le_of_finite_of_flat Ω[B⁄K] bot_le) |
| 32 | |
| 33 | /-- At a closed point of a smooth integral algebra over a perfect field, |
| 34 | the local dimension equals the differential dimension of the function field. -/ |
| 35 | theorem finrank_fractionField_kaehler_eq_local_dimension |
| 36 | (K B Q : Type*) [Field K] [PerfectField K] [CommRing B] [IsDomain B] [Algebra K B] |
| 37 | [Algebra.Smooth K B] [Field Q] [Algebra B Q] [IsFractionRing B Q] |
| 38 | [Algebra K Q] [IsScalarTower K B Q] (p : Ideal B) [hp : p.IsMaximal] : |
| 39 | (Module.finrank Q Ω[Q⁄K] : WithBot ℕ∞) = ringKrullDim (Localization.AtPrime p) := by |
| 40 | rw [finrank_fractionField_kaehler_eq_rankAtStalk K B Q ⟨p, hp.isPrime⟩] |
| 41 | exact (CotangentDimension.Construction.ringKrullDim_localization_maximal_eq_rankAtStalk_kaehler K B p).symm |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FunctionFieldDifferentials.Construction |