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.SheafCohomology.Projective.EndomorphismOrbitDifference |
| 2 | import Mathlib.RingTheory.Polynomial.Pochhammer |
| 3 | import Mathlib.Algebra.Polynomial.BigOperators |
| 4 | import Mathlib.RingTheory.Nilpotent.Defs |
| 5 | import Lean.Elab.Tactic.Omega |
| 6 | |
| 7 | /-! # Endomorphism Orbit Polynomial -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.EndomorphismOrbitPolynomial |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A nilpotent tensor difference gives an actual rational polynomial for every additive index orbit. -/ |
| 14 | |
| 15 | open _root_.Polynomial |
| 16 | |
| 17 | theorem endomorphism_orbit_newton_of_apply_eq_zero {G : Type*} [AddCommGroup G] (T : AddMonoid.End G) |
| 18 | (φ : G →+ ℤ) (x : G) (r : ℕ) (hr : ((T - 1) ^ r) x = 0) (n : ℕ) : |
| 19 | φ ((T ^ n) x) = ∑ k ∈ Finset.range r, (n.choose k : ℤ) * φ (((T - 1) ^ k) x) := by |
| 20 | let a := fun k => (n.choose k : ℤ) * φ (((T - 1) ^ k) x) |
| 21 | have hn : φ ((T ^ n) x) = ∑ k ∈ Finset.range (n + 1), a k := by |
| 22 | have h := shift_eq_sum_fwdDiff_iter 1 (fun k : ℕ => φ ((T ^ k) x)) n 0 |
| 23 | simpa only [nsmul_eq_mul, Nat.cast_id, mul_one, zero_add, EndomorphismOrbitDifference.endomorphism_orbit_fwdDiff, |
| 24 | pow_zero, AddMonoid.End.one_apply, a] using h |
| 25 | rw [hn] |
| 26 | calc |
| 27 | ∑ k ∈ Finset.range (n + 1), a k = ∑ k ∈ Finset.range (max (n + 1) r), a k := by |
| 28 | apply Finset.sum_subset (Finset.range_mono (le_max_left _ _)) |
| 29 | intro k _ hk |
| 30 | have hnk : n < k := by have := Finset.mem_range.not.mp hk; omega |
| 31 | simp only [a, Nat.choose_eq_zero_of_lt hnk, Nat.cast_zero, zero_mul] |
| 32 | _ = ∑ k ∈ Finset.range r, a k := by |
| 33 | symm |
| 34 | apply Finset.sum_subset (Finset.range_mono (le_max_right _ _)) |
| 35 | intro k _ hk |
| 36 | have hrk : r ≤ k := Nat.not_lt.mp (Finset.mem_range.not.mp hk) |
| 37 | have hkx : ((T - 1) ^ k) x = 0 := by |
| 38 | rw [← Nat.sub_add_cancel hrk, pow_add] |
| 39 | change ((T - 1) ^ (k - r)) (((T - 1) ^ r) x) = 0 |
| 40 | rw [hr, map_zero] |
| 41 | dsimp only [a] |
| 42 | rw [hkx, map_zero, mul_zero] |
| 43 | |
| 44 | theorem endomorphism_orbit_newton {G : Type*} [AddCommGroup G] (T : AddMonoid.End G) |
| 45 | (φ : G →+ ℤ) (x : G) (r : ℕ) (hr : (T - 1) ^ r = 0) (n : ℕ) : |
| 46 | φ ((T ^ n) x) = ∑ k ∈ Finset.range r, (n.choose k : ℤ) * φ (((T - 1) ^ k) x) := |
| 47 | endomorphism_orbit_newton_of_apply_eq_zero T φ x r (by rw [hr]; rfl) n |
| 48 | |
| 49 | def endomorphismOrbitPolynomial {G : Type*} [AddCommGroup G] (T : AddMonoid.End G) |
| 50 | (φ : G →+ ℤ) (x : G) (r : ℕ) : Polynomial ℚ := |
| 51 | ∑ k ∈ Finset.range r, |
| 52 | C ((φ (((T - 1) ^ k) x) : ℚ) / (Nat.factorial k : ℚ)) * descPochhammer ℚ k |
| 53 | |
| 54 | theorem endomorphismOrbitPolynomial_eval_of_apply_eq_zero {G : Type*} [AddCommGroup G] |
| 55 | (T : AddMonoid.End G) (φ : G →+ ℤ) (x : G) (r : ℕ) (hr : ((T - 1) ^ r) x = 0) (n : ℕ) : |
| 56 | (endomorphismOrbitPolynomial T φ x r).eval (n : ℚ) = (φ ((T ^ n) x) : ℚ) := by |
| 57 | rw [endomorphism_orbit_newton_of_apply_eq_zero T φ x r hr n] |
| 58 | simp only [endomorphismOrbitPolynomial, eval_finsetSum, eval_mul, eval_C, |
| 59 | Int.cast_sum, Int.cast_mul, Int.cast_natCast] |
| 60 | apply Finset.sum_congr rfl |
| 61 | intro k _ |
| 62 | rw [Nat.cast_choose_eq_descPochhammer_div] |
| 63 | ring |
| 64 | |
| 65 | theorem endomorphismOrbitPolynomial_eval {G : Type*} [AddCommGroup G] (T : AddMonoid.End G) |
| 66 | (φ : G →+ ℤ) (x : G) (r : ℕ) (hr : (T - 1) ^ r = 0) (n : ℕ) : |
| 67 | (endomorphismOrbitPolynomial T φ x r).eval (n : ℚ) = (φ ((T ^ n) x) : ℚ) := |
| 68 | endomorphismOrbitPolynomial_eval_of_apply_eq_zero T φ x r (by rw [hr]; rfl) n |
| 69 | |
| 70 | theorem endomorphismOrbitPolynomial_natDegree_le {G : Type*} [AddCommGroup G] |
| 71 | (T : AddMonoid.End G) (φ : G →+ ℤ) (x : G) (r : ℕ) : |
| 72 | (endomorphismOrbitPolynomial T φ x r).natDegree ≤ r - 1 := by |
| 73 | apply natDegree_sum_le_of_forall_le |
| 74 | intro k hk |
| 75 | apply (natDegree_C_mul_le _ _).trans |
| 76 | rw [descPochhammer_natDegree] |
| 77 | have := Finset.mem_range.mp hk |
| 78 | omega |
| 79 | |
| 80 | theorem exists_polynomial_of_nilpotent_endomorphism_difference |
| 81 | {G : Type*} [AddCommGroup G] (T : AddMonoid.End G) (φ : G →+ ℤ) |
| 82 | (hT : IsNilpotent (T - 1)) (x : G) : |
| 83 | ∃ P : Polynomial ℚ, ∀ n : ℕ, P.eval (n : ℚ) = (φ ((T ^ n) x) : ℚ) := by |
| 84 | obtain ⟨r, hr⟩ := hT |
| 85 | exact ⟨endomorphismOrbitPolynomial T φ x r, |
| 86 | endomorphismOrbitPolynomial_eval T φ x r hr⟩ |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.EndomorphismOrbitPolynomial |