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.GlobalEquation |
| 2 | import Mathlib.Algebra.Module.Submodule.Union |
| 3 | import OAI.Geometry.ComplexTorus.RiemannProjectivity.AnalyticCone |
| 4 | |
| 5 | /-! # Separating Linear Coordinates -/ |
| 6 | |
| 7 | namespace OAI |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | namespace Geometry.ComplexTorus.RiemannProjectivity.SeparatingLinearCoordinates.Constructions.LinearSeparation |
| 12 | |
| 13 | /-! # RiemannProjectivity: a linear coordinate separates a point from a finite projection fiber -/ |
| 14 | |
| 15 | open Set |
| 16 | |
| 17 | variable {V W : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] |
| 18 | [NormedAddCommGroup W] [NormedSpace ℂ W] |
| 19 | |
| 20 | theorem surjective_prod (L : V →L[ℂ] W) (hL : Function.Surjective L) (l : V →L[ℂ] ℂ) |
| 21 | {v : V} (hv : L v = 0) (hlv : l v ≠ 0) : Function.Surjective (L.prod l) := by |
| 22 | rintro ⟨x, z⟩ |
| 23 | obtain ⟨w, hw⟩ := hL x |
| 24 | refine ⟨w + ((z - l w) / l v) • v, Prod.ext ?_ ?_⟩ |
| 25 | · change L (w + ((z - l w) / l v) • v) = x |
| 26 | simp only [map_add, map_smul, hv, smul_zero, add_zero, hw] |
| 27 | · change l (w + ((z - l w) / l v) • v) = z |
| 28 | simp only [map_add, map_smul, smul_eq_mul, div_mul_cancel₀ _ hlv] |
| 29 | ring |
| 30 | |
| 31 | variable [FiniteDimensional ℂ V] |
| 32 | |
| 33 | theorem exists_coordinate (L : V →L[ℂ] W) {S : Set V} |
| 34 | (hsurj : Function.Surjective (fun v : S => L v)) |
| 35 | (hfinite : ∀ y, {w : V | w ∈ S ∧ L w = y}.Finite) |
| 36 | {v : V} (hv : v ∉ S) : |
| 37 | ∃ l : V →L[ℂ] ℂ, Function.Surjective (L.prod l) ∧ |
| 38 | ∀ w ∈ S, L w = L v → l w ≠ l v := by |
| 39 | classical |
| 40 | let K := {w : V | w ∈ S ∧ L w = L v} |
| 41 | let : Fintype K := (hfinite (L v)).fintype |
| 42 | have hn (w : K) : v - w.val ≠ 0 := by |
| 43 | intro h |
| 44 | exact hv ((sub_eq_zero.mp h) ▸ w.property.1) |
| 45 | obtain ⟨l₀, hl⟩ := Module.exists_dual_forall_apply_ne_zero (K := ℂ) |
| 46 | (fun w : K => v - w.val) hn |
| 47 | let l : V →L[ℂ] ℂ := l₀.toContinuousLinearMap |
| 48 | have hsep : ∀ w ∈ S, L w = L v → l w ≠ l v := by |
| 49 | intro w hw hLw heq |
| 50 | have h := hl ⟨w, hw, hLw⟩ |
| 51 | change l (v - w) ≠ 0 at h |
| 52 | apply h |
| 53 | rw [map_sub, heq, sub_self] |
| 54 | obtain ⟨w, hw⟩ := hsurj (L v) |
| 55 | change L w.val = L v at hw |
| 56 | have hL : Function.Surjective L := fun y => by |
| 57 | obtain ⟨u, hu⟩ := hsurj y |
| 58 | exact ⟨u, hu⟩ |
| 59 | refine ⟨l, surjective_prod L hL l (v := v - w.val) ?_ (hl ⟨w, w.property, hw⟩), hsep⟩ |
| 60 | rw [map_sub, hw, sub_self] |
| 61 | |
| 62 | end Geometry.ComplexTorus.RiemannProjectivity.SeparatingLinearCoordinates.Constructions.LinearSeparation |
| 63 | |
| 64 | namespace Geometry.ComplexTorus.RiemannProjectivity.SeparatingLinearCoordinates.Constructions.SeparatingCoordinates |
| 65 | |
| 66 | /-! # RiemannProjectivity: linear coordinates nonzero on every vector in a finite list -/ |
| 67 | |
| 68 | open Set _root_.Module |
| 69 | |
| 70 | section Algebraic |
| 71 | |
| 72 | variable {V ι : Type*} [AddCommGroup V] [Module ℂ V] [Finite ι] |
| 73 | |
| 74 | theorem span_good_duals (v : ι → V) (hv : ∀ i, v i ≠ 0) : |
| 75 | Submodule.span ℂ {l : Module.Dual ℂ V | ∀ i, l (v i) ≠ 0} = ⊤ := by |
| 76 | classical |
| 77 | let G := {l : Module.Dual ℂ V | ∀ i, l (v i) ≠ 0} |
| 78 | by_contra hG |
| 79 | let P : Option ι → Submodule ℂ (Module.Dual ℂ V) |
| 80 | | none => Submodule.span ℂ G |
| 81 | | some i => LinearMap.ker (Module.Dual.eval ℂ V (v i)) |
| 82 | have hP : ∀ i, P i ≠ ⊤ := by |
| 83 | rintro (_ | i) |
| 84 | · exact hG |
| 85 | · obtain ⟨l, hl⟩ := Module.Projective.exists_dual_ne_zero ℂ (hv i) |
| 86 | intro htop |
| 87 | have hmem : l ∈ P (some i) := htop ▸ Submodule.mem_top |
| 88 | exact hl hmem |
| 89 | obtain ⟨l, hl⟩ := Submodule.exists_forall_notMem_of_forall_ne_top P hP |
| 90 | have hlG : l ∈ G := fun i => hl (some i) |
| 91 | exact hl none (Submodule.subset_span hlG) |
| 92 | |
| 93 | end Algebraic |
| 94 | |
| 95 | variable {V ι : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] [FiniteDimensional ℂ V] [Finite ι] |
| 96 | |
| 97 | theorem exists_coordinates (v : ι → V) (hv : ∀ i, v i ≠ 0) : |
| 98 | ∃ (m : ℕ) (e : V ≃L[ℂ] (Fin m → ℂ)), ∀ i j, e (v i) j ≠ 0 := by |
| 99 | classical |
| 100 | let G := {l : Module.Dual ℂ V | ∀ i, l (v i) ≠ 0} |
| 101 | have hspan : ⊤ ≤ Submodule.span ℂ G := (span_good_duals v hv).ge |
| 102 | let b₀ := Module.Basis.ofSpan hspan |
| 103 | let m := finrank ℂ (Module.Dual ℂ V) |
| 104 | let b : Module.Basis (Fin m) ℂ (Module.Dual ℂ V) := |
| 105 | b₀.reindex (b₀.indexEquiv (Module.finBasis ℂ (Module.Dual ℂ V))) |
| 106 | have hb (j : Fin m) : b j ∈ G := by |
| 107 | apply Module.Basis.ofSpan_subset hspan |
| 108 | exact ⟨(b₀.indexEquiv (Module.finBasis ℂ (Module.Dual ℂ V))).symm j, by simp [b, b₀]⟩ |
| 109 | let M : V →ₗ[ℂ] (Fin m → ℂ) := LinearMap.pi (fun j => b j) |
| 110 | have hMi : Function.Injective M := by |
| 111 | apply (injective_iff_map_eq_zero M).mpr |
| 112 | intro w hw |
| 113 | apply (Module.forall_dual_apply_eq_zero_iff ℂ w).mp |
| 114 | have he : Module.Dual.eval ℂ V w = 0 := b.ext (fun j => congrFun hw j) |
| 115 | intro l |
| 116 | exact DFunLike.congr_fun he l |
| 117 | have hdim : finrank ℂ V = finrank ℂ (Fin m → ℂ) := by simp [m] |
| 118 | have hMs : Function.Surjective M := |
| 119 | (LinearMap.injective_iff_surjective_of_finrank_eq_finrank hdim).mp hMi |
| 120 | let e : V ≃L[ℂ] (Fin m → ℂ) := ContinuousLinearEquiv.ofBijective M.toContinuousLinearMap |
| 121 | (LinearMap.ker_eq_bot.mpr hMi) (LinearMap.range_eq_top.mpr hMs) |
| 122 | exact ⟨m, e, fun i j => hb j i⟩ |
| 123 | |
| 124 | end Geometry.ComplexTorus.RiemannProjectivity.SeparatingLinearCoordinates.Constructions.SeparatingCoordinates |
| 125 | |
| 126 | namespace Geometry.ComplexTorus.RiemannProjectivity.SeparatingLinearCoordinates.Constructions.SeparatingFiberCoordinates |
| 127 | |
| 128 | /-! # RiemannProjectivity: complementary projection coordinates separating every other fiber point -/ |
| 129 | |
| 130 | open Set |
| 131 | |
| 132 | variable {V W : Type*} [NormedAddCommGroup V] [NormedSpace ℂ V] [FiniteDimensional ℂ V] |
| 133 | [NormedAddCommGroup W] [NormedSpace ℂ W] [FiniteDimensional ℂ W] |
| 134 | |
| 135 | def coordinate {m : ℕ} (e : V ≃L[ℂ] (W × (Fin m → ℂ))) (j : Fin m) : V →L[ℂ] ℂ := |
| 136 | (ContinuousLinearMap.proj j).comp ((ContinuousLinearMap.snd ℂ W (Fin m → ℂ)).comp e.toContinuousLinearMap) |
| 137 | |
| 138 | omit [FiniteDimensional ℂ V] [FiniteDimensional ℂ W] in |
| 139 | theorem coordinate_apply {m : ℕ} (e : V ≃L[ℂ] (W × (Fin m → ℂ))) (j : Fin m) (v : V) : |
| 140 | coordinate e j v = (e v).2 j := rfl |
| 141 | |
| 142 | omit [FiniteDimensional ℂ V] [FiniteDimensional ℂ W] in |
| 143 | theorem coordinate_pair_surjective (L : V →L[ℂ] W) {m : ℕ} |
| 144 | (e : V ≃L[ℂ] (W × (Fin m → ℂ))) (he : ∀ v, (e v).1 = L v) (j : Fin m) : |
| 145 | Function.Surjective (L.prod (coordinate e j)) := by |
| 146 | rintro ⟨y, z⟩ |
| 147 | refine ⟨e.symm (y, Pi.single j z), Prod.ext ?_ ?_⟩ |
| 148 | · change L (e.symm (y, Pi.single j z)) = y |
| 149 | rw [← he, e.apply_symm_apply] |
| 150 | · change (e (e.symm (y, Pi.single j z))).2 j = z |
| 151 | rw [e.apply_symm_apply] |
| 152 | simp |
| 153 | |
| 154 | theorem exists_split (L : V →L[ℂ] W) (hL : Function.Surjective L) {S : Set V} (v : V) |
| 155 | (hfinite : {w : V | w ∈ S ∧ L w = L v}.Finite) : |
| 156 | ∃ (m : ℕ) (e : V ≃L[ℂ] (W × (Fin m → ℂ))), |
| 157 | (∀ w, (e w).1 = L w) ∧ |
| 158 | ∀ w ∈ S, L w = L v → w ≠ v → ∀ j : Fin m, coordinate e j w ≠ coordinate e j v := by |
| 159 | classical |
| 160 | obtain ⟨r, b, hb⟩ := AnalyticCone.Constructions.AnalyticConeImage.projection_coordinates L hL |
| 161 | let K := {w : V | w ∈ S ∧ L w = L v ∧ w ≠ v} |
| 162 | let : Fintype K := (hfinite.subset (fun _ hw => ⟨hw.1, hw.2.1⟩)).fintype |
| 163 | have hnonzero (w : K) : (b (w.val - v)).2 ≠ 0 := by |
| 164 | intro hwzero |
| 165 | have hbzero : b (w.val - v) = 0 := by |
| 166 | apply Prod.ext |
| 167 | · change (b (w.val - v)).1 = 0 |
| 168 | rw [hb, map_sub, w.property.2.1, sub_self] |
| 169 | · exact hwzero |
| 170 | have hwv : w.val - v = 0 := b.injective (hbzero.trans b.map_zero.symm) |
| 171 | exact w.property.2.2 (sub_eq_zero.mp hwv) |
| 172 | obtain ⟨m, a, ha⟩ := SeparatingCoordinates.exists_coordinates (fun w : K => (b (w.val - v)).2) hnonzero |
| 173 | let e := b.trans ((ContinuousLinearEquiv.refl ℂ W).prodCongr a) |
| 174 | refine ⟨m, e, hb, ?_⟩ |
| 175 | intro w hw hLw hwv j heq |
| 176 | have h := ha (⟨w, hw, hLw, hwv⟩ : K) j |
| 177 | change (e (w - v)).2 j ≠ 0 at h |
| 178 | apply h |
| 179 | rw [map_sub] |
| 180 | change coordinate e j w - coordinate e j v = 0 |
| 181 | rw [heq, sub_self] |
| 182 | |
| 183 | end Geometry.ComplexTorus.RiemannProjectivity.SeparatingLinearCoordinates.Constructions.SeparatingFiberCoordinates |
| 184 | |
| 185 | end |
| 186 | |
| 187 | end OAI |