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 | /-! # Orthogonal Vector -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.Quaternion.Arithmetic.OrthogonalVector |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! In a nondegenerate ternary diagonal quadratic space, every |
| 10 | orthogonal plane contains a vector of nonzero quadratic value. The |
| 11 | explicit vectors will conjugate a quaternion to its canonical conjugate. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | |
| 15 | variable {F : Type*} [Field F] [CharZero F] |
| 16 | |
| 17 | theorem quaternion_exists_orthogonal_nonzero_norm (a b : F) (ha : a ≠ 0) (hb : b ≠ 0) |
| 18 | (x y z : F) : |
| 19 | ∃ s t u : F, a * x * s + b * y * t - a * b * z * u = 0 ∧ |
| 20 | -a * s ^ 2 - b * t ^ 2 + a * b * u ^ 2 ≠ 0 := by |
| 21 | by_cases hx : x = 0 |
| 22 | · refine ⟨1, 0, 0, by simp [hx], ?_⟩ |
| 23 | simpa only [one_pow, mul_one, zero_pow (by omega : 2 ≠ 0), mul_zero, sub_zero, add_zero] |
| 24 | using neg_ne_zero.mpr ha |
| 25 | by_contra h |
| 26 | push Not at h |
| 27 | have h₁ := h (b * y) (-a * x) 0 (by ring) |
| 28 | have h₂ := h (b * z) 0 x (by ring) |
| 29 | have h₃ := h (b * y + b * z) (-a * x) x (by ring) |
| 30 | have hcross : (2 * a * b ^ 2) * (y * z) = 0 := by |
| 31 | linear_combination h₁ + h₂ - h₃ |
| 32 | have hfactor : 2 * a * b ^ 2 ≠ 0 := |
| 33 | mul_ne_zero (mul_ne_zero (by norm_num) ha) (pow_ne_zero _ hb) |
| 34 | have hyz : y * z = 0 := (mul_eq_zero.mp hcross).resolve_left hfactor |
| 35 | rcases mul_eq_zero.mp hyz with hy | hz |
| 36 | · have he : a ^ 2 * b * x ^ 2 = 0 := by |
| 37 | rw [hy] at h₁ |
| 38 | linear_combination -h₁ |
| 39 | exact mul_ne_zero (mul_ne_zero (pow_ne_zero _ ha) hb) (pow_ne_zero _ hx) he |
| 40 | · have he : a * b * x ^ 2 = 0 := by |
| 41 | rw [hz] at h₂ |
| 42 | linear_combination h₂ |
| 43 | exact mul_ne_zero (mul_ne_zero ha hb) (pow_ne_zero _ hx) he |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.NumberTheory.Quaternion.Arithmetic.OrthogonalVector |