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.Proper.SmoothDimensionOpen |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.RelativeDimensionUniqueness |
| 3 | |
| 4 | /-! # Dimension Local Charts -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.DimensionLocalCharts |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Every point of a smooth morphism has a source-open neighborhood of some fixed smooth relative dimension. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem standardSmooth_exists_relativeDimension {R B : Type u} [CommRing R] [CommRing B] |
| 17 | (f : R →+* B) (hf : f.IsStandardSmooth) : ∃ n, f.IsStandardSmoothOfRelativeDimension n := by |
| 18 | let : Algebra R B := f.toAlgebra |
| 19 | let : Algebra.IsStandardSmooth R B := hf |
| 20 | obtain ⟨ι, σ, hσ, hι, ⟨P⟩⟩ := (inferInstance : Algebra.IsStandardSmooth R B).out |
| 21 | let : Finite σ := hσ |
| 22 | let : Finite ι := hι |
| 23 | exact ⟨P.dimension, P.isStandardSmoothOfRelativeDimension rfl⟩ |
| 24 | |
| 25 | theorem smoothDimension_resLE_of_standardSmooth {X S : Scheme.{u}} (f : X ⟶ S) (n : ℕ) |
| 26 | {U : S.Opens} {V : X.Opens} (hU : IsAffineOpen U) (hV : IsAffineOpen V) |
| 27 | (e : V ≤ f ⁻¹ᵁ U) (hf : (f.appLE U V e).hom.IsStandardSmoothOfRelativeDimension n) : |
| 28 | SmoothOfRelativeDimension n (f.resLE U V e) := by |
| 29 | have : IsAffine U.toScheme := hU |
| 30 | have : IsAffine V.toScheme := hV |
| 31 | rw [HasRingHomProperty.iff_of_isAffine (P := @SmoothOfRelativeDimension n)] |
| 32 | let Q : ∀ {R B : Type u} [CommRing R] [CommRing B], (R →+* B) → Prop := |
| 33 | RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension n) |
| 34 | have : (RingHom.toMorphismProperty Q).RespectsIso := RingHom.toMorphismProperty_respectsIso_iff.mp |
| 35 | (RingHom.locally_respectsIso (RingHom.isStandardSmoothOfRelativeDimension_respectsIso (n := n))) |
| 36 | exact (MorphismProperty.arrow_mk_iso_iff (RingHom.toMorphismProperty Q) (arrowResLEAppIso f U V e)).mpr |
| 37 | (RingHom.locally_of (RingHom.isStandardSmoothOfRelativeDimension_respectsIso (n := n)) _ hf) |
| 38 | |
| 39 | theorem smooth_exists_sourceOpen_relativeDimension {X S : Scheme.{u}} (f : X ⟶ S) [Smooth f] (x : X) : |
| 40 | ∃ (n : ℕ) (V : X.Opens), x ∈ V ∧ SmoothOfRelativeDimension n (V.ι ≫ f) := by |
| 41 | obtain ⟨U, hU, V, hV, hx, e, hf⟩ := (Smooth.iff_forall_exists_isStandardSmooth f).mp inferInstance x |
| 42 | obtain ⟨n, hn⟩ := standardSmooth_exists_relativeDimension _ hf |
| 43 | have : SmoothOfRelativeDimension n (f.resLE U V e) := smoothDimension_resLE_of_standardSmooth f n hU hV e hn |
| 44 | have hc : SmoothOfRelativeDimension (n + 0) (f.resLE U V e ≫ U.ι) := |
| 45 | smoothOfRelativeDimension_comp n 0 _ _ |
| 46 | rw [Nat.add_zero, Scheme.Hom.resLE_comp_ι] at hc |
| 47 | exact ⟨n, V, hx, hc⟩ |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.DimensionLocalCharts |