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.SmoothStratum |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Geometric.ReducedClosed |
| 3 | |
| 4 | /-! # Smooth Stratification -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Finite geometric smooth stratifications |
| 12 | |
| 13 | A stratum below is an actual scheme with an immersion into the ambient scheme |
| 14 | and a proved smooth structure morphism. A stratification is a finite list of |
| 15 | such strata with disjoint underlying images covering the specified set. |
| 16 | The construction uses Noetherian induction on closed subsets. No Whitney or |
| 17 | analytic regularity condition is asserted. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | variable {X Y : Scheme.{u}} |
| 25 | |
| 26 | /-- A genuine smooth locally closed geometric piece over the given base. -/ |
| 27 | structure CycleClass.Geometric.SmoothStratification.SmoothGeometricPiece (f : X ⟶ Y) where |
| 28 | carrier : Scheme.{u} |
| 29 | inclusion : carrier ⟶ X |
| 30 | immersion : IsImmersion inclusion |
| 31 | smooth : Smooth (inclusion ≫ f) |
| 32 | |
| 33 | namespace CycleClass.Geometric.SmoothStratification.SmoothGeometricPiece |
| 34 | |
| 35 | variable {f : X ⟶ Y} |
| 36 | |
| 37 | instance inclusion_isImmersion (P : SmoothGeometricPiece f) : |
| 38 | IsImmersion P.inclusion := P.immersion |
| 39 | instance structureMap_isSmooth (P : SmoothGeometricPiece f) : |
| 40 | Smooth (P.inclusion ≫ f) := P.smooth |
| 41 | |
| 42 | /-- The underlying set occupied by this actual geometric piece. -/ |
| 43 | def support (P : SmoothGeometricPiece f) : Set X := Set.range P.inclusion |
| 44 | |
| 45 | /-- Each stratum has locally closed image, as required for an algebraic stratum. -/ |
| 46 | theorem isLocallyClosed_support (P : SmoothGeometricPiece f) : |
| 47 | IsLocallyClosed P.support := |
| 48 | P.inclusion.isLocallyClosed_range |
| 49 | |
| 50 | end CycleClass.Geometric.SmoothStratification.SmoothGeometricPiece |
| 51 | |
| 52 | /-- The underlying union of a finite list of actual strata. -/ |
| 53 | def CycleClass.Geometric.SmoothStratification.smoothPiecesSupport {f : X ⟶ Y} : List (CycleClass.Geometric.SmoothStratification.SmoothGeometricPiece f) → Set X |
| 54 | | [] => ∅ |
| 55 | | P :: Ps => P.support ∪ smoothPiecesSupport Ps |
| 56 | |
| 57 | theorem CycleClass.Geometric.SmoothStratification.support_subset_smoothPiecesSupport {f : X ⟶ Y} |
| 58 | {P : CycleClass.Geometric.SmoothStratification.SmoothGeometricPiece f} {Ps : List (CycleClass.Geometric.SmoothStratification.SmoothGeometricPiece f)} (hP : P ∈ Ps) : |
| 59 | P.support ⊆ CycleClass.Geometric.SmoothStratification.smoothPiecesSupport Ps := by |
| 60 | induction Ps with |
| 61 | | nil => simp at hP |
| 62 | | cons Q Qs ih => |
| 63 | rcases List.mem_cons.mp hP with h | h |
| 64 | · subst P |
| 65 | exact Set.subset_union_left |
| 66 | · exact Set.Subset.trans (ih h) Set.subset_union_right |
| 67 | |
| 68 | /-- Each stratum is dense in the remaining closed tail of the ordered list. |
| 69 | Its closure minus itself is therefore a union of later strata. -/ |
| 70 | def CycleClass.Geometric.SmoothStratification.smoothPiecesFrontier {f : X ⟶ Y} : List (CycleClass.Geometric.SmoothStratification.SmoothGeometricPiece f) → Prop |
| 71 | | [] => True |
| 72 | | P :: Ps => closure P.support = P.support ∪ CycleClass.Geometric.SmoothStratification.smoothPiecesSupport Ps ∧ |
| 73 | smoothPiecesFrontier Ps |
| 74 | |
| 75 | /-- Finite smooth locally closed strata with disjoint images, the frontier |
| 76 | condition, and an exact cover of the specified set. -/ |
| 77 | structure CycleClass.Geometric.SmoothStratification.SmoothGeometricStratification (f : X ⟶ Y) (S : Set X) where |
| 78 | pieces : List (CycleClass.Geometric.SmoothStratification.SmoothGeometricPiece f) |
| 79 | disjoint : pieces.Pairwise (fun P Q => Disjoint P.support Q.support) |
| 80 | cover : CycleClass.Geometric.SmoothStratification.smoothPiecesSupport pieces = S |
| 81 | frontier : CycleClass.Geometric.SmoothStratification.smoothPiecesFrontier pieces |
| 82 | |
| 83 | namespace CycleClass.Geometric.SmoothStratification.SmoothGeometricStratification |
| 84 | |
| 85 | variable {f : X ⟶ Y} |
| 86 | |
| 87 | /-- The empty finite stratification. -/ |
| 88 | def empty : SmoothGeometricStratification f ∅ where |
| 89 | pieces := [] |
| 90 | disjoint := List.Pairwise.nil |
| 91 | cover := rfl |
| 92 | frontier := True.intro |
| 93 | |
| 94 | /-- Adjoin one smooth geometric stratum disjoint from the already stratified set. -/ |
| 95 | def cons {S T : Set X} (P : SmoothGeometricPiece f) |
| 96 | (Q : SmoothGeometricStratification f T) (hd : Disjoint P.support T) |
| 97 | (hc : P.support ∪ T = S) (hcl : closure P.support = S) : |
| 98 | SmoothGeometricStratification f S where |
| 99 | pieces := P :: Q.pieces |
| 100 | disjoint := List.pairwise_cons.mpr ⟨fun R hR => hd.mono_right (by |
| 101 | rw [← Q.cover] |
| 102 | exact support_subset_smoothPiecesSupport hR), Q.disjoint⟩ |
| 103 | cover := by |
| 104 | change P.support ∪ SmoothStratification.smoothPiecesSupport Q.pieces = S |
| 105 | rw [Q.cover] |
| 106 | exact hc |
| 107 | frontier := ⟨by simpa only [Q.cover, hc] using hcl, Q.frontier⟩ |
| 108 | |
| 109 | end CycleClass.Geometric.SmoothStratification.SmoothGeometricStratification |
| 110 | |
| 111 | variable {K : Type u} [Field K] |
| 112 | |
| 113 | /-- The first stratum of a closed set is the smooth open locus of its reduced |
| 114 | induced scheme, included back into the original ambient scheme. -/ |
| 115 | def CycleClass.Geometric.SmoothStratification.closedSmoothPiece (Z : Closeds X) (f : X ⟶ Spec (.of K)) |
| 116 | [LocallyOfFiniteType f] : CycleClass.Geometric.SmoothStratification.SmoothGeometricPiece f where |
| 117 | carrier := CycleClass.Geometric.SmoothStratum.smoothStratum (CycleClass.Geometric.ReducedClosed.reducedClosedStructureMap Z f) |
| 118 | inclusion := CycleClass.Geometric.SmoothStratum.smoothStratumι (CycleClass.Geometric.ReducedClosed.reducedClosedStructureMap Z f) ≫ CycleClass.Geometric.ReducedClosed.reducedClosedι Z |
| 119 | immersion := by infer_instance |
| 120 | smooth := by |
| 121 | rw [Category.assoc] |
| 122 | exact CycleClass.Geometric.SmoothStratum.smoothStratumToBase_isSmooth (CycleClass.Geometric.ReducedClosed.reducedClosedStructureMap Z f) |
| 123 | |
| 124 | /-- The singular remainder, as a closed subset of the original ambient scheme. -/ |
| 125 | def CycleClass.Geometric.SmoothStratification.closedSingularRemainder (Z : Closeds X) (f : X ⟶ Spec (.of K)) |
| 126 | [LocallyOfFiniteType f] : Closeds X := |
| 127 | ⟨(CycleClass.Geometric.ReducedClosed.reducedClosedι Z) '' CycleClass.Geometric.SingularLocus.singularLocus (CycleClass.Geometric.ReducedClosed.reducedClosedStructureMap Z f), |
| 128 | (CycleClass.Geometric.ReducedClosed.reducedClosedι Z).isClosedEmbedding.isClosedMap _ |
| 129 | (CycleClass.Geometric.SingularLocus.isClosed_singularLocus (CycleClass.Geometric.ReducedClosed.reducedClosedStructureMap Z f))⟩ |
| 130 | |
| 131 | @[simp] |
| 132 | theorem CycleClass.Geometric.SmoothStratification.closedSmoothPiece_support (Z : Closeds X) (f : X ⟶ Spec (.of K)) |
| 133 | [LocallyOfFiniteType f] : |
| 134 | (CycleClass.Geometric.SmoothStratification.closedSmoothPiece Z f).support = |
| 135 | (CycleClass.Geometric.ReducedClosed.reducedClosedι Z) '' ((CycleClass.Geometric.ReducedClosed.reducedClosedStructureMap Z f).smoothLocus : |
| 136 | Set (CycleClass.Geometric.ReducedClosed.reducedClosedScheme Z)) := by |
| 137 | change Set.range ((CycleClass.Geometric.ReducedClosed.reducedClosedι Z) ∘ |
| 138 | (CycleClass.Geometric.SmoothStratum.smoothStratumι (CycleClass.Geometric.ReducedClosed.reducedClosedStructureMap Z f))) = _ |
| 139 | rw [Set.range_comp, CycleClass.Geometric.SmoothStratum.range_smoothStratumι] |
| 140 | |
| 141 | /-- The smooth first stratum and singular remainder form an exact partition. -/ |
| 142 | theorem CycleClass.Geometric.SmoothStratification.closedSmoothPiece_union_remainder (Z : Closeds X) (f : X ⟶ Spec (.of K)) |
| 143 | [LocallyOfFiniteType f] : |
| 144 | (CycleClass.Geometric.SmoothStratification.closedSmoothPiece Z f).support ∪ (CycleClass.Geometric.SmoothStratification.closedSingularRemainder Z f : Set X) = Z := by |
| 145 | rw [CycleClass.Geometric.SmoothStratification.closedSmoothPiece_support] |
| 146 | change (CycleClass.Geometric.ReducedClosed.reducedClosedι Z) '' ((CycleClass.Geometric.ReducedClosed.reducedClosedStructureMap Z f).smoothLocus : Set _) ∪ |
| 147 | (CycleClass.Geometric.ReducedClosed.reducedClosedι Z) '' ((CycleClass.Geometric.ReducedClosed.reducedClosedStructureMap Z f).smoothLocus : Set _)ᶜ = _ |
| 148 | rw [Set.image_union_image_compl_eq_range, CycleClass.Geometric.ReducedClosed.range_reducedClosedι] |
| 149 | |
| 150 | theorem CycleClass.Geometric.SmoothStratification.closedSmoothPiece_disjoint_remainder (Z : Closeds X) (f : X ⟶ Spec (.of K)) |
| 151 | [LocallyOfFiniteType f] : |
| 152 | Disjoint (CycleClass.Geometric.SmoothStratification.closedSmoothPiece Z f).support (CycleClass.Geometric.SmoothStratification.closedSingularRemainder Z f : Set X) := by |
| 153 | rw [CycleClass.Geometric.SmoothStratification.closedSmoothPiece_support] |
| 154 | change Disjoint ((CycleClass.Geometric.ReducedClosed.reducedClosedι Z) '' |
| 155 | ((CycleClass.Geometric.ReducedClosed.reducedClosedStructureMap Z f).smoothLocus : Set _)) |
| 156 | ((CycleClass.Geometric.ReducedClosed.reducedClosedι Z) '' ((CycleClass.Geometric.ReducedClosed.reducedClosedStructureMap Z f).smoothLocus : Set _)ᶜ) |
| 157 | apply (Set.disjoint_image_iff (CycleClass.Geometric.ReducedClosed.reducedClosedι Z).isClosedEmbedding.injective).mpr |
| 158 | exact disjoint_compl_right |
| 159 | |
| 160 | theorem CycleClass.Geometric.SmoothStratification.closedSingularRemainder_le (Z : Closeds X) (f : X ⟶ Spec (.of K)) |
| 161 | [LocallyOfFiniteType f] : CycleClass.Geometric.SmoothStratification.closedSingularRemainder Z f ≤ Z := by |
| 162 | intro x hx |
| 163 | have hmem : x ∈ (CycleClass.Geometric.SmoothStratification.closedSmoothPiece Z f).support ∪ |
| 164 | (CycleClass.Geometric.SmoothStratification.closedSingularRemainder Z f : Set X) := Or.inr hx |
| 165 | rw [CycleClass.Geometric.SmoothStratification.closedSmoothPiece_union_remainder] at hmem |
| 166 | exact hmem |
| 167 | |
| 168 | variable [PerfectField K] |
| 169 | |
| 170 | /-- The first stratum is dense in this closed set, giving the frontier condition. -/ |
| 171 | theorem CycleClass.Geometric.SmoothStratification.closure_closedSmoothPiece_support (Z : Closeds X) (f : X ⟶ Spec (.of K)) |
| 172 | [LocallyOfFiniteType f] : closure (CycleClass.Geometric.SmoothStratification.closedSmoothPiece Z f).support = (Z : Set X) := by |
| 173 | rw [CycleClass.Geometric.SmoothStratification.closedSmoothPiece_support, (CycleClass.Geometric.ReducedClosed.reducedClosedι Z).isClosedEmbedding.closure_image_eq, |
| 174 | (CycleClass.Geometric.ReducedClosed.reducedClosedStructureMap Z f).dense_smoothLocus_of_perfectField.closure_eq, |
| 175 | Set.image_univ, CycleClass.Geometric.ReducedClosed.range_reducedClosedι] |
| 176 | |
| 177 | /-- Unless the closed set is empty, generic smoothness makes the singular |
| 178 | remainder strictly smaller. This is the decreasing measure in Noetherian induction. -/ |
| 179 | theorem CycleClass.Geometric.SmoothStratification.closedSingularRemainder_lt (Z : Closeds X) (f : X ⟶ Spec (.of K)) |
| 180 | [LocallyOfFiniteType f] (hZ : Z ≠ ⊥) : CycleClass.Geometric.SmoothStratification.closedSingularRemainder Z f < Z := by |
| 181 | apply lt_of_le_not_ge (CycleClass.Geometric.SmoothStratification.closedSingularRemainder_le Z f) |
| 182 | intro hge |
| 183 | let : Nonempty (CycleClass.Geometric.ReducedClosed.reducedClosedScheme Z) := |
| 184 | CycleClass.Geometric.ReducedClosed.reducedClosedScheme_nonempty Z (Closeds.coe_nonempty.mpr hZ) |
| 185 | have hnonempty : Nonempty (CycleClass.Geometric.SmoothStratum.smoothStratum (CycleClass.Geometric.ReducedClosed.reducedClosedStructureMap Z f)) := |
| 186 | (CycleClass.Geometric.SmoothStratum.smoothStratum_denseRange (CycleClass.Geometric.ReducedClosed.reducedClosedStructureMap Z f)).nonempty |
| 187 | obtain ⟨a⟩ := hnonempty |
| 188 | have ha : (CycleClass.Geometric.SmoothStratification.closedSmoothPiece Z f).inclusion a ∈ (CycleClass.Geometric.SmoothStratification.closedSmoothPiece Z f).support := |
| 189 | Set.mem_range_self a |
| 190 | have haZ : (CycleClass.Geometric.SmoothStratification.closedSmoothPiece Z f).inclusion a ∈ (Z : Set X) := |
| 191 | (CycleClass.Geometric.SmoothStratification.closedSmoothPiece_union_remainder Z f) ▸ Or.inl ha |
| 192 | exact (Set.disjoint_left.mp (CycleClass.Geometric.SmoothStratification.closedSmoothPiece_disjoint_remainder Z f)) ha (hge haZ) |
| 193 | |
| 194 | /-- Noetherian induction produces finitely many actual smooth locally closed |
| 195 | strata, with disjoint images and the frontier condition, for every closed subset. -/ |
| 196 | theorem CycleClass.Geometric.SmoothStratification.nonempty_smoothGeometricStratification_closed [NoetherianSpace X] |
| 197 | (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] (Z : Closeds X) : |
| 198 | Nonempty (CycleClass.Geometric.SmoothStratification.SmoothGeometricStratification f (Z : Set X)) := by |
| 199 | apply wellFounded_lt.induction Z |
| 200 | clear Z |
| 201 | intro Z ih |
| 202 | by_cases hZ : Z = ⊥ |
| 203 | · subst Z |
| 204 | exact ⟨CycleClass.Geometric.SmoothStratification.SmoothGeometricStratification.empty⟩ |
| 205 | · obtain ⟨Q⟩ := ih (CycleClass.Geometric.SmoothStratification.closedSingularRemainder Z f) (CycleClass.Geometric.SmoothStratification.closedSingularRemainder_lt Z f hZ) |
| 206 | exact ⟨CycleClass.Geometric.SmoothStratification.SmoothGeometricStratification.cons (CycleClass.Geometric.SmoothStratification.closedSmoothPiece Z f) Q |
| 207 | (CycleClass.Geometric.SmoothStratification.closedSmoothPiece_disjoint_remainder Z f) |
| 208 | (CycleClass.Geometric.SmoothStratification.closedSmoothPiece_union_remainder Z f) (CycleClass.Geometric.SmoothStratification.closure_closedSmoothPiece_support Z f)⟩ |
| 209 | |
| 210 | /-- A finite-type scheme over a perfect field admits a finite smooth geometric |
| 211 | stratification of its underlying space. -/ |
| 212 | theorem CycleClass.Geometric.SmoothStratification.nonempty_smoothGeometricStratification_of_finiteType |
| 213 | (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] [QuasiCompact f] : |
| 214 | Nonempty (CycleClass.Geometric.SmoothStratification.SmoothGeometricStratification f Set.univ) := by |
| 215 | let : IsLocallyNoetherian X := LocallyOfFiniteType.isLocallyNoetherian f |
| 216 | let : CompactSpace X := (quasiCompact_iff_compactSpace f).mp inferInstance |
| 217 | let : IsNoetherian X := ⟨⟩ |
| 218 | exact CycleClass.Geometric.SmoothStratification.nonempty_smoothGeometricStratification_closed f ⊤ |
| 219 | |
| 220 | /-- A chosen finite stratification, extracted from the proved existence theorem. -/ |
| 221 | def CycleClass.Geometric.SmoothStratification.smoothGeometricStratification_of_finiteType |
| 222 | (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] [QuasiCompact f] : |
| 223 | CycleClass.Geometric.SmoothStratification.SmoothGeometricStratification f Set.univ := |
| 224 | Classical.choice (CycleClass.Geometric.SmoothStratification.nonempty_smoothGeometricStratification_of_finiteType f) |
| 225 | |
| 226 | /-- The construction applies in particular to the actual smooth projective |
| 227 | complex domains in this development. -/ |
| 228 | def Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation.smoothGeometricStratification |
| 229 | (P : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) : |
| 230 | CycleClass.Geometric.SmoothStratification.SmoothGeometricStratification P.structureMap Set.univ := |
| 231 | CycleClass.Geometric.SmoothStratification.smoothGeometricStratification_of_finiteType P.structureMap |
| 232 | |
| 233 | /-- Every actual integral cycle support has a finite smooth stratification. -/ |
| 234 | def Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation.cycleSupportSmoothGeometricStratification |
| 235 | (P : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (p : ℕ) |
| 236 | (Z : Foundations.Scheme.CycleSupports.IrreducibleCycleSupport P.carrier p) : |
| 237 | CycleClass.Geometric.SmoothStratification.SmoothGeometricStratification (CycleClass.Geometric.SupportFiniteType.supportStructureMap Z.1 P.structureMap) Set.univ := |
| 238 | CycleClass.Geometric.SmoothStratification.smoothGeometricStratification_of_finiteType (CycleClass.Geometric.SupportFiniteType.supportStructureMap Z.1 P.structureMap) |
| 239 | |
| 240 | end |
| 241 | |
| 242 | end OAI.AlgebraicGeometry |