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.RingTheory.Unramified.LocalStructure |
| 2 | import Mathlib.RingTheory.Unramified.Field |
| 3 | import Mathlib.RingTheory.Smooth.Flat |
| 4 | import Mathlib.RingTheory.Localization.FractionRing |
| 5 | import Mathlib.RingTheory.LocalProperties.Reduced |
| 6 | |
| 7 | /-! # Smooth Reduced Algebra -/ |
| 8 | |
| 9 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.SmoothReducedAlgebra.Construction |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Reducedness of smooth algebras over fields for the Openness argument. -/ |
| 14 | |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | /-- An etale algebra over a domain is reduced: flatness embeds it in its |
| 18 | generic fiber, which is unramified over a field and therefore reduced. -/ |
| 19 | theorem isReduced_etale_algebra_of_domain |
| 20 | (R B : Type*) [CommRing R] [IsDomain R] [CommRing B] [Algebra R B] |
| 21 | [Algebra.Etale R B] : IsReduced B := by |
| 22 | let K := FractionRing R |
| 23 | have : IsReduced (K ⊗[R] B) := |
| 24 | Algebra.FormallyUnramified.isReduced_of_field K (K ⊗[R] B) |
| 25 | exact isReduced_of_injective |
| 26 | (Algebra.TensorProduct.includeRight : B →ₐ[R] K ⊗[R] B) |
| 27 | (Algebra.TensorProduct.includeRight_injective (IsFractionRing.injective R K)) |
| 28 | |
| 29 | /-- A smooth algebra over a field is reduced. Locally, a smooth algebra |
| 30 | is etale over a polynomial algebra, to which the domain case applies. -/ |
| 31 | theorem isReduced_smooth_algebra_of_field |
| 32 | (K B : Type*) [Field K] [CommRing B] [Algebra K B] [Algebra.Smooth K B] : |
| 33 | IsReduced B := by |
| 34 | constructor |
| 35 | intro x hx |
| 36 | apply eq_zero_of_localization x |
| 37 | intro m hm |
| 38 | have : m.IsMaximal := hm |
| 39 | obtain ⟨f, hfm, n, _, _, hf⟩ := |
| 40 | Algebra.IsSmoothAt.exists_isStandardEtale_mvPolynomial (R := K) (p := m) |
| 41 | have : Algebra.IsStandardEtale (MvPolynomial (Fin n) K) (Localization.Away f) := hf |
| 42 | have : IsReduced (Localization.Away f) := |
| 43 | isReduced_etale_algebra_of_domain (MvPolynomial (Fin n) K) (Localization.Away f) |
| 44 | have hzero : algebraMap B (Localization.Away f) x = 0 := |
| 45 | (hx.map (algebraMap B (Localization.Away f))).eq_zero |
| 46 | obtain ⟨c, hc⟩ := (IsLocalization.map_eq_zero_iff (Submonoid.powers f) |
| 47 | (Localization.Away f) x).mp hzero |
| 48 | have hsub : Submonoid.powers f ≤ m.primeCompl := Submonoid.powers_le.mpr hfm |
| 49 | exact (IsLocalization.map_eq_zero_iff m.primeCompl (Localization.AtPrime m) x).mpr |
| 50 | ⟨⟨c, hsub c.property⟩, hc⟩ |
| 51 | |
| 52 | end |
| 53 | |
| 54 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.SmoothReducedAlgebra.Construction |