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.HolomorphicRegularityAt |
| 2 | import OAI.Geometry.ComplexTorus.RiemannProjectivity.Fin |
| 3 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.ImmersionNormalForm |
| 4 | |
| 5 | /-! # Image Charts In -/ |
| 6 | |
| 7 | namespace OAI.Geometry.ComplexTorus.RiemannProjectivity.ImageChartsIn.Constructions.ImageCharts |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # RiemannProjectivity: local holomorphic equations for the projective period embedding |
| 13 | |
| 14 | Complex differentiability now supplies C¹ regularity. Adjoining complementary |
| 15 | linear directions and applying the genuine inverse-function theorem gives |
| 16 | holomorphic coordinates whose normal coordinates cut out the local image. |
| 17 | -/ |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped _root_.Topology ContDiff |
| 21 | |
| 22 | open OAI.AlgebraicGeometry.ComplexPoints.Analytic.ImmersionNormalForm OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates |
| 23 | |
| 24 | variable {V W : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 25 | [NormedAddCommGroup W] [NormedSpace ℂ W] |
| 26 | [FiniteDimensional ℂ V] [FiniteDimensional ℂ W] |
| 27 | |
| 28 | /-- Holomorphic normal coordinates with the actual local image as their zero slice. -/ |
| 29 | def HasHolomorphicNormalChart (f : V → W) (x : V) : Prop := |
| 30 | ∃ (C : Submodule ℂ W) (q : OpenPartialHomeomorph (V × C) W), |
| 31 | (x, 0) ∈ q.source ∧ |
| 32 | (∀ y, q (y, 0) = f y) ∧ |
| 33 | DifferentiableOn ℂ q.symm q.target ∧ |
| 34 | ∀ y ∈ q.target, (q.symm y).2 = 0 ↔ |
| 35 | ∃ z, (z, 0) ∈ q.source ∧ f z = y |
| 36 | |
| 37 | theorem hasHolomorphicNormalChart_of_injective_fderiv |
| 38 | (f : V → W) (x : V) {U : Set V} (hU : IsOpen U) (hx : x ∈ U) |
| 39 | (hf : DifferentiableOn ℂ f U) (hi : Function.Injective (fderiv ℂ f x)) : |
| 40 | HasHolomorphicNormalChart f x := by |
| 41 | let : CompleteSpace W := FiniteDimensional.complete ℂ W |
| 42 | have hf1 := HolomorphicRegularityAt.Constructions.HolomorphicRegularity.contDiffAt_one_of_differentiableOn hU hf hx |
| 43 | obtain ⟨C, e, he⟩ := AlgebraicGeometry.ComplexPoints.Analytic.LinearImmersionComplement.exists_linearImmersionComplement (fderiv ℂ f x) hi |
| 44 | let : CompleteSpace (V × C) := FiniteDimensional.complete ℂ (V × C) |
| 45 | have hd := AlgebraicGeometry.ComplexPoints.Analytic.ImmersionNormalForm.hasFDerivAt_immersionExtension f C (fderiv ℂ f x) x |
| 46 | ((hf x hx).differentiableAt (hU.mem_nhds hx)).hasFDerivAt |
| 47 | have heq : (fderiv ℂ f x).comp (ContinuousLinearMap.fst ℂ V C) + |
| 48 | C.subtypeL.comp (ContinuousLinearMap.snd ℂ V C) = e.toContinuousLinearMap := by |
| 49 | apply ContinuousLinearMap.ext |
| 50 | intro z |
| 51 | exact (he z).symm |
| 52 | rw [heq] at hd |
| 53 | have hg := AlgebraicGeometry.ComplexPoints.Analytic.ImmersionNormalForm.contDiffAt_immersionExtension f C x hf1 |
| 54 | let q₀ := hg.toOpenPartialHomeomorph (AlgebraicGeometry.ComplexPoints.Analytic.ImmersionNormalForm.immersionExtension f C) hd (by norm_num) |
| 55 | have hx₀ : (x, (0 : C)) ∈ q₀.source := |
| 56 | hg.mem_toOpenPartialHomeomorph_source hd (by norm_num) |
| 57 | have hi₀ : ContDiffAt ℂ 1 q₀.symm (q₀ (x, 0)) := hg.to_localInverse hd (by norm_num) |
| 58 | let q := q₀.restrContDiff ℂ 1 (by norm_num) |
| 59 | have hxq : (x, (0 : C)) ∈ q.source := ⟨hx₀, hg, hi₀⟩ |
| 60 | have hzero : ∀ y, q (y, 0) = f y := by |
| 61 | intro y |
| 62 | change f y + ((0 : C) : W) = f y |
| 63 | simp |
| 64 | have hqi : DifferentiableOn ℂ q.symm q.target := |
| 65 | (q₀.contDiffOn_restrContDiff_target ℂ (by norm_num : (1 : ℕ∞ω) ≠ ∞)).differentiableOn |
| 66 | (by norm_num) |
| 67 | refine ⟨C, q, hxq, hzero, hqi, ?_⟩ |
| 68 | intro y hy |
| 69 | constructor |
| 70 | · intro hz |
| 71 | have hp : ((q.symm y).1, (0 : C)) = q.symm y := Prod.ext rfl hz.symm |
| 72 | refine ⟨(q.symm y).1, hp ▸ q.map_target hy, ?_⟩ |
| 73 | rw [← hzero, hp, q.right_inv hy] |
| 74 | · rintro ⟨z, hz, hzy⟩ |
| 75 | rw [← hzy, ← hzero z, q.left_inv hz] |
| 76 | |
| 77 | omit [FiniteDimensional ℂ V] in |
| 78 | /-- Each normal chart gives actual finitely many complex-valued holomorphic equations. -/ |
| 79 | theorem local_equations_of_normal_chart {f : V → W} {x : V} |
| 80 | (h : HasHolomorphicNormalChart f x) : |
| 81 | ∃ (k : ℕ) (O : Set W) (g : W → (Fin k → ℂ)) (D : Set V), |
| 82 | IsOpen O ∧ f x ∈ O ∧ IsOpen D ∧ x ∈ D ∧ |
| 83 | DifferentiableOn ℂ g O ∧ ∀ y ∈ O, g y = 0 ↔ ∃ z ∈ D, f z = y := by |
| 84 | obtain ⟨C, q, hx, hzero, hqi, heq⟩ := h |
| 85 | let k := Module.finrank ℂ C |
| 86 | let e : C ≃L[ℂ] (Fin k → ℂ) := |
| 87 | ContinuousLinearEquiv.ofFinrankEq (Module.finrank_fin_fun ℂ).symm |
| 88 | let g : W → (Fin k → ℂ) := fun y => e (q.symm y).2 |
| 89 | let D : Set V := (fun z : V => (z, (0 : C))) ⁻¹' q.source |
| 90 | have hD : IsOpen D := q.open_source.preimage (continuous_id.prodMk continuous_const) |
| 91 | refine ⟨k, q.target, g, D, q.open_target, ?_, hD, hx, ?_, ?_⟩ |
| 92 | · rw [← hzero x] |
| 93 | exact q.map_source hx |
| 94 | · exact e.differentiable.comp_differentiableOn (differentiable_snd.comp_differentiableOn hqi) |
| 95 | · intro y hy |
| 96 | change e (q.symm y).2 = 0 ↔ _ |
| 97 | rw [map_eq_zero_iff _ e.injective] |
| 98 | exact heq y hy |
| 99 | |
| 100 | omit [FiniteDimensional ℂ V] in |
| 101 | /-- Normal coordinates may be confined to any prescribed open parameter neighborhood. -/ |
| 102 | theorem local_equations_in_neighborhood {f : V → W} {x : V} |
| 103 | (h : HasHolomorphicNormalChart f x) {U : Set V} (hU : IsOpen U) (hxU : x ∈ U) : |
| 104 | ∃ (k : ℕ) (O : Set W) (g : W → (Fin k → ℂ)) (D : Set V), |
| 105 | IsOpen O ∧ f x ∈ O ∧ IsOpen D ∧ x ∈ D ∧ D ⊆ U ∧ |
| 106 | DifferentiableOn ℂ g O ∧ ∀ y ∈ O, g y = 0 ↔ ∃ z ∈ D, f z = y := by |
| 107 | obtain ⟨C, q, hx, hzero, hqi, _⟩ := h |
| 108 | let q' := q.restrOpen (Prod.fst ⁻¹' U) (hU.preimage continuous_fst) |
| 109 | have hx' : (x, (0 : C)) ∈ q'.source := ⟨hx, hxU⟩ |
| 110 | let k := Module.finrank ℂ C |
| 111 | let e : C ≃L[ℂ] (Fin k → ℂ) := |
| 112 | ContinuousLinearEquiv.ofFinrankEq (Module.finrank_fin_fun ℂ).symm |
| 113 | let g : W → (Fin k → ℂ) := fun y => e (q'.symm y).2 |
| 114 | let D : Set V := (fun z : V => (z, (0 : C))) ⁻¹' q'.source |
| 115 | have hD : IsOpen D := q'.open_source.preimage (continuous_id.prodMk continuous_const) |
| 116 | have hz' : ∀ z, q' (z, 0) = f z := hzero |
| 117 | refine ⟨k, q'.target, g, D, q'.open_target, ?_, hD, hx', fun z hz => hz.2, ?_, ?_⟩ |
| 118 | · rw [← hz' x] |
| 119 | exact q'.map_source hx' |
| 120 | · exact e.differentiable.comp_differentiableOn |
| 121 | (differentiable_snd.comp_differentiableOn (hqi.mono (fun y hy => hy.1))) |
| 122 | · intro y hy |
| 123 | change e (q'.symm y).2 = 0 ↔ _ |
| 124 | rw [map_eq_zero_iff _ e.injective] |
| 125 | constructor |
| 126 | · intro hz |
| 127 | have hp : ((q'.symm y).1, (0 : C)) = q'.symm y := Prod.ext rfl hz.symm |
| 128 | refine ⟨(q'.symm y).1, hp ▸ q'.map_target hy, ?_⟩ |
| 129 | rw [← hz', hp, q'.right_inv hy] |
| 130 | · rintro ⟨z, hz, hzy⟩ |
| 131 | rw [← hzy, ← hz' z, q'.left_inv hz] |
| 132 | |
| 133 | omit [FiniteDimensional ℂ V] in |
| 134 | /-- An open quotient parametrization and an actual embedding turn the local |
| 135 | parameter equations into equations for the full image in an affine chart. -/ |
| 136 | theorem local_equations_for_embedded_image |
| 137 | {T P : Type*} [TopologicalSpace T] [TopologicalSpace P] |
| 138 | (p : V → T) (hp : Continuous p) (hpo : IsOpenMap p) |
| 139 | (f : T → P) (hf : Topology.IsEmbedding f) |
| 140 | (e : OpenPartialHomeomorph P W) (he : e.target = univ) |
| 141 | (x : V) (hx : f (p x) ∈ e.source) |
| 142 | (hn : HasHolomorphicNormalChart (fun z => e (f (p z))) x) : |
| 143 | ∃ (k : ℕ) (O : Set W) (g : W → (Fin k → ℂ)), |
| 144 | IsOpen O ∧ e (f (p x)) ∈ O ∧ DifferentiableOn ℂ g O ∧ |
| 145 | ∀ y ∈ O, g y = 0 ↔ e.symm y ∈ range f := by |
| 146 | let U : Set V := (f ∘ p) ⁻¹' e.source |
| 147 | have hU : IsOpen U := e.open_source.preimage (hf.continuous.comp hp) |
| 148 | obtain ⟨k, O, g, D, hO, hxO, hD, hxD, hDU, hg, hgeq⟩ := |
| 149 | local_equations_in_neighborhood hn hU hx |
| 150 | obtain ⟨B, hB, hpre⟩ := hf.isInducing.isOpen_iff.mp (hpo D hD) |
| 151 | have hxi : f (p x) ∈ B := by |
| 152 | change p x ∈ f ⁻¹' B |
| 153 | rw [hpre] |
| 154 | exact ⟨x, hxD, rfl⟩ |
| 155 | have hei : Continuous e.symm := by |
| 156 | apply continuousOn_univ.mp |
| 157 | simpa only [he] using e.continuousOn_symm |
| 158 | refine ⟨k, O ∩ e.symm ⁻¹' B, g, hO.inter (hB.preimage hei), |
| 159 | ⟨hxO, by simpa only [mem_preimage, e.left_inv hx] using hxi⟩, |
| 160 | hg.mono inter_subset_left, ?_⟩ |
| 161 | intro y hy |
| 162 | rw [hgeq y hy.1] |
| 163 | constructor |
| 164 | · rintro ⟨z, hz, hzy⟩ |
| 165 | refine ⟨p z, ?_⟩ |
| 166 | rw [← hzy] |
| 167 | exact (e.left_inv (hDU hz)).symm |
| 168 | · rintro ⟨t, ht⟩ |
| 169 | have htD : t ∈ p '' D := by |
| 170 | rw [← hpre] |
| 171 | change f t ∈ B |
| 172 | rw [ht] |
| 173 | exact hy.2 |
| 174 | obtain ⟨z, hz, hzt⟩ := htD |
| 175 | refine ⟨z, hz, ?_⟩ |
| 176 | rw [hzt, ht, e.right_inv (by rw [he]; trivial)] |
| 177 | |
| 178 | variable {E : Type} [Field E] [NumberField E] [Algebra ℚ E] |
| 179 | [NumberField.IsCMField E] |
| 180 | |
| 181 | /-- The projective embedding of the CM torus has holomorphic local normal |
| 182 | charts in every standard affine patch, using only the named RiemannProjectivity input. -/ |
| 183 | theorem projective_period_torus_normal_charts |
| 184 | (hRiemannProjectivity : RiemannProjectivity.Fin.Constructions.RiemannProjectivityInput) (Φ : AlgebraicGeometry.ComplexMultiplication.CM.TypeHodgeStructure.CMEmbeddingType E) : |
| 185 | ∃ (n : ℕ) (f : Φ.periodTorus → Projectivization ℂ (Fin (n + 1) → ℂ)), |
| 186 | Topology.IsClosedEmbedding f ∧ |
| 187 | ∀ (z : AlgebraicGeometry.ComplexMultiplication.CM.PeriodSpace.CMPeriodSpace E) (i : Fin (n + 1)), |
| 188 | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (f (QuotientAddGroup.mk z)) → |
| 189 | HasHolomorphicNormalChart |
| 190 | (fun w => AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i (f (QuotientAddGroup.mk w))) z := by |
| 191 | obtain ⟨n, f, hf, hd⟩ := RiemannProjectivity.Fin.Constructions.projective_period_torus_all_charts hRiemannProjectivity Φ |
| 192 | refine ⟨n, f, hf, ?_⟩ |
| 193 | intro z i hi |
| 194 | let U : Set (AlgebraicGeometry.ComplexMultiplication.CM.PeriodSpace.CMPeriodSpace E) := {w | AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (f (QuotientAddGroup.mk w))} |
| 195 | have hU : IsOpen U := (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.isOpen_projectivePatch i).preimage |
| 196 | (hf.continuous.comp QuotientAddGroup.continuous_mk) |
| 197 | exact hasHolomorphicNormalChart_of_injective_fderiv _ z hU hi |
| 198 | (fun w hw => (hd w i hw).1.differentiableWithinAt) (hd z i hi).2 |
| 199 | |
| 200 | /-- The full projective image has finite local holomorphic equations in |
| 201 | every standard affine chart at every image point. -/ |
| 202 | theorem projective_period_torus_image_equations |
| 203 | (hRiemannProjectivity : RiemannProjectivity.Fin.Constructions.RiemannProjectivityInput) (Φ : AlgebraicGeometry.ComplexMultiplication.CM.TypeHodgeStructure.CMEmbeddingType E) : |
| 204 | ∃ (n : ℕ) (f : Φ.periodTorus → Projectivization ℂ (Fin (n + 1) → ℂ)), |
| 205 | Topology.IsClosedEmbedding f ∧ |
| 206 | ∀ (t : Φ.periodTorus) (i : Fin (n + 1)), AlgebraicGeometry.Foundations.Scheme.ProjectiveCoordinatesIn.Algebraic.ProjectiveCoordinates.InPatch i (f t) → |
| 207 | ∃ (k : ℕ) (O : Set (Fin n → ℂ)) (g : (Fin n → ℂ) → (Fin k → ℂ)), |
| 208 | IsOpen O ∧ AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i (f t) ∈ O ∧ DifferentiableOn ℂ g O ∧ |
| 209 | ∀ y ∈ O, g y = 0 ↔ (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i).symm y ∈ range f := by |
| 210 | obtain ⟨n, f, hf, hn⟩ := projective_period_torus_normal_charts hRiemannProjectivity Φ |
| 211 | refine ⟨n, f, hf, ?_⟩ |
| 212 | intro t i hi |
| 213 | obtain ⟨z, rfl⟩ := QuotientAddGroup.mk_surjective t |
| 214 | exact local_equations_for_embedded_image |
| 215 | (QuotientAddGroup.mk : AlgebraicGeometry.ComplexMultiplication.CM.PeriodSpace.CMPeriodSpace E → Φ.periodTorus) |
| 216 | QuotientAddGroup.continuous_mk QuotientAddGroup.isOpenMap_coe f hf.isEmbedding |
| 217 | (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart i) (AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveCharts.projectiveFinChart_target i) z hi (hn z i hi) |
| 218 | |
| 219 | end |
| 220 | |
| 221 | end OAI.Geometry.ComplexTorus.RiemannProjectivity.ImageChartsIn.Constructions.ImageCharts |