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.Topology.Dimension.ClosedSubset |
| 7 | import OAI.AlgebraicGeometry.Stratification.BasicLe |
| 8 | import OAI.AlgebraicGeometry.Cycle.ComponentNormal |
| 9 | import OAI.AlgebraicGeometry.Smooth.Equidimensional |
| 10 | import OAI.AlgebraicGeometry.ComplexPoint.SmoothCoordinates |
| 11 | import OAI.AlgebraicGeometry.Cycle.ComponentDimension |
| 12 | import OAI.CategoryTheory.ConcreteCategory.Notation |
| 13 | |
| 14 | /-! # Singular Locus Dimension -/ |
| 15 | |
| 16 | namespace OAI.AlgebraicGeometry.Smooth.SingularLocusDimension |
| 17 | |
| 18 | noncomputable section |
| 19 | |
| 20 | open _root_.AlgebraicGeometry |
| 21 | |
| 22 | /-! |
| 23 | # The singular locus has smaller algebraic dimension |
| 24 | |
| 25 | Over a perfect field the complement of the smooth locus of a reduced irreducible scheme is |
| 26 | a proper closed subset. This file proves the strict Krull-dimension bound of that reduced |
| 27 | closed subscheme, including the `d - p` bound for cycle components. The bounds are on |
| 28 | algebraic dimension throughout. |
| 29 | -/ |
| 30 | |
| 31 | /-! ### Constructions used only in proofs -/ |
| 32 | |
| 33 | section |
| 34 | |
| 35 | open _root_.CategoryTheory _root_.Topology _root_.TopologicalSpace |
| 36 | |
| 37 | universe u |
| 38 | |
| 39 | variable {K : Type u} [Field K] {X : Scheme.{u}} |
| 40 | (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] |
| 41 | |
| 42 | /-- The singular locus equipped with its reduced closed-subscheme structure. -/ |
| 43 | def reducedSingularLocus : Scheme := Stratification.Basic.reducedClosedSubscheme (Stratification.Basic.singularLocusClosed f) |
| 44 | |
| 45 | /-- Its canonical closed immersion in the original scheme. -/ |
| 46 | def reducedSingularLocusι : reducedSingularLocus f ⟶ X := |
| 47 | Stratification.Basic.reducedClosedSubschemeι (Stratification.Basic.singularLocusClosed f) |
| 48 | |
| 49 | instance reducedSingularLocus_isReduced : IsReduced (reducedSingularLocus f) := |
| 50 | inferInstanceAs (IsReduced (Stratification.Basic.reducedClosedSubscheme (Stratification.Basic.singularLocusClosed f))) |
| 51 | |
| 52 | instance reducedSingularLocusι_isClosedImmersion : |
| 53 | IsClosedImmersion (reducedSingularLocusι f) := |
| 54 | inferInstanceAs (IsClosedImmersion (Stratification.Basic.reducedClosedSubschemeι (Stratification.Basic.singularLocusClosed f))) |
| 55 | |
| 56 | variable (Y : Over (Spec ↧ℂ)) |
| 57 | [IsIntegral Y.left] [Smooth Y.hom] [Foundations.ProjectiveSpaceIs.IsProjective Y.hom] |
| 58 | |
| 59 | /-- Let `X` be a smooth integral projective scheme over `ℂ`, and let `Z` be the reduced closure of a |
| 60 | scheme point `x ∈ X`. Starting with the singular locus of `Z`, repeatedly take the singular |
| 61 | locus of the reduced closed subscheme to obtain descending closed subsets `S_k`. This finite |
| 62 | list records those successive closed subsets until the empty set is reached. Each difference |
| 63 | between consecutive terms, with its induced reduced structure, is smooth over `ℂ`. -/ |
| 64 | def cycleComponentSingularStratification (x : Y.left) : |
| 65 | List (Closeds (Cycle.Support.cycleComponent Y.left x)) := |
| 66 | letI := Cycle.SupportEq.cycleComponent_isNoetherian Y x |
| 67 | Stratification.BasicLe.reducedSmoothStratification (Cycle.Support.cycleComponentι Y.left x ≫ Y.hom) |
| 68 | (Stratification.Basic.singularLocusClosed (Cycle.Support.cycleComponentι Y.left x ≫ Y.hom)) |
| 69 | |
| 70 | end |
| 71 | |
| 72 | open _root_.CategoryTheory _root_.Topology _root_.TopologicalSpace |
| 73 | |
| 74 | universe u |
| 75 | |
| 76 | variable {K : Type u} [Field K] {X : Scheme.{u}} |
| 77 | (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] |
| 78 | |
| 79 | @[simp] theorem range_reducedSingularLocusι : |
| 80 | Set.range (reducedSingularLocusι f) = (f.smoothLocus : Set X)ᶜ := |
| 81 | Stratification.BasicLe.range_reducedClosedSubschemeι _ |
| 82 | |
| 83 | /-- Generic smoothness makes the singular locus proper. -/ |
| 84 | theorem singularLocusClosed_ne_top [PerfectField K] [IsReduced X] [Nonempty X] : |
| 85 | Stratification.Basic.singularLocusClosed f ≠ ⊤ := by |
| 86 | obtain ⟨x, hx⟩ := f.dense_smoothLocus_of_perfectField.nonempty |
| 87 | intro he |
| 88 | have : x ∈ Stratification.Basic.singularLocusClosed f := by rw [he]; trivial |
| 89 | exact this hx |
| 90 | |
| 91 | /-- The algebraic dimension drops strictly across the singular locus of a reduced |
| 92 | irreducible scheme. -/ |
| 93 | theorem topologicalKrullDim_reducedSingularLocus_lt [PerfectField K] [IsIntegral X] |
| 94 | {n : ℕ} (hdim : topologicalKrullDim X ≤ n) : |
| 95 | topologicalKrullDim (reducedSingularLocus f) < n := |
| 96 | Topology.Dimension.ClosedSubset.topologicalKrullDim_lt_of_isClosed_of_ne_univ (Stratification.Basic.singularLocusClosed f).isClosed |
| 97 | (fun he => singularLocusClosed_ne_top f (SetLike.coe_injective he)) hdim |
| 98 | |
| 99 | /-- Each smooth piece has dimension at most that of any containing closed set. -/ |
| 100 | theorem topologicalKrullDim_reducedClosedSmoothPiece_le {S T : Closeds X} (hTS : T ≤ S) : |
| 101 | topologicalKrullDim (Stratification.BasicLe.reducedClosedSmoothPiece f T) ≤ topologicalKrullDim S := by |
| 102 | calc |
| 103 | _ ≤ topologicalKrullDim (Stratification.Basic.reducedClosedSubscheme T) := |
| 104 | (Stratification.Basic.reducedClosedStructureMap f T).smoothLocus.ι.isOpenEmbedding.isInducing.topologicalKrullDim_le |
| 105 | _ ≤ topologicalKrullDim S := |
| 106 | (IsEmbedding.inclusion hTS).isInducing.topologicalKrullDim_le |
| 107 | |
| 108 | /-- On a smooth complex scheme of algebraic dimension below `m`, every point has a |
| 109 | standard-smooth affine neighborhood of some relative dimension below `m`. -/ |
| 110 | theorem exists_affine_relativeDimension_lt_of_topologicalKrullDim_lt |
| 111 | {Z : Scheme} (g : Z ⟶ Spec ↧ℂ) [Smooth g] {m : ℕ} |
| 112 | (hdim : topologicalKrullDim Z < m) (z : Z) : |
| 113 | ∃ (U : Z.Opens) (_ : IsAffineOpen U), z ∈ U ∧ |
| 114 | ∃ n : ℕ, n < m ∧ |
| 115 | (g.appLE ⊤ U (by simp)).hom.IsStandardSmoothOfRelativeDimension n := by |
| 116 | obtain ⟨U, hU, hzU, hs⟩ := ComplexPoint.SmoothCoordinates.Smooth.exists_affine_isStandardSmooth g z |
| 117 | obtain ⟨n, hn⟩ := Equidimensional.RingHom.IsStandardSmooth.exists_isStandardSmoothOfRelativeDimension hs |
| 118 | have : Nonempty U := ⟨⟨z, hzU⟩⟩ |
| 119 | have hdimU : topologicalKrullDim U = n := by |
| 120 | rw [Cycle.ComponentDimension.Scheme.topologicalKrullDim_eq_orderKrullDim U.toScheme] |
| 121 | exact Equidimensional.orderKrullDim_eq_of_isStandardSmoothOfRelativeDimension g hU hn |
| 122 | have hlt := U.ι.isOpenEmbedding.isInducing.topologicalKrullDim_le.trans_lt hdim |
| 123 | rw [hdimU] at hlt |
| 124 | exact ⟨U, hU, hzU, n, by exact_mod_cast hlt, hn⟩ |
| 125 | |
| 126 | variable (Y : Over (Spec ↧ℂ)) |
| 127 | [IsIntegral Y.left] [Smooth Y.hom] [Foundations.ProjectiveSpaceIs.IsProjective Y.hom] |
| 128 | |
| 129 | /-- For a codimension-`p` component of a smooth projective complex `d`-fold, the reduced |
| 130 | singular locus has algebraic dimension strictly less than `d - p`. -/ |
| 131 | theorem topologicalKrullDim_cycleComponent_singularLocus_lt |
| 132 | (x : Y.left) {d p : ℕ} [SmoothOfRelativeDimension d Y.hom] |
| 133 | (hx : Order.coheight x = p) : |
| 134 | topologicalKrullDim |
| 135 | (reducedSingularLocus (Cycle.Support.cycleComponentι Y.left x ≫ Y.hom)) < (d - p : ℕ) := |
| 136 | topologicalKrullDim_reducedSingularLocus_lt _ |
| 137 | (Cycle.ComponentNormal.topologicalKrullDim_cycleComponent_le_sub Y x hx) |
| 138 | |
| 139 | end |
| 140 | |
| 141 | end OAI.AlgebraicGeometry.Smooth.SingularLocusDimension |