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.AbelianModuli.HilbertConstruction.Rational.PointStalkRegularParameters |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.GeneratorHeightBound |
| 3 | |
| 4 | /-! # Rational Stalk Dimension -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.RationalStalkDimension |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A finite list of maximal-ideal generators bounds the dimension of a |
| 11 | Noetherian local ring. The actual smooth rational stalk therefore has |
| 12 | Krull dimension at most the prescribed relative dimension. -/ |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry IsLocalRing |
| 14 | open scoped Classical |
| 15 | universe u |
| 16 | |
| 17 | theorem localRing_krullDim_le_maximal_generator_length |
| 18 | (R : Type u) [CommRing R] [IsLocalRing R] [IsNoetherianRing R] |
| 19 | (rs : List R) (hgen : Regular.SequenceBasic.Ideal.ofList rs = maximalIdeal R) : |
| 20 | ringKrullDim R ≤ (rs.length : ℕ) := by |
| 21 | have hspan : Ideal.span (rs.toFinset : Set R) = Regular.SequenceBasic.Ideal.ofList rs := by |
| 22 | change Ideal.span (rs.toFinset : Set R) = Ideal.span {r | r ∈ rs} |
| 23 | congr 1 |
| 24 | ext r |
| 25 | simp only [Finset.mem_coe, List.mem_toFinset, Set.mem_ofPred_eq] |
| 26 | have hm : (maximalIdeal R).height ≤ rs.toFinset.card := |
| 27 | Finite.GeneratorHeightBound.minimalPrimeHeightLeGeneratorCard (by |
| 28 | rw [hspan, hgen, Ideal.minimalPrimes_eq_subsingleton_self] |
| 29 | exact Set.mem_singleton _) |
| 30 | calc |
| 31 | ringKrullDim R = ((maximalIdeal R).height : WithBot ℕ∞) := |
| 32 | IsLocalRing.maximalIdeal_height_eq_ringKrullDim.symm |
| 33 | _ ≤ ((rs.toFinset.card : ℕ) : WithBot ℕ∞) := WithBot.coe_le_coe.mpr hm |
| 34 | _ ≤ (rs.length : ℕ) := by exact_mod_cast rs.toFinset_card_le |
| 35 | |
| 36 | theorem smoothRationalPoint_stalk_krullDim_le |
| 37 | {K : Type u} [Field K] {X : Scheme.{u}} (p : X ⟶ Spec (.of K)) |
| 38 | (g : ℕ) [SmoothOfRelativeDimension g p] |
| 39 | (s : Spec (.of K) ⟶ X) (hs : s ≫ p = 𝟙 _) : |
| 40 | ringKrullDim (X.presheaf.stalk (s (IsLocalRing.closedPoint K))) ≤ (g : ℕ) := by |
| 41 | have : Smooth p := SmoothOfRelativeDimension.smooth g p |
| 42 | let : IsLocallyNoetherian X := LocallyOfFiniteType.isLocallyNoetherian p |
| 43 | obtain ⟨rs, _, hgen, hlen⟩ := Rational.PointStalkRegularParameters.rationalPoint_stalk_regular_parameters p g s hs |
| 44 | have h := localRing_krullDim_le_maximal_generator_length |
| 45 | (X.presheaf.stalk (s (IsLocalRing.closedPoint K))) rs hgen |
| 46 | simpa only [hlen] using h |
| 47 | |
| 48 | end |
| 49 | |
| 50 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.RationalStalkDimension |