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 Mathlib |
| 2 | |
| 3 | /-! # Cayley Composition Phase -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Weil.UnitarySplitting.CayleyCompositionPhase.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! The Cayley quadratic phase has the exact translation identity needed |
| 12 | to intertwine the two Weyl actions. -/ |
| 13 | |
| 14 | variable {F V : Type} [Field F] [CharZero F] [AddCommGroup V] [Module F V] |
| 15 | variable (β : LinearMap.BilinForm F V) (hAlt : ∀ x, β x x = 0) |
| 16 | variable (g D : V ≃ₗ[F] V) |
| 17 | variable (hg : ∀ x y, β (g x) (g y) = β x y) (hD : ∀ x, D x = g x - x) |
| 18 | |
| 19 | def cayleyWeylPhase (v : V) : F := β (D.symm v) v / 2 |
| 20 | |
| 21 | include hAlt in |
| 22 | omit [CharZero F] in |
| 23 | theorem alternating_pairing_swap (x y : V) : β x y = -β y x := by |
| 24 | have hh := hAlt (x + y) |
| 25 | simp only [map_add, LinearMap.add_apply, hAlt] at hh |
| 26 | exact eq_neg_of_add_eq_zero_left (by simpa only [zero_add, add_zero, add_comm] using hh) |
| 27 | |
| 28 | include hD in |
| 29 | omit [CharZero F] in |
| 30 | theorem cayleyDifference_commutes (x : V) : D (g x) = g (D x) := by |
| 31 | rw [hD, hD, map_sub] |
| 32 | |
| 33 | include hAlt hg hD in |
| 34 | theorem cayleyWeylPhase_translation (u w : V) : |
| 35 | cayleyWeylPhase β D (u - w) + β u w / 2 = |
| 36 | cayleyWeylPhase β D (u - g w) + β (g w) u / 2 := by |
| 37 | obtain ⟨x, rfl⟩ := D.surjective u |
| 38 | obtain ⟨y, rfl⟩ := D.surjective w |
| 39 | have hcomm := cayleyDifference_commutes g D hD y |
| 40 | have hq1 : cayleyWeylPhase β D (D x - D y) = β (x - y) (D (x - y)) / 2 := by |
| 41 | have hsub : D (x - y) = D x - D y := map_sub D x y |
| 42 | rw [← hsub, cayleyWeylPhase, D.symm_apply_apply] |
| 43 | have hq2 : cayleyWeylPhase β D (D x - g (D y)) = |
| 44 | β (x - g y) (D (x - g y)) / 2 := by |
| 45 | have hsub : D (x - g y) = D x - D (g y) := map_sub D x (g y) |
| 46 | rw [← hcomm, ← hsub, cayleyWeylPhase, D.symm_apply_apply] |
| 47 | rw [hq1, hq2] |
| 48 | simp only [hD, map_sub, LinearMap.sub_apply, hg, hAlt, |
| 49 | alternating_pairing_swap β hAlt x y, |
| 50 | alternating_pairing_swap β hAlt x (g y), |
| 51 | alternating_pairing_swap β hAlt (g x) y, |
| 52 | alternating_pairing_swap β hAlt x (g (g y))] |
| 53 | ring |
| 54 | |
| 55 | include hAlt hg hD in |
| 56 | omit [CharZero F] in |
| 57 | theorem cayleyInverse_pairing (x y : V) : |
| 58 | β (D.symm y) x = β (D.symm x) y + β x y := by |
| 59 | obtain ⟨a, rfl⟩ := D.surjective x |
| 60 | obtain ⟨b, rfl⟩ := D.surjective y |
| 61 | rw [D.symm_apply_apply, D.symm_apply_apply] |
| 62 | simp only [hD, map_sub, LinearMap.sub_apply, hg, |
| 63 | alternating_pairing_swap β hAlt b (g a), alternating_pairing_swap β hAlt b a] |
| 64 | ring |
| 65 | |
| 66 | include hAlt hg hD in |
| 67 | theorem cayleyWeylPhase_output_shift (x v : V) : |
| 68 | cayleyWeylPhase β D (x + v) + β (-v) (x + v) / 2 = |
| 69 | cayleyWeylPhase β D x + cayleyWeylPhase β D v + β (D.symm v) x := by |
| 70 | have hp := cayleyInverse_pairing β hAlt g D hg hD x v |
| 71 | simp only [cayleyWeylPhase, map_add, LinearMap.add_apply, |
| 72 | map_neg, LinearMap.neg_apply, hAlt] |
| 73 | have hs := alternating_pairing_swap β hAlt v x |
| 74 | linear_combination -(hp + hs) / 2 |
| 75 | |
| 76 | end |
| 77 | |
| 78 | section |
| 79 | |
| 80 | /-! Completing the square in the twisted convolution of two Cayley phases. -/ |
| 81 | |
| 82 | variable {F V : Type} [Field F] [CharZero F] [AddCommGroup V] [Module F V] |
| 83 | variable (β : LinearMap.BilinForm F V) (hAlt : ∀ x, β x x = 0) |
| 84 | |
| 85 | omit [CharZero F] in |
| 86 | theorem cayleyWeylPhase_neg (D : V ≃ₗ[F] V) (x : V) : |
| 87 | cayleyWeylPhase β D (-x) = cayleyWeylPhase β D x := by |
| 88 | simp only [cayleyWeylPhase, map_neg, LinearMap.neg_apply, neg_neg] |
| 89 | |
| 90 | include hAlt in |
| 91 | theorem cayleyWeylPhase_add (g D : V ≃ₗ[F] V) |
| 92 | (hg : ∀ x y, β (g x) (g y) = β x y) (hD : ∀ x, D x = g x - x) |
| 93 | (x v : V) : |
| 94 | cayleyWeylPhase β D (x + v) = cayleyWeylPhase β D x + |
| 95 | cayleyWeylPhase β D v + β (D.symm v) x + β v x / 2 := by |
| 96 | have hh := cayleyWeylPhase_output_shift β hAlt g D hg hD x v |
| 97 | simp only [map_add, map_neg, LinearMap.neg_apply, hAlt] at hh |
| 98 | linear_combination hh |
| 99 | |
| 100 | variable (g h Dg Dh Dgh : V ≃ₗ[F] V) |
| 101 | variable (hg : ∀ x y, β (g x) (g y) = β x y) |
| 102 | variable (hh : ∀ x y, β (h x) (h y) = β x y) |
| 103 | variable (hDg : ∀ x, Dg x = g x - x) (hDh : ∀ x, Dh x = h x - x) |
| 104 | variable (hDgh : ∀ x, Dgh x = g (h x) - x) |
| 105 | |
| 106 | include hAlt hDg hDh hDgh in |
| 107 | theorem cayleyWeylPhase_composition_center (y : V) : |
| 108 | cayleyWeylPhase β Dg (Dg (h y)) + cayleyWeylPhase β Dh (Dh y) + |
| 109 | β (Dg (h y)) (Dh y) / 2 = cayleyWeylPhase β Dgh (Dgh y) := by |
| 110 | simp only [cayleyWeylPhase, LinearEquiv.symm_apply_apply] |
| 111 | simp only [hDg, hDh, hDgh, map_sub, LinearMap.sub_apply, hAlt] |
| 112 | rw [alternating_pairing_swap β hAlt (g (h y)) (h y), |
| 113 | alternating_pairing_swap β hAlt (g (h y)) y, |
| 114 | alternating_pairing_swap β hAlt (h y) y] |
| 115 | ring |
| 116 | |
| 117 | include hAlt hg hh hDg hDh hDgh in |
| 118 | theorem cayleyWeylPhase_composition_shift (y t : V) : |
| 119 | cayleyWeylPhase β Dg (t + Dg (h y)) + cayleyWeylPhase β Dh (-t + Dh y) + |
| 120 | β (t + Dg (h y)) (-t + Dh y) / 2 = |
| 121 | cayleyWeylPhase β Dgh (Dgh y) + cayleyWeylPhase β Dg t + cayleyWeylPhase β Dh t := by |
| 122 | rw [cayleyWeylPhase_add β hAlt g Dg hg hDg, |
| 123 | cayleyWeylPhase_add β hAlt h Dh hh hDh, |
| 124 | Dg.symm_apply_apply, Dh.symm_apply_apply, cayleyWeylPhase_neg] |
| 125 | have hcenter := cayleyWeylPhase_composition_center β hAlt g h Dg Dh Dgh hDg hDh hDgh y |
| 126 | simp only [map_add, LinearMap.add_apply, map_neg, hAlt] |
| 127 | have hcross : β t (Dh y) = -β (h y) t + β y t := by |
| 128 | rw [hDh, map_sub, alternating_pairing_swap β hAlt t (h y), |
| 129 | alternating_pairing_swap β hAlt t y] |
| 130 | ring |
| 131 | have hcross' : β (Dh y) t = β (h y) t - β y t := by |
| 132 | rw [hDh, map_sub, LinearMap.sub_apply] |
| 133 | rw [hcross, hcross'] |
| 134 | linear_combination hcenter |
| 135 | |
| 136 | include hAlt hg hh hDg hDh hDgh in |
| 137 | theorem cayleyWeylPhase_composition_square (u v : V) : |
| 138 | cayleyWeylPhase β Dg v + cayleyWeylPhase β Dh (u - v) + β v (u - v) / 2 = |
| 139 | cayleyWeylPhase β Dgh u + |
| 140 | cayleyWeylPhase β Dg (v - Dg (h (Dgh.symm u))) + |
| 141 | cayleyWeylPhase β Dh (v - Dg (h (Dgh.symm u))) := by |
| 142 | let y := Dgh.symm u |
| 143 | have hsum : Dg (h y) + Dh y = u := by |
| 144 | rw [hDg, hDh] |
| 145 | have he := hDgh y |
| 146 | rw [show Dgh y = u from Dgh.apply_symm_apply u] at he |
| 147 | rw [he] |
| 148 | abel |
| 149 | have hright : -(v - Dg (h y)) + Dh y = u - v := by |
| 150 | rw [← hsum] |
| 151 | abel |
| 152 | have heq := cayleyWeylPhase_composition_shift β hAlt g h Dg Dh Dgh hg hh hDg hDh hDgh |
| 153 | y (v - Dg (h y)) |
| 154 | rw [sub_add_cancel, hright, show Dgh y = u from Dgh.apply_symm_apply u] at heq |
| 155 | exact heq |
| 156 | |
| 157 | end |
| 158 | |
| 159 | section |
| 160 | |
| 161 | /-! The Gaussian appearing in Cayley composition has a nondegenerate |
| 162 | symmetric polar form whenever all three Cayley differences are invertible. -/ |
| 163 | |
| 164 | variable {F V : Type} [Field F] [CharZero F] [AddCommGroup V] [Module F V] |
| 165 | |
| 166 | def cayleySumLinearEquiv (Dg Dh Dgh : V ≃ₗ[F] V) : V ≃ₗ[F] V := |
| 167 | (Dh.symm.trans Dgh).trans Dg.symm |
| 168 | |
| 169 | omit [CharZero F] in |
| 170 | theorem cayleySumLinearEquiv_apply (g h Dg Dh Dgh : V ≃ₗ[F] V) |
| 171 | (hDg : ∀ x, Dg x = g x - x) (hDh : ∀ x, Dh x = h x - x) |
| 172 | (hDgh : ∀ x, Dgh x = g (h x) - x) (v : V) : |
| 173 | cayleySumLinearEquiv Dg Dh Dgh v = Dg.symm v + Dh.symm v + v := by |
| 174 | obtain ⟨x, rfl⟩ := Dh.surjective v |
| 175 | change Dg.symm (Dgh (Dh.symm (Dh x))) = _ |
| 176 | rw [Dh.symm_apply_apply] |
| 177 | have hsum : Dgh x = Dg (h x) + Dh x := by |
| 178 | rw [hDgh, hDg, hDh] |
| 179 | abel |
| 180 | rw [hsum, map_add, Dg.symm_apply_apply] |
| 181 | rw [hDh] |
| 182 | abel |
| 183 | |
| 184 | def cayleySumForm (β : LinearMap.BilinForm F V) (Dg Dh : V ≃ₗ[F] V) : |
| 185 | LinearMap.BilinForm F V := |
| 186 | LinearMap.comp β (Dg.symm.toLinearMap + Dh.symm.toLinearMap + LinearMap.id) |
| 187 | |
| 188 | omit [CharZero F] in |
| 189 | theorem cayleySumForm_apply (β : LinearMap.BilinForm F V) (Dg Dh : V ≃ₗ[F] V) (x y : V) : |
| 190 | cayleySumForm β Dg Dh x y = β (Dg.symm x + Dh.symm x + x) y := rfl |
| 191 | |
| 192 | variable (β : LinearMap.BilinForm F V) (hAlt : ∀ x, β x x = 0) |
| 193 | variable (g h Dg Dh : V ≃ₗ[F] V) |
| 194 | variable (hg : ∀ x y, β (g x) (g y) = β x y) |
| 195 | variable (hh : ∀ x y, β (h x) (h y) = β x y) |
| 196 | variable (hDg : ∀ x, Dg x = g x - x) (hDh : ∀ x, Dh x = h x - x) |
| 197 | |
| 198 | include hAlt hg hh hDg hDh in |
| 199 | omit [CharZero F] in |
| 200 | theorem cayleySumForm_symmetric (x y : V) : |
| 201 | cayleySumForm β Dg Dh x y = cayleySumForm β Dg Dh y x := by |
| 202 | have hp := cayleyInverse_pairing β hAlt g Dg hg hDg x y |
| 203 | have hq := cayleyInverse_pairing β hAlt h Dh hh hDh x y |
| 204 | simp only [cayleySumForm_apply, map_add, LinearMap.add_apply] |
| 205 | rw [hp, hq, alternating_pairing_swap β hAlt y x] |
| 206 | ring |
| 207 | |
| 208 | include hDg hDh in |
| 209 | omit [CharZero F] in |
| 210 | theorem cayleySumForm_nondegenerate (hβ : β.Nondegenerate) (Dgh : V ≃ₗ[F] V) |
| 211 | (hDgh : ∀ x, Dgh x = g (h x) - x) : (cayleySumForm β Dg Dh).Nondegenerate := by |
| 212 | have heq (x y : V) : cayleySumForm β Dg Dh x y = β (cayleySumLinearEquiv Dg Dh Dgh x) y := by |
| 213 | rw [cayleySumLinearEquiv_apply g h Dg Dh Dgh hDg hDh hDgh] |
| 214 | rfl |
| 215 | constructor |
| 216 | · intro x hx |
| 217 | apply (cayleySumLinearEquiv Dg Dh Dgh).injective |
| 218 | rw [map_zero] |
| 219 | apply hβ.1 |
| 220 | intro y |
| 221 | rw [← heq] |
| 222 | exact hx y |
| 223 | · intro y hy |
| 224 | apply hβ.2 y |
| 225 | intro x |
| 226 | obtain ⟨z, rfl⟩ := (cayleySumLinearEquiv Dg Dh Dgh).surjective x |
| 227 | rw [← heq] |
| 228 | exact hy z |
| 229 | |
| 230 | include hAlt hg hh hDg hDh in |
| 231 | theorem cayleySumForm_polar (x y : V) : |
| 232 | cayleyWeylPhase β Dg (x + y) + cayleyWeylPhase β Dh (x + y) = |
| 233 | (cayleyWeylPhase β Dg x + cayleyWeylPhase β Dh x) + |
| 234 | (cayleyWeylPhase β Dg y + cayleyWeylPhase β Dh y) + cayleySumForm β Dg Dh x y := by |
| 235 | rw [cayleyWeylPhase_add β hAlt g Dg hg hDg, |
| 236 | cayleyWeylPhase_add β hAlt h Dh hh hDh] |
| 237 | rw [cayleySumForm_symmetric β hAlt g h Dg Dh hg hh hDg hDh x y] |
| 238 | simp only [cayleySumForm_apply, map_add, LinearMap.add_apply] |
| 239 | ring |
| 240 | |
| 241 | end |
| 242 | |
| 243 | /-! The Fourier frequency and residual phase that identify the scalar in |
| 244 | the composition of actual Cayley operators. -/ |
| 245 | |
| 246 | variable {F V : Type} [Field F] [CharZero F] [AddCommGroup V] [Module F V] |
| 247 | |
| 248 | def cayleyCompositionShift (h Dg Dgh : V ≃ₗ[F] V) : V ≃ₗ[F] V := |
| 249 | (Dgh.symm.trans h).trans Dg |
| 250 | |
| 251 | variable (g h Dg Dh Dgh : V ≃ₗ[F] V) |
| 252 | variable (hDg : ∀ x, Dg x = g x - x) (hDh : ∀ x, Dh x = h x - x) |
| 253 | variable (hDgh : ∀ x, Dgh x = g (h x) - x) |
| 254 | |
| 255 | include hDg hDh hDgh in |
| 256 | omit [CharZero F] in |
| 257 | theorem cayleyCompositionShift_sum (x : V) : |
| 258 | Dg.symm (cayleyCompositionShift h Dg Dgh x) + |
| 259 | Dh.symm (cayleyCompositionShift h Dg Dgh x) + cayleyCompositionShift h Dg Dgh x = |
| 260 | Dh.symm x + x := by |
| 261 | let y := Dgh.symm x |
| 262 | have hsum : x = Dg (h y) + Dh y := by |
| 263 | rw [hDg, hDh] |
| 264 | have he := hDgh y |
| 265 | rw [show Dgh y = x from Dgh.apply_symm_apply x] at he |
| 266 | rw [he] |
| 267 | abel |
| 268 | change Dg.symm (Dg (h y)) + Dh.symm (Dg (h y)) + Dg (h y) = Dh.symm x + x |
| 269 | rw [Dg.symm_apply_apply, hsum, map_add, Dh.symm_apply_apply, hDh] |
| 270 | abel |
| 271 | |
| 272 | variable (β : LinearMap.BilinForm F V) (hAlt : ∀ x, β x x = 0) |
| 273 | variable (hg : ∀ x y, β (g x) (g y) = β x y) |
| 274 | variable (hh : ∀ x y, β (h x) (h y) = β x y) |
| 275 | |
| 276 | include hDg hDh hDgh hAlt hg hh in |
| 277 | omit [CharZero F] in |
| 278 | theorem cayleySumForm_composition_frequency (v x : V) : |
| 279 | cayleySumForm β Dg Dh v (-cayleyCompositionShift h Dg Dgh x) = β (-(Dh.symm v)) x := by |
| 280 | rw [cayleySumForm_symmetric β hAlt g h Dg Dh hg hh hDg hDh, |
| 281 | map_neg, LinearMap.neg_apply, cayleySumForm_apply, |
| 282 | cayleyCompositionShift_sum g h Dg Dh Dgh hDg hDh hDgh] |
| 283 | have hp := cayleyInverse_pairing β hAlt h Dh hh hDh x v |
| 284 | simp only [map_add, LinearMap.add_apply, map_neg, LinearMap.neg_apply] |
| 285 | rw [hp] |
| 286 | |
| 287 | include hDg hDh hDgh hAlt hg hh in |
| 288 | theorem cayleyComposition_residual_phase (x : V) : |
| 289 | cayleyWeylPhase β Dh x - |
| 290 | (cayleyWeylPhase β Dg (-cayleyCompositionShift h Dg Dgh x) + |
| 291 | cayleyWeylPhase β Dh (-cayleyCompositionShift h Dg Dgh x)) = |
| 292 | cayleyWeylPhase β Dgh x := by |
| 293 | have he := cayleyWeylPhase_composition_square β hAlt g h Dg Dh Dgh hg hh hDg hDh hDgh x 0 |
| 294 | have hz : cayleyWeylPhase β Dg 0 = 0 := by simp only [cayleyWeylPhase, map_zero, zero_div] |
| 295 | simp only [hz, sub_zero, zero_sub, map_zero, LinearMap.zero_apply, zero_div, zero_add, add_zero] at he |
| 296 | change cayleyWeylPhase β Dh x - |
| 297 | (cayleyWeylPhase β Dg (-Dg (h (Dgh.symm x))) + |
| 298 | cayleyWeylPhase β Dh (-Dg (h (Dgh.symm x)))) = _ |
| 299 | linear_combination he |
| 300 | |
| 301 | end |
| 302 | |
| 303 | end OAI.RepresentationTheory.Weil.UnitarySplitting.CayleyCompositionPhase.Construction |