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.CycleClass.Geometric.SmoothStratification |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles |
| 3 | import OAI.AlgebraicGeometry.Foundations.Scheme.OpenFunctionField |
| 4 | |
| 5 | /-! # Integral Smooth Stratification -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Finite stratifications by actual integral smooth pieces |
| 13 | |
| 14 | A nonempty Noetherian reduced scheme has a nonempty integral open subscheme: |
| 15 | choose an open subset contained in one irreducible component. Taking its |
| 16 | actual smooth locus over a perfect field produces an integral smooth open |
| 17 | piece. Noetherian induction on the closed complement gives a finite disjoint |
| 18 | cover by such pieces. The boundary of each piece is contained in later pieces; |
| 19 | its closure need not equal the entire remaining closed set. |
| 20 | -/ |
| 21 | |
| 22 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | variable {X Y : Scheme.{u}} |
| 27 | |
| 28 | /-- A smooth locally closed geometric piece whose actual carrier is integral. -/ |
| 29 | structure IntegralSmoothStratification.IntegralSmoothGeometricPiece (f : X ⟶ Y) extends SmoothStratification.SmoothGeometricPiece f where |
| 30 | integral : IsIntegral carrier |
| 31 | |
| 32 | namespace IntegralSmoothStratification.IntegralSmoothGeometricPiece |
| 33 | |
| 34 | variable {f : X ⟶ Y} |
| 35 | |
| 36 | instance carrier_isIntegral (P : IntegralSmoothGeometricPiece f) : IsIntegral P.carrier := |
| 37 | P.integral |
| 38 | |
| 39 | instance inclusion_isImmersion (P : IntegralSmoothGeometricPiece f) : |
| 40 | IsImmersion P.inclusion := P.immersion |
| 41 | |
| 42 | instance structureMap_isSmooth (P : IntegralSmoothGeometricPiece f) : |
| 43 | Smooth (P.inclusion ≫ f) := P.smooth |
| 44 | |
| 45 | /-- The actual locally closed image in the ambient scheme. -/ |
| 46 | def support (P : IntegralSmoothGeometricPiece f) : Set X := Set.range P.inclusion |
| 47 | |
| 48 | theorem isLocallyClosed_support (P : IntegralSmoothGeometricPiece f) : |
| 49 | IsLocallyClosed P.support := P.inclusion.isLocallyClosed_range |
| 50 | |
| 51 | theorem support_nonempty (P : IntegralSmoothGeometricPiece f) : P.support.Nonempty := |
| 52 | Set.range_nonempty _ |
| 53 | |
| 54 | theorem isIrreducible_support (P : IntegralSmoothGeometricPiece f) : |
| 55 | IsIrreducible P.support := by |
| 56 | simpa only [IntegralSmoothGeometricPiece.support, Set.image_univ] using |
| 57 | (IrreducibleSpace.isIrreducible_univ P.carrier).image P.inclusion |
| 58 | P.inclusion.continuous.continuousOn |
| 59 | |
| 60 | end IntegralSmoothStratification.IntegralSmoothGeometricPiece |
| 61 | |
| 62 | /-- Every nonempty Noetherian reduced scheme contains a nonempty integral open. -/ |
| 63 | theorem IntegralSmoothStratification.exists_integral_open [NoetherianSpace X] [Nonempty X] [IsReduced X] : |
| 64 | ∃ U : X.Opens, Nonempty U ∧ IsIntegral U.toScheme := by |
| 65 | obtain ⟨x⟩ := ‹Nonempty X› |
| 66 | obtain ⟨o, ho, hne, hsubset⟩ := |
| 67 | NoetherianSpace.exists_isOpen_nonempty_subset_irreducibleComponent |
| 68 | (irreducibleComponent x) (irreducibleComponent_mem_irreducibleComponents x) |
| 69 | let U : X.Opens := ⟨o, ho⟩ |
| 70 | have hU : IsIrreducible (U : Set X) := |
| 71 | ⟨hne, isIrreducible_irreducibleComponent.isPreirreducible.open_subset ho hsubset⟩ |
| 72 | let : IrreducibleSpace U.toScheme := Subtype.irreducibleSpace hU |
| 73 | exact ⟨U, inferInstance, isIntegral_of_irreducibleSpace_of_isReduced U.toScheme⟩ |
| 74 | |
| 75 | variable {K : Type u} [Field K] [PerfectField K] |
| 76 | |
| 77 | /-- The canonical function-field dimension of an integral smooth piece. -/ |
| 78 | def IntegralSmoothStratification.IntegralSmoothGeometricPiece.dimension {f : X ⟶ Spec (.of K)} |
| 79 | (P : IntegralSmoothStratification.IntegralSmoothGeometricPiece f) : ℕ := |
| 80 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension (P.inclusion ≫ f) |
| 81 | |
| 82 | /-- The actual smooth locus of an integral open in a reduced closed subset, |
| 83 | included into that reduced closed scheme. -/ |
| 84 | def IntegralSmoothStratification.integralOpenSmoothImmersion (Z : Closeds X) (f : X ⟶ Spec (.of K)) |
| 85 | [LocallyOfFiniteType f] (U : (ReducedClosed.reducedClosedScheme Z).Opens) |
| 86 | [IsIntegral U.toScheme] : |
| 87 | SmoothStratum.smoothStratum (U.ι ≫ ReducedClosed.reducedClosedStructureMap Z f) ⟶ ReducedClosed.reducedClosedScheme Z := |
| 88 | SmoothStratum.smoothStratumι (U.ι ≫ ReducedClosed.reducedClosedStructureMap Z f) ≫ U.ι |
| 89 | |
| 90 | instance IntegralSmoothStratification.integralOpenSmoothImmersion_isOpenImmersion (Z : Closeds X) |
| 91 | (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] |
| 92 | (U : (ReducedClosed.reducedClosedScheme Z).Opens) [IsIntegral U.toScheme] : |
| 93 | IsOpenImmersion (IntegralSmoothStratification.integralOpenSmoothImmersion Z f U) := by |
| 94 | unfold IntegralSmoothStratification.integralOpenSmoothImmersion |
| 95 | infer_instance |
| 96 | |
| 97 | /-- The integral smooth open piece, viewed as an actual locally closed piece |
| 98 | of the original ambient scheme. -/ |
| 99 | def IntegralSmoothStratification.integralOpenSmoothPiece (Z : Closeds X) (f : X ⟶ Spec (.of K)) |
| 100 | [LocallyOfFiniteType f] (U : (ReducedClosed.reducedClosedScheme Z).Opens) |
| 101 | [IsIntegral U.toScheme] : IntegralSmoothStratification.IntegralSmoothGeometricPiece f where |
| 102 | carrier := SmoothStratum.smoothStratum (U.ι ≫ ReducedClosed.reducedClosedStructureMap Z f) |
| 103 | inclusion := IntegralSmoothStratification.integralOpenSmoothImmersion Z f U ≫ ReducedClosed.reducedClosedι Z |
| 104 | immersion := by infer_instance |
| 105 | smooth := by |
| 106 | dsimp only [IntegralSmoothStratification.integralOpenSmoothImmersion] |
| 107 | rw [Category.assoc, Category.assoc] |
| 108 | exact SmoothStratum.smoothStratumToBase_isSmooth (U.ι ≫ ReducedClosed.reducedClosedStructureMap Z f) |
| 109 | integral := inferInstance |
| 110 | |
| 111 | /-- Removing this actual open image leaves a closed subset of the ambient scheme. -/ |
| 112 | def IntegralSmoothStratification.integralOpenSmoothRemainder (Z : Closeds X) (f : X ⟶ Spec (.of K)) |
| 113 | [LocallyOfFiniteType f] (U : (ReducedClosed.reducedClosedScheme Z).Opens) |
| 114 | [IsIntegral U.toScheme] : Closeds X := |
| 115 | ⟨(ReducedClosed.reducedClosedι Z) '' (Set.range (IntegralSmoothStratification.integralOpenSmoothImmersion Z f U))ᶜ, |
| 116 | (ReducedClosed.reducedClosedι Z).isClosedEmbedding.isClosedMap _ |
| 117 | (IntegralSmoothStratification.integralOpenSmoothImmersion Z f U).isOpenEmbedding.isOpen_range.isClosed_compl⟩ |
| 118 | |
| 119 | @[simp] |
| 120 | theorem IntegralSmoothStratification.integralOpenSmoothPiece_support (Z : Closeds X) (f : X ⟶ Spec (.of K)) |
| 121 | [LocallyOfFiniteType f] (U : (ReducedClosed.reducedClosedScheme Z).Opens) |
| 122 | [IsIntegral U.toScheme] : |
| 123 | (IntegralSmoothStratification.integralOpenSmoothPiece Z f U).support = |
| 124 | (ReducedClosed.reducedClosedι Z) '' Set.range (IntegralSmoothStratification.integralOpenSmoothImmersion Z f U) := by |
| 125 | change Set.range ((ReducedClosed.reducedClosedι Z) ∘ (IntegralSmoothStratification.integralOpenSmoothImmersion Z f U)) = _ |
| 126 | exact Set.range_comp _ _ |
| 127 | |
| 128 | theorem IntegralSmoothStratification.integralOpenSmoothPiece_union_remainder (Z : Closeds X) |
| 129 | (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] |
| 130 | (U : (ReducedClosed.reducedClosedScheme Z).Opens) [IsIntegral U.toScheme] : |
| 131 | (IntegralSmoothStratification.integralOpenSmoothPiece Z f U).support ∪ |
| 132 | (IntegralSmoothStratification.integralOpenSmoothRemainder Z f U : Set X) = Z := by |
| 133 | rw [IntegralSmoothStratification.integralOpenSmoothPiece_support] |
| 134 | change (ReducedClosed.reducedClosedι Z) '' Set.range (IntegralSmoothStratification.integralOpenSmoothImmersion Z f U) ∪ |
| 135 | (ReducedClosed.reducedClosedι Z) '' (Set.range (IntegralSmoothStratification.integralOpenSmoothImmersion Z f U))ᶜ = _ |
| 136 | rw [Set.image_union_image_compl_eq_range, ReducedClosed.range_reducedClosedι] |
| 137 | |
| 138 | theorem IntegralSmoothStratification.integralOpenSmoothPiece_disjoint_remainder (Z : Closeds X) |
| 139 | (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] |
| 140 | (U : (ReducedClosed.reducedClosedScheme Z).Opens) [IsIntegral U.toScheme] : |
| 141 | Disjoint (IntegralSmoothStratification.integralOpenSmoothPiece Z f U).support |
| 142 | (IntegralSmoothStratification.integralOpenSmoothRemainder Z f U : Set X) := by |
| 143 | rw [IntegralSmoothStratification.integralOpenSmoothPiece_support] |
| 144 | apply (Set.disjoint_image_iff (ReducedClosed.reducedClosedι Z).isClosedEmbedding.injective).mpr |
| 145 | exact disjoint_compl_right |
| 146 | |
| 147 | theorem IntegralSmoothStratification.integralOpenSmoothRemainder_lt (Z : Closeds X) |
| 148 | (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] |
| 149 | (U : (ReducedClosed.reducedClosedScheme Z).Opens) [IsIntegral U.toScheme] : |
| 150 | IntegralSmoothStratification.integralOpenSmoothRemainder Z f U < Z := by |
| 151 | have hcover := IntegralSmoothStratification.integralOpenSmoothPiece_union_remainder Z f U |
| 152 | apply lt_of_le_not_ge |
| 153 | · intro x hx |
| 154 | change x ∈ (Z : Set X) |
| 155 | rw [← hcover] |
| 156 | exact Or.inr hx |
| 157 | · intro hge |
| 158 | obtain ⟨x, hx⟩ := (IntegralSmoothStratification.integralOpenSmoothPiece Z f U).support_nonempty |
| 159 | have hxZ : x ∈ (Z : Set X) := hcover ▸ Or.inl hx |
| 160 | exact (Set.disjoint_left.mp (IntegralSmoothStratification.integralOpenSmoothPiece_disjoint_remainder Z f U)) |
| 161 | hx (hge hxZ) |
| 162 | |
| 163 | /-- Taking the smooth locus of this integral open preserves its actual |
| 164 | function-field dimension. -/ |
| 165 | theorem IntegralSmoothStratification.integralOpenSmoothPiece_dimension (Z : Closeds X) |
| 166 | (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] |
| 167 | (U : (ReducedClosed.reducedClosedScheme Z).Opens) [IsIntegral U.toScheme] : |
| 168 | (IntegralSmoothStratification.integralOpenSmoothPiece Z f U).dimension = |
| 169 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension (U.ι ≫ ReducedClosed.reducedClosedStructureMap Z f) := by |
| 170 | change Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension |
| 171 | (((SmoothStratum.smoothStratumι (U.ι ≫ ReducedClosed.reducedClosedStructureMap Z f) ≫ U.ι) ≫ |
| 172 | ReducedClosed.reducedClosedι Z) ≫ f) = _ |
| 173 | simpa only [Category.assoc, ReducedClosed.reducedClosedStructureMap] using |
| 174 | Foundations.Scheme.OpenFunctionField.schemeTranscendenceDimension_openImmersion |
| 175 | (SmoothStratum.smoothStratumι (U.ι ≫ ReducedClosed.reducedClosedStructureMap Z f)) |
| 176 | (U.ι ≫ ReducedClosed.reducedClosedStructureMap Z f) |
| 177 | |
| 178 | /-- The underlying union of a finite list of integral smooth pieces. -/ |
| 179 | def IntegralSmoothStratification.integralSmoothPiecesSupport {f : X ⟶ Y} : |
| 180 | List (IntegralSmoothStratification.IntegralSmoothGeometricPiece f) → Set X |
| 181 | | [] => ∅ |
| 182 | | P :: Ps => P.support ∪ integralSmoothPiecesSupport Ps |
| 183 | |
| 184 | theorem IntegralSmoothStratification.support_subset_integralSmoothPiecesSupport {f : X ⟶ Y} |
| 185 | {P : IntegralSmoothStratification.IntegralSmoothGeometricPiece f} {Ps : List (IntegralSmoothStratification.IntegralSmoothGeometricPiece f)} |
| 186 | (hP : P ∈ Ps) : P.support ⊆ IntegralSmoothStratification.integralSmoothPiecesSupport Ps := by |
| 187 | induction Ps with |
| 188 | | nil => simp at hP |
| 189 | | cons Q Qs ih => |
| 190 | rcases List.mem_cons.mp hP with h | h |
| 191 | · subst P |
| 192 | exact Set.subset_union_left |
| 193 | · exact Set.Subset.trans (ih h) Set.subset_union_right |
| 194 | |
| 195 | /-- The boundary of each piece is contained in the union of the later pieces. -/ |
| 196 | def IntegralSmoothStratification.integralSmoothPiecesFrontier {f : X ⟶ Y} : |
| 197 | List (IntegralSmoothStratification.IntegralSmoothGeometricPiece f) → Prop |
| 198 | | [] => True |
| 199 | | P :: Ps => closure P.support \ P.support ⊆ IntegralSmoothStratification.integralSmoothPiecesSupport Ps ∧ |
| 200 | integralSmoothPiecesFrontier Ps |
| 201 | |
| 202 | /-- A finite disjoint cover by actual integral smooth locally closed schemes, |
| 203 | ordered so that each piece's boundary is contained in the remaining pieces. -/ |
| 204 | structure IntegralSmoothStratification.IntegralSmoothGeometricStratification (f : X ⟶ Y) (S : Set X) where |
| 205 | pieces : List (IntegralSmoothStratification.IntegralSmoothGeometricPiece f) |
| 206 | disjoint : pieces.Pairwise (fun P Q => Disjoint P.support Q.support) |
| 207 | cover : IntegralSmoothStratification.integralSmoothPiecesSupport pieces = S |
| 208 | frontier : IntegralSmoothStratification.integralSmoothPiecesFrontier pieces |
| 209 | |
| 210 | namespace IntegralSmoothStratification.IntegralSmoothGeometricStratification |
| 211 | |
| 212 | variable {f : X ⟶ Y} |
| 213 | |
| 214 | /-- The empty closed subset has its empty stratification. -/ |
| 215 | def empty : IntegralSmoothGeometricStratification f ∅ where |
| 216 | pieces := [] |
| 217 | disjoint := List.Pairwise.nil |
| 218 | cover := rfl |
| 219 | frontier := True.intro |
| 220 | |
| 221 | /-- Adjoin an integral smooth piece to a stratified closed remainder. -/ |
| 222 | def cons {S T : Set X} (P : IntegralSmoothGeometricPiece f) |
| 223 | (Q : IntegralSmoothGeometricStratification f T) (hd : Disjoint P.support T) |
| 224 | (hc : P.support ∪ T = S) (hcl : closure P.support ⊆ S) : |
| 225 | IntegralSmoothGeometricStratification f S where |
| 226 | pieces := P :: Q.pieces |
| 227 | disjoint := List.pairwise_cons.mpr ⟨fun R hR => hd.mono_right (by |
| 228 | rw [← Q.cover] |
| 229 | exact support_subset_integralSmoothPiecesSupport hR), Q.disjoint⟩ |
| 230 | cover := by |
| 231 | change P.support ∪ IntegralSmoothStratification.integralSmoothPiecesSupport Q.pieces = S |
| 232 | rw [Q.cover] |
| 233 | exact hc |
| 234 | frontier := ⟨by |
| 235 | rw [Q.cover] |
| 236 | intro x hx |
| 237 | have hxS := hcl hx.1 |
| 238 | rw [← hc] at hxS |
| 239 | exact hxS.resolve_left hx.2, Q.frontier⟩ |
| 240 | |
| 241 | /-- Every chosen piece lies in the prescribed underlying set. -/ |
| 242 | theorem piece_support_subset {S : Set X} (Q : IntegralSmoothGeometricStratification f S) |
| 243 | {P : IntegralSmoothGeometricPiece f} (hP : P ∈ Q.pieces) : P.support ⊆ S := by |
| 244 | rw [← Q.cover] |
| 245 | exact support_subset_integralSmoothPiecesSupport hP |
| 246 | |
| 247 | end IntegralSmoothStratification.IntegralSmoothGeometricStratification |
| 248 | |
| 249 | /-- Every closed subset of a Noetherian finite-type scheme over a perfect field |
| 250 | admits a finite disjoint stratification by actual integral smooth schemes. -/ |
| 251 | theorem IntegralSmoothStratification.nonempty_integralSmoothGeometricStratification_closed [NoetherianSpace X] |
| 252 | (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] (Z : Closeds X) : |
| 253 | Nonempty (IntegralSmoothStratification.IntegralSmoothGeometricStratification f (Z : Set X)) := by |
| 254 | apply wellFounded_lt.induction Z |
| 255 | clear Z |
| 256 | intro Z ih |
| 257 | by_cases hZ : Z = ⊥ |
| 258 | · subst Z |
| 259 | exact ⟨IntegralSmoothStratification.IntegralSmoothGeometricStratification.empty⟩ |
| 260 | · let : NoetherianSpace (ReducedClosed.reducedClosedScheme Z) := |
| 261 | (ReducedClosed.reducedClosedι Z).isClosedEmbedding.isEmbedding.isInducing.noetherianSpace |
| 262 | let : Nonempty (ReducedClosed.reducedClosedScheme Z) := |
| 263 | ReducedClosed.reducedClosedScheme_nonempty Z (Closeds.coe_nonempty.mpr hZ) |
| 264 | obtain ⟨U, _, hU⟩ := IntegralSmoothStratification.exists_integral_open (X := ReducedClosed.reducedClosedScheme Z) |
| 265 | let : IsIntegral U.toScheme := hU |
| 266 | obtain ⟨Q⟩ := ih (IntegralSmoothStratification.integralOpenSmoothRemainder Z f U) |
| 267 | (IntegralSmoothStratification.integralOpenSmoothRemainder_lt Z f U) |
| 268 | have hc := IntegralSmoothStratification.integralOpenSmoothPiece_union_remainder Z f U |
| 269 | refine ⟨IntegralSmoothStratification.IntegralSmoothGeometricStratification.cons (IntegralSmoothStratification.integralOpenSmoothPiece Z f U) Q |
| 270 | (IntegralSmoothStratification.integralOpenSmoothPiece_disjoint_remainder Z f U) hc ?_⟩ |
| 271 | apply closure_minimal _ Z.isClosed |
| 272 | intro x hx |
| 273 | rw [← hc] |
| 274 | exact Or.inl hx |
| 275 | |
| 276 | /-- The finite-type hypotheses imply the required topological Noetherianity. -/ |
| 277 | theorem IntegralSmoothStratification.nonempty_integralSmoothGeometricStratification_of_finiteType |
| 278 | (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] [QuasiCompact f] : |
| 279 | Nonempty (IntegralSmoothStratification.IntegralSmoothGeometricStratification f Set.univ) := by |
| 280 | let : IsLocallyNoetherian X := LocallyOfFiniteType.isLocallyNoetherian f |
| 281 | let : CompactSpace X := (quasiCompact_iff_compactSpace f).mp inferInstance |
| 282 | let : IsNoetherian X := ⟨⟩ |
| 283 | exact IntegralSmoothStratification.nonempty_integralSmoothGeometricStratification_closed f ⊤ |
| 284 | |
| 285 | /-- Choose only after proving existence of the actual finite stratification. -/ |
| 286 | def IntegralSmoothStratification.integralSmoothGeometricStratification_of_finiteType |
| 287 | (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] [QuasiCompact f] : |
| 288 | IntegralSmoothStratification.IntegralSmoothGeometricStratification f Set.univ := |
| 289 | Classical.choice (IntegralSmoothStratification.nonempty_integralSmoothGeometricStratification_of_finiteType f) |
| 290 | |
| 291 | /-- Genuine dimension-graded cycle supports, including singular supports, admit |
| 292 | a finite stratification by integral smooth locally closed schemes. -/ |
| 293 | def DimensionCycles.DimensionCycleSupport.integralSmoothGeometricStratification |
| 294 | {V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} {p : ℕ} (Z : DimensionCycles.DimensionCycleSupport V p) : |
| 295 | IntegralSmoothStratification.IntegralSmoothGeometricStratification Z.structureMap Set.univ := |
| 296 | IntegralSmoothStratification.integralSmoothGeometricStratification_of_finiteType Z.structureMap |
| 297 | |
| 298 | end |
| 299 | |
| 300 | end OAI.AlgebraicGeometry.CycleClass.Geometric |