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.FormalGeometry.Completion.EtaleDomainLocalization |
| 2 | import Mathlib.RingTheory.Polynomial.UniqueFactorization |
| 3 | import Mathlib.RingTheory.Localization.LocalizationLocalization |
| 4 | import Mathlib.RingTheory.LocalProperties.IntegrallyClosed |
| 5 | |
| 6 | /-! # Smooth Local Domains -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.SmoothLocalDomains.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Completion: local rings of smooth algebras over fields are domains |
| 14 | |
| 15 | The standard smooth local presentation is étale over a polynomial ring. |
| 16 | The proved integral-closure argument applies there and transfers back to |
| 17 | the actual localization at the original prime. |
| 18 | -/ |
| 19 | |
| 20 | set_option backward.defeqAttrib.useBackward true |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | universe u v |
| 24 | |
| 25 | variable (K : Type u) (S : Type v) [Field K] [CommRing S] [Algebra K S] |
| 26 | [Algebra.Smooth K S] |
| 27 | |
| 28 | include K |
| 29 | |
| 30 | /-- Every prime localization of an actual smooth field algebra is a normal domain. -/ |
| 31 | theorem smooth_field_localization_isNormalDomain (p : Ideal S) [p.IsPrime] : |
| 32 | IsDomain (Localization.AtPrime p) ∧ IsIntegrallyClosed (Localization.AtPrime p) := by |
| 33 | obtain ⟨r, hr, n, a, hTower, hEtale⟩ := |
| 34 | Algebra.IsSmoothAt.exists_isStandardEtale_mvPolynomial (R := K) (p := p) |
| 35 | let := a |
| 36 | have := hTower |
| 37 | have := hEtale |
| 38 | let P := MvPolynomial (Fin n) K |
| 39 | let S' := Localization.Away r |
| 40 | let q : Ideal S' := p.map (algebraMap S S') |
| 41 | have hd : Disjoint (Submonoid.powers r : Set S) p := |
| 42 | (Ideal.disjoint_powers_iff_notMem_of_isPrime _).mpr hr |
| 43 | have : q.IsPrime := IsLocalization.isPrime_of_isPrime_disjoint (.powers r) S' p inferInstance hd |
| 44 | have hq : q.comap (algebraMap S S') = p := |
| 45 | IsLocalization.under_map_of_isPrime_disjoint (.powers r) S' inferInstance hd |
| 46 | have : IsDomain (Localization.AtPrime q) := |
| 47 | EtaleDomainLocalization.Construction.etale_localization_isDomain P (FractionRing P) S' q |
| 48 | have : IsIntegrallyClosed (Localization.AtPrime q) := |
| 49 | EtaleDomainLocalization.Construction.etale_localization_isIntegrallyClosed P (FractionRing P) S' q |
| 50 | have : IsLocalization.AtPrime (Localization.AtPrime q) p := by |
| 51 | simpa only [hq] using IsLocalization.isLocalization_isLocalization_atPrime_isLocalization |
| 52 | (.powers r) (Localization.AtPrime q) q |
| 53 | let e := (IsLocalization.algEquiv p.primeCompl (Localization.AtPrime p) |
| 54 | (Localization.AtPrime q)).toRingEquiv |
| 55 | exact ⟨e.toMulEquiv.isDomain _, IsIntegrallyClosed.of_equiv e.symm⟩ |
| 56 | |
| 57 | /-- Every prime localization of an actual smooth algebra over a field is a domain. -/ |
| 58 | theorem smooth_field_localization_isDomain (p : Ideal S) [p.IsPrime] : |
| 59 | IsDomain (Localization.AtPrime p) := (smooth_field_localization_isNormalDomain K S p).1 |
| 60 | |
| 61 | /-- Every prime localization of an actual smooth field algebra is integrally closed. -/ |
| 62 | theorem smooth_field_localization_isIntegrallyClosed (p : Ideal S) [p.IsPrime] : |
| 63 | IsIntegrallyClosed (Localization.AtPrime p) := |
| 64 | (smooth_field_localization_isNormalDomain K S p).2 |
| 65 | |
| 66 | /-- A smooth field algebra which is a domain is integrally closed. -/ |
| 67 | theorem smooth_field_domain_isIntegrallyClosed [IsDomain S] : IsIntegrallyClosed S := |
| 68 | IsIntegrallyClosed.of_localization_maximal |
| 69 | (fun p _ _ => smooth_field_localization_isIntegrallyClosed K S p) |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.SmoothLocalDomains.Construction |