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 | /-! # Finite Field Quadratic Norm -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.Quaternion.Arithmetic.FiniteFieldQuadraticNorm |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A binary norm equation over a finite field of odd characteristic |
| 10 | always has a solution. This provides the residue-field starting point |
| 11 | for unramified local quaternion splitting. -/ |
| 12 | |
| 13 | open scoped Classical |
| 14 | open _root_.Polynomial |
| 15 | |
| 16 | variable {k : Type*} [Field k] [Fintype k] |
| 17 | |
| 18 | theorem finiteField_binary_norm_surjective (hchar : ringChar k ≠ 2) (a : k) (ha : a ≠ 0) (b : k) : |
| 19 | ∃ x y : k, x ^ 2 - a * y ^ 2 = b := by |
| 20 | let f : Polynomial k := X ^ 2 |
| 21 | let g : Polynomial k := C (-a) * X ^ 2 - C b |
| 22 | have hf : f.degree = 2 := degree_X_pow 2 |
| 23 | have hquad : (C (-a) * X ^ 2 : Polynomial k).degree = 2 := |
| 24 | degree_C_mul_X_pow 2 (neg_ne_zero.mpr ha) |
| 25 | have hg : g.degree = 2 := by |
| 26 | change (C (-a) * X ^ 2 - C b).degree = 2 |
| 27 | rw [degree_sub_eq_left_of_degree_lt, hquad] |
| 28 | rw [hquad] |
| 29 | exact lt_of_le_of_lt degree_C_le (by decide) |
| 30 | obtain ⟨x, y, hxy⟩ := FiniteField.exists_root_sum_quadratic hf hg |
| 31 | (FiniteField.odd_card_of_char_ne_two hchar) |
| 32 | refine ⟨x, y, ?_⟩ |
| 33 | simp only [f, g, eval_pow, eval_X, eval_sub, eval_mul, eval_C, neg_mul] at hxy |
| 34 | linear_combination hxy |
| 35 | |
| 36 | theorem finiteField_binary_norm_solution_nonzero (hchar : ringChar k ≠ 2) |
| 37 | (a b : k) (ha : a ≠ 0) (hb : b ≠ 0) : |
| 38 | ∃ x y : k, x ^ 2 - a * y ^ 2 = b ∧ (x ≠ 0 ∨ y ≠ 0) := by |
| 39 | obtain ⟨x, y, hxy⟩ := finiteField_binary_norm_surjective hchar a ha b |
| 40 | refine ⟨x, y, hxy, ?_⟩ |
| 41 | by_contra h |
| 42 | push Not at h |
| 43 | apply hb |
| 44 | simpa only [h.1, h.2, zero_pow (by omega : 2 ≠ 0), mul_zero, sub_zero] using hxy.symm |
| 45 | |
| 46 | end |
| 47 | |
| 48 | end OAI.NumberTheory.Quaternion.Arithmetic.FiniteFieldQuadraticNorm |