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.Data.Rat.Cast.Defs |
| 3 | import Mathlib.Tactic.Ring |
| 4 | import Lean.Elab.Tactic.Omega |
| 5 | |
| 6 | /-! # Mixed Orbit Newton -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.MixedOrbitNewton |
| 9 | |
| 10 | /-! Rational-valued Newton expansion for three ordered endomorphism |
| 11 | orbits. Joint vanishing of the ordered differences bounds the total degree; |
| 12 | commutativity of the three endomorphisms is not required. -/ |
| 13 | |
| 14 | variable {G : Type*} [AddCommGroup G] |
| 15 | |
| 16 | theorem orbit_fwdDiff (T : AddMonoid.End G) (φ : G →+ ℚ) (x : G) (r n : ℕ) : |
| 17 | (fwdDiff 1)^[r] (fun k : ℕ => φ ((T ^ k) x)) n = |
| 18 | φ ((T ^ n) (((T - 1) ^ r) x)) := by |
| 19 | induction r generalizing n with |
| 20 | | zero => simp |
| 21 | | succ r ih => |
| 22 | rw [Function.iterate_succ_apply'] |
| 23 | change (fwdDiff 1)^[r] (fun k : ℕ => φ ((T ^ k) x)) (n + 1) - |
| 24 | (fwdDiff 1)^[r] (fun k : ℕ => φ ((T ^ k) x)) n = _ |
| 25 | rw [ih, ih, pow_succ T n, pow_succ' (T - 1) r] |
| 26 | change φ ((T ^ n) (T (((T - 1) ^ r) x))) - φ ((T ^ n) (((T - 1) ^ r) x)) = |
| 27 | φ ((T ^ n) (T (((T - 1) ^ r) x) - ((T - 1) ^ r) x)) |
| 28 | rw [map_sub, map_sub] |
| 29 | |
| 30 | theorem orbit_newton (T : AddMonoid.End G) (φ : G →+ ℚ) (x : G) (n : ℕ) : |
| 31 | φ ((T ^ n) x) = |
| 32 | ∑ i ∈ Finset.range (n + 1), (n.choose i : ℚ) * φ (((T - 1) ^ i) x) := by |
| 33 | have h := shift_eq_sum_fwdDiff_iter 1 (fun k : ℕ => φ ((T ^ k) x)) n 0 |
| 34 | simpa only [nsmul_eq_mul, Nat.cast_id, mul_one, zero_add, orbit_fwdDiff, |
| 35 | pow_zero, AddMonoid.End.one_apply] using h |
| 36 | |
| 37 | theorem choose_sum_truncate (a r : ℕ) (c : ℕ → ℚ) |
| 38 | (hc : ∀ i : ℕ, r ≤ i → c i = 0) : |
| 39 | (∑ i ∈ Finset.range (a + 1), (a.choose i : ℚ) * c i) = |
| 40 | ∑ i ∈ Finset.range r, (a.choose i : ℚ) * c i := by |
| 41 | calc |
| 42 | _ = ∑ i ∈ Finset.range (max (a + 1) r), (a.choose i : ℚ) * c i := by |
| 43 | apply Finset.sum_subset (Finset.range_mono (le_max_left _ _)) |
| 44 | intro i _ hi |
| 45 | have hai : a < i := by have := Finset.mem_range.not.mp hi; omega |
| 46 | rw [Nat.choose_eq_zero_of_lt hai, Nat.cast_zero, zero_mul] |
| 47 | _ = _ := by |
| 48 | symm |
| 49 | apply Finset.sum_subset (Finset.range_mono (le_max_right _ _)) |
| 50 | intro i _ hi |
| 51 | rw [hc i (Nat.not_lt.mp (Finset.mem_range.not.mp hi)), mul_zero] |
| 52 | |
| 53 | def coefficient (T U V : AddMonoid.End G) (φ : G →+ ℚ) (x : G) |
| 54 | (i j k : ℕ) : ℚ := |
| 55 | φ (((T - 1) ^ i) (((U - 1) ^ j) (((V - 1) ^ k) x))) |
| 56 | |
| 57 | theorem triple_newton_full (T U V : AddMonoid.End G) (φ : G →+ ℚ) (x : G) |
| 58 | (a b c : ℕ) : |
| 59 | φ ((T ^ a) ((U ^ b) ((V ^ c) x))) = |
| 60 | ∑ i ∈ Finset.range (a + 1), ∑ j ∈ Finset.range (b + 1), |
| 61 | ∑ k ∈ Finset.range (c + 1), |
| 62 | (a.choose i : ℚ) * (b.choose j : ℚ) * (c.choose k : ℚ) * coefficient T U V φ x i j k := by |
| 63 | rw [orbit_newton T φ ((U ^ b) ((V ^ c) x)) a] |
| 64 | apply Finset.sum_congr rfl |
| 65 | intro i _ |
| 66 | have hU := orbit_newton U (φ.comp (show AddMonoid.End G from (T - 1) ^ i)) ((V ^ c) x) b |
| 67 | change φ (((T - 1) ^ i) ((U ^ b) ((V ^ c) x))) = _ at hU |
| 68 | rw [hU, Finset.mul_sum] |
| 69 | apply Finset.sum_congr rfl |
| 70 | intro j _ |
| 71 | have hV := orbit_newton V |
| 72 | ((φ.comp (show AddMonoid.End G from (T - 1) ^ i)).comp |
| 73 | (show AddMonoid.End G from (U - 1) ^ j)) x c |
| 74 | change φ (((T - 1) ^ i) (((U - 1) ^ j) ((V ^ c) x))) = _ at hV |
| 75 | change (a.choose i : ℚ) * ((b.choose j : ℚ) * |
| 76 | φ (((T - 1) ^ i) (((U - 1) ^ j) ((V ^ c) x)))) = _ |
| 77 | rw [hV, Finset.mul_sum, Finset.mul_sum] |
| 78 | apply Finset.sum_congr rfl |
| 79 | intro k _ |
| 80 | change (a.choose i : ℚ) * ((b.choose j : ℚ) * ((c.choose k : ℚ) * |
| 81 | φ (((T - 1) ^ i) (((U - 1) ^ j) (((V - 1) ^ k) x))))) = |
| 82 | (a.choose i : ℚ) * (b.choose j : ℚ) * (c.choose k : ℚ) * |
| 83 | φ (((T - 1) ^ i) (((U - 1) ^ j) (((V - 1) ^ k) x))) |
| 84 | ring |
| 85 | |
| 86 | theorem triple_newton (T U V : AddMonoid.End G) (φ : G →+ ℚ) (x : G) (d : ℕ) |
| 87 | (hzero : ∀ i j k : ℕ, d < i + j + k → |
| 88 | ((T - 1) ^ i) (((U - 1) ^ j) (((V - 1) ^ k) x)) = 0) |
| 89 | (a b c : ℕ) : |
| 90 | φ ((T ^ a) ((U ^ b) ((V ^ c) x))) = |
| 91 | ∑ i ∈ Finset.range (d + 1), ∑ j ∈ Finset.range (d + 1), |
| 92 | ∑ k ∈ Finset.range (d + 1), |
| 93 | (a.choose i : ℚ) * (b.choose j : ℚ) * (c.choose k : ℚ) * coefficient T U V φ x i j k := by |
| 94 | have hz (i j k : ℕ) (h : d < i + j + k) : coefficient T U V φ x i j k = 0 := by |
| 95 | rw [coefficient, hzero i j k h, map_zero] |
| 96 | rw [triple_newton_full] |
| 97 | simp_rw [mul_assoc, ← Finset.mul_sum] |
| 98 | rw [choose_sum_truncate a (d + 1) _ (by |
| 99 | intro i hi |
| 100 | apply Finset.sum_eq_zero |
| 101 | intro j _ |
| 102 | rw [Finset.sum_eq_zero (fun k _ => by rw [hz i j k (by omega), mul_zero]), mul_zero])] |
| 103 | apply Finset.sum_congr rfl |
| 104 | intro i _ |
| 105 | congr 1 |
| 106 | rw [choose_sum_truncate b (d + 1) _ (by |
| 107 | intro j hj |
| 108 | apply Finset.sum_eq_zero |
| 109 | intro k _ |
| 110 | rw [hz i j k (by omega), mul_zero])] |
| 111 | apply Finset.sum_congr rfl |
| 112 | intro j _ |
| 113 | congr 1 |
| 114 | exact choose_sum_truncate c (d + 1) _ (fun k hk => hz i j k (by omega)) |
| 115 | |
| 116 | end OAI.NumberTheory.PadicHodge.IntegralComparison.MixedOrbitNewton |