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.SmoothComplexPoint |
| 2 | import Mathlib.RingTheory.Etale.Kaehler |
| 3 | import Mathlib.RingTheory.Spectrum.Prime.FreeLocus |
| 4 | |
| 5 | /-! # Smooth Domain Dimension -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Foundations.Scheme.SmoothDomainDimension.Algebraic |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # A common dimension for standard smooth charts of an integral affine algebra |
| 13 | |
| 14 | The dimension is the rank of the actual Kähler differential module at the |
| 15 | zero prime. For a smooth algebra that is a domain, finite flatness makes |
| 16 | this rank constant at all primes. Base change for Kähler differentials then |
| 17 | identifies every nonempty standard smooth localization with this same rank. |
| 18 | -/ |
| 19 | |
| 20 | universe u v w t |
| 21 | |
| 22 | section FiniteFlat |
| 23 | |
| 24 | variable {S : Type v} [CommRing S] [IsDomain S] |
| 25 | variable (M : Type w) [AddCommGroup M] [Module S M] |
| 26 | variable [Module.Finite S M] [Module.Flat S M] |
| 27 | |
| 28 | /-- A finite flat module over a domain has the same rank at all prime stalks. |
| 29 | The proof compares both primes to the zero prime. -/ |
| 30 | theorem finiteFlat_rankAtStalk_eq (p q : PrimeSpectrum S) : |
| 31 | Module.rankAtStalk M p = Module.rankAtStalk M q := by |
| 32 | let z : PrimeSpectrum S := ⟨⊥, inferInstance⟩ |
| 33 | have hz (r : PrimeSpectrum S) : z ≤ r := by |
| 34 | change (⊥ : Ideal S) ≤ r.asIdeal |
| 35 | exact bot_le |
| 36 | exact (Module.rankAtStalk_eq_of_le_of_finite_of_flat M (hz p)).symm.trans |
| 37 | (Module.rankAtStalk_eq_of_le_of_finite_of_flat M (hz q)) |
| 38 | |
| 39 | end FiniteFlat |
| 40 | |
| 41 | section DifferentialRank |
| 42 | |
| 43 | variable (R : Type u) (S : Type v) [CommRing R] [CommRing S] [Algebra R S] [IsDomain S] |
| 44 | |
| 45 | /-- The rank of the relative Kähler differential module at the generic point. -/ |
| 46 | def genericDifferentialRank : ℕ := |
| 47 | Module.rankAtStalk Ω[S⁄R] (⟨⊥, inferInstance⟩ : PrimeSpectrum S) |
| 48 | |
| 49 | variable {R S} |
| 50 | |
| 51 | /-- Smoothness supplies finite flatness, so the generic rank equals the rank |
| 52 | at every prime of this integral affine algebra. -/ |
| 53 | theorem kaehler_rankAtStalk_eq_generic [Algebra.Smooth R S] (p : PrimeSpectrum S) : |
| 54 | Module.rankAtStalk Ω[S⁄R] p = genericDifferentialRank R S := |
| 55 | finiteFlat_rankAtStalk_eq Ω[S⁄R] p ⟨⊥, inferInstance⟩ |
| 56 | |
| 57 | end DifferentialRank |
| 58 | |
| 59 | section PresentationStalk |
| 60 | |
| 61 | variable {R : Type u} {T : Type v} [CommRing R] [CommRing T] [Algebra R T] |
| 62 | variable [Nontrivial T] {ι : Type w} {σ : Type t} [Finite ι] [Finite σ] |
| 63 | |
| 64 | /-- The dimension of a submersive presentation is the rank at every stalk of |
| 65 | its actual differential module. -/ |
| 66 | theorem submersive_dimension_eq_rankAtStalk |
| 67 | (P : Algebra.SubmersivePresentation R T ι σ) (p : PrimeSpectrum T) : |
| 68 | P.dimension = Module.rankAtStalk Ω[T⁄R] p := by |
| 69 | let : Module.Free T Ω[T⁄R] := P.free_kaehlerDifferential |
| 70 | have hfin : Module.finrank T Ω[T⁄R] = P.dimension := |
| 71 | Module.finrank_eq_of_rank_eq P.rank_kaehlerDifferential |
| 72 | have hstalk : Module.rankAtStalk Ω[T⁄R] p = Module.finrank T Ω[T⁄R] := by |
| 73 | simp |
| 74 | exact hfin.symm.trans hstalk.symm |
| 75 | |
| 76 | end PresentationStalk |
| 77 | |
| 78 | section Localization |
| 79 | |
| 80 | variable {R : Type u} {S : Type v} {T : Type w} |
| 81 | variable [CommRing R] [CommRing S] [CommRing T] [Algebra R S] [Algebra R T] |
| 82 | variable [Algebra S T] [IsScalarTower R S T] [IsDomain S] [Nontrivial T] |
| 83 | variable [Algebra.Smooth R S] (W : Submonoid S) [IsLocalization W T] |
| 84 | variable {ι σ : Type*} [Finite ι] [Finite σ] |
| 85 | |
| 86 | include W in |
| 87 | /-- Every submersive presentation of a nonzero localization of a smooth domain |
| 88 | has the same dimension, measured on the original differential module. -/ |
| 89 | theorem localized_submersive_dimension |
| 90 | (P : Algebra.SubmersivePresentation R T ι σ) : |
| 91 | P.dimension = genericDifferentialRank R S := by |
| 92 | let : Algebra.FormallyEtale S T := Algebra.FormallyEtale.of_isLocalization W |
| 93 | let p : PrimeSpectrum T := Classical.choice inferInstance |
| 94 | calc |
| 95 | P.dimension = Module.rankAtStalk Ω[T⁄R] p := |
| 96 | submersive_dimension_eq_rankAtStalk P p |
| 97 | _ = Module.rankAtStalk Ω[S⁄R] (p.comap (algebraMap S T)) := |
| 98 | Module.rankAtStalk_isBaseChange (KaehlerDifferential.isBaseChange_of_formallyEtale R S T) p |
| 99 | _ = genericDifferentialRank R S := kaehler_rankAtStalk_eq_generic _ |
| 100 | |
| 101 | end Localization |
| 102 | |
| 103 | variable {R : Type u} {S : Type v} [CommRing R] [CommRing S] [Algebra R S] |
| 104 | variable [IsDomain S] [Algebra.Smooth R S] |
| 105 | |
| 106 | /-- A nonempty standard smooth principal localization of an integral smooth |
| 107 | algebra has relative dimension equal to its generic differential rank. -/ |
| 108 | theorem standardSmoothAway_has_genericDimension (g : S) (hg : g ≠ 0) |
| 109 | [Algebra.IsStandardSmooth R (Localization.Away g)] : |
| 110 | Algebra.IsStandardSmoothOfRelativeDimension (genericDifferentialRank R S) |
| 111 | R (Localization.Away g) := by |
| 112 | let : IsDomain (Localization.Away g) := Localization.Away.isDomain hg |
| 113 | obtain ⟨ι, σ, hσ, hι, ⟨P⟩⟩ := |
| 114 | Algebra.IsStandardSmooth.out (R := R) (S := Localization.Away g) |
| 115 | let : Finite σ := hσ |
| 116 | let : Finite ι := hι |
| 117 | exact P.isStandardSmoothOfRelativeDimension |
| 118 | (localized_submersive_dimension (R := R) (S := S) (Submonoid.powers g) P) |
| 119 | |
| 120 | /-- A single natural number works for all nonempty standard smooth principal |
| 121 | charts. Equality of chart dimensions is proved, not required as input. -/ |
| 122 | theorem smooth_domain_exists_common_dimension : |
| 123 | ∃ n : ℕ, ∀ g : S, g ≠ 0 → |
| 124 | Algebra.IsStandardSmooth R (Localization.Away g) → |
| 125 | Algebra.IsStandardSmoothOfRelativeDimension n R (Localization.Away g) := by |
| 126 | refine ⟨genericDifferentialRank R S, ?_⟩ |
| 127 | intro g hg hstd |
| 128 | let : Algebra.IsStandardSmooth R (Localization.Away g) := hstd |
| 129 | exact standardSmoothAway_has_genericDimension g hg |
| 130 | |
| 131 | end |
| 132 | |
| 133 | end OAI.AlgebraicGeometry.Foundations.Scheme.SmoothDomainDimension.Algebraic |