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.AbelianModuli.ReferenceFamily.AnalyticOpenDensity |
| 2 | import OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProjectiveCoordinatesM |
| 3 | import OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.SegreAt |
| 4 | import OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProjectiveSubscheme |
| 5 | import OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectiveManifoldFinite |
| 6 | import OAI.AlgebraicGeometry.ComplexPoints.SchemeClosed |
| 7 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.IntrinsicSmoothImmersion |
| 8 | |
| 9 | /-! # Compact Analytic Open -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.CompactAnalyticOpen |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! |
| 16 | A compact nonempty analytic open in a smooth integral complex scheme with a |
| 17 | projective immersion is the whole analytification. The native differential of |
| 18 | the immersion gives homogeneous equations for its compact analytic image; |
| 19 | analytic-open density then identifies that image with the original scheme. |
| 20 | -/ |
| 21 | |
| 22 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace OAI.AlgebraicGeometry.ComplexPoints.Analytic.IntrinsicSmoothImmersion Set |
| 23 | open OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProjectiveGraph.Constructions |
| 24 | open OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProjectiveCoordinatesM.Constructions.ProjectiveCoordinates |
| 25 | open OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates |
| 26 | open scoped ContDiff _root_.Manifold _root_.Topology |
| 27 | |
| 28 | variable {X : Over Foundations.Scheme.ProjectiveSpace.complexBase} [IsIntegral X.left] [Smooth X.hom] |
| 29 | |
| 30 | local notation "ModelX" => Fin (OAI.AlgebraicGeometry.Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) → ℂ |
| 31 | |
| 32 | local instance (n : ℕ) : IsIntegral (Over.mk (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase n)).left := |
| 33 | ComplexGroups.HolomorphicAlgebraicity.ProjectiveSmoothTo.Constructions.ProjectiveSmooth.isIntegral_projectiveSpace n |
| 34 | |
| 35 | local instance (n : ℕ) : Smooth (Over.mk (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase n)).hom := |
| 36 | ComplexGroups.HolomorphicAlgebraicity.ProjectiveSmoothTo.Constructions.ProjectiveSmooth.smooth_projectiveSpaceToBase n |
| 37 | |
| 38 | def projectiveImmersionPointMap {n : ℕ} |
| 39 | (f : X ⟶ Over.mk (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase n)) : |
| 40 | ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X → Projectivization ℂ (Fin (n + 1) → ℂ) := |
| 41 | fun x => (ComplexPoints.Analytic.ProjectiveScheme.projectiveSchemePointHomeomorph n).symm (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map f x) |
| 42 | |
| 43 | theorem projectiveImmersion_coordinates_injective {n : ℕ} |
| 44 | (f : X ⟶ Over.mk (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase n)) [IsImmersion f.left] |
| 45 | (i : Fin (n + 1)) {x : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X} |
| 46 | (hx : projectiveImmersionPointMap f x ∈ (ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i).source) : |
| 47 | Function.Injective (mfderiv (𝓘(ℂ, ModelX)) (𝓘(ℂ, Fin n → ℂ)) |
| 48 | (ComplexGroups.HolomorphicAlgebraicity.ProjectiveGraph.Constructions.ProjectiveCoordinates.coordinatesOfSchemeMap f i) x) := by |
| 49 | have hx' : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map f x ∈ (ComplexGroups.HolomorphicAlgebraicity.ProjectiveGraph.Constructions.ProjectiveCoordinates.nativeProjectiveChart n i).source := by |
| 50 | simpa only [projectiveImmersionPointMap, Homeomorph.apply_symm_apply] using |
| 51 | ComplexGroups.HolomorphicAlgebraicity.ProjectiveGraph.Constructions.ProjectiveCoordinates.mem_nativeProjectiveChart_source n i _ hx |
| 52 | rw [(ComplexGroups.HolomorphicAlgebraicity.ProjectiveGraph.Constructions.ProjectiveCoordinates.coordinatesOfSchemeMap_eventuallyEq_native f i hx).mfderiv_eq] |
| 53 | rw [show (fun y => ComplexGroups.HolomorphicAlgebraicity.ProjectiveGraph.Constructions.ProjectiveCoordinates.nativeProjectiveChart n i (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map f y)) = |
| 54 | (ComplexGroups.HolomorphicAlgebraicity.ProjectiveGraph.Constructions.ProjectiveCoordinates.nativeProjectiveChart n i) ∘ (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map f) from rfl] |
| 55 | rw [mfderiv_comp x |
| 56 | ((ComplexGroups.HolomorphicAlgebraicity.ProjectiveGraph.Constructions.ProjectiveCoordinates.mdifferentiable_nativeProjectiveChart n i).mdifferentiableAt hx') |
| 57 | ((ComplexPoints.Analytic.IntrinsicSmoothSchemeMaps.contMDiff_nativeScheme_map f 1).mdifferentiableAt one_ne_zero)] |
| 58 | exact (ComplexGroups.HolomorphicAlgebraicity.ProjectiveGraph.Constructions.ProjectiveCoordinates.mfderiv_nativeProjectiveChart_bijective n i hx').1.comp |
| 59 | (ComplexPoints.Analytic.IntrinsicSmoothImmersion.mfderiv_nativeScheme_immersion_injective f x) |
| 60 | |
| 61 | theorem projectiveImmersion_chart_data {n : ℕ} |
| 62 | (f : X ⟶ Over.mk (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase n)) [IsImmersion f.left] |
| 63 | (i : Fin (n + 1)) (x : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X) |
| 64 | (hx : x ∈ Geometry.ComplexTorus.RiemannProjectivity.ProjectiveManifoldIs.Constructions.ProjectiveManifoldCone.chartDomain (projectiveImmersionPointMap f) i) : |
| 65 | MDifferentiableAt (𝓘(ℂ, ModelX)) (𝓘(ℂ, {j : Fin (n + 1) // j ≠ i} → ℂ)) |
| 66 | (Geometry.ComplexTorus.RiemannProjectivity.ProjectiveManifoldIs.Constructions.ProjectiveManifoldCone.chartMap (projectiveImmersionPointMap f) i) x ∧ |
| 67 | Function.Injective (mfderiv (𝓘(ℂ, ModelX)) (𝓘(ℂ, {j : Fin (n + 1) // j ≠ i} → ℂ)) |
| 68 | (Geometry.ComplexTorus.RiemannProjectivity.ProjectiveManifoldIs.Constructions.ProjectiveManifoldCone.chartMap (projectiveImmersionPointMap f) i) x) := by |
| 69 | have he : Geometry.ComplexTorus.RiemannProjectivity.ProjectiveManifoldIs.Constructions.ProjectiveManifoldCone.chartMap (projectiveImmersionPointMap f) i = |
| 70 | (ComplexGroups.HolomorphicAlgebraicity.SegreAt.Constructions.Segre.expandFin i) ∘ ComplexGroups.HolomorphicAlgebraicity.ProjectiveGraph.Constructions.ProjectiveCoordinates.coordinatesOfSchemeMap f i := by |
| 71 | funext y |
| 72 | exact (ComplexGroups.HolomorphicAlgebraicity.SegreAt.Constructions.Segre.expandFin_projectiveFinChart i _).symm |
| 73 | have hc := ComplexGroups.HolomorphicAlgebraicity.ProjectiveGraph.Constructions.ProjectiveCoordinates.mdifferentiableAt_coordinatesOfSchemeMap f i hx |
| 74 | have hl := (mdifferentiable_iff_differentiable.mpr (ComplexGroups.HolomorphicAlgebraicity.SegreAt.Constructions.Segre.expandFin i).differentiable) |
| 75 | (ComplexGroups.HolomorphicAlgebraicity.ProjectiveGraph.Constructions.ProjectiveCoordinates.coordinatesOfSchemeMap f i x) |
| 76 | rw [he] |
| 77 | refine ⟨hl.comp x hc, ?_⟩ |
| 78 | rw [mfderiv_comp x hl hc, mfderiv_eq_fderiv, (ComplexGroups.HolomorphicAlgebraicity.SegreAt.Constructions.Segre.expandFin i).fderiv] |
| 79 | exact (ComplexGroups.HolomorphicAlgebraicity.SegreAt.Constructions.Segre.contractFin_expandFin i).injective.comp |
| 80 | (projectiveImmersion_coordinates_injective f i hx) |
| 81 | |
| 82 | private theorem analyticOpen_inclusion_mfderiv_injective |
| 83 | (U : Opens (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)) (x : U) : |
| 84 | Function.Injective (mfderiv (𝓘(ℂ, ModelX)) (𝓘(ℂ, ModelX)) |
| 85 | (Subtype.val : U → ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X) x) := by |
| 86 | have hd : (U.openPartialHomeomorphSubtypeCoe ⟨x⟩).MDifferentiable |
| 87 | (𝓘(ℂ, ModelX)) (𝓘(ℂ, ModelX)) := by |
| 88 | constructor |
| 89 | · exact (contMDiff_subtype_val (I := 𝓘(ℂ, ModelX)) (U := U) (n := ω)).mdifferentiable |
| 90 | (by simp) |>.mdifferentiableOn |
| 91 | · intro y hy |
| 92 | have hyU : y ∈ (U : Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)) := by |
| 93 | simpa only [Opens.openPartialHomeomorphSubtypeCoe_target] using hy |
| 94 | have hg : ContMDiffAt (𝓘(ℂ, ModelX)) (𝓘(ℂ, ModelX)) ∞ |
| 95 | (U.openPartialHomeomorphSubtypeCoe ⟨x⟩).symm y := by |
| 96 | rw [← ContMDiffAt.subtypeVal_comp_iff] |
| 97 | apply contMDiffAt_id.congr_of_eventuallyEq |
| 98 | filter_upwards [U.isOpen.mem_nhds hyU] with z hz |
| 99 | exact (U.openPartialHomeomorphSubtypeCoe ⟨x⟩).right_inv |
| 100 | (by simpa only [Opens.openPartialHomeomorphSubtypeCoe_target] using hz) |
| 101 | exact (hg.mdifferentiableAt (by simp)).mdifferentiableWithinAt |
| 102 | exact (hd.mfderiv_bijective (x := x) (by trivial)).1 |
| 103 | |
| 104 | def analyticOpenProjectivePointMap {n : ℕ} |
| 105 | (f : X ⟶ Over.mk (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase n)) |
| 106 | (U : Opens (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)) : U → Projectivization ℂ (Fin (n + 1) → ℂ) := |
| 107 | fun x => projectiveImmersionPointMap f x.val |
| 108 | |
| 109 | theorem analyticOpenProjective_chart_data {n : ℕ} |
| 110 | (f : X ⟶ Over.mk (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase n)) [IsImmersion f.left] |
| 111 | (U : Opens (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)) (i : Fin (n + 1)) (x : U) |
| 112 | (hx : x ∈ Geometry.ComplexTorus.RiemannProjectivity.ProjectiveManifoldIs.Constructions.ProjectiveManifoldCone.chartDomain (analyticOpenProjectivePointMap f U) i) : |
| 113 | MDifferentiableAt (𝓘(ℂ, ModelX)) (𝓘(ℂ, {j : Fin (n + 1) // j ≠ i} → ℂ)) |
| 114 | (Geometry.ComplexTorus.RiemannProjectivity.ProjectiveManifoldIs.Constructions.ProjectiveManifoldCone.chartMap (analyticOpenProjectivePointMap f U) i) x ∧ |
| 115 | Function.Injective (mfderiv (𝓘(ℂ, ModelX)) (𝓘(ℂ, {j : Fin (n + 1) // j ≠ i} → ℂ)) |
| 116 | (Geometry.ComplexTorus.RiemannProjectivity.ProjectiveManifoldIs.Constructions.ProjectiveManifoldCone.chartMap (analyticOpenProjectivePointMap f U) i) x) := by |
| 117 | have hd := projectiveImmersion_chart_data f i x.val hx |
| 118 | have hsub := ((contMDiff_subtype_val (I := 𝓘(ℂ, ModelX)) (U := U) (n := ω)) x).mdifferentiableAt |
| 119 | (by simp) |
| 120 | have he : Geometry.ComplexTorus.RiemannProjectivity.ProjectiveManifoldIs.Constructions.ProjectiveManifoldCone.chartMap (analyticOpenProjectivePointMap f U) i = |
| 121 | Geometry.ComplexTorus.RiemannProjectivity.ProjectiveManifoldIs.Constructions.ProjectiveManifoldCone.chartMap (projectiveImmersionPointMap f) i ∘ (Subtype.val : U → _) := rfl |
| 122 | rw [he] |
| 123 | refine ⟨hd.1.comp x hsub, ?_⟩ |
| 124 | rw [mfderiv_comp x hd.1 hsub] |
| 125 | exact hd.2.comp (analyticOpen_inclusion_mfderiv_injective U x) |
| 126 | |
| 127 | theorem compact_analyticOpen_projective_equations {n : ℕ} |
| 128 | (f : X ⟶ Over.mk (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase n)) [IsImmersion f.left] |
| 129 | (U : Opens (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)) [Nonempty U] [CompactSpace U] : |
| 130 | ∃ Q : Finset (MvPolynomial (Fin (n + 1)) ℂ), |
| 131 | (∀ q ∈ Q, ∃ d, q.IsHomogeneous d) ∧ |
| 132 | ComplexGroups.HolomorphicAlgebraicity.ProjectiveCone.Constructions.Cone.projectiveCone (range (analyticOpenProjectivePointMap f U)) = |
| 133 | {v | ∀ q ∈ Q, MvPolynomial.eval v q = 0} := by |
| 134 | have hb : Topology.IsEmbedding (projectiveImmersionPointMap f) := |
| 135 | (ComplexPoints.Analytic.ProjectiveScheme.projectiveSchemePointHomeomorph n).symm.isEmbedding.comp |
| 136 | (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.isEmbedding_map_of_isImmersion f) |
| 137 | have hc : Continuous (analyticOpenProjectivePointMap f U) := |
| 138 | hb.continuous.comp continuous_subtype_val |
| 139 | have hi : Function.Injective (analyticOpenProjectivePointMap f U) := |
| 140 | hb.injective.comp Subtype.val_injective |
| 141 | have he : Topology.IsClosedEmbedding (analyticOpenProjectivePointMap f U) := |
| 142 | .of_continuous_injective_isClosedMap hc hi hc.isClosedMap |
| 143 | exact Geometry.ComplexTorus.RiemannProjectivity.ProjectiveManifoldFinite.Constructions.ProjectiveManifoldEquations.finite_homogeneous_equations |
| 144 | (analyticOpenProjectivePointMap f U) he (analyticOpenProjective_chart_data f U) |
| 145 | |
| 146 | variable {n : ℕ} (f : X ⟶ Over.mk (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase n)) [IsImmersion f.left] |
| 147 | (U : Opens (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)) [Nonempty U] [CompactSpace U] |
| 148 | |
| 149 | include f U |
| 150 | |
| 151 | theorem compact_analyticOpen_has_closed_projective_image : |
| 152 | ∃ (Z : Over Foundations.Scheme.ProjectiveSpace.complexBase) (j : Z ⟶ Over.mk (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase n)), |
| 153 | IsClosedImmersion j.left ∧ |
| 154 | ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map f '' (U : Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)) = |
| 155 | range (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map j) := by |
| 156 | classical |
| 157 | obtain ⟨Q, hQ, hcone⟩ := compact_analyticOpen_projective_equations f U |
| 158 | choose degree hdegree using fun q : Q => hQ q.val q.property |
| 159 | have hzero : range (analyticOpenProjectivePointMap f U) = |
| 160 | Foundations.Scheme.ProjectiveZeroLocus.projectiveCommonZeroLocus (fun q : Q => q.val) degree hdegree := by |
| 161 | ext p |
| 162 | have he : p.rep ∈ ComplexGroups.HolomorphicAlgebraicity.ProjectiveCone.Constructions.Cone.projectiveCone (range (analyticOpenProjectivePointMap f U)) ↔ |
| 163 | ∀ q ∈ Q, MvPolynomial.eval p.rep q = 0 := by |
| 164 | rw [hcone] |
| 165 | rfl |
| 166 | rw [ComplexGroups.HolomorphicAlgebraicity.ProjectiveCone.Constructions.Cone.mem_projectiveCone_iff _ p.rep p.rep_nonzero, p.mk_rep] at he |
| 167 | rw [← p.mk_rep, Foundations.Scheme.ProjectiveZeroLocus.mem_projectiveCommonZeroLocus_mk] |
| 168 | simpa only [p.mk_rep, Subtype.forall] using he |
| 169 | obtain ⟨Z, j, _hZ, hj, _hproper, himage⟩ := |
| 170 | ComplexGroups.HolomorphicAlgebraicity.ProjectiveSubscheme.Constructions.Algebraization.exists_reduced_projective_subscheme_of_equations |
| 171 | (fun q : Q => q.val) degree hdegree |
| 172 | refine ⟨Z, j, hj, ?_⟩ |
| 173 | ext z |
| 174 | let p := (ComplexPoints.Analytic.ProjectiveScheme.projectiveSchemePointHomeomorph n).symm z |
| 175 | have hp : Foundations.Scheme.ProjectiveComplexPoints.projectiveComplexPointsEquiv n p = z := |
| 176 | (ComplexPoints.Analytic.ProjectiveScheme.projectiveSchemePointHomeomorph n).apply_symm_apply z |
| 177 | have hz : z ∈ range (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map j) ↔ |
| 178 | p ∈ Foundations.Scheme.ProjectiveZeroLocus.projectiveCommonZeroLocus (fun q : Q => q.val) degree hdegree := by |
| 179 | simpa only [hp] using himage p |
| 180 | rw [hz, ← hzero] |
| 181 | constructor |
| 182 | · rintro ⟨x, hx, he⟩ |
| 183 | exact ⟨⟨x, hx⟩, congrArg (ComplexPoints.Analytic.ProjectiveScheme.projectiveSchemePointHomeomorph n).symm he⟩ |
| 184 | · rintro ⟨x, hx⟩ |
| 185 | exact ⟨x.val, x.property, (ComplexPoints.Analytic.ProjectiveScheme.projectiveSchemePointHomeomorph n).symm.injective hx⟩ |
| 186 | |
| 187 | theorem compact_analyticOpen_eq_univ_of_projective_immersion : |
| 188 | (U : Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)) = univ := by |
| 189 | obtain ⟨Z, j, hj, himage⟩ := compact_analyticOpen_has_closed_projective_image f U |
| 190 | let : IsClosedImmersion j.left := hj |
| 191 | have hUn : (U : Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)).Nonempty := by |
| 192 | obtain ⟨x⟩ := ‹Nonempty U› |
| 193 | exact ⟨x.val, x.property⟩ |
| 194 | exact AnalyticOpenDensity.analytic_open_eq_univ_of_closed_image f j U U.isOpen hUn himage |
| 195 | |
| 196 | theorem compactSpace_of_compact_analyticOpen_projective_immersion : |
| 197 | CompactSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X) := by |
| 198 | have hc : IsCompact (U : Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)) := isCompact_iff_compactSpace.mpr inferInstance |
| 199 | rw [compact_analyticOpen_eq_univ_of_projective_immersion f U] at hc |
| 200 | exact isCompact_univ_iff.mp hc |
| 201 | |
| 202 | theorem projectiveImmersion_isClosed_of_compact_analyticOpen : IsClosedImmersion f.left := by |
| 203 | let : CompactSpace (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X) := |
| 204 | compactSpace_of_compact_analyticOpen_projective_immersion f U |
| 205 | let : LocallyOfFiniteType (Over.mk (Foundations.Scheme.ProjectiveSpace.projectiveSpaceToBase n)).hom := |
| 206 | (Foundations.Scheme.ClosedProjective.projectiveSpaceToBase_finiteType n).1 |
| 207 | exact ComplexPoints.SchemeClosed.ClosednessConstruction.immersion_isClosedImmersion_of_analytic_image f |
| 208 | (isCompact_range (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.continuous_map f)).isClosed |
| 209 | |
| 210 | def projectivePresentation_of_compact_analyticOpen : Foundations.Scheme.SmoothProjective.ProjectivePresentation X.left X.hom where |
| 211 | ambientDimension := n |
| 212 | embedding := f.left |
| 213 | closedImmersion := projectiveImmersion_isClosed_of_compact_analyticOpen f U |
| 214 | over_base := f.w |
| 215 | |
| 216 | end |
| 217 | |
| 218 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.CompactAnalyticOpen |