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.Data.List.OfFn |
| 2 | import Mathlib.Algebra.BigOperators.Module |
| 3 | import Mathlib.Algebra.BigOperators.GroupWithZero.Action |
| 4 | import Mathlib.Algebra.Module.NatInt |
| 5 | import Mathlib.Tactic.Abel |
| 6 | |
| 7 | /-! # Tuple Concatenation -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.TupleConcatenation |
| 10 | |
| 11 | /-! The signed tuple-concatenation identity underlying interchange of |
| 12 | the two Čech augmentations. Empty tuples are retained, so both edge |
| 13 | terms remain explicit. -/ |
| 14 | |
| 15 | open scoped BigOperators |
| 16 | |
| 17 | variable {ι V : Type*} [AddCommGroup V] |
| 18 | |
| 19 | def boundaryValue (f : List ι → V) (t : List ι) : V := |
| 20 | ∑ i ∈ Finset.range t.length, (-1 : ℤ)^i • f (t.eraseIdx i) |
| 21 | |
| 22 | theorem boundary_append (f : List ι → V) (a b : List ι) : |
| 23 | boundaryValue f (a ++ b) = |
| 24 | boundaryValue (fun t => f (t ++ b)) a + |
| 25 | (-1 : ℤ)^a.length • boundaryValue (fun t => f (a ++ t)) b := by |
| 26 | unfold boundaryValue |
| 27 | rw [List.length_append, Finset.sum_range_add, Finset.smul_sum] |
| 28 | congr 1 |
| 29 | · apply Finset.sum_congr rfl |
| 30 | intro i hi |
| 31 | rw [List.eraseIdx_append_of_lt_length (Finset.mem_range.mp hi)] |
| 32 | · apply Finset.sum_congr rfl |
| 33 | intro i _ |
| 34 | rw [List.eraseIdx_append_of_length_le (Nat.le_add_right _ _), Nat.add_sub_cancel_left, |
| 35 | pow_add, mul_smul] |
| 36 | |
| 37 | theorem boundary_singleton_left (f : List ι → V) (a : ι) (b : List ι) : |
| 38 | boundaryValue f (a :: b) = f b - boundaryValue (fun t => f (a :: t)) b := by |
| 39 | have h := boundary_append f [a] b |
| 40 | simpa only [List.singleton_append, boundaryValue, List.length_singleton, |
| 41 | Finset.sum_range_one, pow_zero, one_smul, List.eraseIdx_cons_zero, |
| 42 | List.nil_append, pow_one, neg_one_zsmul, sub_eq_add_neg] using h |
| 43 | |
| 44 | theorem boundary_singleton_right (f : List ι → V) (a : List ι) (b : ι) : |
| 45 | boundaryValue f (a ++ [b]) = boundaryValue (fun t => f (t ++ [b])) a + |
| 46 | (-1 : ℤ)^a.length • f a := by |
| 47 | have h := boundary_append f a [b] |
| 48 | simpa only [boundaryValue, List.length_singleton, Finset.sum_range_one, |
| 49 | pow_zero, one_smul, List.eraseIdx_cons_zero, List.append_nil] using h |
| 50 | |
| 51 | theorem internal_cancellation (f : List ι → V) (a b : List ι) : |
| 52 | (-1 : ℤ)^(a.length+1) • boundaryValue (fun t => f (t ++ b)) a + |
| 53 | (-1 : ℤ)^a.length • boundaryValue f (a ++ b) - |
| 54 | boundaryValue (fun t => f (a ++ t)) b = 0 := by |
| 55 | rw [boundary_append, smul_add, smul_smul, ← mul_pow] |
| 56 | rw [show (-1 : ℤ) * (-1) = 1 by decide, one_pow, one_smul, |
| 57 | pow_succ, mul_neg_one, neg_smul] |
| 58 | abel |
| 59 | |
| 60 | /-- The two end terms survive precisely on the two edges of the |
| 61 | unaugmented double Čech complex. This is the component equation for |
| 62 | the concatenation homotopy. -/ |
| 63 | theorem prism_cancellation (f : List ι → V) (x y : ι) (a b : List ι) : |
| 64 | (if a = [] then 0 else |
| 65 | -((-1 : ℤ)^a.length • boundaryValue (fun t => f (t ++ y :: b)) (x :: a))) + |
| 66 | (if b = [] then 0 else boundaryValue (fun t => f ((x :: a) ++ t)) (y :: b)) + |
| 67 | (-1 : ℤ)^a.length • boundaryValue f ((x :: a) ++ y :: b) = |
| 68 | (if a = [] then f (y :: b) else 0) - |
| 69 | (if b = [] then f (x :: a) else 0) := by |
| 70 | classical |
| 71 | have sign : (-1 : ℤ)^a.length * (-1 : ℤ)^(a.length + 1) = -1 := by |
| 72 | rw [pow_succ, ← mul_assoc, ← mul_pow] |
| 73 | rw [show (-1 : ℤ) * (-1) = 1 by decide, one_pow, one_mul] |
| 74 | have full : -((-1 : ℤ)^a.length • |
| 75 | boundaryValue (fun t => f (t ++ y :: b)) (x :: a)) + |
| 76 | boundaryValue (fun t => f ((x :: a) ++ t)) (y :: b) + |
| 77 | (-1 : ℤ)^a.length • boundaryValue f ((x :: a) ++ y :: b) = 0 := by |
| 78 | rw [boundary_append, List.length_cons, smul_add, smul_smul, sign, neg_one_zsmul] |
| 79 | abel |
| 80 | by_cases ha : a = [] <;> by_cases hb : b = [] |
| 81 | · subst a |
| 82 | subst b |
| 83 | simp [boundaryValue, Finset.sum_range_succ, sub_eq_add_neg] |
| 84 | · simp only [ite_eq_left ha, ite_eq_right hb, zero_add, sub_zero] |
| 85 | subst a |
| 86 | simp only [List.length_nil, pow_zero, one_smul] at full ⊢ |
| 87 | have he : boundaryValue (fun t => f (t ++ y :: b)) [x] = f (y :: b) := by |
| 88 | simp only [boundaryValue, List.length_singleton, Finset.sum_range_one, |
| 89 | pow_zero, one_smul, List.eraseIdx_cons_zero, List.nil_append] |
| 90 | rw [he] at full |
| 91 | apply sub_eq_zero.mp |
| 92 | convert full using 1 |
| 93 | abel |
| 94 | · simp only [ite_eq_right ha, ite_eq_left hb, add_zero, zero_sub] |
| 95 | subst b |
| 96 | have he : boundaryValue (fun t => f ((x :: a) ++ t)) [y] = f (x :: a) := by |
| 97 | simp only [boundaryValue, List.length_singleton, Finset.sum_range_one, |
| 98 | pow_zero, one_smul, List.eraseIdx_cons_zero, List.append_nil] |
| 99 | rw [he] at full |
| 100 | apply sub_eq_zero.mp |
| 101 | convert full using 1 |
| 102 | abel |
| 103 | · simpa only [ite_eq_right ha, ite_eq_right hb, sub_zero] using full |
| 104 | |
| 105 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.TupleConcatenation |