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.RepresentationTheory.Theta.Geometric.AutomorphySections |
| 2 | import OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion |
| 3 | |
| 4 | /-! # Automorphic Families -/ |
| 5 | |
| 6 | namespace OAI |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace RepresentationTheory.Theta.Geometric.AutomorphicFamilies.CM.Torus.AutomorphicTheta |
| 11 | |
| 12 | /-! Finite families for powers of an arbitrary actual period automorphy factor. |
| 13 | The section and separation constructions specialize the RiemannProjectivity arguments. -/ |
| 14 | |
| 15 | open OAI.Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction |
| 16 | |
| 17 | variable {Φ : Torus.Data.CM.ProjectivePeriodData} |
| 18 | |
| 19 | structure Section (J : Φ.AutomorphyFactor) (n : ℕ) where |
| 20 | toFun : Φ.space → ℂ |
| 21 | regular : ContDiff ℂ 1 toFun |
| 22 | translates : ∀ (l : Φ.periodIntegerLattice) (z : Φ.space), |
| 23 | toFun (z + l.val) = J.value l z ^ n * toFun z |
| 24 | |
| 25 | namespace Section |
| 26 | |
| 27 | variable {J : Φ.AutomorphyFactor} {n m : ℕ} |
| 28 | |
| 29 | instance : CoeFun (Section J n) (fun _ => Φ.space → ℂ) := ⟨toFun⟩ |
| 30 | |
| 31 | theorem differentiable (s : Section J n) : Differentiable ℂ s := |
| 32 | s.regular.differentiable (by norm_num) |
| 33 | |
| 34 | theorem continuous (s : Section J n) : Continuous s := s.regular.continuous |
| 35 | |
| 36 | theorem continuous_fderiv (s : Section J n) : Continuous (fderiv ℂ s) := |
| 37 | s.regular.continuous_fderiv (by norm_num) |
| 38 | |
| 39 | def one : Section J 0 where |
| 40 | toFun _ := 1 |
| 41 | regular := contDiff_const |
| 42 | translates _ _ := by simp |
| 43 | |
| 44 | def mul (s : Section J n) (t : Section J m) : Section J (n + m) where |
| 45 | toFun z := s z * t z |
| 46 | regular := s.regular.mul t.regular |
| 47 | translates l z := by rw [s.translates, t.translates, pow_add]; ring |
| 48 | |
| 49 | @[simp] |
| 50 | theorem mul_apply (s : Section J n) (t : Section J m) (z : Φ.space) : |
| 51 | s.mul t z = s z * t z := rfl |
| 52 | |
| 53 | def pow (s : Section J n) (k : ℕ) : Section J (n * k) where |
| 54 | toFun z := s z ^ k |
| 55 | regular := s.regular.pow k |
| 56 | translates l z := by rw [s.translates, mul_pow, pow_mul] |
| 57 | |
| 58 | @[simp] |
| 59 | theorem pow_apply (s : Section J n) (k : ℕ) (z : Φ.space) : s.pow k z = s z ^ k := rfl |
| 60 | |
| 61 | /-- One of the mixed cubic monomials, in the same degree as `s³`. -/ |
| 62 | def squareMul (s t : Section J n) : Section J (n * 3) where |
| 63 | toFun z := s z ^ 2 * t z |
| 64 | regular := (s.regular.pow 2).mul t.regular |
| 65 | translates l z := by |
| 66 | rw [s.translates, t.translates] |
| 67 | simp only [mul_pow, pow_mul] |
| 68 | ring |
| 69 | |
| 70 | @[simp] |
| 71 | theorem squareMul_apply (s t : Section J n) (z : Φ.space) : s.squareMul t z = s z ^ 2 * t z := rfl |
| 72 | |
| 73 | def add (s t : Section J n) : Section J n where |
| 74 | toFun z := s z + t z |
| 75 | regular := s.regular.add t.regular |
| 76 | translates l z := by rw [s.translates, t.translates, mul_add] |
| 77 | |
| 78 | def constMul (c : ℂ) (s : Section J n) : Section J n where |
| 79 | toFun z := c * s z |
| 80 | regular := contDiff_const.mul s.regular |
| 81 | translates l z := by rw [s.translates]; ring |
| 82 | |
| 83 | end Section |
| 84 | |
| 85 | structure Family (J : Φ.AutomorphyFactor) where |
| 86 | degree : ℕ |
| 87 | sections : Finset (Section J degree) |
| 88 | nonzero : ∀ p : Φ.space, ∃ s ∈ sections, s p ≠ 0 |
| 89 | |
| 90 | namespace Family |
| 91 | |
| 92 | variable {J : Φ.AutomorphyFactor} |
| 93 | |
| 94 | def trivial : Family J where |
| 95 | degree := 0 |
| 96 | sections := {Section.one} |
| 97 | nonzero _ := ⟨Section.one, Finset.mem_singleton_self _, one_ne_zero⟩ |
| 98 | |
| 99 | /-- Products of homogeneous coordinates combine two families into one. -/ |
| 100 | noncomputable def mul (F G : Family J) : Family J := by |
| 101 | classical |
| 102 | exact |
| 103 | { degree := F.degree + G.degree |
| 104 | sections := (F.sections ×ˢ G.sections).image (fun st => st.1.mul st.2) |
| 105 | nonzero := fun p => by |
| 106 | obtain ⟨s, hs, hsp⟩ := F.nonzero p |
| 107 | obtain ⟨t, ht, htp⟩ := G.nonzero p |
| 108 | exact ⟨s.mul t, Finset.mem_image.mpr ⟨(s, t), Finset.mem_product.mpr ⟨hs, ht⟩, rfl⟩, |
| 109 | mul_ne_zero hsp htp⟩ } |
| 110 | |
| 111 | theorem mul_mem (F G : Family J) (s : Section J F.degree) |
| 112 | (hs : s ∈ F.sections) (t : Section J G.degree) (ht : t ∈ G.sections) : |
| 113 | s.mul t ∈ (F.mul G).sections := by |
| 114 | classical |
| 115 | exact Finset.mem_image.mpr ⟨(s, t), Finset.mem_product.mpr ⟨hs, ht⟩, rfl⟩ |
| 116 | |
| 117 | def Separates (F : Family J) (p q : Φ.space) : Prop := |
| 118 | ∃ s ∈ F.sections, ∃ t ∈ F.sections, s p * t q ≠ s q * t p |
| 119 | |
| 120 | def Detects (F : Family J) (p v : Φ.space) : Prop := |
| 121 | ∃ s ∈ F.sections, ∃ t ∈ F.sections, s p ≠ 0 ∧ |
| 122 | s p * fderiv ℂ t p v ≠ t p * fderiv ℂ s p v |
| 123 | |
| 124 | theorem detects_mul_left (F G : Family J) (p v : Φ.space) (hF : F.Detects p v) : |
| 125 | (F.mul G).Detects p v := by |
| 126 | obtain ⟨s, hs, t, ht, hsp, hdet⟩ := hF |
| 127 | obtain ⟨g, hg, hgp⟩ := G.nonzero p |
| 128 | refine ⟨s.mul g, mul_mem F G s hs g hg, t.mul g, mul_mem F G t ht g hg, |
| 129 | mul_ne_zero hsp hgp, ?_⟩ |
| 130 | apply sub_ne_zero.mp |
| 131 | change Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.wronskian ((s : Φ.space → ℂ) * (g : Φ.space → ℂ)) ((t : Φ.space → ℂ) * (g : Φ.space → ℂ)) p v ≠ 0 |
| 132 | rw [Geometry.ComplexTorus.RiemannProjectivity.ProjectivityCriterion.Construction.wronskian_mul_right _ _ _ _ _ (s.differentiable p) (t.differentiable p) (g.differentiable p)] |
| 133 | exact mul_ne_zero (pow_ne_zero 2 hgp) (sub_ne_zero.mpr hdet) |
| 134 | |
| 135 | theorem separates_mul_left (F G : Family J) (p q : Φ.space) (hF : F.Separates p q) : |
| 136 | (F.mul G).Separates p q := by |
| 137 | obtain ⟨s, hs, t, ht, hdet⟩ := hF |
| 138 | obtain ⟨g, hg, hgp⟩ := G.nonzero p |
| 139 | by_cases hgq : g q = 0 |
| 140 | · obtain ⟨h, hh, hhq⟩ := G.nonzero q |
| 141 | obtain ⟨a, ha, hap⟩ := F.nonzero p |
| 142 | obtain ⟨b, hb, hbq⟩ := F.nonzero q |
| 143 | refine ⟨a.mul g, mul_mem F G a ha g hg, b.mul h, mul_mem F G b hb h hh, ?_⟩ |
| 144 | simp only [Section.mul_apply, hgq, mul_zero, zero_mul] |
| 145 | exact mul_ne_zero (mul_ne_zero hap hgp) (mul_ne_zero hbq hhq) |
| 146 | · refine ⟨s.mul g, mul_mem F G s hs g hg, t.mul g, mul_mem F G t ht g hg, ?_⟩ |
| 147 | apply sub_ne_zero.mp |
| 148 | have he : (s.mul g p * t.mul g q) - (s.mul g q * t.mul g p) = |
| 149 | (g p * g q) * (s p * t q - s q * t p) := by simp only [Section.mul_apply]; ring |
| 150 | rw [he] |
| 151 | exact mul_ne_zero (mul_ne_zero hgp hgq) (sub_ne_zero.mpr hdet) |
| 152 | |
| 153 | end Family |
| 154 | |
| 155 | end RepresentationTheory.Theta.Geometric.AutomorphicFamilies.CM.Torus.AutomorphicTheta |
| 156 | |
| 157 | namespace RepresentationTheory.Theta.Geometric.AutomorphicFamilies.CM.Torus.AutomorphicTheta.Family |
| 158 | |
| 159 | /-! Projective maps of actual automorphic sections, retaining every coordinate. -/ |
| 160 | |
| 161 | open OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates |
| 162 | open Filter _root_.Topology |
| 163 | |
| 164 | variable {Φ : Torus.Data.CM.ProjectivePeriodData} {J : Φ.AutomorphyFactor} |
| 165 | |
| 166 | theorem sections_nonempty (F : Family J) : F.sections.Nonempty := by |
| 167 | obtain ⟨s, hs, _⟩ := F.nonzero 0 |
| 168 | exact ⟨s, hs⟩ |
| 169 | |
| 170 | def projectiveDimension (F : Family J) : ℕ := F.sections.card - 1 |
| 171 | |
| 172 | noncomputable def indexEquiv (F : Family J) : |
| 173 | F.sections ≃ Fin (F.projectiveDimension + 1) := by |
| 174 | classical |
| 175 | apply Finset.equivFinOfCardEq |
| 176 | have h := Finset.card_pos.mpr F.sections_nonempty |
| 177 | dsimp [Family.projectiveDimension] |
| 178 | omega |
| 179 | |
| 180 | def coordinate (F : Family J) (i : Fin (F.projectiveDimension + 1)) : |
| 181 | Section J F.degree := (F.indexEquiv.symm i).val |
| 182 | |
| 183 | theorem coordinate_surjective (F : Family J) |
| 184 | (s : Section J F.degree) (hs : s ∈ F.sections) : ∃ i, F.coordinate i = s := by |
| 185 | refine ⟨F.indexEquiv ⟨s, hs⟩, ?_⟩ |
| 186 | simp [Family.coordinate] |
| 187 | |
| 188 | def vector (F : Family J) (p : Φ.space) : Fin (F.projectiveDimension + 1) → ℂ := |
| 189 | fun i => F.coordinate i p |
| 190 | |
| 191 | theorem vector_ne_zero (F : Family J) (p : Φ.space) : F.vector p ≠ 0 := by |
| 192 | obtain ⟨s, hs, hsp⟩ := F.nonzero p |
| 193 | obtain ⟨i, hi⟩ := F.coordinate_surjective s hs |
| 194 | intro he |
| 195 | have hz := congrFun he i |
| 196 | change F.coordinate i p = 0 at hz |
| 197 | rw [hi] at hz |
| 198 | exact hsp hz |
| 199 | |
| 200 | def projectiveLift (F : Family J) (p : Φ.space) : |
| 201 | Projectivization ℂ (Fin (F.projectiveDimension + 1) → ℂ) := |
| 202 | Projectivization.mk ℂ (F.vector p) (F.vector_ne_zero p) |
| 203 | |
| 204 | def projectiveMap (F : Family J) (q : Φ.periodTorus) : |
| 205 | Projectivization ℂ (Fin (F.projectiveDimension + 1) → ℂ) := |
| 206 | F.projectiveLift (Quotient.out q) |
| 207 | |
| 208 | theorem projectiveLift_translate (F : Family J) (l : Φ.periodIntegerLattice) (p : Φ.space) : |
| 209 | F.projectiveLift (p + l) = F.projectiveLift p := by |
| 210 | apply (Projectivization.mk_eq_mk_iff' ℂ _ _ _ _).mpr |
| 211 | refine ⟨J.value l p ^ F.degree, ?_⟩ |
| 212 | funext i |
| 213 | exact ((F.coordinate i).translates l p).symm |
| 214 | |
| 215 | theorem projectiveMap_lift (F : Family J) (p : Φ.space) : |
| 216 | F.projectiveMap (QuotientAddGroup.mk p) = F.projectiveLift p := by |
| 217 | have hq : (QuotientAddGroup.mk (Quotient.out (QuotientAddGroup.mk p : Φ.periodTorus)) : Φ.periodTorus) = |
| 218 | QuotientAddGroup.mk p := Quotient.out_eq _ |
| 219 | have hl : Quotient.out (QuotientAddGroup.mk p : Φ.periodTorus) - p ∈ Φ.periodIntegerLattice := |
| 220 | QuotientAddGroup.eq_iff_sub_mem.mp hq |
| 221 | let l : Φ.periodIntegerLattice := ⟨Quotient.out (QuotientAddGroup.mk p : Φ.periodTorus) - p, hl⟩ |
| 222 | have he : p + (l : Φ.space) = Quotient.out (QuotientAddGroup.mk p : Φ.periodTorus) := by dsimp [l]; abel |
| 223 | simpa only [he, Family.projectiveMap] using F.projectiveLift_translate l p |
| 224 | |
| 225 | theorem projectiveMap_continuous (F : Family J) : Continuous F.projectiveMap := by |
| 226 | apply (QuotientAddGroup.isQuotientMap_mk Φ.periodIntegerLattice.toAddSubgroup).continuous_iff.mpr |
| 227 | have hc : Continuous F.vector := continuous_pi (fun i => (F.coordinate i).continuous) |
| 228 | have h := (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCompactness.continuous_projectivization_mk' ℂ (Fin (F.projectiveDimension + 1) → ℂ)).comp |
| 229 | (hc.subtype_mk F.vector_ne_zero) |
| 230 | convert! h using 1 |
| 231 | funext p |
| 232 | exact F.projectiveMap_lift p |
| 233 | |
| 234 | theorem projectiveMap_inPatch (F : Family J) |
| 235 | (i : Fin (F.projectiveDimension + 1)) (p : Φ.space) : |
| 236 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (F.projectiveMap (QuotientAddGroup.mk p)) ↔ F.coordinate i p ≠ 0 := by |
| 237 | rw [F.projectiveMap_lift] |
| 238 | exact AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.inPatch_mk_iff i _ _ |
| 239 | |
| 240 | def chart (F : Family J) (i : Fin (F.projectiveDimension + 1)) (p : Φ.space) : |
| 241 | Fin (F.projectiveDimension + 1) → ℂ := fun j => F.coordinate j p / F.coordinate i p |
| 242 | |
| 243 | theorem projectiveMap_coordinates (F : Family J) |
| 244 | (i : Fin (F.projectiveDimension + 1)) (p : Φ.space) : |
| 245 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.coordinates i (F.projectiveMap (QuotientAddGroup.mk p)) = F.chart i p := by |
| 246 | rw [F.projectiveMap_lift] |
| 247 | rfl |
| 248 | |
| 249 | theorem chart_contDiffAt (F : Family J) |
| 250 | (i : Fin (F.projectiveDimension + 1)) (p : Φ.space) (hi : F.coordinate i p ≠ 0) : |
| 251 | ContDiffAt ℂ 1 (F.chart i) p := by |
| 252 | apply contDiffAt_pi.mpr |
| 253 | intro j |
| 254 | exact (F.coordinate j).regular.contDiffAt.div (F.coordinate i).regular.contDiffAt hi |
| 255 | |
| 256 | theorem ratio_derivative_zero {n : ℕ} (s t : Section J n) (p v : Φ.space) (hs : s p ≠ 0) |
| 257 | (hD : fderiv ℂ (fun z => t z / s z) p v = 0) : |
| 258 | s p * fderiv ℂ t p v = t p * fderiv ℂ s p v := by |
| 259 | have he : ((fun z => t z / s z) * (s : Φ.space → ℂ)) =ᶠ[nhds p] (t : Φ.space → ℂ) := by |
| 260 | filter_upwards [s.continuous.continuousAt.eventually_ne hs] with z hz |
| 261 | exact div_mul_cancel₀ _ hz |
| 262 | have hds : DifferentiableAt ℂ (fun z => t z / s z) p := |
| 263 | (t.regular.contDiffAt.div s.regular.contDiffAt hs).differentiableAt (by norm_num) |
| 264 | have he' := congrArg (fun L : Φ.space →L[ℂ] ℂ => L v) he.fderiv_eq |
| 265 | rw [fderiv_mul hds (s.differentiable p)] at he' |
| 266 | simp only [add_apply, smul_apply, smul_eq_mul, hD, mul_zero, add_zero] at he' |
| 267 | rw [← he'] |
| 268 | field_simp [hs] |
| 269 | |
| 270 | theorem chart_fderiv_component (F : Family J) |
| 271 | (i j : Fin (F.projectiveDimension + 1)) (p v : Φ.space) (hi : F.coordinate i p ≠ 0) : |
| 272 | fderiv ℂ (fun z => F.coordinate j z / F.coordinate i z) p v = |
| 273 | (fderiv ℂ (F.chart i) p v) j := by |
| 274 | have hd : DifferentiableAt ℂ (F.chart i) p := (F.chart_contDiffAt i p hi).differentiableAt (by norm_num) |
| 275 | have he := fderiv_apply hd j |
| 276 | exact congrArg (fun L : Φ.space →L[ℂ] ℂ => L v) he |
| 277 | |
| 278 | theorem chart_fderiv_injective (F : Family J) (p : Φ.space) |
| 279 | (hF : ∀ v : Φ.space, v ≠ 0 → F.Detects p v) |
| 280 | (i : Fin (F.projectiveDimension + 1)) (hi : F.coordinate i p ≠ 0) : |
| 281 | Function.Injective (fderiv ℂ (F.chart i) p) := by |
| 282 | have hker (v : Φ.space) (hv : fderiv ℂ (F.chart i) p v = 0) : v = 0 := by |
| 283 | by_contra hv0 |
| 284 | obtain ⟨s, hs, t, ht, _, hdet⟩ := hF v hv0 |
| 285 | obtain ⟨j, hj⟩ := F.coordinate_surjective s hs |
| 286 | obtain ⟨k, hk⟩ := F.coordinate_surjective t ht |
| 287 | have hzero (a : Fin (F.projectiveDimension + 1)) : |
| 288 | fderiv ℂ (fun z => F.coordinate a z / F.coordinate i z) p v = 0 := by |
| 289 | rw [F.chart_fderiv_component i a p v hi, hv] |
| 290 | rfl |
| 291 | have hsj := ratio_derivative_zero (F.coordinate i) (F.coordinate j) p v hi (hzero j) |
| 292 | have htk := ratio_derivative_zero (F.coordinate i) (F.coordinate k) p v hi (hzero k) |
| 293 | rw [hj] at hsj |
| 294 | rw [hk] at htk |
| 295 | have he : F.coordinate i p * (s p * fderiv ℂ t p v - t p * fderiv ℂ s p v) = 0 := by |
| 296 | linear_combination (s p) * htk - (t p) * hsj |
| 297 | exact hdet (sub_eq_zero.mp ((mul_eq_zero.mp he).resolve_left hi)) |
| 298 | intro u v huv |
| 299 | apply sub_eq_zero.mp |
| 300 | apply hker |
| 301 | rw [map_sub, huv, sub_self] |
| 302 | |
| 303 | theorem projectiveMap_eq_of_not_separates (F : Family J) (p q : Φ.space) : |
| 304 | F.projectiveMap (QuotientAddGroup.mk p) = F.projectiveMap (QuotientAddGroup.mk q) ↔ |
| 305 | ¬F.Separates p q := by |
| 306 | rw [F.projectiveMap_lift, F.projectiveMap_lift] |
| 307 | rw [Family.projectiveLift, Family.projectiveLift, AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveZeroLocus.projectivization_mk_eq_iff_minors_eq] |
| 308 | constructor |
| 309 | · intro h hsep |
| 310 | obtain ⟨s, hs, t, ht, hdet⟩ := hsep |
| 311 | obtain ⟨i, hi⟩ := F.coordinate_surjective s hs |
| 312 | obtain ⟨j, hj⟩ := F.coordinate_surjective t ht |
| 313 | have he := h i j |
| 314 | change F.coordinate i p * F.coordinate j q = F.coordinate j p * F.coordinate i q at he |
| 315 | rw [hi, hj] at he |
| 316 | exact hdet (by simpa only [mul_comm] using he) |
| 317 | · intro h i j |
| 318 | by_contra he |
| 319 | apply h |
| 320 | refine ⟨F.coordinate i, (F.indexEquiv.symm i).property, |
| 321 | F.coordinate j, (F.indexEquiv.symm j).property, ?_⟩ |
| 322 | change F.coordinate i p * F.coordinate j q ≠ F.coordinate j p * F.coordinate i q at he |
| 323 | simpa only [mul_comm] using he |
| 324 | |
| 325 | end RepresentationTheory.Theta.Geometric.AutomorphicFamilies.CM.Torus.AutomorphicTheta.Family |
| 326 | |
| 327 | end |
| 328 | |
| 329 | end OAI |