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.SmoothLocalDomain |
| 2 | |
| 3 | /-! # Smooth Normal -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.SmoothNormal.Constructions |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # DegreeTwo: smooth local rings over fields are integrally closed |
| 11 | |
| 12 | The actual integral-closure comparison for an etale algebra gives integral |
| 13 | closure in its reduced Artinian generic fiber. Locality forces that fiber |
| 14 | to be a field, so integral closure there implies ordinary integral closure. |
| 15 | The smooth prime-localization chart then gives the desired local normality. |
| 16 | -/ |
| 17 | |
| 18 | open scoped TensorProduct |
| 19 | |
| 20 | universe u v w |
| 21 | |
| 22 | /-- A local ring integrally closed in a reduced Artinian extension forces |
| 23 | that extension to be a field: all idempotents lift and are trivial. -/ |
| 24 | theorem isField_of_local_integrallyClosedIn_artinian |
| 25 | (A : Type u) (B : Type v) [CommRing A] [IsLocalRing A] |
| 26 | [CommRing B] [IsArtinianRing B] [IsReduced B] [Algebra A B] |
| 27 | [IsIntegrallyClosedIn A B] : IsField B := by |
| 28 | have hinj := (isIntegrallyClosedIn_iff.mp (inferInstance : IsIntegrallyClosedIn A B)).1 |
| 29 | let : Nontrivial B := hinj.nontrivial |
| 30 | apply Foundations.Scheme.DomainFromGenericFiber.isField_of_artinian_reduced_idempotents_trivial B |
| 31 | intro b hb |
| 32 | have hbint : IsIntegral A b := by |
| 33 | refine ⟨Polynomial.X ^ 2 - Polynomial.X, Polynomial.monic_X_pow_sub (by simp), ?_⟩ |
| 34 | simp [pow_two, hb.eq] |
| 35 | obtain ⟨a, ha⟩ := IsIntegrallyClosedIn.isIntegral_iff.mp hbint |
| 36 | have haidem : IsIdempotentElem a := by |
| 37 | change a * a = a |
| 38 | apply hinj |
| 39 | rw [map_mul, ha] |
| 40 | exact hb |
| 41 | rcases Foundations.Scheme.DomainFromGenericFiber.idempotent_eq_zero_or_one_of_local haidem with h0 | h1 |
| 42 | · left |
| 43 | rw [← ha, h0, map_zero] |
| 44 | · right |
| 45 | rw [← ha, h1, map_one] |
| 46 | |
| 47 | /-- Local localizations of etale algebras over normal domains are integrally |
| 48 | closed; no normality premise is imposed on the localized ring. -/ |
| 49 | theorem isIntegrallyClosed_of_localization_of_etale |
| 50 | (R : Type u) (S : Type v) (A : Type w) |
| 51 | [CommRing R] [IsDomain R] [IsIntegrallyClosed R] |
| 52 | [CommRing S] [Algebra R S] [Algebra.Etale R S] |
| 53 | [CommRing A] [IsLocalRing A] [Algebra R A] [Algebra S A] |
| 54 | [IsScalarTower R S A] (M : Submonoid S) [IsLocalization M A] : IsIntegrallyClosed A := by |
| 55 | let K := FractionRing R |
| 56 | let B := A ⊗[R] K |
| 57 | let C := K ⊗[R] A |
| 58 | let : Module.Flat S A := IsLocalization.flat A M |
| 59 | let : Module.Flat R A := Module.Flat.trans R S A |
| 60 | let : Algebra.FormallyUnramified S A := Algebra.FormallyUnramified.of_isLocalization M |
| 61 | let : Algebra.FormallyUnramified R A := Algebra.FormallyUnramified.comp R S A |
| 62 | let : Algebra.EssFiniteType S A := Algebra.EssFiniteType.of_isLocalization A M |
| 63 | let : Algebra.EssFiniteType R A := Algebra.EssFiniteType.comp R S A |
| 64 | let : Module.Finite K C := Algebra.FormallyUnramified.finite_of_free K C |
| 65 | let : IsArtinianRing C := IsArtinianRing.of_finite K C |
| 66 | let : IsReduced C := Algebra.FormallyUnramified.isReduced_of_field K C |
| 67 | let : IsArtinianRing B := (Algebra.TensorProduct.comm R K A).toRingEquiv.isArtinianRing |
| 68 | let : IsReduced B := isReduced_of_injective |
| 69 | (Algebra.TensorProduct.comm R A K).toRingHom (Algebra.TensorProduct.comm R A K).injective |
| 70 | have hc : Function.Bijective (TensorProduct.toIntegralClosure R A K) := |
| 71 | TensorProduct.toIntegralClosure_bijective_of_tower |
| 72 | (R := R) (S := S) (T := A) (B := K) |
| 73 | TensorProduct.toIntegralClosure_bijective_of_smooth |
| 74 | (TensorProduct.toIntegralClosure_bijective_of_isLocalization M) |
| 75 | let : IsIntegrallyClosedIn A B := |
| 76 | Foundations.Scheme.TensorIntegralClosure.isIntegrallyClosedIn_tensor_of_comparison_surjective hc.surjective |
| 77 | let : Field B := (isField_of_local_integrallyClosedIn_artinian A B).toField |
| 78 | let : FaithfulSMul A B := (faithfulSMul_iff_algebraMap_injective A B).mpr |
| 79 | (isIntegrallyClosedIn_iff.mp (inferInstance : IsIntegrallyClosedIn A B)).1 |
| 80 | exact IsIntegrallyClosed.of_isIntegrallyClosedIn A B |
| 81 | |
| 82 | /-- The actual prime localization of a smooth algebra over a field is normal. -/ |
| 83 | theorem isIntegrallyClosed_localizationAtPrime_of_isSmoothAt |
| 84 | (K : Type u) (S : Type v) [Field K] [CommRing S] [Algebra K S] |
| 85 | [Algebra.FinitePresentation K S] (p : Ideal S) [p.IsPrime] |
| 86 | [Algebra.IsSmoothAt K p] : IsIntegrallyClosed (Localization.AtPrime p) := by |
| 87 | obtain ⟨f, hfp, n, hPB, _, hEtale⟩ := |
| 88 | Algebra.IsSmoothAt.exists_isStandardEtale_mvPolynomial (R := K) (p := p) |
| 89 | let P := MvPolynomial (Fin n) K |
| 90 | let B := Localization.Away f |
| 91 | let A := Localization.AtPrime p |
| 92 | let : Algebra P B := hPB |
| 93 | let : Algebra.IsStandardEtale P B := hEtale |
| 94 | have hle : Submonoid.powers f ≤ p.primeCompl := Submonoid.powers_le.mpr hfp |
| 95 | let : Algebra B A := IsLocalization.localizationAlgebraOfSubmonoidLe |
| 96 | B A (Submonoid.powers f) p.primeCompl hle |
| 97 | let : IsScalarTower S B A := IsLocalization.localization_isScalarTower_of_submonoid_le |
| 98 | B A (Submonoid.powers f) p.primeCompl hle |
| 99 | let : IsLocalization (p.primeCompl.map (algebraMap S B)) A := |
| 100 | IsLocalization.isLocalization_of_submonoid_le B A (Submonoid.powers f) p.primeCompl hle |
| 101 | let : Algebra P A := ((algebraMap B A).comp (algebraMap P B)).toAlgebra |
| 102 | let : IsScalarTower P B A := IsScalarTower.of_algebraMap_eq' rfl |
| 103 | exact isIntegrallyClosed_of_localization_of_etale P B A (p.primeCompl.map (algebraMap S B)) |
| 104 | |
| 105 | end |
| 106 | |
| 107 | end OAI.AlgebraicGeometry.HodgeConjecture.DegreeTwo.SmoothNormal.Constructions |