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.IntegralSmoothStratification |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.ComplexPointExistence |
| 3 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.SchemePointUnderlying |
| 4 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.CycleStratumRealization |
| 5 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.SchemeImmersionPointTopology |
| 6 | import Mathlib.Topology.LocallyClosed |
| 7 | |
| 8 | /-! # Stratification Point Partition -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! |
| 15 | # The actual analytic point partition of an integral smooth stratification |
| 16 | |
| 17 | Every support is the inverse image of the actual scheme support under the |
| 18 | underlying-point map. The finite list and its order are unchanged. Continuity |
| 19 | transports local closedness and the closure-minus-piece containment in later |
| 20 | pieces; no equality of Zariski and analytic closures is asserted. |
| 21 | -/ |
| 22 | |
| 23 | open _root_.CategoryTheory _root_.AlgebraicGeometry Set |
| 24 | |
| 25 | variable {X : Scheme} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 26 | |
| 27 | section |
| 28 | |
| 29 | /-- The ordinary analytic points lying in the actual scheme support. -/ |
| 30 | def CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece.analyticSupport (P : CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece f) : |
| 31 | Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Over.mk f)) := |
| 32 | ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying ⁻¹' P.support |
| 33 | |
| 34 | @[simp] |
| 35 | theorem CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece.mem_analyticSupport (P : CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece f) |
| 36 | (x : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Over.mk f)) : |
| 37 | x ∈ P.analyticSupport ↔ ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying x ∈ P.support := Iff.rfl |
| 38 | |
| 39 | theorem CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece.isLocallyClosed_analyticSupport (P : CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece f) : |
| 40 | IsLocallyClosed P.analyticSupport := |
| 41 | P.isLocallyClosed_support.preimage ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.continuous_underlying |
| 42 | |
| 43 | /-- Every integral smooth piece has actual complex points in its analytic support. -/ |
| 44 | theorem CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece.analyticSupport_nonempty (P : CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece f) : |
| 45 | P.analyticSupport.Nonempty := by |
| 46 | obtain ⟨x⟩ := Foundations.Scheme.ComplexPointExistence.nonempty_complexOverPoints (P.inclusion ≫ f) |
| 47 | refine ⟨ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map |
| 48 | (Over.homMk P.inclusion rfl : Over.mk (P.inclusion ≫ f) ⟶ Over.mk f) x, ?_⟩ |
| 49 | exact ⟨ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying x, rfl⟩ |
| 50 | |
| 51 | /-- Analytic closure maps into scheme closure, with their respective topologies. -/ |
| 52 | theorem CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece.closure_analyticSupport_subset (P : CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece f) : |
| 53 | closure P.analyticSupport ⊆ ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying ⁻¹' closure P.support := |
| 54 | (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.continuous_underlying (X := Over.mk f)).closure_preimage_subset P.support |
| 55 | |
| 56 | /-- The closure-minus-piece containment needed for the ordered stratification. -/ |
| 57 | theorem CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece.closure_sdiff_analyticSupport_subset (P : CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece f) : |
| 58 | closure P.analyticSupport \ P.analyticSupport ⊆ |
| 59 | ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying ⁻¹' (closure P.support \ P.support) := by |
| 60 | intro x hx |
| 61 | exact ⟨P.closure_analyticSupport_subset hx.1, hx.2⟩ |
| 62 | |
| 63 | theorem CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece.disjoint_analyticSupport_of_disjoint (P Q : CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece f) |
| 64 | (h : Disjoint P.support Q.support) : Disjoint P.analyticSupport Q.analyticSupport := by |
| 65 | apply Set.disjoint_left.mpr |
| 66 | intro x hxP hxQ |
| 67 | exact Set.disjoint_left.mp h hxP hxQ |
| 68 | |
| 69 | /-- The support is exactly the image of the native point map of this actual piece. -/ |
| 70 | theorem CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece.analyticSupport_eq_range (P : CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece f) : |
| 71 | P.analyticSupport = Set.range (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map P.toAmbient) := by |
| 72 | let : IsImmersion P.toAmbient.left := P.immersion |
| 73 | exact (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.range_map_of_isImmersion P.toAmbient).symm |
| 74 | |
| 75 | /-- The native analytic space of the piece carries precisely the support's subspace topology. -/ |
| 76 | def CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece.analyticSupportHomeomorph (P : CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece f) : |
| 77 | P.analyticSpace ≃ₜ P.analyticSupport := by |
| 78 | let : IsImmersion P.toAmbient.left := P.immersion |
| 79 | exact (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.isEmbedding_map_of_isImmersion P.toAmbient).toHomeomorph.trans |
| 80 | (Homeomorph.setCongr P.analyticSupport_eq_range.symm) |
| 81 | |
| 82 | @[simp] |
| 83 | theorem CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece.analyticSupportHomeomorph_val (P : CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece f) |
| 84 | (x : P.analyticSpace) : |
| 85 | (P.analyticSupportHomeomorph x).val = ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map P.toAmbient x := rfl |
| 86 | |
| 87 | end |
| 88 | |
| 89 | /-- The analytic support of the unchanged finite list of geometric pieces. -/ |
| 90 | def ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticSupport : |
| 91 | List (CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece f) → Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Over.mk f)) |
| 92 | | [] => ∅ |
| 93 | | P :: Ps => P.analyticSupport ∪ integralSmoothPiecesAnalyticSupport Ps |
| 94 | |
| 95 | theorem ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticSupport_eq_preimage |
| 96 | (Ps : List (CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece f)) : |
| 97 | ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticSupport Ps = |
| 98 | ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying ⁻¹' CycleClass.Geometric.IntegralSmoothStratification.integralSmoothPiecesSupport Ps := by |
| 99 | induction Ps with |
| 100 | | nil => rfl |
| 101 | | cons P Ps ih => |
| 102 | change P.analyticSupport ∪ ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticSupport Ps = |
| 103 | ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying ⁻¹' (P.support ∪ CycleClass.Geometric.IntegralSmoothStratification.integralSmoothPiecesSupport Ps) |
| 104 | rw [Set.preimage_union, ih] |
| 105 | rfl |
| 106 | |
| 107 | theorem ComplexPoints.Analytic.StratificationPointPartition.mem_integralSmoothPiecesAnalyticSupport |
| 108 | (Ps : List (CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece f)) (x : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Over.mk f)) : |
| 109 | x ∈ ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticSupport Ps ↔ |
| 110 | ∃ P ∈ Ps, x ∈ P.analyticSupport := by |
| 111 | induction Ps with |
| 112 | | nil => simp [ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticSupport] |
| 113 | | cons P Ps ih => simp [ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticSupport, ih] |
| 114 | |
| 115 | theorem ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticSupport_eq_biUnion |
| 116 | (Ps : List (CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece f)) : |
| 117 | ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticSupport Ps = ⋃ P ∈ Ps, P.analyticSupport := by |
| 118 | ext x |
| 119 | simp only [ComplexPoints.Analytic.StratificationPointPartition.mem_integralSmoothPiecesAnalyticSupport, Set.mem_iUnion, exists_prop] |
| 120 | |
| 121 | /-- The exact closure-minus-piece condition, in the original order of the list. -/ |
| 122 | def ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticFrontier : List (CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece f) → Prop |
| 123 | | [] => True |
| 124 | | P :: Ps => closure P.analyticSupport \ P.analyticSupport ⊆ |
| 125 | ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticSupport Ps ∧ integralSmoothPiecesAnalyticFrontier Ps |
| 126 | |
| 127 | theorem ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesFrontier_analytic |
| 128 | (Ps : List (CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece f)) (h : CycleClass.Geometric.IntegralSmoothStratification.integralSmoothPiecesFrontier Ps) : |
| 129 | ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticFrontier Ps := by |
| 130 | induction Ps with |
| 131 | | nil => trivial |
| 132 | | cons P Ps ih => |
| 133 | refine ⟨?_, ih h.2⟩ |
| 134 | rw [ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticSupport_eq_preimage] |
| 135 | intro x hx |
| 136 | exact h.1 (P.closure_sdiff_analyticSupport_subset hx) |
| 137 | |
| 138 | section |
| 139 | |
| 140 | variable {S : Set X} (Q : CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricStratification f S) |
| 141 | |
| 142 | /-- Pullback preserves the proved pairwise disjointness of the actual pieces. -/ |
| 143 | theorem CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricStratification.pairwise_disjoint_analyticSupport : |
| 144 | Q.pieces.Pairwise (fun P R => Disjoint P.analyticSupport R.analyticSupport) := by |
| 145 | apply Q.disjoint.imp |
| 146 | intro P R h |
| 147 | exact P.disjoint_analyticSupport_of_disjoint R h |
| 148 | |
| 149 | /-- The ordinary analytic pieces cover exactly the intended scheme support's points. -/ |
| 150 | theorem CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricStratification.analyticSupport_cover : |
| 151 | ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticSupport Q.pieces = |
| 152 | ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying ⁻¹' S := by |
| 153 | rw [ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticSupport_eq_preimage, Q.cover] |
| 154 | |
| 155 | theorem CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricStratification.analyticSupport_biUnion : |
| 156 | (⋃ P ∈ Q.pieces, P.analyticSupport) = ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying ⁻¹' S := by |
| 157 | rw [← ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticSupport_eq_biUnion, Q.analyticSupport_cover] |
| 158 | |
| 159 | /-- The original scheme frontier proof supplies the analytic frontier containment. -/ |
| 160 | theorem CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricStratification.analyticSupport_frontier : ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticFrontier Q.pieces := |
| 161 | ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesFrontier_analytic Q.pieces Q.frontier |
| 162 | |
| 163 | theorem CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricStratification.piece_analyticSupport_subset {P : CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricPiece f} |
| 164 | (hP : P ∈ Q.pieces) : P.analyticSupport ⊆ ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying ⁻¹' S := by |
| 165 | intro x hx |
| 166 | exact Q.piece_support_subset hP hx |
| 167 | |
| 168 | /-- Index the same list, without replacing or reordering any geometric piece. -/ |
| 169 | def CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricStratification.indexedAnalyticSupport (i : Fin Q.pieces.length) : |
| 170 | Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints (Over.mk f)) := (Q.pieces.get i).analyticSupport |
| 171 | |
| 172 | theorem CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricStratification.isLocallyClosed_indexedAnalyticSupport (i : Fin Q.pieces.length) : |
| 173 | IsLocallyClosed (Q.indexedAnalyticSupport i) := |
| 174 | (Q.pieces.get i).isLocallyClosed_analyticSupport |
| 175 | |
| 176 | theorem CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricStratification.indexedAnalyticSupport_nonempty (i : Fin Q.pieces.length) : |
| 177 | (Q.indexedAnalyticSupport i).Nonempty := |
| 178 | (Q.pieces.get i).analyticSupport_nonempty |
| 179 | |
| 180 | theorem CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricStratification.finite_range_indexedAnalyticSupport : |
| 181 | (Set.range Q.indexedAnalyticSupport).Finite := Set.finite_range _ |
| 182 | |
| 183 | theorem CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricStratification.pairwise_indexedAnalyticSupport : |
| 184 | Pairwise (fun i j => Disjoint (Q.indexedAnalyticSupport i) (Q.indexedAnalyticSupport j)) := by |
| 185 | intro i j hij |
| 186 | rcases lt_or_gt_of_ne hij with h | h |
| 187 | · exact List.pairwise_iff_get.mp Q.pairwise_disjoint_analyticSupport i j h |
| 188 | · exact (List.pairwise_iff_get.mp Q.pairwise_disjoint_analyticSupport j i h).symm |
| 189 | |
| 190 | theorem CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricStratification.indexedAnalyticSupport_iUnion : |
| 191 | (⋃ i, Q.indexedAnalyticSupport i) = ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying ⁻¹' S := by |
| 192 | rw [← Q.analyticSupport_biUnion] |
| 193 | ext x |
| 194 | simp only [Set.mem_iUnion, CycleClass.Geometric.IntegralSmoothStratification.IntegralSmoothGeometricStratification.indexedAnalyticSupport] |
| 195 | constructor |
| 196 | · rintro ⟨i, hi⟩ |
| 197 | exact ⟨Q.pieces.get i, List.get_mem _ _, hi⟩ |
| 198 | · rintro ⟨P, hP, hxP⟩ |
| 199 | obtain ⟨i, rfl⟩ := List.mem_iff_get.mp hP |
| 200 | exact ⟨i, hxP⟩ |
| 201 | |
| 202 | end |
| 203 | |
| 204 | /-- Apply the partition theorem to the stratification whose existence was proved |
| 205 | from actual finite-type scheme geometry. No stratification is assumed here. -/ |
| 206 | theorem ComplexPoints.Analytic.StratificationPointPartition.finiteType_integralSmooth_analyticPartition (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) |
| 207 | [LocallyOfFiniteType f] [QuasiCompact f] : |
| 208 | let Q := CycleClass.Geometric.IntegralSmoothStratification.integralSmoothGeometricStratification_of_finiteType f |
| 209 | Q.pieces.Pairwise (fun P R => Disjoint P.analyticSupport R.analyticSupport) ∧ |
| 210 | (ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticSupport Q.pieces = Set.univ) ∧ |
| 211 | ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticFrontier Q.pieces := by |
| 212 | let Q := CycleClass.Geometric.IntegralSmoothStratification.integralSmoothGeometricStratification_of_finiteType f |
| 213 | refine ⟨Q.pairwise_disjoint_analyticSupport, ?_, Q.analyticSupport_frontier⟩ |
| 214 | simpa only [Set.preimage_univ] using Q.analyticSupport_cover |
| 215 | |
| 216 | /-- The actual chosen stratification of any dimension-cycle support partitions |
| 217 | its native complex points, including when the support is singular. -/ |
| 218 | theorem CycleClass.Geometric.DimensionCycles.DimensionCycleSupport.integralSmoothGeometricStratification_analytic_cover |
| 219 | {V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} {p : ℕ} (Z : CycleClass.Geometric.DimensionCycles.DimensionCycleSupport V p) : |
| 220 | ComplexPoints.Analytic.StratificationPointPartition.integralSmoothPiecesAnalyticSupport Z.integralSmoothGeometricStratification.pieces = |
| 221 | Set.univ := by |
| 222 | simpa only [Set.preimage_univ] using |
| 223 | Z.integralSmoothGeometricStratification.analyticSupport_cover |
| 224 | |
| 225 | end |
| 226 | |
| 227 | end OAI.AlgebraicGeometry |