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.Algebra.BigOperators.Fin |
| 2 | import Mathlib.Data.Fin.Tuple.Basic |
| 3 | import Mathlib.Analysis.Complex.Basic |
| 4 | import Mathlib.Tactic.Abel |
| 5 | |
| 6 | /-! # Cech Contraction Algebra -/ |
| 7 | |
| 8 | namespace OAI.Analysis.DifferentialForms.Manifold.CechContractionAlgebra |
| 9 | |
| 10 | /-! |
| 11 | The finite-sum identity behind the usual partition-of-unity Čech contraction. |
| 12 | It is proved for arbitrary module-valued tuple families, then used for the |
| 13 | actual restricted sections in `ManifoldCechContraction`. |
| 14 | -/ |
| 15 | |
| 16 | open scoped BigOperators |
| 17 | |
| 18 | variable {ι A : Type*} [Fintype ι] [AddCommGroup A] [Module ℂ A] |
| 19 | |
| 20 | /-- Alternating deletion on a tuple-indexed module-valued family. -/ |
| 21 | def tupleCoboundary {n : ℕ} (c : (Fin (n + 1) → ι) → A) |
| 22 | (a : Fin (n + 2) → ι) : A := |
| 23 | ∑ j : Fin (n + 2), (-1 : ℤ) ^ j.val • c (a ∘ j.succAbove) |
| 24 | |
| 25 | /-- Insert an initial index and sum with the indicated scalar weights. -/ |
| 26 | def weightedInsertion {n : ℕ} (weight : ι → ℂ) |
| 27 | (c : (Fin (n + 2) → ι) → A) (a : Fin (n + 1) → ι) : A := |
| 28 | ∑ i, weight i • c (Fin.cons i a) |
| 29 | |
| 30 | omit [Fintype ι] [Module ℂ A] in |
| 31 | /-- The first deletion removes the inserted index; all other deletions shift |
| 32 | the sign once. -/ |
| 33 | theorem tupleCoboundary_cons {n : ℕ} (c : (Fin (n + 2) → ι) → A) |
| 34 | (i : ι) (a : Fin (n + 2) → ι) : |
| 35 | tupleCoboundary c (Fin.cons i a) = |
| 36 | c a - ∑ j : Fin (n + 2), (-1 : ℤ) ^ j.val • c (Fin.cons i (a ∘ j.succAbove)) := by |
| 37 | classical |
| 38 | rw [tupleCoboundary, Fin.sum_univ_succ] |
| 39 | simp only [Fin.val_zero, pow_zero, one_smul, Fin.succAbove_zero, |
| 40 | Fin.cons_comp_succ, Fin.val_succ, pow_succ, mul_neg_one, neg_smul, |
| 41 | Fin.cons_comp_succ_succAbove, Finset.sum_neg_distrib, sub_eq_add_neg] |
| 42 | rfl |
| 43 | |
| 44 | /-- The explicit finite-sum contraction identity, before evaluating the sum |
| 45 | of the weights. -/ |
| 46 | theorem tupleCoboundary_weightedInsertion {n : ℕ} (weight : ι → ℂ) |
| 47 | (c : (Fin (n + 2) → ι) → A) (a : Fin (n + 2) → ι) : |
| 48 | tupleCoboundary (weightedInsertion weight c) a + |
| 49 | weightedInsertion weight (tupleCoboundary c) a = (∑ i, weight i) • c a := by |
| 50 | classical |
| 51 | have hdouble : |
| 52 | (∑ i, weight i • ∑ j : Fin (n + 2), |
| 53 | (-1 : ℤ) ^ j.val • c (Fin.cons i (a ∘ j.succAbove))) = |
| 54 | tupleCoboundary (weightedInsertion weight c) a := by |
| 55 | simp only [Finset.smul_sum, tupleCoboundary, weightedInsertion] |
| 56 | rw [Finset.sum_comm] |
| 57 | apply Finset.sum_congr rfl |
| 58 | intro j _ |
| 59 | apply Finset.sum_congr rfl |
| 60 | intro i _ |
| 61 | exact smul_comm (weight i) ((-1 : ℤ) ^ j.val) _ |
| 62 | have hidentity : weightedInsertion weight (tupleCoboundary c) a = |
| 63 | (∑ i, weight i) • c a - tupleCoboundary (weightedInsertion weight c) a := by |
| 64 | unfold weightedInsertion |
| 65 | simp_rw [tupleCoboundary_cons, smul_sub] |
| 66 | rw [Finset.sum_sub_distrib, ← Finset.sum_smul] |
| 67 | exact congrArg (fun z => (∑ i, weight i) • c a - z) hdouble |
| 68 | rw [hidentity] |
| 69 | abel |
| 70 | |
| 71 | end OAI.Analysis.DifferentialForms.Manifold.CechContractionAlgebra |