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.Foundations.Scheme.EtaleLocalDomain |
| 2 | import Mathlib.RingTheory.Unramified.LocalStructure |
| 3 | import Mathlib.RingTheory.Localization.LocalizationLocalization |
| 4 | import Mathlib.RingTheory.Polynomial.UniqueFactorization |
| 5 | import Mathlib.RingTheory.Polynomial.RationalRoot |
| 6 | |
| 7 | /-! # Smooth Local Domain -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.SmoothLocalDomain |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # Local rings of smooth algebras over fields are domains |
| 15 | |
| 16 | At a smooth prime, mathlib supplies a principal neighborhood which is standard |
| 17 | étale over a polynomial algebra. The polynomial algebra is an integrally |
| 18 | closed domain. The prime localization is an actual further localization of |
| 19 | that neighborhood, so the proved étale local-domain theorem applies. |
| 20 | |
| 21 | Neither normality nor the local-domain conclusion is included as an extra |
| 22 | hypothesis on the smooth algebra. |
| 23 | -/ |
| 24 | |
| 25 | universe u v w |
| 26 | |
| 27 | /-- Smoothness at a prime of a finitely presented algebra over a field makes |
| 28 | the corresponding local ring a domain. -/ |
| 29 | theorem isDomain_localizationAtPrime_of_isSmoothAt |
| 30 | (K : Type u) (S : Type v) [Field K] [CommRing S] [Algebra K S] |
| 31 | [Algebra.FinitePresentation K S] (p : Ideal S) [p.IsPrime] |
| 32 | [Algebra.IsSmoothAt K p] : IsDomain (Localization.AtPrime p) := by |
| 33 | obtain ⟨f, hfp, n, hPB, _, hEtale⟩ := |
| 34 | Algebra.IsSmoothAt.exists_isStandardEtale_mvPolynomial (R := K) (p := p) |
| 35 | let P := MvPolynomial (Fin n) K |
| 36 | let B := Localization.Away f |
| 37 | let A := Localization.AtPrime p |
| 38 | let : Algebra P B := hPB |
| 39 | let : Algebra.IsStandardEtale P B := hEtale |
| 40 | have hle : Submonoid.powers f ≤ p.primeCompl := Submonoid.powers_le.mpr hfp |
| 41 | let : Algebra B A := IsLocalization.localizationAlgebraOfSubmonoidLe |
| 42 | B A (Submonoid.powers f) p.primeCompl hle |
| 43 | let : IsScalarTower S B A := IsLocalization.localization_isScalarTower_of_submonoid_le |
| 44 | B A (Submonoid.powers f) p.primeCompl hle |
| 45 | let : IsLocalization (p.primeCompl.map (algebraMap S B)) A := |
| 46 | IsLocalization.isLocalization_of_submonoid_le |
| 47 | B A (Submonoid.powers f) p.primeCompl hle |
| 48 | let : Algebra P A := ((algebraMap B A).comp (algebraMap P B)).toAlgebra |
| 49 | let : IsScalarTower P B A := IsScalarTower.of_algebraMap_eq' rfl |
| 50 | exact EtaleLocalDomain.isDomain_of_localization_of_etale P B A |
| 51 | (p.primeCompl.map (algebraMap S B)) |
| 52 | |
| 53 | /-- Every prime localization of a smooth algebra over a field is a domain. -/ |
| 54 | theorem isDomain_localizationAtPrime_of_smooth |
| 55 | (K : Type u) (S : Type v) [Field K] [CommRing S] [Algebra K S] |
| 56 | [Algebra.Smooth K S] (p : Ideal S) [p.IsPrime] : |
| 57 | IsDomain (Localization.AtPrime p) := |
| 58 | isDomain_localizationAtPrime_of_isSmoothAt K S p |
| 59 | |
| 60 | /-- The same local-domain conclusion holds for any ring realizing the prime |
| 61 | localization, including actual stalks of an affine smooth scheme. -/ |
| 62 | theorem isDomain_of_isLocalizationAtPrime_of_smooth |
| 63 | (K : Type u) (S : Type v) (A : Type w) |
| 64 | [Field K] [CommRing S] [Algebra K S] [Algebra.Smooth K S] |
| 65 | [CommRing A] [Algebra S A] (p : Ideal S) [p.IsPrime] |
| 66 | [IsLocalization.AtPrime A p] : IsDomain A := by |
| 67 | let : IsDomain (Localization.AtPrime p) := isDomain_localizationAtPrime_of_smooth K S p |
| 68 | let e : A ≃ₐ[S] Localization.AtPrime p := |
| 69 | IsLocalization.algEquiv p.primeCompl A (Localization.AtPrime p) |
| 70 | exact e.injective.isDomain e.toRingHom |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.Foundations.Scheme.SmoothLocalDomain |