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.SmoothClosedImmersion |
| 2 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.IntrinsicSmoothSchemeMaps |
| 3 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.AffineOpenDifferential |
| 4 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.SchemeClosed |
| 5 | import OAI.AlgebraicGeometry.Foundations.Scheme.ClosedImmersionDimension |
| 6 | import OAI.AlgebraicGeometry.Foundations.Scheme.AffineOpenSmooth |
| 7 | |
| 8 | /-! # Intrinsic Smooth Closed Immersion -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.ComplexPoints.Analytic.IntrinsicSmoothClosedImmersion |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! |
| 15 | # Differentials of closed immersions on native complex scheme points |
| 16 | |
| 17 | The affine reduction uses the actual inverse image of a target affine open, |
| 18 | the actual pullback on its section rings, and the established native analytic |
| 19 | point topologies and manifold structures. |
| 20 | -/ |
| 21 | |
| 22 | open scoped ContDiff _root_.Manifold _root_.Topology |
| 23 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 24 | |
| 25 | variable {X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase} |
| 26 | |
| 27 | /-- Pullback on sections, with precisely the scalar structures induced by the |
| 28 | two native structure maps over the complex base. -/ |
| 29 | def nativeAffineOpenPullback (φ : X ⟶ Y) (V : Y.left.Opens) : |
| 30 | SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra Y V →ₐ[ℂ] |
| 31 | SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X (φ.left ⁻¹ᵁ V) where |
| 32 | __ := (φ.left.app V).hom |
| 33 | commutes' r := by |
| 34 | change (φ.left.app V).hom (Foundations.Scheme.SpecScalarTransport.specSectionScalarMap Y.hom V r) = |
| 35 | Foundations.Scheme.SpecScalarTransport.specSectionScalarMap X.hom (φ.left ⁻¹ᵁ V) r |
| 36 | have h := congrArg (fun f : ℂ →+* Γ(X.left, φ.left ⁻¹ᵁ V) => f r) |
| 37 | (Foundations.Scheme.ClosedImmersionDimension.specSectionScalarMap_app φ.left Y.hom V) |
| 38 | simpa only [RingHom.comp_apply, φ.w] using h |
| 39 | |
| 40 | /-- A closed immersion makes this actual affine section pullback surjective. -/ |
| 41 | theorem nativeAffineOpenPullback_surjective (φ : X ⟶ Y) |
| 42 | [IsClosedImmersion φ.left] (V : Y.left.Opens) (hV : IsAffineOpen V) : |
| 43 | Function.Surjective (nativeAffineOpenPullback φ V) := |
| 44 | φ.left.app_surjective V hV |
| 45 | |
| 46 | /-- The native affine section pullback represents the original scheme morphism |
| 47 | on the inverse image of a genuine affine target open. -/ |
| 48 | theorem nativeAffineOpenPullback_scheme_square (φ : X ⟶ Y) |
| 49 | (V : Y.left.Opens) (hV : IsAffineOpen V) (hW : IsAffineOpen (φ.left ⁻¹ᵁ V)) : |
| 50 | Foundations.Scheme.AffineComplexPoints.affineAlgHomOverSpecEquiv ℂ (SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra Y V) |
| 51 | (SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X (φ.left ⁻¹ᵁ V)) |
| 52 | (nativeAffineOpenPullback φ V) ≫ |
| 53 | SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap Y V hV = |
| 54 | SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap X (φ.left ⁻¹ᵁ V) hW ≫ φ := by |
| 55 | apply Over.OverMorphism.ext |
| 56 | change Spec.map (φ.left.app V) ≫ hV.fromSpec = hW.fromSpec ≫ φ.left |
| 57 | rw [φ.left.app_eq_appLE] |
| 58 | exact IsAffineOpen.SpecMap_appLE_fromSpec φ.left hV hW le_rfl |
| 59 | |
| 60 | /-- The preceding scheme square gives an exact identity of ordinary native |
| 61 | point maps, not merely agreement on the underlying Zariski points. -/ |
| 62 | theorem nativeAffineOpenPullback_point_square (φ : X ⟶ Y) |
| 63 | (V : Y.left.Opens) (hV : IsAffineOpen V) (hW : IsAffineOpen (φ.left ⁻¹ᵁ V)) |
| 64 | (x : Foundations.Scheme.AffineComplexPoints.affineComplexPoints (SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X (φ.left ⁻¹ᵁ V))) : |
| 65 | SchemePointHomeomorphs.schemeComplexPoints.map φ |
| 66 | (SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap X (φ.left ⁻¹ᵁ V) hW x) = |
| 67 | SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap Y V hV |
| 68 | (Foundations.Scheme.AffineComplexPoints.affineComplexPoints.comap (nativeAffineOpenPullback φ V) x) := by |
| 69 | change SchemePointHomeomorphs.schemeComplexPoints.map φ |
| 70 | (SchemePointHomeomorphs.schemeComplexPoints.affinePointMap _ _ x) = |
| 71 | SchemePointHomeomorphs.schemeComplexPoints.affinePointMap _ _ _ |
| 72 | rw [← SchemePointHomeomorphs.schemeComplexPoints.affinePointMap_comp, |
| 73 | ← nativeAffineOpenPullback_scheme_square φ V hV hW, |
| 74 | SchemePointHomeomorphs.schemeComplexPoints.affinePointMap_comap] |
| 75 | |
| 76 | /-- Every point of a closed immersion is covered by the actual affine inverse |
| 77 | image of a target affine neighborhood. -/ |
| 78 | theorem exists_nativeClosedImmersion_affineReduction (φ : X ⟶ Y) |
| 79 | [IsClosedImmersion φ.left] (x : SchemePointHomeomorphs.schemeComplexPoints X) : |
| 80 | ∃ (V : Y.left.Opens) (hV : IsAffineOpen V) |
| 81 | (y : Foundations.Scheme.AffineComplexPoints.affineComplexPoints (SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X (φ.left ⁻¹ᵁ V))), |
| 82 | SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap X (φ.left ⁻¹ᵁ V) |
| 83 | (hV.preimage φ.left) y = x := by |
| 84 | obtain ⟨V, hV, y, hy⟩ := |
| 85 | SchemePointHomeomorphs.schemeComplexPoints.exists_affineOpenPoint_lift Y (SchemePointHomeomorphs.schemeComplexPoints.map φ x) |
| 86 | have hmap : SchemePointHomeomorphs.schemeComplexPoints.map φ x ∈ |
| 87 | Set.range (SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap Y V hV) := ⟨y, hy⟩ |
| 88 | rw [SchemePointHomeomorphs.schemeComplexPoints.range_affineOpenPointMap] at hmap |
| 89 | have hx : x ∈ Set.range (SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap X (φ.left ⁻¹ᵁ V) |
| 90 | (hV.preimage φ.left)) := by |
| 91 | rw [SchemePointHomeomorphs.schemeComplexPoints.range_affineOpenPointMap] |
| 92 | exact hmap |
| 93 | obtain ⟨z, hz⟩ := hx |
| 94 | exact ⟨V, hV, z, hz⟩ |
| 95 | |
| 96 | section DifferentialTransfer |
| 97 | |
| 98 | variable {𝕜 : Type*} [NontriviallyNormedField 𝕜] |
| 99 | variable {E₁ E₂ F₁ F₂ : Type*} |
| 100 | variable [NormedAddCommGroup E₁] [NormedSpace 𝕜 E₁] |
| 101 | variable [NormedAddCommGroup E₂] [NormedSpace 𝕜 E₂] |
| 102 | variable [NormedAddCommGroup F₁] [NormedSpace 𝕜 F₁] |
| 103 | variable [NormedAddCommGroup F₂] [NormedSpace 𝕜 F₂] |
| 104 | variable {P M Q N : Type*} |
| 105 | variable [TopologicalSpace P] [ChartedSpace E₁ P] |
| 106 | variable [TopologicalSpace M] [ChartedSpace E₂ M] |
| 107 | variable [TopologicalSpace Q] [ChartedSpace F₁ Q] |
| 108 | variable [TopologicalSpace N] [ChartedSpace F₂ N] |
| 109 | |
| 110 | set_option backward.isDefEq.respectTransparency false in |
| 111 | /-- Injectivity of a differential descends through an actual commuting square |
| 112 | when the source chart differential is surjective and the other two are |
| 113 | injective. This is the manifold chain rule and injectivity of a composition. -/ |
| 114 | theorem injective_mfderiv_of_commuting_square |
| 115 | (f : M → N) (a : P → M) (b : Q → N) (g : P → Q) (x : P) |
| 116 | (hsquare : f ∘ a = b ∘ g) |
| 117 | (hf : MDifferentiableAt (𝓘(𝕜, E₂)) (𝓘(𝕜, F₂)) f (a x)) |
| 118 | (ha : MDifferentiableAt (𝓘(𝕜, E₁)) (𝓘(𝕜, E₂)) a x) |
| 119 | (hb : MDifferentiableAt (𝓘(𝕜, F₁)) (𝓘(𝕜, F₂)) b (g x)) |
| 120 | (hg : MDifferentiableAt (𝓘(𝕜, E₁)) (𝓘(𝕜, F₁)) g x) |
| 121 | (hasurj : Function.Surjective (mfderiv (𝓘(𝕜, E₁)) (𝓘(𝕜, E₂)) a x)) |
| 122 | (hbinj : Function.Injective (mfderiv (𝓘(𝕜, F₁)) (𝓘(𝕜, F₂)) b (g x))) |
| 123 | (hginj : Function.Injective (mfderiv (𝓘(𝕜, E₁)) (𝓘(𝕜, F₁)) g x)) : |
| 124 | Function.Injective (mfderiv (𝓘(𝕜, E₂)) (𝓘(𝕜, F₂)) f (a x)) := by |
| 125 | have h := mfderiv_congr (I := 𝓘(𝕜, E₁)) (I' := 𝓘(𝕜, F₂)) (x := x) hsquare |
| 126 | rw [mfderiv_comp x hf ha, mfderiv_comp x hb hg] at h |
| 127 | have hinj : Function.Injective |
| 128 | ((mfderiv (𝓘(𝕜, E₂)) (𝓘(𝕜, F₂)) f (a x)).comp |
| 129 | (mfderiv (𝓘(𝕜, E₁)) (𝓘(𝕜, E₂)) a x)) := by |
| 130 | rw [h] |
| 131 | exact hbinj.comp hginj |
| 132 | exact Function.Injective.of_comp_right |
| 133 | (f := mfderiv (𝓘(𝕜, E₂)) (𝓘(𝕜, F₂)) f (a x)) |
| 134 | (g := mfderiv (𝓘(𝕜, E₁)) (𝓘(𝕜, E₂)) a x) hinj hasurj |
| 135 | |
| 136 | end DifferentialTransfer |
| 137 | |
| 138 | variable [IsIntegral X.left] [Smooth X.hom] [IsIntegral Y.left] [Smooth Y.hom] |
| 139 | |
| 140 | local notation "ModelX" => (Fin (OAI.AlgebraicGeometry.Betti.AffineDimension.Realization.functionFieldDifferentialDimension X.hom) → ℂ) |
| 141 | local notation "ModelY" => (Fin (OAI.AlgebraicGeometry.Betti.AffineDimension.Realization.functionFieldDifferentialDimension Y.hom) → ℂ) |
| 142 | |
| 143 | /-- An actual closed immersion of smooth integral complex schemes has |
| 144 | injective complex differential on its native complex-valued points. -/ |
| 145 | theorem mfderiv_nativeScheme_closedImmersion_injective (φ : X ⟶ Y) |
| 146 | [IsClosedImmersion φ.left] (x : SchemePointHomeomorphs.schemeComplexPoints X) : |
| 147 | Function.Injective |
| 148 | (mfderiv (𝓘(ℂ, ModelX)) (𝓘(ℂ, ModelY)) (SchemePointHomeomorphs.schemeComplexPoints.map φ) x) := by |
| 149 | obtain ⟨V, hV, y, hy⟩ := exists_nativeClosedImmersion_affineReduction φ x |
| 150 | let W := φ.left ⁻¹ᵁ V |
| 151 | have hW : IsAffineOpen W := hV.preimage φ.left |
| 152 | have hxW : SchemePointHomeomorphs.schemeComplexPoints.underlying x ∈ W := by |
| 153 | have hr : x ∈ Set.range (SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap X W hW) := ⟨y, hy⟩ |
| 154 | rwa [SchemePointHomeomorphs.schemeComplexPoints.range_affineOpenPointMap] at hr |
| 155 | let : Nonempty W := ⟨⟨SchemePointHomeomorphs.schemeComplexPoints.underlying x, hxW⟩⟩ |
| 156 | let : Nonempty V := ⟨⟨φ.left (SchemePointHomeomorphs.schemeComplexPoints.underlying x), hxW⟩⟩ |
| 157 | let A := SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra Y V |
| 158 | let B := SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X W |
| 159 | let : IsDomain A := SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra_isDomain Y V |
| 160 | let : IsDomain B := SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra_isDomain X W |
| 161 | let : Algebra.Smooth ℂ A := SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra_smooth Y V hV |
| 162 | let : Algebra.Smooth ℂ B := SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra_smooth X W hW |
| 163 | let i := SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap X W hW |
| 164 | let j := SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap Y V hV |
| 165 | let h : A →ₐ[ℂ] B := nativeAffineOpenPullback φ V |
| 166 | have hy' : SchemePointHomeomorphs.schemeComplexPoints.affinePointMap B i y = x := hy |
| 167 | rw [← hy'] |
| 168 | refine injective_mfderiv_of_commuting_square |
| 169 | (SchemePointHomeomorphs.schemeComplexPoints.map φ) (SchemePointHomeomorphs.schemeComplexPoints.affinePointMap B i) |
| 170 | (SchemePointHomeomorphs.schemeComplexPoints.affinePointMap A j) (Foundations.Scheme.AffineComplexPoints.affineComplexPoints.comap h) y ?_ |
| 171 | ((IntrinsicSmoothSchemeMaps.contMDiff_nativeScheme_map φ 1).mdifferentiableAt one_ne_zero) |
| 172 | ((AffineOpenDifferential.contMDiff_affinePointMap B i 1).mdifferentiableAt one_ne_zero) |
| 173 | ((AffineOpenDifferential.contMDiff_affinePointMap A j 1).mdifferentiableAt one_ne_zero) |
| 174 | ((SmoothAffineMaps.contMDiff_smoothDomain_comap h 1).mdifferentiableAt one_ne_zero) |
| 175 | (AffineOpenDifferential.mfderiv_affinePointMap_bijective B i y).2 |
| 176 | (AffineOpenDifferential.mfderiv_affinePointMap_bijective A j (Foundations.Scheme.AffineComplexPoints.affineComplexPoints.comap h y)).1 |
| 177 | (SmoothClosedImmersion.mfderiv_smoothDomain_comap_injective_of_surjective h |
| 178 | (nativeAffineOpenPullback_surjective φ V hV) y) |
| 179 | funext z |
| 180 | exact nativeAffineOpenPullback_point_square φ V hV hW z |
| 181 | |
| 182 | /-- The corresponding injectivity on the underlying real tangent spaces is |
| 183 | also a theorem of the genuine closed immersion. -/ |
| 184 | theorem real_mfderiv_nativeScheme_closedImmersion_injective (φ : X ⟶ Y) |
| 185 | [IsClosedImmersion φ.left] (x : SchemePointHomeomorphs.schemeComplexPoints X) : |
| 186 | Function.Injective |
| 187 | (mfderiv (𝓘(ℝ, ModelX)) (𝓘(ℝ, ModelY)) (SchemePointHomeomorphs.schemeComplexPoints.map φ) x) := by |
| 188 | obtain ⟨V, hV, y, hy⟩ := exists_nativeClosedImmersion_affineReduction φ x |
| 189 | let W := φ.left ⁻¹ᵁ V |
| 190 | have hW : IsAffineOpen W := hV.preimage φ.left |
| 191 | have hxW : SchemePointHomeomorphs.schemeComplexPoints.underlying x ∈ W := by |
| 192 | have hr : x ∈ Set.range (SchemePointHomeomorphs.schemeComplexPoints.affineOpenPointMap X W hW) := ⟨y, hy⟩ |
| 193 | rwa [SchemePointHomeomorphs.schemeComplexPoints.range_affineOpenPointMap] at hr |
| 194 | let : Nonempty W := ⟨⟨SchemePointHomeomorphs.schemeComplexPoints.underlying x, hxW⟩⟩ |
| 195 | let : Nonempty V := ⟨⟨φ.left (SchemePointHomeomorphs.schemeComplexPoints.underlying x), hxW⟩⟩ |
| 196 | let A := SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra Y V |
| 197 | let B := SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra X W |
| 198 | let : IsDomain A := SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra_isDomain Y V |
| 199 | let : IsDomain B := SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra_isDomain X W |
| 200 | let : Algebra.Smooth ℂ A := SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra_smooth Y V hV |
| 201 | let : Algebra.Smooth ℂ B := SchemePointHomeomorphs.schemeComplexPoints.affineOpenAlgebra_smooth X W hW |
| 202 | let i := SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap X W hW |
| 203 | let j := SchemePointHomeomorphs.schemeComplexPoints.affineOpenSchemeMap Y V hV |
| 204 | let h : A →ₐ[ℂ] B := nativeAffineOpenPullback φ V |
| 205 | have hy' : SchemePointHomeomorphs.schemeComplexPoints.affinePointMap B i y = x := hy |
| 206 | rw [← hy'] |
| 207 | refine injective_mfderiv_of_commuting_square |
| 208 | (SchemePointHomeomorphs.schemeComplexPoints.map φ) (SchemePointHomeomorphs.schemeComplexPoints.affinePointMap B i) |
| 209 | (SchemePointHomeomorphs.schemeComplexPoints.affinePointMap A j) (Foundations.Scheme.AffineComplexPoints.affineComplexPoints.comap h) y ?_ |
| 210 | ((IntrinsicSmoothSchemeMaps.real_contMDiff_nativeScheme_map φ 1).mdifferentiableAt one_ne_zero) |
| 211 | ((AffineOpenDifferential.real_contMDiff_affinePointMap B i 1).mdifferentiableAt one_ne_zero) |
| 212 | ((AffineOpenDifferential.real_contMDiff_affinePointMap A j 1).mdifferentiableAt one_ne_zero) |
| 213 | ((SmoothAffineMaps.real_contMDiff_smoothDomain_comap h 1).mdifferentiableAt one_ne_zero) |
| 214 | (AffineOpenDifferential.real_mfderiv_affinePointMap_bijective B i y).2 |
| 215 | (AffineOpenDifferential.real_mfderiv_affinePointMap_bijective A j (Foundations.Scheme.AffineComplexPoints.affineComplexPoints.comap h y)).1 |
| 216 | (SmoothClosedImmersion.real_mfderiv_smoothDomain_comap_injective_of_surjective h |
| 217 | (nativeAffineOpenPullback_surjective φ V hV) y) |
| 218 | funext z |
| 219 | exact nativeAffineOpenPullback_point_square φ V hV hW z |
| 220 | |
| 221 | /-- A genuine closed immersion of smooth integral complex schemes induces a |
| 222 | closed point embedding with injective complex differential everywhere. -/ |
| 223 | theorem nativeScheme_closedImmersion_closedEmbedding_and_injective_differential |
| 224 | (φ : X ⟶ Y) [IsClosedImmersion φ.left] : |
| 225 | Topology.IsClosedEmbedding (SchemePointHomeomorphs.schemeComplexPoints.map φ) ∧ |
| 226 | ∀ x : SchemePointHomeomorphs.schemeComplexPoints X, |
| 227 | Function.Injective |
| 228 | (mfderiv (𝓘(ℂ, ModelX)) (𝓘(ℂ, ModelY)) (SchemePointHomeomorphs.schemeComplexPoints.map φ) x) := |
| 229 | ⟨SchemePointHomeomorphs.schemeComplexPoints.isClosedEmbedding_map_of_isClosedImmersion φ, |
| 230 | mfderiv_nativeScheme_closedImmersion_injective φ⟩ |
| 231 | |
| 232 | /-- The same statement for the established underlying real smooth manifolds. -/ |
| 233 | theorem nativeScheme_closedImmersion_closedEmbedding_and_injective_real_differential |
| 234 | (φ : X ⟶ Y) [IsClosedImmersion φ.left] : |
| 235 | Topology.IsClosedEmbedding (SchemePointHomeomorphs.schemeComplexPoints.map φ) ∧ |
| 236 | ∀ x : SchemePointHomeomorphs.schemeComplexPoints X, |
| 237 | Function.Injective |
| 238 | (mfderiv (𝓘(ℝ, ModelX)) (𝓘(ℝ, ModelY)) (SchemePointHomeomorphs.schemeComplexPoints.map φ) x) := |
| 239 | ⟨SchemePointHomeomorphs.schemeComplexPoints.isClosedEmbedding_map_of_isClosedImmersion φ, |
| 240 | real_mfderiv_nativeScheme_closedImmersion_injective φ⟩ |
| 241 | |
| 242 | end |
| 243 | |
| 244 | end OAI.AlgebraicGeometry.ComplexPoints.Analytic.IntrinsicSmoothClosedImmersion |