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.Betti.AffineDimension |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 3 | |
| 4 | /-! # Smooth Dimension -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Betti.SmoothDimension.Realization |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # A common relative dimension for an integral smooth scheme over a field |
| 12 | |
| 13 | Every nonempty affine neighborhood uses the same function-field differential |
| 14 | dimension. This supplies a single dimension for the analytic chart assembly; |
| 15 | it is a consequence of smoothness and integrality rather than an additional |
| 16 | field attached to the variety. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable {X Y : Scheme.{u}} [IsIntegral X] |
| 24 | |
| 25 | /-- On a nonempty affine open, standard smoothness has the common function-field |
| 26 | relative dimension, for the actual base-section algebra structure. -/ |
| 27 | theorem affineStandardSmooth_dimension (f : X ⟶ Y) (U : X.Opens) [Nonempty U] |
| 28 | (hU : IsAffineOpen U) : |
| 29 | letI := AffineDimension.Realization.sectionBaseAlgebra f U |
| 30 | Algebra.IsStandardSmooth Γ(Y, ⊤) Γ(X, U) → |
| 31 | Algebra.IsStandardSmoothOfRelativeDimension (AffineDimension.Realization.functionFieldDifferentialDimension f) |
| 32 | Γ(Y, ⊤) Γ(X, U) := by |
| 33 | let := AffineDimension.Realization.sectionBaseAlgebra f U |
| 34 | let := AffineDimension.Realization.functionFieldBaseAlgebra f |
| 35 | let := AffineDimension.Realization.functionFieldBase_isScalarTower f U |
| 36 | let := functionField_isFractionRing_of_isAffineOpen X U hU |
| 37 | intro h |
| 38 | let := h |
| 39 | exact Foundations.Scheme.DifferentialRankLocalization.Algebraic.standardSmooth_has_fraction_differential_dimension |
| 40 | (R := Γ(Y, ⊤)) (S := Γ(X, U)) (T := X.functionField) |
| 41 | |
| 42 | /-- An integral smooth scheme over a field has one relative dimension, |
| 43 | computed from its genuine function field. -/ |
| 44 | theorem smoothOfFunctionFieldDimension {K : Type u} [Field K] |
| 45 | (f : X ⟶ Spec (.of K)) [Smooth f] : |
| 46 | SmoothOfRelativeDimension (AffineDimension.Realization.functionFieldDifferentialDimension f) f := by |
| 47 | constructor |
| 48 | intro x |
| 49 | obtain ⟨U, hU, V, hV, hx, e, hstd⟩ := Smooth.exists_isStandardSmooth f x |
| 50 | have hUtop : U = ⊤ := by |
| 51 | ext y |
| 52 | constructor |
| 53 | · intro _ |
| 54 | trivial |
| 55 | · intro _ |
| 56 | have hfx : f x ∈ U := e hx |
| 57 | have heq : f x = y := Subsingleton.elim _ _ |
| 58 | change y ∈ U |
| 59 | exact heq ▸ hfx |
| 60 | subst U |
| 61 | let : Nonempty V := ⟨⟨x, hx⟩⟩ |
| 62 | refine ⟨⊤, hU, V, hV, hx, e, ?_⟩ |
| 63 | exact affineStandardSmooth_dimension f V hV hstd |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.Betti.SmoothDimension.Realization |