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.ImageChartsIn |
| 2 | import OAI.Geometry.ComplexTorus.RiemannProjectivity.RegularProjectionIs |
| 3 | import OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ConeCharts |
| 4 | |
| 5 | /-! # Cone Tangent F -/ |
| 6 | |
| 7 | namespace OAI |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace Geometry.ComplexTorus.RiemannProjectivity.ConeTangentF.Constructions.ConeTangent |
| 12 | |
| 13 | /-! |
| 14 | # RiemannProjectivity: tangent spaces of the projective cone |
| 15 | |
| 16 | In a projective affine chart, a cone point is the chart's normalized vector |
| 17 | times a nonzero scalar. The scalar direction together with the tangent of |
| 18 | the projective embedding gives an injective cone derivative. |
| 19 | -/ |
| 20 | |
| 21 | open Set |
| 22 | |
| 23 | variable {n : ℕ} |
| 24 | |
| 25 | def insertCoordinate (i : Fin (n + 1)) : |
| 26 | (ℂ × (Fin n → ℂ)) ≃L[ℂ] (Fin (n + 1) → ℂ) := |
| 27 | ({ Fin.insertNthEquiv (fun _ => ℂ) i with |
| 28 | map_add' := by |
| 29 | intro x y |
| 30 | ext j |
| 31 | refine Fin.succAboveCases i ?_ (fun l => ?_) j <;> |
| 32 | simp [Fin.insertNthEquiv] |
| 33 | map_smul' := by |
| 34 | intro c x |
| 35 | ext j |
| 36 | refine Fin.succAboveCases i ?_ (fun l => ?_) j <;> |
| 37 | simp [Fin.insertNthEquiv] } : (ℂ × (Fin n → ℂ)) ≃ₗ[ℂ] (Fin (n + 1) → ℂ)).toContinuousLinearEquiv |
| 38 | |
| 39 | @[simp] |
| 40 | theorem insertCoordinate_apply (i : Fin (n + 1)) (p : ℂ × (Fin n → ℂ)) : |
| 41 | insertCoordinate i p = i.insertNth p.1 p.2 := rfl |
| 42 | |
| 43 | variable {V : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 44 | |
| 45 | def parameterization (i : Fin (n + 1)) (r : V → Fin n → ℂ) (p : V × ℂ) : Fin (n + 1) → ℂ := |
| 46 | insertCoordinate i (p.2, p.2 • r p.1) |
| 47 | |
| 48 | omit [NormedAddCommGroup V] [NormedSpace ℂ V] in |
| 49 | theorem dehomogenize_parameterization (i : Fin (n + 1)) (r : V → Fin n → ℂ) |
| 50 | (z : V) {c : ℂ} (hc : c ≠ 0) : |
| 51 | AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ConeCharts.Constructions.Cone.dehomogenize i (parameterization i r (z, c)) = r z := by |
| 52 | ext j |
| 53 | simp only [AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ConeCharts.Constructions.Cone.dehomogenize, parameterization, insertCoordinate_apply, |
| 54 | Fin.insertNth_apply_succAbove, Fin.insertNth_apply_same, Pi.smul_apply, smul_eq_mul] |
| 55 | exact mul_div_cancel_left₀ _ hc |
| 56 | |
| 57 | theorem insertCoordinate_dehomogenize (i : Fin (n + 1)) (v : Fin (n + 1) → ℂ) |
| 58 | (hi : v i ≠ 0) : insertCoordinate i (v i, v i • AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ConeCharts.Constructions.Cone.dehomogenize i v) = v := by |
| 59 | ext j |
| 60 | refine Fin.succAboveCases i ?_ (fun l => ?_) j |
| 61 | · simp |
| 62 | · simp only [insertCoordinate_apply, Fin.insertNth_apply_succAbove, Pi.smul_apply, |
| 63 | smul_eq_mul, AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ConeCharts.Constructions.Cone.dehomogenize] |
| 64 | field_simp |
| 65 | |
| 66 | def tangentMap (i : Fin (n + 1)) (r : V → Fin n → ℂ) (z : V) : |
| 67 | (V × ℂ) →L[ℂ] (Fin (n + 1) → ℂ) := |
| 68 | (insertCoordinate i).toContinuousLinearMap.comp |
| 69 | ((ContinuousLinearMap.snd ℂ V ℂ).prod |
| 70 | ((fderiv ℂ r z).comp (ContinuousLinearMap.fst ℂ V ℂ) + |
| 71 | (ContinuousLinearMap.snd ℂ V ℂ).smulRight (r z))) |
| 72 | |
| 73 | theorem tangentMap_apply (i : Fin (n + 1)) (r : V → Fin n → ℂ) (z : V) (p : V × ℂ) : |
| 74 | tangentMap i r z p = i.insertNth p.2 (fderiv ℂ r z p.1 + p.2 • r z) := rfl |
| 75 | |
| 76 | theorem hasFDerivAt_parameterization (i : Fin (n + 1)) {r : V → Fin n → ℂ} {z : V} |
| 77 | (hr : DifferentiableAt ℂ r z) : |
| 78 | HasFDerivAt (parameterization i r) (tangentMap i r z) (z, 1) := by |
| 79 | have hfst := (hasFDerivAt_fst (𝕜 := ℂ) (p := (z, (1 : ℂ)))) |
| 80 | have hsnd := (hasFDerivAt_snd (𝕜 := ℂ) (p := (z, (1 : ℂ)))) |
| 81 | have hrp := hr.hasFDerivAt.comp (z, (1 : ℂ)) hfst |
| 82 | have hsmul := hsnd.smul hrp |
| 83 | have hpair := hsnd.prodMk hsmul |
| 84 | simpa only [parameterization, tangentMap, Prod.snd, one_smul] using! |
| 85 | (insertCoordinate i).hasFDerivAt.comp (z, (1 : ℂ)) hpair |
| 86 | |
| 87 | theorem differentiableOn_parameterization (i : Fin (n + 1)) {r : V → Fin n → ℂ} |
| 88 | {U : Set V} (hr : DifferentiableOn ℂ r U) : |
| 89 | DifferentiableOn ℂ (parameterization i r) (U ×ˢ univ) := by |
| 90 | have hsnd : DifferentiableOn ℂ (Prod.snd : V × ℂ → ℂ) (U ×ˢ univ) := |
| 91 | differentiable_snd.differentiableOn |
| 92 | have hrp : DifferentiableOn ℂ (fun p : V × ℂ => r p.1) (U ×ˢ univ) := |
| 93 | hr.comp differentiable_fst.differentiableOn (fun p hp => hp.1) |
| 94 | simpa only [parameterization, Function.comp_def] using! |
| 95 | (insertCoordinate i).differentiable.comp_differentiableOn (hsnd.prodMk (hsnd.smul hrp)) |
| 96 | |
| 97 | theorem tangentMap_injective (i : Fin (n + 1)) {r : V → Fin n → ℂ} {z : V} |
| 98 | (hr : Function.Injective (fderiv ℂ r z)) : Function.Injective (tangentMap i r z) := by |
| 99 | apply (injective_iff_map_eq_zero (tangentMap i r z)).mpr |
| 100 | intro p hp |
| 101 | have hpi : p.2 = 0 := by |
| 102 | have h := congrFun hp i |
| 103 | simpa only [tangentMap_apply, Fin.insertNth_apply_same, Pi.zero_apply] using h |
| 104 | have hfirst : fderiv ℂ r z p.1 = 0 := by |
| 105 | ext j |
| 106 | have h := congrFun hp (i.succAbove j) |
| 107 | simpa only [tangentMap_apply, Fin.insertNth_apply_succAbove, hpi, |
| 108 | zero_smul, add_zero, Pi.zero_apply] using h |
| 109 | exact Prod.ext ((map_eq_zero_iff _ hr).mp hfirst) hpi |
| 110 | |
| 111 | omit [NormedAddCommGroup V] [NormedSpace ℂ V] in |
| 112 | theorem parameterization_mem_cone (i : Fin (n + 1)) |
| 113 | (g : V → Projectivization ℂ (Fin (n + 1) → ℂ)) (z : V) |
| 114 | (hz : g z ∈ (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i).source) (c : ℂ) : |
| 115 | parameterization i (fun w => AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i (g w)) (z, c) ∈ |
| 116 | AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProjectiveCone.Constructions.Cone.projectiveCone (range g) := by |
| 117 | by_cases hc : c = 0 |
| 118 | · subst c |
| 119 | have heq : parameterization i (fun w => AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i (g w)) (z, 0) = 0 := by |
| 120 | change insertCoordinate i (0, (0 : ℂ) • AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i (g z)) = 0 |
| 121 | simpa only [zero_smul] using! (insertCoordinate i).map_zero |
| 122 | rw [heq] |
| 123 | exact AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProjectiveCone.Constructions.Cone.zero_mem_projectiveCone _ |
| 124 | · let v := parameterization i (fun w => AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i (g w)) (z, c) |
| 125 | have hvi : v i ≠ 0 := by simpa only [v, parameterization, insertCoordinate_apply, |
| 126 | Fin.insertNth_apply_same] using hc |
| 127 | apply (AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ConeCharts.Constructions.Cone.mem_projectiveCone_iff_dehomogenize (range g) i v hvi).mpr |
| 128 | have hde : AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ConeCharts.Constructions.Cone.dehomogenize i v = AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i (g z) := by |
| 129 | ext j |
| 130 | simp only [AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ConeCharts.Constructions.Cone.dehomogenize, v, parameterization, insertCoordinate_apply, |
| 131 | Fin.insertNth_apply_succAbove, Fin.insertNth_apply_same, Pi.smul_apply, smul_eq_mul] |
| 132 | exact mul_div_cancel_left₀ _ hc |
| 133 | rw [hde, (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i).left_inv hz] |
| 134 | exact mem_range_self z |
| 135 | |
| 136 | end Geometry.ComplexTorus.RiemannProjectivity.ConeTangentF.Constructions.ConeTangent |
| 137 | |
| 138 | namespace Geometry.ComplexTorus.RiemannProjectivity.ConeTangentF.Constructions.ConeLocalTopology |
| 139 | |
| 140 | /-! |
| 141 | # RiemannProjectivity: local openness of the cone parametrization |
| 142 | |
| 143 | An open quotient parametrization of a projectively embedded space remains |
| 144 | locally open after adjoining the nonzero scalar coordinate of its cone. |
| 145 | This ensures that inverse-function coordinates describe the entire cone |
| 146 | near a point, not just one parametrized subset. |
| 147 | -/ |
| 148 | |
| 149 | open Set Filter |
| 150 | open scoped _root_.Topology |
| 151 | |
| 152 | open OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ConeCharts.Constructions.Cone OAI.Geometry.ComplexTorus.RiemannProjectivity.ConeTangentF.Constructions.ConeTangent |
| 153 | |
| 154 | variable {V T : Type*} [TopologicalSpace V] [TopologicalSpace T] {n : ℕ} |
| 155 | |
| 156 | /-- Every sufficiently nearby cone point has a parameter lift near the |
| 157 | given parameter, provided its scalar coordinate is nonzero. -/ |
| 158 | theorem parameter_image_mem_nhds (p : V → T) (hp : IsOpenMap p) |
| 159 | (f : T → Projectivization ℂ (Fin (n + 1) → ℂ)) (hf : Topology.IsEmbedding f) |
| 160 | (i : Fin (n + 1)) (z : V) (c : ℂ) (hc : c ≠ 0) |
| 161 | (hi : f (p z) ∈ (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i).source) |
| 162 | (v₀ : AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProjectiveCone.Constructions.Cone.projectiveCone (range f)) |
| 163 | (hv₀ : v₀.val = ConeTangent.parameterization i (fun w => AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i (f (p w))) (z, c)) |
| 164 | {D : Set (V × ℂ)} (hD : D ∈ 𝓝 (z, c)) : |
| 165 | {v : AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProjectiveCone.Constructions.Cone.projectiveCone (range f) | ∃ w ∈ D, |
| 166 | ConeTangent.parameterization i (fun u => AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i (f (p u))) w = v.val} ∈ 𝓝 v₀ := by |
| 167 | obtain ⟨A, B, hA, hzA, hB, hcB, hAB⟩ := mem_nhds_prod_iff'.mp hD |
| 168 | obtain ⟨O, hO, hpre⟩ := hf.isInducing.isOpen_iff.mp (hp A hA) |
| 169 | have hfpO : f (p z) ∈ O := by |
| 170 | change p z ∈ f ⁻¹' O |
| 171 | rw [hpre] |
| 172 | exact ⟨z, hzA, rfl⟩ |
| 173 | have hv₀i : v₀.val i = c := by |
| 174 | rw [hv₀] |
| 175 | simp only [ConeTangent.parameterization, ConeTangent.insertCoordinate_apply, Fin.insertNth_apply_same] |
| 176 | have hv₀ne : v₀.val i ≠ 0 := by rwa [hv₀i] |
| 177 | let J : AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProjectiveCone.Constructions.Cone.projectiveCone (range f) → Projectivization ℂ (Fin (n + 1) → ℂ) := |
| 178 | fun v => (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i).symm (AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ConeCharts.Constructions.Cone.dehomogenize i v.val) |
| 179 | have hJ₀ : J v₀ = f (p z) := by |
| 180 | change (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i).symm (AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ConeCharts.Constructions.Cone.dehomogenize i v₀.val) = f (p z) |
| 181 | rw [hv₀, ConeTangent.dehomogenize_parameterization i _ z hc, (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i).left_inv hi] |
| 182 | have hpatch : IsOpen {v : Fin (n + 1) → ℂ | v i ≠ 0} := |
| 183 | isOpen_ne_fun (continuous_apply i) continuous_const |
| 184 | have hde : ContinuousAt (AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ConeCharts.Constructions.Cone.dehomogenize i) v₀.val := |
| 185 | ((AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ConeCharts.Constructions.Cone.differentiableOn_dehomogenize i _ hv₀ne).differentiableAt |
| 186 | (hpatch.mem_nhds hv₀ne)).continuousAt |
| 187 | have hinv : Continuous (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i).symm := by |
| 188 | apply continuousOn_univ.mp |
| 189 | simpa only [AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart_target] using (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i).continuousOn_symm |
| 190 | have hJ : ContinuousAt J v₀ := |
| 191 | hinv.continuousAt.comp (hde.comp continuous_subtype_val.continuousAt) |
| 192 | have hcoord : Continuous (fun v : AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProjectiveCone.Constructions.Cone.projectiveCone (range f) => v.val i) := |
| 193 | (continuous_apply i).comp continuous_subtype_val |
| 194 | have hnearO : ∀ᶠ v in 𝓝 v₀, J v ∈ O := |
| 195 | hJ (hO.mem_nhds (hJ₀ ▸ hfpO)) |
| 196 | have hnearB : ∀ᶠ v : AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProjectiveCone.Constructions.Cone.projectiveCone (range f) in 𝓝 v₀, v.val i ∈ B := |
| 197 | hcoord.continuousAt (hB.mem_nhds (hv₀i ▸ hcB)) |
| 198 | have hnear0 : ∀ᶠ v : AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ProjectiveCone.Constructions.Cone.projectiveCone (range f) in 𝓝 v₀, v.val i ≠ 0 := |
| 199 | (isOpen_ne_fun hcoord continuous_const).mem_nhds hv₀ne |
| 200 | filter_upwards [hnearO, hnearB, hnear0] with v hvO hvB hvi |
| 201 | obtain ⟨t, ht⟩ := (AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ConeCharts.Constructions.Cone.mem_projectiveCone_iff_dehomogenize (range f) i v.val hvi).mp v.property |
| 202 | have htA : t ∈ p '' A := by |
| 203 | rw [← hpre] |
| 204 | change f t ∈ O |
| 205 | rw [ht] |
| 206 | exact hvO |
| 207 | obtain ⟨w, hwA, hwt⟩ := htA |
| 208 | refine ⟨(w, v.val i), hAB ⟨hwA, hvB⟩, ?_⟩ |
| 209 | have hratio : AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i (f (p w)) = AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.ConeCharts.Constructions.Cone.dehomogenize i v.val := by |
| 210 | rw [hwt, ht] |
| 211 | exact (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i).right_inv (by rw [AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart_target]; trivial) |
| 212 | change ConeTangent.insertCoordinate i (v.val i, v.val i • AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i (f (p w))) = v.val |
| 213 | rw [hratio] |
| 214 | exact ConeTangent.insertCoordinate_dehomogenize i v.val hvi |
| 215 | |
| 216 | end Geometry.ComplexTorus.RiemannProjectivity.ConeTangentF.Constructions.ConeLocalTopology |
| 217 | |
| 218 | end |
| 219 | |
| 220 | end OAI |