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.TensorIntegralClosure |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.DomainFromGenericFiber |
| 3 | import Mathlib.RingTheory.Unramified.Field |
| 4 | import Mathlib.RingTheory.Flat.Localization |
| 5 | |
| 6 | /-! # Etale Local Domain -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.EtaleLocalDomain |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Localizations of étale algebras over an integrally closed domain |
| 14 | |
| 15 | An étale algebra has a reduced Artinian generic fiber. Smooth base change |
| 16 | commutes with integral closure, and this comparison remains bijective after |
| 17 | arbitrary localization. Hence all generic-fiber idempotents lift. A local |
| 18 | source which embeds in that generic fiber is therefore a domain. |
| 19 | -/ |
| 20 | |
| 21 | open scoped TensorProduct |
| 22 | |
| 23 | universe u v w |
| 24 | |
| 25 | /-- Every local localization of an étale algebra over an integrally closed |
| 26 | domain is a domain. The integral-closure property of the local ring is |
| 27 | derived from smooth base change and localization, not assumed. -/ |
| 28 | theorem isDomain_of_localization_of_etale |
| 29 | (R : Type u) (S : Type v) (A : Type w) |
| 30 | [CommRing R] [IsDomain R] [IsIntegrallyClosed R] |
| 31 | [CommRing S] [Algebra R S] [Algebra.Etale R S] |
| 32 | [CommRing A] [IsLocalRing A] [Algebra R A] [Algebra S A] |
| 33 | [IsScalarTower R S A] (M : Submonoid S) [IsLocalization M A] : IsDomain A := by |
| 34 | let K := FractionRing R |
| 35 | let B := A ⊗[R] K |
| 36 | let C := K ⊗[R] A |
| 37 | let : Module.Flat S A := IsLocalization.flat A M |
| 38 | let : Module.Flat R A := Module.Flat.trans R S A |
| 39 | let : Algebra.FormallyUnramified S A := |
| 40 | Algebra.FormallyUnramified.of_isLocalization M |
| 41 | let : Algebra.FormallyUnramified R A := Algebra.FormallyUnramified.comp R S A |
| 42 | let : Algebra.EssFiniteType S A := Algebra.EssFiniteType.of_isLocalization A M |
| 43 | let : Algebra.EssFiniteType R A := Algebra.EssFiniteType.comp R S A |
| 44 | let : Module.Finite K C := Algebra.FormallyUnramified.finite_of_free K C |
| 45 | let : IsArtinianRing C := IsArtinianRing.of_finite K C |
| 46 | let : IsReduced C := Algebra.FormallyUnramified.isReduced_of_field K C |
| 47 | let : IsArtinianRing B := (Algebra.TensorProduct.comm R K A).toRingEquiv.isArtinianRing |
| 48 | let : IsReduced B := isReduced_of_injective |
| 49 | (Algebra.TensorProduct.comm R A K).toRingHom (Algebra.TensorProduct.comm R A K).injective |
| 50 | have hc : Function.Bijective (TensorProduct.toIntegralClosure R A K) := |
| 51 | TensorProduct.toIntegralClosure_bijective_of_tower |
| 52 | (R := R) (S := S) (T := A) (B := K) |
| 53 | TensorProduct.toIntegralClosure_bijective_of_smooth |
| 54 | (TensorProduct.toIntegralClosure_bijective_of_isLocalization M) |
| 55 | apply DomainFromGenericFiber.isDomain_of_local_of_artinian_reduced_extension (algebraMap A B) |
| 56 | (Algebra.TensorProduct.includeLeft_injective (S := A) (IsFractionRing.injective R K)) |
| 57 | intro z hz |
| 58 | apply TensorIntegralClosure.exists_tensorLeft_eq_of_isIntegral hc.surjective z |
| 59 | refine ⟨Polynomial.X ^ 2 - Polynomial.X, Polynomial.monic_X_pow_sub (by simp), ?_⟩ |
| 60 | simp [pow_two, hz.eq] |
| 61 | |
| 62 | /-- In particular, every prime localization of such an étale algebra is a |
| 63 | domain. -/ |
| 64 | theorem isDomain_atPrime_of_etale |
| 65 | (R : Type u) (S : Type v) |
| 66 | [CommRing R] [IsDomain R] [IsIntegrallyClosed R] |
| 67 | [CommRing S] [Algebra R S] [Algebra.Etale R S] |
| 68 | (p : Ideal S) [p.IsPrime] : IsDomain (Localization.AtPrime p) := |
| 69 | isDomain_of_localization_of_etale R S (Localization.AtPrime p) p.primeCompl |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.Foundations.Scheme.EtaleLocalDomain |