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.NumberTheory.PadicHodge.IntegralComparison.Etale.CoordinateFormBasis |
| 2 | import Mathlib.RingTheory.Spectrum.Prime.FreeLocus |
| 3 | import Mathlib.LinearAlgebra.Dimension.StrongRankCondition |
| 4 | |
| 5 | /-! # Coordinate Rank -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Etale.CoordinateRank |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Étale coordinate differentials have a basis of the geometric rank, |
| 12 | computed at any actual point of the affine chart. -/ |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable (R A σ : Type u) [CommRing R] [CommRing A] [Algebra R A] |
| 17 | [Fintype σ] [Algebra (MvPolynomial σ R) A] |
| 18 | [IsScalarTower R (MvPolynomial σ R) A] [Algebra.Etale (MvPolynomial σ R) A] |
| 19 | (p : PrimeSpectrum A) (g : ℕ) (hg : Module.rankAtStalk Ω[A⁄R] p = g) |
| 20 | |
| 21 | include hg in |
| 22 | theorem card : Fintype.card σ = g := by |
| 23 | let b := CoordinateFormBasis.kaehlerBasis R A σ |
| 24 | let : Module.Free A Ω[A⁄R] := Module.Free.of_basis b |
| 25 | let : Nontrivial A := p.nontrivial |
| 26 | exact (Module.finrank_eq_card_basis b).symm.trans |
| 27 | (((congrFun (Module.rankAtStalk_eq_finrank_of_free (R := A) (M := Ω[A⁄R])) p).symm).trans hg) |
| 28 | |
| 29 | def basis : Module.Basis (Fin g) A Ω[A⁄R] := |
| 30 | (CoordinateFormBasis.kaehlerBasis R A σ).reindex |
| 31 | ((Fintype.equivFin σ).trans (finCongr (CoordinateRank.card R A σ p g hg))) |
| 32 | |
| 33 | end |
| 34 | |
| 35 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Etale.CoordinateRank |