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 | /- |
| 2 | Copyright 2026 The Formal Conjectures Authors. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | This file has been modified. |
| 5 | -/ |
| 6 | import OAI.AlgebraicGeometry.Smooth.Equidimensional |
| 7 | import OAI.CategoryTheory.ConcreteCategory.Notation |
| 8 | |
| 9 | /-! # Affine Relative Dimension -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.Smooth.AffineRelativeDimension |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open _root_.AlgebraicGeometry |
| 16 | |
| 17 | /-! |
| 18 | # Equidimensional smooth affine neighborhoods |
| 19 | |
| 20 | A standard-smooth affine presentation induces a scheme morphism smooth of that same |
| 21 | relative dimension. This adapter turns the local dimension bounds of the canonical |
| 22 | singular stratification into inputs for the normal-coordinate theorems, using |
| 23 | equidimensionality only on each affine chart. |
| 24 | -/ |
| 25 | |
| 26 | open _root_.CategoryTheory |
| 27 | |
| 28 | open _root_.RingHom |
| 29 | |
| 30 | universe u |
| 31 | |
| 32 | /-- The restriction to affine source and target charts is smooth of the relative dimension of |
| 33 | its standard-smooth ring presentation. -/ |
| 34 | theorem smoothOfRelativeDimension_resLE_of_isStandardSmooth |
| 35 | {X Y : Scheme.{u}} (f : X ⟶ Y) {U : Y.Opens} {V : X.Opens} |
| 36 | (hU : IsAffineOpen U) (hV : IsAffineOpen V) (e : V ≤ f ⁻¹ᵁ U) {n : ℕ} |
| 37 | (hstd : (f.appLE U V e).hom.IsStandardSmoothOfRelativeDimension n) : |
| 38 | SmoothOfRelativeDimension n (f.resLE U V e) := by |
| 39 | let : IsAffine U := hU |
| 40 | let : IsAffine V := hV |
| 41 | rw [HasRingHomProperty.iff_of_isAffine (P := @SmoothOfRelativeDimension n)] |
| 42 | let : (toMorphismProperty (Locally (IsStandardSmoothOfRelativeDimension n))).RespectsIso := |
| 43 | toMorphismProperty_respectsIso_iff.mp |
| 44 | (locally_respectsIso isStandardSmoothOfRelativeDimension_respectsIso) |
| 45 | exact (MorphismProperty.arrow_mk_iso_iff |
| 46 | (toMorphismProperty (Locally (IsStandardSmoothOfRelativeDimension n))) |
| 47 | (arrowResLEAppIso f U V e)).mpr |
| 48 | (locally_of isStandardSmoothOfRelativeDimension_respectsIso _ hstd) |
| 49 | |
| 50 | set_option backward.isDefEq.respectTransparency false in |
| 51 | /-- A standard-smooth affine open of a complex scheme is a smooth complex scheme of the same |
| 52 | relative dimension. -/ |
| 53 | theorem smoothOfRelativeDimension_affineOpen_of_isStandardSmooth |
| 54 | {X : Scheme} (f : X ⟶ Spec ↧ℂ) {U : X.Opens} (hU : IsAffineOpen U) {n : ℕ} |
| 55 | (hstd : (f.appLE ⊤ U (by simp)).hom.IsStandardSmoothOfRelativeDimension n) : |
| 56 | SmoothOfRelativeDimension n (U.ι ≫ f) := by |
| 57 | let g := f.resLE ⊤ U (by simp) |
| 58 | let : SmoothOfRelativeDimension n g := |
| 59 | smoothOfRelativeDimension_resLE_of_isStandardSmooth f (isAffineOpen_top _) hU _ hstd |
| 60 | have h := smoothOfRelativeDimension_comp n 0 g (⊤ : (Spec ↧ℂ).Opens).ι |
| 61 | simpa only [Nat.add_zero, g, Scheme.Hom.resLE_comp_ι] using h |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.Smooth.AffineRelativeDimension |