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 | import OAI.AlgebraicGeometry.Foundations.Scheme.AffineOpenSmooth |
| 3 | import Mathlib.RingTheory.LocalProperties.IntegrallyClosed |
| 4 | |
| 5 | /-! # Smooth Normal -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.SmoothNormal.Constructions.Algebraization |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Integral closedness of local rings of smooth complex algebras |
| 13 | |
| 14 | The integral-closure comparison for an étale localization puts every integral |
| 15 | generic-fiber element in the local ring. Lifting idempotents makes that generic |
| 16 | fiber a field, so the local ring is integrally closed. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.AlgebraicGeometry |
| 20 | open scoped TensorProduct |
| 21 | |
| 22 | theorem isField_of_local_artinian_reduced_extension |
| 23 | {A B : Type*} [CommRing A] [IsLocalRing A] |
| 24 | [CommRing B] [IsArtinianRing B] [IsReduced B] |
| 25 | (f : A →+* B) (hf : Function.Injective f) |
| 26 | (hlift : ∀ b : B, IsIdempotentElem b → ∃ a : A, f a = b) : IsField B := by |
| 27 | let : Nontrivial B := hf.nontrivial |
| 28 | apply Foundations.Scheme.DomainFromGenericFiber.isField_of_artinian_reduced_idempotents_trivial B |
| 29 | intro b hb |
| 30 | obtain ⟨a, ha⟩ := hlift b hb |
| 31 | have haidem : IsIdempotentElem a := by |
| 32 | change a * a = a |
| 33 | apply hf |
| 34 | rw [map_mul, ha] |
| 35 | exact hb |
| 36 | rcases Foundations.Scheme.DomainFromGenericFiber.idempotent_eq_zero_or_one_of_local haidem with h0 | h1 |
| 37 | · left |
| 38 | rw [← ha, h0, map_zero] |
| 39 | · right |
| 40 | rw [← ha, h1, map_one] |
| 41 | |
| 42 | theorem isIntegrallyClosed_of_localization_of_etale |
| 43 | (R S A : Type*) |
| 44 | [CommRing R] [IsDomain R] [IsIntegrallyClosed R] |
| 45 | [CommRing S] [Algebra R S] [Algebra.Etale R S] |
| 46 | [CommRing A] [IsLocalRing A] [Algebra R A] [Algebra S A] |
| 47 | [IsScalarTower R S A] (M : Submonoid S) [IsLocalization M A] : IsIntegrallyClosed A := by |
| 48 | let K := FractionRing R |
| 49 | let B := A ⊗[R] K |
| 50 | let C := K ⊗[R] A |
| 51 | let : Module.Flat S A := IsLocalization.flat A M |
| 52 | let : Module.Flat R A := Module.Flat.trans R S A |
| 53 | let : Algebra.FormallyUnramified S A := Algebra.FormallyUnramified.of_isLocalization M |
| 54 | let : Algebra.FormallyUnramified R A := Algebra.FormallyUnramified.comp R S A |
| 55 | let : Algebra.EssFiniteType S A := Algebra.EssFiniteType.of_isLocalization A M |
| 56 | let : Algebra.EssFiniteType R A := Algebra.EssFiniteType.comp R S A |
| 57 | let : Module.Finite K C := Algebra.FormallyUnramified.finite_of_free K C |
| 58 | let : IsArtinianRing C := IsArtinianRing.of_finite K C |
| 59 | let : IsReduced C := Algebra.FormallyUnramified.isReduced_of_field K C |
| 60 | let : IsArtinianRing B := (Algebra.TensorProduct.comm R K A).toRingEquiv.isArtinianRing |
| 61 | let : IsReduced B := isReduced_of_injective |
| 62 | (Algebra.TensorProduct.comm R A K).toRingHom (Algebra.TensorProduct.comm R A K).injective |
| 63 | have hc : Function.Bijective (TensorProduct.toIntegralClosure R A K) := |
| 64 | TensorProduct.toIntegralClosure_bijective_of_tower |
| 65 | (R := R) (S := S) (T := A) (B := K) |
| 66 | TensorProduct.toIntegralClosure_bijective_of_smooth |
| 67 | (TensorProduct.toIntegralClosure_bijective_of_isLocalization M) |
| 68 | have hinj : Function.Injective (algebraMap A B) := |
| 69 | Algebra.TensorProduct.includeLeft_injective (S := A) (IsFractionRing.injective R K) |
| 70 | have hfield : IsField B := by |
| 71 | apply isField_of_local_artinian_reduced_extension (algebraMap A B) hinj |
| 72 | intro z hz |
| 73 | apply Foundations.Scheme.TensorIntegralClosure.exists_tensorLeft_eq_of_isIntegral hc.surjective z |
| 74 | refine ⟨Polynomial.X ^ 2 - Polynomial.X, Polynomial.monic_X_pow_sub (by simp), ?_⟩ |
| 75 | simp [pow_two, hz.eq] |
| 76 | let : Field B := hfield.toField |
| 77 | let : FaithfulSMul A B := (faithfulSMul_iff_algebraMap_injective A B).mpr hinj |
| 78 | let : IsIntegrallyClosedIn A B := Foundations.Scheme.TensorIntegralClosure.isIntegrallyClosedIn_tensor_of_comparison_surjective hc.surjective |
| 79 | exact IsIntegrallyClosed.of_isIntegrallyClosedIn A B |
| 80 | |
| 81 | theorem isIntegrallyClosed_localizationAtPrime_of_smooth |
| 82 | (K S : Type*) [Field K] [CommRing S] [Algebra K S] [Algebra.Smooth K S] |
| 83 | (p : Ideal S) [p.IsPrime] : IsIntegrallyClosed (Localization.AtPrime p) := by |
| 84 | obtain ⟨f, hfp, n, hPB, _, hEtale⟩ := |
| 85 | Algebra.IsSmoothAt.exists_isStandardEtale_mvPolynomial (R := K) (p := p) |
| 86 | let P := MvPolynomial (Fin n) K |
| 87 | let B := Localization.Away f |
| 88 | let A := Localization.AtPrime p |
| 89 | let : Algebra P B := hPB |
| 90 | let : Algebra.IsStandardEtale P B := hEtale |
| 91 | have hle : Submonoid.powers f ≤ p.primeCompl := Submonoid.powers_le.mpr hfp |
| 92 | let : Algebra B A := IsLocalization.localizationAlgebraOfSubmonoidLe |
| 93 | B A (Submonoid.powers f) p.primeCompl hle |
| 94 | let : IsScalarTower S B A := IsLocalization.localization_isScalarTower_of_submonoid_le |
| 95 | B A (Submonoid.powers f) p.primeCompl hle |
| 96 | let : IsLocalization (p.primeCompl.map (algebraMap S B)) A := |
| 97 | IsLocalization.isLocalization_of_submonoid_le B A (Submonoid.powers f) p.primeCompl hle |
| 98 | let : Algebra P A := ((algebraMap B A).comp (algebraMap P B)).toAlgebra |
| 99 | let : IsScalarTower P B A := IsScalarTower.of_algebraMap_eq' rfl |
| 100 | exact isIntegrallyClosed_of_localization_of_etale P B A (p.primeCompl.map (algebraMap S B)) |
| 101 | |
| 102 | theorem isIntegrallyClosed_of_smooth_domain |
| 103 | (K S : Type*) [Field K] [CommRing S] [IsDomain S] |
| 104 | [Algebra K S] [Algebra.Smooth K S] : IsIntegrallyClosed S := by |
| 105 | apply IsIntegrallyClosed.of_localization_maximal |
| 106 | intro p _ _ |
| 107 | exact isIntegrallyClosed_localizationAtPrime_of_smooth K S p |
| 108 | |
| 109 | theorem isIntegrallyClosed_affineOpen_of_smooth_integral |
| 110 | (X : CategoryTheory.Over Foundations.Scheme.ProjectiveSpace.complexBase) [AlgebraicGeometry.IsIntegral X.left] |
| 111 | [AlgebraicGeometry.Smooth X.hom] (U : X.left.Opens) (hU : AlgebraicGeometry.IsAffineOpen U) |
| 112 | [Nonempty U] : IsIntegrallyClosed Γ(X.left, U) := by |
| 113 | let : Algebra.Smooth ℂ (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U) := |
| 114 | ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra_smooth X U hU |
| 115 | exact isIntegrallyClosed_of_smooth_domain ℂ (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U) |
| 116 | |
| 117 | end |
| 118 | |
| 119 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.SmoothNormal.Constructions.Algebraization |