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.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Polynomial.IntegerMultiples |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ShearEulerIdentity |
| 3 | |
| 4 | /-! # Shear Euler Determinant -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ShearEulerDeterminant |
| 7 | |
| 8 | /-! Separate polynomiality and integer shears determine the entire |
| 9 | quadratic determinant formula, including degenerate and negative classes. -/ |
| 10 | |
| 11 | theorem shear_euler_determinant_formula |
| 12 | (F : ℤ → ℤ → ℤ → ℚ) (g : ℕ) (d : ℚ) |
| 13 | (hpolyA : ∀ b c : ℤ, ∃ P : Polynomial ℚ, ∀ a : ℤ, P.eval (a : ℚ) = F a b c) |
| 14 | (hpolyC : ∀ a b : ℤ, ∃ P : Polynomial ℚ, ∀ c : ℤ, P.eval (c : ℚ) = F a b c) |
| 15 | (hshear : ∀ a b c t : ℤ, F a b c = F a (b + t * c + t ^ 2 * a) (c + 2 * t * a)) |
| 16 | (hdiag : ∀ a b : ℤ, F a b 0 = d * (a : ℚ) ^ g * (b : ℚ) ^ g) |
| 17 | (a b c : ℤ) : |
| 18 | (4 : ℚ) ^ g * F a b c = d * (4 * (a : ℚ) * (b : ℚ) - (c : ℚ) ^ 2) ^ g := by |
| 19 | have hnonzero (a b c : ℤ) (ha : a ≠ 0) : |
| 20 | (4 : ℚ) ^ g * F a b c = d * (4 * (a : ℚ) * (b : ℚ) - (c : ℚ) ^ 2) ^ g := by |
| 21 | obtain ⟨P, hP⟩ := hpolyC a b |
| 22 | let Q : Polynomial ℚ := Polynomial.C d * |
| 23 | (Polynomial.C (4 * (a : ℚ) * (b : ℚ)) - Polynomial.X ^ 2) ^ g |
| 24 | have he : Polynomial.C ((4 : ℚ) ^ g) * P = Q := by |
| 25 | apply HilbertConstruction.Polynomial.IntegerMultiples.polynomial_eq_of_positive_integer_multiple_evals _ _ (2 * a) |
| 26 | (mul_ne_zero (by norm_num) ha) |
| 27 | intro n _hn |
| 28 | have hb : (b - a * (n : ℤ) ^ 2) + (n : ℤ) * 0 + (n : ℤ) ^ 2 * a = b := by ring |
| 29 | have hc : (0 : ℤ) + 2 * (n : ℤ) * a = (2 * a) * (n : ℤ) := by ring |
| 30 | have hs := hshear a (b - a * (n : ℤ) ^ 2) 0 (n : ℤ) |
| 31 | rw [hb, hc] at hs |
| 32 | have hv := hP ((2 * a) * (n : ℤ)) |
| 33 | rw [Int.cast_mul, Int.cast_natCast] at hv |
| 34 | rw [Polynomial.eval_mul, Polynomial.eval_C, hv, ← hs, hdiag] |
| 35 | change (4 : ℚ) ^ g * (d * (a : ℚ) ^ g * ((b - a * (n : ℤ) ^ 2 : ℤ) : ℚ) ^ g) = |
| 36 | Q.eval (((2 * a : ℤ) : ℚ) * (n : ℚ)) |
| 37 | have heval : Q.eval (((2 * a : ℤ) : ℚ) * (n : ℚ)) = |
| 38 | d * (4 * (a : ℚ) * (b : ℚ) - (2 * (a : ℚ) * (n : ℚ)) ^ 2) ^ g := by |
| 39 | simp only [Q, Polynomial.eval_mul, Polynomial.eval_C, Polynomial.eval_pow, |
| 40 | Polynomial.eval_sub, Polynomial.eval_X, Int.cast_mul, Int.cast_ofNat] |
| 41 | rw [heval, Int.cast_sub, Int.cast_mul, Int.cast_pow, Int.cast_natCast] |
| 42 | calc |
| 43 | _ = d * (4 * (a : ℚ) * ((b : ℚ) - (a : ℚ) * (n : ℚ) ^ 2)) ^ g := by |
| 44 | rw [mul_pow, mul_pow] |
| 45 | ring |
| 46 | _ = _ := congrArg (fun z : ℚ => d * z ^ g) (by ring) |
| 47 | have hv := congrArg (fun Q : Polynomial ℚ => Q.eval (c : ℚ)) he |
| 48 | simpa only [Q, Polynomial.eval_mul, Polynomial.eval_C, Polynomial.eval_pow, |
| 49 | Polynomial.eval_sub, Polynomial.eval_X, hP c] using hv |
| 50 | obtain ⟨P, hP⟩ := hpolyA b c |
| 51 | let Q : Polynomial ℚ := Polynomial.C d * |
| 52 | (Polynomial.C (4 * (b : ℚ)) * Polynomial.X - Polynomial.C ((c : ℚ) ^ 2)) ^ g |
| 53 | have he : Polynomial.C ((4 : ℚ) ^ g) * P = Q := by |
| 54 | apply HilbertConstruction.Polynomial.EventualGrid.polynomial_eq_of_positive_nat_evals |
| 55 | intro n hn |
| 56 | have hv := hP (n : ℤ) |
| 57 | rw [Int.cast_natCast] at hv |
| 58 | rw [Polynomial.eval_mul, Polynomial.eval_C, hv] |
| 59 | have h := hnonzero (n : ℤ) b c (by exact_mod_cast (Nat.ne_of_gt hn)) |
| 60 | rw [Int.cast_natCast] at h |
| 61 | change (4 : ℚ) ^ g * F (n : ℤ) b c = Q.eval (n : ℚ) |
| 62 | rw [h] |
| 63 | simp only [Q, Polynomial.eval_mul, Polynomial.eval_C, Polynomial.eval_pow, |
| 64 | Polynomial.eval_sub, Polynomial.eval_X] |
| 65 | congr 2 |
| 66 | ring |
| 67 | have hv := congrArg (fun Q : Polynomial ℚ => Q.eval (a : ℚ)) he |
| 68 | simp only [Q, Polynomial.eval_mul, Polynomial.eval_C, Polynomial.eval_pow, |
| 69 | Polynomial.eval_sub, Polynomial.eval_X, hP a] at hv |
| 70 | exact hv.trans (congrArg (fun z : ℚ => d * z ^ g) (by ring)) |
| 71 | |
| 72 | theorem shear_euler_addition_value |
| 73 | (F : ℤ → ℤ → ℤ → ℚ) (g : ℕ) (d : ℚ) |
| 74 | (hpolyA : ∀ b c : ℤ, ∃ P : Polynomial ℚ, ∀ a : ℤ, P.eval (a : ℚ) = F a b c) |
| 75 | (hpolyC : ∀ a b : ℤ, ∃ P : Polynomial ℚ, ∀ c : ℤ, P.eval (c : ℚ) = F a b c) |
| 76 | (hshear : ∀ a b c t : ℤ, F a b c = F a (b + t * c + t ^ 2 * a) (c + 2 * t * a)) |
| 77 | (hdiag : ∀ a b : ℤ, F a b 0 = d * (a : ℚ) ^ g * (b : ℚ) ^ g) : |
| 78 | F 2 2 2 = d * (3 : ℚ) ^ g := by |
| 79 | have h := shear_euler_determinant_formula F g d hpolyA hpolyC hshear hdiag 2 2 2 |
| 80 | norm_num at h |
| 81 | apply mul_left_cancel₀ (pow_ne_zero g (show (4 : ℚ) ≠ 0 by norm_num)) |
| 82 | calc |
| 83 | (4 : ℚ) ^ g * F 2 2 2 = d * (12 : ℚ) ^ g := h |
| 84 | _ = (4 : ℚ) ^ g * (d * (3 : ℚ) ^ g) := by |
| 85 | rw [show (12 : ℚ) = 4 * 3 by norm_num, mul_pow] |
| 86 | ring |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ShearEulerDeterminant |