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.Geometry.ComplexTorus.RiemannProjectivity.PointwiseRegular |
| 2 | import OAI.Geometry.ComplexTorus.RiemannProjectivity.SeparatingLinearCoordinates |
| 3 | import OAI.Geometry.ComplexTorus.RiemannProjectivity.RegularCoordinate |
| 4 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.JacobianRegularity |
| 5 | import OAI.AlgebraicGeometry.Foundations.Scheme.LocalizationComplexPoints |
| 6 | import Mathlib.RingTheory.Algebraic.Integral |
| 7 | |
| 8 | /-! # Jacobian Localization At -/ |
| 9 | |
| 10 | namespace OAI |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace Geometry.ComplexTorus.RiemannProjectivity.JacobianLocalizationAt.Constructions.RegularConeEquations |
| 15 | |
| 16 | /-! # RiemannProjectivity: independent algebraic equations at every normalized period-cone point -/ |
| 17 | |
| 18 | open Set _root_.Polynomial |
| 19 | open OAI.AlgebraicGeometry.ComplexPoints.Analytic.JacobianRegularity OAI.Geometry.ComplexTorus.RiemannProjectivity.ConeTangentF.Constructions.ConeTangent OAI.Geometry.ComplexTorus.RiemannProjectivity.SeparatingLinearCoordinates.Constructions.SeparatingFiberCoordinates |
| 20 | |
| 21 | variable {E : Type} [Field E] [NumberField E] [Algebra ℚ E] [NumberField.IsCMField E] |
| 22 | {n : ℕ} |
| 23 | |
| 24 | theorem exists_at_parameter (Φ : AlgebraicGeometry.ComplexMultiplication.CM.TypeHodgeStructure.CMEmbeddingType E) |
| 25 | (f : Φ.periodTorus → Projectivization ℂ (Fin (n + 1) → ℂ)) (hf : Topology.IsClosedEmbedding f) |
| 26 | (hd : ∀ (z : AlgebraicGeometry.ComplexMultiplication.CM.PeriodSpace.CMPeriodSpace E) (i : Fin (n + 1)), |
| 27 | f (QuotientAddGroup.mk z) ∈ (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i).source → |
| 28 | DifferentiableAt ℂ (fun w => AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i (f (QuotientAddGroup.mk w))) z ∧ |
| 29 | Function.Injective (fderiv ℂ (fun w => AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i (f (QuotientAddGroup.mk w))) z)) |
| 30 | (i : Fin (n + 1)) (z : AlgebraicGeometry.ComplexMultiplication.CM.PeriodSpace.CMPeriodSpace E) |
| 31 | (hi : f (QuotientAddGroup.mk z) ∈ (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i).source) |
| 32 | (v : AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProjectiveCone.Constructions.Cone.projectiveCone (range f)) |
| 33 | (hv : v.val = ConeTangentF.Constructions.ConeTangent.parameterization i (fun w => AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i (f (QuotientAddGroup.mk w))) (z, 1)) : |
| 34 | ∃ (L : (Fin (n + 1) → ℂ) →L[ℂ] (Fin (Module.finrank ℂ (AlgebraicGeometry.ComplexMultiplication.CM.PeriodSpace.CMPeriodSpace E) + 1) → ℂ)) |
| 35 | (m : ℕ) (e : (Fin (n + 1) → ℂ) ≃L[ℂ] |
| 36 | ((Fin (Module.finrank ℂ (AlgebraicGeometry.ComplexMultiplication.CM.PeriodSpace.CMPeriodSpace E) + 1) → ℂ) × (Fin m → ℂ))) |
| 37 | (F : Fin m → Polynomial (MvPolynomial (Fin (Module.finrank ℂ (AlgebraicGeometry.ComplexMultiplication.CM.PeriodSpace.CMPeriodSpace E) + 1)) ℂ)), |
| 38 | (∀ w, (e w).1 = L w) ∧ |
| 39 | BranchCoefficientsAt.Constructions.BranchCoefficients.HasHolomorphicInverseAt |
| 40 | (Subtype.val : AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProjectiveCone.Constructions.Cone.projectiveCone (range f) → (Fin (n + 1) → ℂ)) |
| 41 | (fun w => L w) v ∧ |
| 42 | (∀ j, F j ≠ 0) ∧ |
| 43 | (∀ j, ((F j).map (MvPolynomial.eval (L v))).derivative.eval (SeparatingLinearCoordinates.Constructions.SeparatingFiberCoordinates.coordinate e j v) ≠ 0) ∧ |
| 44 | ∀ j w, w ∈ AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProjectiveCone.Constructions.Cone.projectiveCone (range f) → |
| 45 | (F j).eval₂ (MvPolynomial.eval (L w)) (SeparatingLinearCoordinates.Constructions.SeparatingFiberCoordinates.coordinate e j w) = 0 := by |
| 46 | classical |
| 47 | obtain ⟨L, hker, hp, hs, hfinite, hInv⟩ := |
| 48 | PointwiseRegular.Constructions.PointwiseRegularProjection.exists_at_parameter Φ f hf hd i z hi v hv |
| 49 | have hLs : Function.Surjective L := fun y => by |
| 50 | obtain ⟨w, hw⟩ := hs y |
| 51 | exact ⟨w, hw⟩ |
| 52 | obtain ⟨m, e, he, hsep⟩ := SeparatingLinearCoordinates.Constructions.SeparatingFiberCoordinates.exists_split L hLs v.val (hfinite (L v)) |
| 53 | have hpoly (j : Fin m) := GlobalEquation.Constructions.PeriodAlgebraicCoordinates.coordinate_equation Φ f hf hd L hker hs |
| 54 | (SeparatingLinearCoordinates.Constructions.SeparatingFiberCoordinates.coordinate e j) (SeparatingLinearCoordinates.Constructions.SeparatingFiberCoordinates.coordinate_pair_surjective L e he j) |
| 55 | choose k F hk hF hgen hroots using hpoly |
| 56 | have hvi : v.val i = 1 := by rw [hv]; simp [ConeTangentF.Constructions.ConeTangent.parameterization] |
| 57 | have hv0 : v.val ≠ 0 := by |
| 58 | intro hzero |
| 59 | have h := congrFun hzero i |
| 60 | rw [hvi] at h |
| 61 | exact one_ne_zero h |
| 62 | have hLv : L v ≠ 0 := fun h => hv0 (hker v v.property h) |
| 63 | have hfin : ((fun w : AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProjectiveCone.Constructions.Cone.projectiveCone (range f) => L w) ⁻¹' {L v}).Finite := by |
| 64 | apply Set.Finite.of_finite_image (f := (Subtype.val : AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProjectiveCone.Constructions.Cone.projectiveCone (range f) → Fin (n + 1) → ℂ)) |
| 65 | ((hfinite (L v)).subset ?_) Subtype.val_injective.injOn |
| 66 | rintro _ ⟨w, hw, rfl⟩ |
| 67 | exact ⟨w.property, hw⟩ |
| 68 | obtain ⟨q, hvq, hq, hdq⟩ := hInv |
| 69 | refine ⟨L, m, e, F, he, ⟨q, hvq, hq, hdq⟩, ?_, ?_, ?_⟩ |
| 70 | · intro j hj |
| 71 | exact (hF j 0).1.ne_zero (by rw [hj, Polynomial.map_zero]) |
| 72 | · intro j |
| 73 | apply RegularCoordinate.Constructions.RegularCoordinateDerivative.derivative_ne_zero hp.isClosedMap |
| 74 | ((SeparatingLinearCoordinates.Constructions.SeparatingFiberCoordinates.coordinate e j).continuous.comp continuous_subtype_val) q hq hvq hLv hfin |
| 75 | (fun w hwL hwl => ?_) (F j) (hF j) (hgen j) |
| 76 | · intro y t |
| 77 | constructor |
| 78 | · rintro ⟨w, hw⟩ |
| 79 | exact (hroots j y t).mp ⟨w, w.property, hw⟩ |
| 80 | · intro ht |
| 81 | obtain ⟨w, hw, heq⟩ := (hroots j y t).mpr ht |
| 82 | exact ⟨⟨w, hw⟩, heq⟩ |
| 83 | · apply Subtype.ext |
| 84 | by_contra hwv |
| 85 | exact hsep w w.property hwL hwv j hwl |
| 86 | · intro j w hw |
| 87 | exact (hroots j (L w) (SeparatingLinearCoordinates.Constructions.SeparatingFiberCoordinates.coordinate e j w)).mp ⟨w, hw, rfl⟩ |
| 88 | |
| 89 | end Geometry.ComplexTorus.RiemannProjectivity.JacobianLocalizationAt.Constructions.RegularConeEquations |
| 90 | |
| 91 | namespace Geometry.ComplexTorus.RiemannProjectivity.JacobianLocalizationAt.Constructions.SplitPolynomialJacobian |
| 92 | |
| 93 | /-! # RiemannProjectivity: the diagonal algebraic Jacobian of independent coordinate equations -/ |
| 94 | |
| 95 | open _root_.Polynomial |
| 96 | |
| 97 | variable {n m : ℕ} |
| 98 | |
| 99 | def equation (j : Fin m) (F : Polynomial (MvPolynomial (Fin n) ℂ)) : |
| 100 | MvPolynomial (Fin n ⊕ Fin m) ℂ := |
| 101 | F.eval₂ (MvPolynomial.rename Sum.inl).toRingHom (MvPolynomial.X (Sum.inr j)) |
| 102 | |
| 103 | theorem eval_equation (j : Fin m) (F : Polynomial (MvPolynomial (Fin n) ℂ)) |
| 104 | (x : Fin n → ℂ) (z : Fin m → ℂ) : |
| 105 | MvPolynomial.eval (Sum.elim x z) (equation j F) = |
| 106 | F.eval₂ (MvPolynomial.eval x) (z j) := by |
| 107 | induction F using Polynomial.induction_on' with |
| 108 | | add P Q hP hQ => simp only [equation, eval₂_add, map_add] at *; rw [hP, hQ] |
| 109 | | monomial k a => simp [equation, MvPolynomial.eval_rename, Function.comp_def] |
| 110 | |
| 111 | theorem pderiv_coefficient (t : Fin m) (p : MvPolynomial (Fin n) ℂ) : |
| 112 | MvPolynomial.pderiv (Sum.inr t) (MvPolynomial.rename Sum.inl p) = 0 := by |
| 113 | induction p using MvPolynomial.induction_on with |
| 114 | | C a => simp |
| 115 | | add p q hp hq => simp [hp, hq] |
| 116 | | mul_X p i hp => simp [hp] |
| 117 | |
| 118 | theorem pderiv_equation (j t : Fin m) (F : Polynomial (MvPolynomial (Fin n) ℂ)) : |
| 119 | MvPolynomial.pderiv (Sum.inr t) (equation j F) = |
| 120 | if j = t then equation j F.derivative else 0 := by |
| 121 | classical |
| 122 | induction F using Polynomial.induction_on' with |
| 123 | | add P Q hP hQ => |
| 124 | simp only [equation, eval₂_add, map_add] at * |
| 125 | rw [hP, hQ] |
| 126 | split_ifs <;> simp |
| 127 | | monomial k a => |
| 128 | simp only [equation, eval₂_monomial, derivative_monomial, MvPolynomial.pderiv_mul, |
| 129 | MvPolynomial.pderiv_pow] |
| 130 | by_cases h : j = t |
| 131 | · subst t |
| 132 | simp [pderiv_coefficient, mul_assoc, mul_comm, mul_left_comm] |
| 133 | · simp [h, pderiv_coefficient] |
| 134 | |
| 135 | theorem jacobian_eq_diagonal (F : Fin m → Polynomial (MvPolynomial (Fin n) ℂ)) |
| 136 | (x : Fin n → ℂ) (z : Fin m → ℂ) : |
| 137 | (fun j t => MvPolynomial.eval (Sum.elim x z) |
| 138 | (MvPolynomial.pderiv (Sum.inr t) (equation j (F j)))) = |
| 139 | Matrix.diagonal (fun j => ((F j).map (MvPolynomial.eval x)).derivative.eval (z j)) := by |
| 140 | classical |
| 141 | ext j t |
| 142 | rw [pderiv_equation] |
| 143 | by_cases h : j = t |
| 144 | · subst t |
| 145 | simp [eval_equation, derivative_map, eval_map] |
| 146 | · simp [h] |
| 147 | |
| 148 | theorem jacobian_det_ne_zero (F : Fin m → Polynomial (MvPolynomial (Fin n) ℂ)) |
| 149 | (x : Fin n → ℂ) (z : Fin m → ℂ) |
| 150 | (h : ∀ j, ((F j).map (MvPolynomial.eval x)).derivative.eval (z j) ≠ 0) : |
| 151 | Matrix.det (fun j t => MvPolynomial.eval (Sum.elim x z) |
| 152 | (MvPolynomial.pderiv (Sum.inr t) (equation j (F j)))) ≠ 0 := by |
| 153 | rw [jacobian_eq_diagonal, Matrix.det_diagonal] |
| 154 | exact Finset.prod_ne_zero_iff.mpr (fun j _ => h j) |
| 155 | |
| 156 | end Geometry.ComplexTorus.RiemannProjectivity.JacobianLocalizationAt.Constructions.SplitPolynomialJacobian |
| 157 | |
| 158 | namespace Geometry.ComplexTorus.RiemannProjectivity.JacobianLocalizationAt.Constructions.JacobianLocalization |
| 159 | |
| 160 | /-! # RiemannProjectivity: standard smoothness after inverting a presentation Jacobian -/ |
| 161 | |
| 162 | open _root_.Algebra |
| 163 | |
| 164 | variable {R S : Type*} [CommRing R] [CommRing S] [Algebra R S] |
| 165 | {ι σ : Type*} [Finite ι] [Finite σ] |
| 166 | |
| 167 | def presentation (P : PreSubmersivePresentation R S ι σ) : |
| 168 | SubmersivePresentation R (Localization.Away P.jacobian) (Unit ⊕ ι) (Unit ⊕ σ) where |
| 169 | __ := (PreSubmersivePresentation.localizationAway (Localization.Away P.jacobian) |
| 170 | P.jacobian).comp P |
| 171 | jacobian_isUnit := by |
| 172 | rw [PreSubmersivePresentation.comp_jacobian_eq_jacobian_smul_jacobian, |
| 173 | PreSubmersivePresentation.localizationAway_jacobian, Algebra.smul_def] |
| 174 | exact (IsLocalization.Away.algebraMap_isUnit P.jacobian).mul |
| 175 | (IsLocalization.Away.algebraMap_isUnit P.jacobian) |
| 176 | |
| 177 | theorem isStandardSmooth (P : PreSubmersivePresentation R S ι σ) : |
| 178 | Algebra.IsStandardSmooth R (Localization.Away P.jacobian) := |
| 179 | (presentation P).isStandardSmooth |
| 180 | |
| 181 | end Geometry.ComplexTorus.RiemannProjectivity.JacobianLocalizationAt.Constructions.JacobianLocalization |
| 182 | |
| 183 | namespace Geometry.ComplexTorus.RiemannProjectivity.JacobianLocalizationAt.Constructions.SmoothEquationPoint |
| 184 | |
| 185 | /-! # RiemannProjectivity: genuine points of the smooth algebra cut out by the coordinate equations -/ |
| 186 | |
| 187 | open _root_.Polynomial _root_.MvPolynomial |
| 188 | open OAI.Geometry.ComplexTorus.RiemannProjectivity.JacobianLocalizationAt.Constructions.SplitPolynomialJacobian |
| 189 | |
| 190 | variable {n m : ℕ} |
| 191 | |
| 192 | abbrev equationRing (F : Fin m → Polynomial (MvPolynomial (Fin n) ℂ)) := |
| 193 | MvPolynomial (Fin n ⊕ Fin m) ℂ ⧸ Ideal.span (Set.range (fun j => SplitPolynomialJacobian.equation j (F j))) |
| 194 | |
| 195 | def presentation (F : Fin m → Polynomial (MvPolynomial (Fin n) ℂ)) : |
| 196 | Algebra.PreSubmersivePresentation ℂ (equationRing F) (Fin n ⊕ Fin m) (Fin m) := |
| 197 | Algebra.PreSubmersivePresentation.naive Sum.inr Sum.inr_injective |
| 198 | |
| 199 | def point (F : Fin m → Polynomial (MvPolynomial (Fin n) ℂ)) |
| 200 | (x : Fin n → ℂ) (z : Fin m → ℂ) |
| 201 | (h : ∀ j, (F j).eval₂ (MvPolynomial.eval x) (z j) = 0) : equationRing F →ₐ[ℂ] ℂ := |
| 202 | Ideal.Quotient.liftₐ _ (MvPolynomial.aeval (Sum.elim x z)) (by |
| 203 | change Ideal.span _ ≤ RingHom.ker (MvPolynomial.aeval (Sum.elim x z)).toRingHom |
| 204 | apply Ideal.span_le.mpr |
| 205 | rintro p ⟨j, rfl⟩ |
| 206 | change MvPolynomial.eval (Sum.elim x z) (SplitPolynomialJacobian.equation j (F j)) = 0 |
| 207 | rw [SplitPolynomialJacobian.eval_equation, h j]) |
| 208 | |
| 209 | theorem point_jacobian (F : Fin m → Polynomial (MvPolynomial (Fin n) ℂ)) |
| 210 | (x : Fin n → ℂ) (z : Fin m → ℂ) |
| 211 | (h : ∀ j, (F j).eval₂ (MvPolynomial.eval x) (z j) = 0) : |
| 212 | point F x z h (presentation F).jacobian = |
| 213 | Matrix.det (fun j t => MvPolynomial.eval (Sum.elim x z) |
| 214 | (MvPolynomial.pderiv (Sum.inr t) (SplitPolynomialJacobian.equation j (F j)))) := by |
| 215 | rw [Algebra.PreSubmersivePresentation.jacobian_eq_jacobiMatrix_det] |
| 216 | change MvPolynomial.eval (Sum.elim x z) (presentation F).jacobiMatrix.det = _ |
| 217 | rw [RingHom.map_det] |
| 218 | rw [← Matrix.det_transpose] |
| 219 | congr 1 |
| 220 | ext j t |
| 221 | simp [presentation, Algebra.PreSubmersivePresentation.jacobiMatrix_naive] |
| 222 | |
| 223 | theorem exists_smooth_point (F : Fin m → Polynomial (MvPolynomial (Fin n) ℂ)) |
| 224 | (x : Fin n → ℂ) (z : Fin m → ℂ) |
| 225 | (hzero : ∀ j, (F j).eval₂ (MvPolynomial.eval x) (z j) = 0) |
| 226 | (hderiv : ∀ j, ((F j).map (MvPolynomial.eval x)).derivative.eval (z j) ≠ 0) : |
| 227 | Algebra.IsStandardSmooth ℂ (Localization.Away (presentation F).jacobian) ∧ |
| 228 | ∃ q : Localization.Away (presentation F).jacobian →ₐ[ℂ] ℂ, |
| 229 | q.comp (Algebra.algHom ℂ (equationRing F) _) = point F x z hzero := by |
| 230 | have hJ : point F x z hzero (presentation F).jacobian ≠ 0 := by |
| 231 | rw [point_jacobian] |
| 232 | exact SplitPolynomialJacobian.jacobian_det_ne_zero F x z hderiv |
| 233 | exact ⟨JacobianLocalization.isStandardSmooth (presentation F), |
| 234 | AlgebraicGeometry.Foundations.Scheme.LocalizationComplexPoints.Algebraic.localizePoint (point F x z hzero) (presentation F).jacobian hJ, |
| 235 | AlgebraicGeometry.Foundations.Scheme.LocalizationComplexPoints.Algebraic.localizePoint_comp _ _ _⟩ |
| 236 | |
| 237 | end Geometry.ComplexTorus.RiemannProjectivity.JacobianLocalizationAt.Constructions.SmoothEquationPoint |
| 238 | |
| 239 | namespace Geometry.ComplexTorus.RiemannProjectivity.JacobianLocalizationAt.Constructions.AlgebraicLocalization |
| 240 | |
| 241 | /-! # RiemannProjectivity: algebraicity survives localization of the coordinate algebra -/ |
| 242 | |
| 243 | variable {R A B : Type*} [CommRing R] [IsDomain R] [CommRing A] [CommRing B] |
| 244 | [Algebra R A] [Algebra R B] [Algebra A B] [IsScalarTower R A B] |
| 245 | |
| 246 | theorem isAlgebraic (M : Submonoid A) [IsLocalization M B] [Algebra.IsAlgebraic R A] : |
| 247 | Algebra.IsAlgebraic R B := by |
| 248 | constructor |
| 249 | intro b |
| 250 | obtain ⟨⟨a, m⟩, hab⟩ := IsLocalization.surj M b |
| 251 | have ha : IsAlgebraic R (algebraMap A B a) := |
| 252 | (Algebra.IsAlgebraic.isAlgebraic (R := R) a).algebraMap |
| 253 | have hm : IsAlgebraic R (algebraMap A B m.val) := |
| 254 | (Algebra.IsAlgebraic.isAlgebraic (R := R) m.val).algebraMap |
| 255 | have hmul : IsAlgebraic R (algebraMap A B m.val * b) := by |
| 256 | rw [mul_comm, hab] |
| 257 | exact ha |
| 258 | exact IsAlgebraic.of_mul (IsLocalization.map_units B m).mem_nonZeroDivisors hm hmul |
| 259 | |
| 260 | end Geometry.ComplexTorus.RiemannProjectivity.JacobianLocalizationAt.Constructions.AlgebraicLocalization |
| 261 | |
| 262 | end |
| 263 | |
| 264 | end OAI |