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.Foundations.Scheme.StandardSmoothJacobian |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.SmoothComplexPoint |
| 3 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.PolynomialDerivative |
| 4 | import Mathlib.Topology.Algebra.Module.FiniteDimension |
| 5 | import Mathlib.LinearAlgebra.Matrix.ToLin |
| 6 | import Mathlib.LinearAlgebra.Determinant |
| 7 | import Mathlib.Analysis.Complex.Basic |
| 8 | |
| 9 | /-! # Jacobian Regularity -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.ComplexPoints.Analytic.JacobianRegularity |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! |
| 16 | # Selected Jacobian minors and analytic regularity |
| 17 | |
| 18 | The selected coordinates are given by the actual injective map in a |
| 19 | submersive presentation. We split all variables into those in its image and |
| 20 | its complement, preserving the ordering of the selected minor. |
| 21 | -/ |
| 22 | |
| 23 | open scoped Classical ContDiff _root_.Topology |
| 24 | |
| 25 | open Filter |
| 26 | |
| 27 | variable {ι σ : Type*} |
| 28 | |
| 29 | /-- Variables outside the image of the chosen injection are free coordinates. -/ |
| 30 | abbrev FreeCoordinates (s : σ → ι) := {i : ι // i ∉ Set.range s} |
| 31 | |
| 32 | /-- Order the variables as free coordinates followed by the chosen coordinates. |
| 33 | The latter retain exactly the order of the selected Jacobian columns. -/ |
| 34 | def selectedIndexEquiv (s : σ → ι) (hs : Function.Injective s) : |
| 35 | FreeCoordinates s ⊕ σ ≃ ι := |
| 36 | ((Equiv.sumCongr (Equiv.refl _) (Equiv.ofInjective s hs)).trans |
| 37 | (Equiv.sumComm _ _)).trans (Equiv.Set.sumCompl (Set.range s)) |
| 38 | |
| 39 | @[simp] |
| 40 | theorem selectedIndexEquiv_free (s : σ → ι) (hs : Function.Injective s) |
| 41 | (i : FreeCoordinates s) : selectedIndexEquiv s hs (Sum.inl i) = i.val := by |
| 42 | simp [selectedIndexEquiv, Equiv.Set.sumCompl] |
| 43 | |
| 44 | @[simp] |
| 45 | theorem selectedIndexEquiv_selected (s : σ → ι) (hs : Function.Injective s) |
| 46 | (j : σ) : selectedIndexEquiv s hs (Sum.inr j) = s j := by |
| 47 | simp [selectedIndexEquiv, Equiv.Set.sumCompl] |
| 48 | |
| 49 | @[simp] |
| 50 | theorem selectedIndexEquiv_symm_free (s : σ → ι) (hs : Function.Injective s) |
| 51 | (i : FreeCoordinates s) : (selectedIndexEquiv s hs).symm i.val = Sum.inl i := by |
| 52 | apply (selectedIndexEquiv s hs).injective |
| 53 | simp |
| 54 | |
| 55 | @[simp] |
| 56 | theorem selectedIndexEquiv_symm_selected (s : σ → ι) (hs : Function.Injective s) |
| 57 | (j : σ) : (selectedIndexEquiv s hs).symm (s j) = Sum.inr j := by |
| 58 | apply (selectedIndexEquiv s hs).injective |
| 59 | simp |
| 60 | |
| 61 | /-- Split a vector into its free coordinates and its selected coordinates. -/ |
| 62 | def splitCoordinates (s : σ → ι) (x : ι → ℂ) : |
| 63 | (FreeCoordinates s → ℂ) × (σ → ℂ) := |
| 64 | (fun i => x i.val, fun j => x (s j)) |
| 65 | |
| 66 | /-- Recombining the two coordinate blocks recovers every original coordinate. -/ |
| 67 | theorem splitCoordinates_reconstruct (s : σ → ι) (hs : Function.Injective s) |
| 68 | (x : ι → ℂ) : |
| 69 | (Sum.elim (splitCoordinates s x).1 (splitCoordinates s x).2) ∘ |
| 70 | (selectedIndexEquiv s hs).symm = x := by |
| 71 | have h : Sum.elim (splitCoordinates s x).1 (splitCoordinates s x).2 = |
| 72 | x ∘ selectedIndexEquiv s hs := by |
| 73 | funext j |
| 74 | cases j with |
| 75 | | inl i => simp [splitCoordinates] |
| 76 | | inr j => simp [splitCoordinates] |
| 77 | rw [h] |
| 78 | funext i |
| 79 | simp |
| 80 | |
| 81 | /-- The selected/free coordinate decomposition is an actual linear equivalence. -/ |
| 82 | def selectedCoordinateLinearEquiv (s : σ → ι) (hs : Function.Injective s) : |
| 83 | (ι → ℂ) ≃ₗ[ℂ] (FreeCoordinates s → ℂ) × (σ → ℂ) where |
| 84 | toFun := splitCoordinates s |
| 85 | invFun z := Sum.elim z.1 z.2 ∘ (selectedIndexEquiv s hs).symm |
| 86 | left_inv := splitCoordinates_reconstruct s hs |
| 87 | right_inv z := by |
| 88 | ext j <;> simp [splitCoordinates] |
| 89 | map_add' _ _ := rfl |
| 90 | map_smul' _ _ := rfl |
| 91 | |
| 92 | /-- Rewrite the actual polynomial relations in the selected/free coordinates. -/ |
| 93 | def selectedPolynomialFamily (s : σ → ι) (hs : Function.Injective s) |
| 94 | (P : σ → MvPolynomial ι ℂ) : σ → MvPolynomial (FreeCoordinates s ⊕ σ) ℂ := |
| 95 | fun j => MvPolynomial.rename (selectedIndexEquiv s hs).symm (P j) |
| 96 | |
| 97 | /-- The reindexed relations have exactly the original values. -/ |
| 98 | theorem selectedPolynomialFamily_eval (s : σ → ι) (hs : Function.Injective s) |
| 99 | (P : σ → MvPolynomial ι ℂ) (x : ι → ℂ) (j : σ) : |
| 100 | MvPolynomial.eval (Sum.elim (splitCoordinates s x).1 (splitCoordinates s x).2) |
| 101 | (selectedPolynomialFamily s hs P j) = MvPolynomial.eval x (P j) := by |
| 102 | rw [selectedPolynomialFamily, MvPolynomial.eval_rename, splitCoordinates_reconstruct] |
| 103 | |
| 104 | /-- Differentiation in a selected block coordinate gives precisely that |
| 105 | selected column of the original formal Jacobian, with no rank-only replacement. -/ |
| 106 | theorem selectedPolynomialFamily_pderiv_eval (s : σ → ι) (hs : Function.Injective s) |
| 107 | (P : σ → MvPolynomial ι ℂ) (x : ι → ℂ) (j k : σ) : |
| 108 | MvPolynomial.eval (Sum.elim (splitCoordinates s x).1 (splitCoordinates s x).2) |
| 109 | (MvPolynomial.pderiv (Sum.inr k) (selectedPolynomialFamily s hs P j)) = |
| 110 | MvPolynomial.eval x (MvPolynomial.pderiv (s k) (P j)) := by |
| 111 | rw [selectedPolynomialFamily, ← selectedIndexEquiv_symm_selected s hs k, |
| 112 | MvPolynomial.pderiv_rename (selectedIndexEquiv s hs).symm.injective, |
| 113 | MvPolynomial.eval_rename, splitCoordinates_reconstruct] |
| 114 | |
| 115 | section FiniteCoordinates |
| 116 | |
| 117 | variable [Fintype ι] |
| 118 | |
| 119 | /-- In finite dimensions, the coordinate splitting and its inverse are continuous. -/ |
| 120 | def selectedCoordinateEquiv (s : σ → ι) (hs : Function.Injective s) : |
| 121 | (ι → ℂ) ≃L[ℂ] (FreeCoordinates s → ℂ) × (σ → ℂ) := |
| 122 | (selectedCoordinateLinearEquiv s hs).toContinuousLinearEquiv |
| 123 | |
| 124 | @[simp] |
| 125 | theorem selectedCoordinateEquiv_apply (s : σ → ι) (hs : Function.Injective s) |
| 126 | (x : ι → ℂ) : selectedCoordinateEquiv s hs x = splitCoordinates s x := rfl |
| 127 | |
| 128 | end FiniteCoordinates |
| 129 | |
| 130 | section Invertibility |
| 131 | |
| 132 | variable [Fintype σ] |
| 133 | |
| 134 | /-- An actual continuous linear map is invertible when its columns on the |
| 135 | standard basis form a matrix with nonzero determinant. -/ |
| 136 | theorem isInvertible_of_matrix_columns (L : (σ → ℂ) →L[ℂ] (σ → ℂ)) |
| 137 | (M : Matrix σ σ ℂ) |
| 138 | (hcolumns : ∀ i j, L (Pi.single j 1) i = M i j) |
| 139 | (hdet : M.det ≠ 0) : L.IsInvertible := by |
| 140 | have hM : LinearMap.toMatrix' L.toLinearMap = M := by |
| 141 | ext i j |
| 142 | simpa only [LinearMap.toMatrix'_apply, ContinuousLinearMap.coe_coe] using hcolumns i j |
| 143 | have hL : L.det ≠ 0 := by |
| 144 | change LinearMap.det L.toLinearMap ≠ 0 |
| 145 | rw [← LinearMap.det_toMatrix', hM] |
| 146 | exact hdet |
| 147 | exact ⟨L.toContinuousLinearEquivOfDetNeZero hL, by simp⟩ |
| 148 | |
| 149 | end Invertibility |
| 150 | |
| 151 | section PolynomialDifferential |
| 152 | |
| 153 | variable [Fintype ι] [Fintype σ] |
| 154 | |
| 155 | /-- The usual concatenation of free and selected coordinate vectors. -/ |
| 156 | def sumCoordinateMap : ((ι → ℂ) × (σ → ℂ)) →L[ℂ] (ι ⊕ σ → ℂ) := |
| 157 | (LinearEquiv.sumArrowLequivProdArrow ι σ ℂ ℂ).symm.toContinuousLinearEquiv.toContinuousLinearMap |
| 158 | |
| 159 | @[simp] |
| 160 | theorem sumCoordinateMap_apply (z : (ι → ℂ) × (σ → ℂ)) : |
| 161 | sumCoordinateMap z = Sum.elim z.1 z.2 := rfl |
| 162 | |
| 163 | @[simp] |
| 164 | theorem sumCoordinateMap_selected_single (j : σ) : |
| 165 | (sumCoordinateMap (ι := ι)) (0, Pi.single j (1 : ℂ)) = Pi.single (Sum.inr j) 1 := by |
| 166 | ext k |
| 167 | cases k <;> simp [Pi.single_apply] |
| 168 | |
| 169 | /-- The analytic derivative in each selected coordinate is the corresponding |
| 170 | formal partial derivative of the actual polynomial map. -/ |
| 171 | theorem fderiv_splitPolynomialMap_selected_single |
| 172 | (P : σ → MvPolynomial (ι ⊕ σ) ℂ) |
| 173 | (u : (ι → ℂ) × (σ → ℂ)) (j k : σ) : |
| 174 | (fderiv ℂ (PolynomialImplicit.splitPolynomialMap P) u (0, Pi.single j 1)) k = |
| 175 | MvPolynomial.eval (Sum.elim u.1 u.2) (MvPolynomial.pderiv (Sum.inr j) (P k)) := by |
| 176 | have hd : DifferentiableAt ℂ (PolynomialImplicit.splitPolynomialMap P) u := |
| 177 | (PolynomialImplicit.contDiff_splitPolynomialMap P 1).differentiable_one u |
| 178 | have hc : HasFDerivAt (fun z => PolynomialImplicit.splitPolynomialMap P z k) |
| 179 | ((fderiv ℂ (fun x => MvPolynomial.eval x (P k)) (sumCoordinateMap u)).comp |
| 180 | sumCoordinateMap) u := |
| 181 | (PolynomialDerivative.differentiable_polynomial_eval (P k) (sumCoordinateMap u)).hasFDerivAt.comp u |
| 182 | sumCoordinateMap.hasFDerivAt |
| 183 | have h := congrArg (fun L => L (0, Pi.single j 1)) (fderiv_apply hd k) |
| 184 | rw [hc.fderiv] at h |
| 185 | simp only [ContinuousLinearMap.comp_apply, ContinuousLinearMap.proj_apply] at h |
| 186 | rw [sumCoordinateMap_selected_single, PolynomialDerivative.fderiv_polynomial_eval_single] at h |
| 187 | simpa only [sumCoordinateMap_apply] using h.symm |
| 188 | |
| 189 | end PolynomialDifferential |
| 190 | |
| 191 | variable {S : Type*} [CommRing S] [Algebra ℂ S] |
| 192 | variable [Fintype ι] [Fintype σ] [DecidableEq ι] |
| 193 | |
| 194 | /-- The defining equations of a presentation, in its actual selected/free |
| 195 | coordinate splitting. -/ |
| 196 | def presentationSplitPolynomials (P : Algebra.PreSubmersivePresentation ℂ S ι σ) : |
| 197 | σ → MvPolynomial (FreeCoordinates P.map ⊕ σ) ℂ := |
| 198 | selectedPolynomialFamily P.map P.map_inj P.relation |
| 199 | |
| 200 | /-- A field-valued point of the presented algebra in selected/free coordinates. -/ |
| 201 | def presentationSplitPoint (P : Algebra.PreSubmersivePresentation ℂ S ι σ) |
| 202 | (x : S →ₐ[ℂ] ℂ) : (FreeCoordinates P.map → ℂ) × (σ → ℂ) := |
| 203 | splitCoordinates P.map (fun i => x (P.val i)) |
| 204 | |
| 205 | omit [Fintype ι] [Fintype σ] [DecidableEq ι] in |
| 206 | /-- Every presented algebra point satisfies the actual reindexed equations. -/ |
| 207 | theorem presentationSplitPoint_zero |
| 208 | (P : Algebra.PreSubmersivePresentation ℂ S ι σ) (x : S →ₐ[ℂ] ℂ) : |
| 209 | PolynomialImplicit.splitPolynomialMap (presentationSplitPolynomials P) (presentationSplitPoint P x) = 0 := by |
| 210 | ext j |
| 211 | change MvPolynomial.eval _ (selectedPolynomialFamily P.map P.map_inj P.relation j) = 0 |
| 212 | simp only [presentationSplitPoint] |
| 213 | rw [selectedPolynomialFamily_eval] |
| 214 | exact Foundations.Scheme.StandardSmoothJacobian.Algebraic.point_relation_zero P.toPresentation x j |
| 215 | |
| 216 | /-- The partial analytic derivative is represented by precisely the selected |
| 217 | algebraic Jacobian minor at the algebra point. -/ |
| 218 | theorem presentation_partialDerivative_columns |
| 219 | (P : Algebra.PreSubmersivePresentation ℂ S ι σ) (x : S →ₐ[ℂ] ℂ) (i j : σ) : |
| 220 | ((fderiv ℂ (PolynomialImplicit.splitPolynomialMap (presentationSplitPolynomials P)) |
| 221 | (presentationSplitPoint P x)).comp |
| 222 | (ContinuousLinearMap.inr ℂ (FreeCoordinates P.map → ℂ) (σ → ℂ))) |
| 223 | (Pi.single j 1) i = Foundations.Scheme.StandardSmoothJacobian.Algebraic.pointJacobianMinor P x i j := by |
| 224 | change (fderiv ℂ (PolynomialImplicit.splitPolynomialMap (presentationSplitPolynomials P)) |
| 225 | (presentationSplitPoint P x) (0, Pi.single j 1)) i = _ |
| 226 | rw [fderiv_splitPolynomialMap_selected_single] |
| 227 | change MvPolynomial.eval _ |
| 228 | (MvPolynomial.pderiv (Sum.inr j) |
| 229 | (selectedPolynomialFamily P.map P.map_inj P.relation i)) = _ |
| 230 | simp only [presentationSplitPoint] |
| 231 | rw [selectedPolynomialFamily_pderiv_eval] |
| 232 | rfl |
| 233 | |
| 234 | /-- Submersive presentation data proves the exact analytic regularity hypothesis |
| 235 | of the implicit function theorem; no analytic rank assumption is added. -/ |
| 236 | theorem standardSmooth_partialDerivative_isInvertible |
| 237 | (P : Algebra.SubmersivePresentation ℂ S ι σ) (x : S →ₐ[ℂ] ℂ) : |
| 238 | ((fderiv ℂ (PolynomialImplicit.splitPolynomialMap |
| 239 | (presentationSplitPolynomials P.toPreSubmersivePresentation)) |
| 240 | (presentationSplitPoint P.toPreSubmersivePresentation x)).comp |
| 241 | (ContinuousLinearMap.inr ℂ (FreeCoordinates P.map → ℂ) (σ → ℂ))).IsInvertible := by |
| 242 | apply isInvertible_of_matrix_columns _ |
| 243 | (Foundations.Scheme.StandardSmoothJacobian.Algebraic.pointJacobianMinor P.toPreSubmersivePresentation x) |
| 244 | · exact presentation_partialDerivative_columns P.toPreSubmersivePresentation x |
| 245 | · exact Foundations.Scheme.StandardSmoothJacobian.Algebraic.pointJacobianMinor_det_ne_zero P x |
| 246 | |
| 247 | /-- At every field-valued point, the zero set of a standard-smooth presentation |
| 248 | is locally an actual complex analytic graph in its selected coordinates. -/ |
| 249 | theorem exists_standardSmooth_zero_graph |
| 250 | (P : Algebra.SubmersivePresentation ℂ S ι σ) (x : S →ₐ[ℂ] ℂ) : |
| 251 | let Q := presentationSplitPolynomials P.toPreSubmersivePresentation |
| 252 | let u := presentationSplitPoint P.toPreSubmersivePresentation x |
| 253 | ∃ ψ : (FreeCoordinates P.map → ℂ) → (σ → ℂ), |
| 254 | ψ u.1 = u.2 ∧ |
| 255 | ContDiffAt ℂ ω ψ u.1 ∧ |
| 256 | (∀ᶠ y in 𝓝 u.1, PolynomialImplicit.splitPolynomialMap Q (y, ψ y) = 0) ∧ |
| 257 | (∀ᶠ z in 𝓝 u, PolynomialImplicit.splitPolynomialMap Q z = 0 ↔ ψ z.1 = z.2) := by |
| 258 | exact PolynomialImplicit.exists_polynomial_zero_graph |
| 259 | (presentationSplitPolynomials P.toPreSubmersivePresentation) |
| 260 | (presentationSplitPoint P.toPreSubmersivePresentation x) |
| 261 | (presentationSplitPoint_zero P.toPreSubmersivePresentation x) |
| 262 | (standardSmooth_partialDerivative_isInvertible P x) |
| 263 | |
| 264 | end |
| 265 | |
| 266 | end OAI.AlgebraicGeometry.ComplexPoints.Analytic.JacobianRegularity |