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.ComplexPoints.Analytic.OpenImmersion |
| 2 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.AffineSchemePointTopology |
| 3 | import OAI.AlgebraicGeometry.Foundations.Scheme.SpecScalarTransport |
| 4 | import Mathlib.AlgebraicGeometry.Cover.Open |
| 5 | import Mathlib.AlgebraicGeometry.AffineScheme |
| 6 | import Mathlib.Topology.Maps.OpenQuotient |
| 7 | |
| 8 | /-! # Scheme Affine Cover -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.ComplexPoints.Analytic |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! |
| 15 | # Native scheme open covers on ordinary complex points |
| 16 | |
| 17 | Every native scheme open cover induces an actual open cover of its complex |
| 18 | points. Its disjoint-union map is an open quotient map, so the ordinary point |
| 19 | topology is exactly the topology obtained by gluing the chosen cover. In |
| 20 | particular this applies to mathlib's canonical affine cover without any extra |
| 21 | point-coverage hypothesis. |
| 22 | -/ |
| 23 | |
| 24 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 25 | |
| 26 | universe v |
| 27 | |
| 28 | /-- A member of a native scheme open cover, with the inherited complex structure map. -/ |
| 29 | def SchemePointHomeomorphs.schemeComplexPoints.openCoverObject (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (𝒰 : Scheme.OpenCover.{v} X.left) |
| 30 | (i : 𝒰.I₀) : Over Foundations.Scheme.ProjectiveSpace.complexBase := |
| 31 | Over.mk (𝒰.f i ≫ X.hom) |
| 32 | |
| 33 | /-- The actual relative open immersion of a cover member into the original scheme. -/ |
| 34 | def SchemePointHomeomorphs.schemeComplexPoints.openCoverInclusion (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (𝒰 : Scheme.OpenCover.{v} X.left) |
| 35 | (i : 𝒰.I₀) : SchemePointHomeomorphs.schemeComplexPoints.openCoverObject X 𝒰 i ⟶ X := |
| 36 | Over.homMk (𝒰.f i) rfl |
| 37 | |
| 38 | instance SchemePointHomeomorphs.schemeComplexPoints.isOpenImmersion_openCoverInclusion (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 39 | (𝒰 : Scheme.OpenCover.{v} X.left) (i : 𝒰.I₀) : |
| 40 | IsOpenImmersion (SchemePointHomeomorphs.schemeComplexPoints.openCoverInclusion X 𝒰 i).left := by |
| 41 | change IsOpenImmersion (𝒰.f i) |
| 42 | infer_instance |
| 43 | |
| 44 | /-- The induced map from the native complex points of one cover member. -/ |
| 45 | def SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (𝒰 : Scheme.OpenCover.{v} X.left) |
| 46 | (i : 𝒰.I₀) : SchemePointHomeomorphs.schemeComplexPoints (SchemePointHomeomorphs.schemeComplexPoints.openCoverObject X 𝒰 i) → SchemePointHomeomorphs.schemeComplexPoints X := |
| 47 | SchemePointHomeomorphs.schemeComplexPoints.map (SchemePointHomeomorphs.schemeComplexPoints.openCoverInclusion X 𝒰 i) |
| 48 | |
| 49 | /-- Native scheme coverage implies coverage of complex-valued points, by the |
| 50 | proved lifting property of open immersions. -/ |
| 51 | theorem SchemePointHomeomorphs.schemeComplexPoints.exists_openCoverPoint_lift (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 52 | (𝒰 : Scheme.OpenCover.{v} X.left) (p : SchemePointHomeomorphs.schemeComplexPoints X) : |
| 53 | ∃ i, ∃ q : SchemePointHomeomorphs.schemeComplexPoints (SchemePointHomeomorphs.schemeComplexPoints.openCoverObject X 𝒰 i), |
| 54 | SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X 𝒰 i q = p := by |
| 55 | let i := 𝒰.idx (SchemePointHomeomorphs.schemeComplexPoints.underlying p) |
| 56 | have hp : p ∈ Set.range (SchemePointHomeomorphs.schemeComplexPoints.map (SchemePointHomeomorphs.schemeComplexPoints.openCoverInclusion X 𝒰 i)) := by |
| 57 | rw [SchemePointHomeomorphs.schemeComplexPoints.range_map_of_isOpenImmersion] |
| 58 | exact 𝒰.covers (SchemePointHomeomorphs.schemeComplexPoints.underlying p) |
| 59 | obtain ⟨q, hq⟩ := hp |
| 60 | exact ⟨i, q, hq⟩ |
| 61 | |
| 62 | /-- Each map in the induced cover is an open embedding for the ordinary topology. -/ |
| 63 | theorem SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_openCoverPointMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 64 | (𝒰 : Scheme.OpenCover.{v} X.left) (i : 𝒰.I₀) : |
| 65 | Topology.IsOpenEmbedding (SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X 𝒰 i) := |
| 66 | SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_map_of_isOpenImmersion (SchemePointHomeomorphs.schemeComplexPoints.openCoverInclusion X 𝒰 i) |
| 67 | |
| 68 | /-- The induced cover really covers every complex-valued point. -/ |
| 69 | theorem SchemePointHomeomorphs.schemeComplexPoints.iUnion_range_openCoverPointMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 70 | (𝒰 : Scheme.OpenCover.{v} X.left) : |
| 71 | (⋃ i, Set.range (SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X 𝒰 i)) = Set.univ := by |
| 72 | apply Set.eq_univ_of_forall |
| 73 | intro p |
| 74 | obtain ⟨i, q, hq⟩ := SchemePointHomeomorphs.schemeComplexPoints.exists_openCoverPoint_lift X 𝒰 p |
| 75 | exact Set.mem_iUnion.mpr ⟨i, q, hq⟩ |
| 76 | |
| 77 | /-- The disjoint union of the native complex point spaces of a native open cover. -/ |
| 78 | def SchemePointHomeomorphs.schemeComplexPoints.openCoverSigmaPointMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (𝒰 : Scheme.OpenCover.{v} X.left) : |
| 79 | (Σ i, SchemePointHomeomorphs.schemeComplexPoints (SchemePointHomeomorphs.schemeComplexPoints.openCoverObject X 𝒰 i)) → SchemePointHomeomorphs.schemeComplexPoints X := |
| 80 | fun p => SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X 𝒰 p.1 p.2 |
| 81 | |
| 82 | /-- The map from the disjoint union of cover members is an open quotient map. -/ |
| 83 | theorem SchemePointHomeomorphs.schemeComplexPoints.isOpenQuotientMap_openCoverSigmaPointMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 84 | (𝒰 : Scheme.OpenCover.{v} X.left) : |
| 85 | IsOpenQuotientMap (SchemePointHomeomorphs.schemeComplexPoints.openCoverSigmaPointMap X 𝒰) where |
| 86 | surjective p := by |
| 87 | obtain ⟨i, q, hq⟩ := SchemePointHomeomorphs.schemeComplexPoints.exists_openCoverPoint_lift X 𝒰 p |
| 88 | exact ⟨⟨i, q⟩, hq⟩ |
| 89 | continuous := continuous_sigma fun i => |
| 90 | (SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_openCoverPointMap X 𝒰 i).continuous |
| 91 | isOpenMap := isOpenMap_sigma.mpr fun i => |
| 92 | (SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_openCoverPointMap X 𝒰 i).isOpenMap |
| 93 | |
| 94 | /-- Openness is detected on any native scheme open cover. -/ |
| 95 | theorem SchemePointHomeomorphs.schemeComplexPoints.isOpen_iff_openCover (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (𝒰 : Scheme.OpenCover.{v} X.left) |
| 96 | (S : Set (SchemePointHomeomorphs.schemeComplexPoints X)) : |
| 97 | IsOpen S ↔ ∀ i, IsOpen (SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X 𝒰 i ⁻¹' S) := |
| 98 | (SchemePointHomeomorphs.schemeComplexPoints.isOpenQuotientMap_openCoverSigmaPointMap X 𝒰).isQuotientMap.isCoinducing.isOpen_preimage.symm.trans |
| 99 | isOpen_sigma_iff |
| 100 | |
| 101 | /-- Continuity is detected on any chosen native scheme open cover. -/ |
| 102 | theorem SchemePointHomeomorphs.schemeComplexPoints.continuous_iff_openCover (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (𝒰 : Scheme.OpenCover.{v} X.left) |
| 103 | {T : Type*} [TopologicalSpace T] (F : SchemePointHomeomorphs.schemeComplexPoints X → T) : |
| 104 | Continuous F ↔ ∀ i, Continuous (F ∘ SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X 𝒰 i) := |
| 105 | (SchemePointHomeomorphs.schemeComplexPoints.isOpenQuotientMap_openCoverSigmaPointMap X 𝒰).isQuotientMap.continuous_iff.trans |
| 106 | continuous_sigma_iff |
| 107 | |
| 108 | /-- The final affine-test topology is exactly the topology obtained by gluing |
| 109 | any native open cover, including the canonical affine cover. -/ |
| 110 | theorem SchemePointHomeomorphs.schemeComplexPoints.analyticTopology_eq_openCover (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 111 | (𝒰 : Scheme.OpenCover.{v} X.left) : |
| 112 | SchemePointHomeomorphs.schemeComplexPoints.analyticTopology X = |
| 113 | ⨆ i, TopologicalSpace.coinduced (SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X 𝒰 i) inferInstance := by |
| 114 | apply TopologicalSpace.ext_iff.mpr |
| 115 | intro S |
| 116 | change IsOpen S ↔ _ |
| 117 | exact (SchemePointHomeomorphs.schemeComplexPoints.isOpen_iff_openCover X 𝒰 S).trans |
| 118 | (isOpen_iSup_iff (t := fun i => |
| 119 | TopologicalSpace.coinduced (SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X 𝒰 i) inferInstance)).symm |
| 120 | |
| 121 | /-- Members of the canonical cover retain their genuine affine scheme structure. -/ |
| 122 | instance SchemePointHomeomorphs.schemeComplexPoints.isAffine_openCoverObject_affineCover (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 123 | (i : X.left.affineCover.I₀) : |
| 124 | IsAffine (SchemePointHomeomorphs.schemeComplexPoints.openCoverObject X X.left.affineCover i).left := by |
| 125 | change IsAffine (X.left.affineCover.X i) |
| 126 | infer_instance |
| 127 | |
| 128 | /-- The canonical affine cover detects continuity on ordinary complex points. -/ |
| 129 | theorem SchemePointHomeomorphs.schemeComplexPoints.continuous_iff_affineCover (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 130 | {T : Type*} [TopologicalSpace T] (F : SchemePointHomeomorphs.schemeComplexPoints X → T) : |
| 131 | Continuous F ↔ ∀ i, Continuous (F ∘ SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X X.left.affineCover i) := |
| 132 | SchemePointHomeomorphs.schemeComplexPoints.continuous_iff_openCover X X.left.affineCover F |
| 133 | |
| 134 | /-- The actual algebra of sections on an open set, with scalars induced by |
| 135 | the given structure morphism to the complex base. -/ |
| 136 | def SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (U : X.left.Opens) : CommAlgCat ℂ := by |
| 137 | letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra X.hom U |
| 138 | exact CommAlgCat.of ℂ Γ(X.left, U) |
| 139 | |
| 140 | /-- The canonical spectrum-of-sections map of an affine open, as a morphism |
| 141 | over the complex base. -/ |
| 142 | def SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (U : X.left.Opens) |
| 143 | (hU : IsAffineOpen U) : Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ (SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U) ⟶ X := by |
| 144 | refine Over.homMk hU.fromSpec ?_ |
| 145 | change hU.fromSpec ≫ X.hom = Spec.map (CommRingCat.ofHom (Foundations.Scheme.SpecScalarTransport.specSectionScalarMap X.hom U)) |
| 146 | exact (Foundations.Scheme.SpecScalarTransport.specSectionScalarMap_fromSpec X.hom U hU).symm |
| 147 | |
| 148 | instance SchemePointHomeomorphs.schemeComplexPoints.isOpenImmersion_affineOpenSchemeMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (U : X.left.Opens) |
| 149 | (hU : IsAffineOpen U) : IsOpenImmersion (SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap X U hU).left := by |
| 150 | change IsOpenImmersion hU.fromSpec |
| 151 | infer_instance |
| 152 | |
| 153 | /-- The canonical map from characters of an affine open's actual section |
| 154 | algebra to global complex-valued scheme points. -/ |
| 155 | def SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (U : X.left.Opens) |
| 156 | (hU : IsAffineOpen U) : Foundations.Scheme.AffineComplexPoints.affineComplexPoints (SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U) → SchemePointHomeomorphs.schemeComplexPoints X := |
| 157 | SchemePointHomeomorphs.schemeComplexPoints.affinePointMap (SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U) (SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap X U hU) |
| 158 | |
| 159 | /-- The spectrum-of-sections chart is an open embedding in the ordinary topology. -/ |
| 160 | theorem SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_affineOpenPointMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (U : X.left.Opens) |
| 161 | (hU : IsAffineOpen U) : Topology.IsOpenEmbedding (SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap X U hU) := |
| 162 | (SchemePointHomeomorphs.schemeComplexPoints.isOpenEmbedding_map_of_isOpenImmersion (SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap X U hU)).comp |
| 163 | (SchemePointHomeomorphs.affineSchemePointHomeomorph (SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U)).isOpenEmbedding |
| 164 | |
| 165 | /-- The actual section-algebra chart has exactly the expected affine-open point image. -/ |
| 166 | theorem SchemePointHomeomorphs.schemeComplexPoints.range_affineOpenPointMap (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (U : X.left.Opens) |
| 167 | (hU : IsAffineOpen U) : |
| 168 | Set.range (SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap X U hU) = SchemePointHomeomorphs.schemeComplexPoints.underlying ⁻¹' (U : Set X.left) := by |
| 169 | have hr : Set.range (SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap X U hU) = |
| 170 | Set.range (SchemePointHomeomorphs.schemeComplexPoints.map (SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap X U hU)) := by |
| 171 | change Set.range (SchemePointHomeomorphs.schemeComplexPoints.map (SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap X U hU) ∘ |
| 172 | SchemePointHomeomorphs.affineSchemePointEquiv (SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U)) = _ |
| 173 | rw [Set.range_comp, (SchemePointHomeomorphs.affineSchemePointEquiv (SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U)).surjective.range_eq, |
| 174 | Set.image_univ] |
| 175 | rw [hr, SchemePointHomeomorphs.schemeComplexPoints.range_map_of_isOpenImmersion] |
| 176 | change SchemePointHomeomorphs.schemeComplexPoints.underlying ⁻¹' Set.range hU.fromSpec = _ |
| 177 | rw [hU.range_fromSpec] |
| 178 | |
| 179 | /-- Every native complex point has coordinates in the actual section algebra |
| 180 | of an affine open from the canonical scheme cover. -/ |
| 181 | theorem SchemePointHomeomorphs.schemeComplexPoints.exists_affineOpenPoint_lift (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (p : SchemePointHomeomorphs.schemeComplexPoints X) : |
| 182 | ∃ U : X.left.Opens, ∃ hU : IsAffineOpen U, |
| 183 | ∃ x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints (SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X U), |
| 184 | SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap X U hU x = p := by |
| 185 | let i := X.left.affineCover.idx (SchemePointHomeomorphs.schemeComplexPoints.underlying p) |
| 186 | let U : X.left.Opens := (X.left.affineCover.f i).opensRange |
| 187 | have hU : IsAffineOpen U := isAffineOpen_opensRange (X.left.affineCover.f i) |
| 188 | have hp : p ∈ Set.range (SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap X U hU) := by |
| 189 | rw [SchemePointHomeomorphs.schemeComplexPoints.range_affineOpenPointMap] |
| 190 | exact X.left.affineCover.covers (SchemePointHomeomorphs.schemeComplexPoints.underlying p) |
| 191 | obtain ⟨x, hx⟩ := hp |
| 192 | exact ⟨U, hU, x, hx⟩ |
| 193 | |
| 194 | /-- The chosen canonical affine cover tests continuity directly on the |
| 195 | ordinary character spaces of its actual global-section algebras. -/ |
| 196 | theorem SchemePointHomeomorphs.schemeComplexPoints.continuous_iff_affineCoverGamma (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 197 | {T : Type*} [TopologicalSpace T] (F : SchemePointHomeomorphs.schemeComplexPoints X → T) : |
| 198 | Continuous F ↔ ∀ i, Continuous |
| 199 | (F ∘ SchemePointHomeomorphs.schemeComplexPoints.openCoverPointMap X X.left.affineCover i ∘ |
| 200 | (AffineSchemePointTopology.affineNativePointHomeomorph (SchemePointHomeomorphs.schemeComplexPoints.openCoverObject X X.left.affineCover i)).symm) := by |
| 201 | rw [SchemePointHomeomorphs.schemeComplexPoints.continuous_iff_affineCover X F] |
| 202 | apply forall_congr' |
| 203 | intro i |
| 204 | exact (AffineSchemePointTopology.affineNativePointHomeomorph |
| 205 | (SchemePointHomeomorphs.schemeComplexPoints.openCoverObject X X.left.affineCover i)).symm.comp_continuous_iff'.symm |
| 206 | |
| 207 | end |
| 208 | |
| 209 | end OAI.AlgebraicGeometry.ComplexPoints.Analytic |