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.NontrivialBasicLocalization |
| 2 | import Mathlib.RingTheory.RingHom.StandardSmooth |
| 3 | import Mathlib.RingTheory.RingHom.Locally |
| 4 | import Mathlib.RingTheory.Smooth.StandardSmoothCotangent |
| 5 | |
| 6 | /-! # Relative Dimension Ring Uniqueness -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.RelativeDimensionRingUniqueness |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Standard smooth relative dimension, and its target-local form, are unique for a nonzero target ring. -/ |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem standardSmoothRelativeDimension_unique {R B : Type u} [CommRing R] [CommRing B] [Nontrivial B] |
| 17 | (f : R →+* B) (n m : ℕ) (hn : f.IsStandardSmoothOfRelativeDimension n) |
| 18 | (hm : f.IsStandardSmoothOfRelativeDimension m) : n = m := by |
| 19 | let : Algebra R B := f.toAlgebra |
| 20 | let : Algebra.IsStandardSmoothOfRelativeDimension n R B := hn |
| 21 | let : Algebra.IsStandardSmoothOfRelativeDimension m R B := hm |
| 22 | have h := (Algebra.IsStandardSmoothOfRelativeDimension.rank_kaehlerDifferential (R := R) (S := B) n).symm.trans |
| 23 | (Algebra.IsStandardSmoothOfRelativeDimension.rank_kaehlerDifferential (R := R) (S := B) m) |
| 24 | exact_mod_cast h |
| 25 | |
| 26 | theorem locallyStandardSmoothRelativeDimension_unique {R B : Type u} [CommRing R] [CommRing B] [Nontrivial B] |
| 27 | (f : R →+* B) (n m : ℕ) (hn : RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension n) f) |
| 28 | (hm : RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension m) f) : n = m := by |
| 29 | obtain ⟨s, hs, hn⟩ := hn |
| 30 | obtain ⟨r, hr, hBr⟩ := NontrivialBasicLocalization.exists_nontrivial_away_of_span_top B s hs |
| 31 | let : Nontrivial (Localization.Away r) := hBr |
| 32 | let fr := (algebraMap B (Localization.Away r)).comp f |
| 33 | have hmr : RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension m) fr := |
| 34 | (RingHom.locally_stableUnderCompositionWithLocalizationAwayTarget |
| 35 | (RingHom.isStandardSmoothOfRelativeDimension_stableUnderCompositionWithLocalizationAway m).right) |
| 36 | (Localization.Away r) r f hm |
| 37 | obtain ⟨t, ht, hmt⟩ := hmr |
| 38 | obtain ⟨z, hz, hBz⟩ := NontrivialBasicLocalization.exists_nontrivial_away_of_span_top (Localization.Away r) t ht |
| 39 | let : Nontrivial (Localization.Away z) := hBz |
| 40 | have hnz : RingHom.IsStandardSmoothOfRelativeDimension n |
| 41 | ((algebraMap (Localization.Away r) (Localization.Away z)).comp fr) := |
| 42 | (RingHom.isStandardSmoothOfRelativeDimension_stableUnderCompositionWithLocalizationAway n).right |
| 43 | (Localization.Away z) z fr (hn r hr) |
| 44 | exact standardSmoothRelativeDimension_unique _ n m hnz (hmt z hz) |
| 45 | |
| 46 | end |
| 47 | |
| 48 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.RelativeDimensionRingUniqueness |