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.Analysis.DifferentialForms.Manifold.CechContractionAlgebra |
| 2 | import Mathlib.Algebra.BigOperators.Finprod |
| 3 | |
| 4 | /-! # Cech Locally Finite Algebra -/ |
| 5 | |
| 6 | namespace OAI.Analysis.DifferentialForms.Manifold.CechLocallyFiniteAlgebra |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The weighted Čech insertion identity for arbitrary index sets and finitely |
| 11 | supported weights. Local finiteness supplies this hypothesis pointwise. -/ |
| 12 | |
| 13 | open Function Set |
| 14 | open scoped BigOperators |
| 15 | |
| 16 | variable {ι A : Type*} [AddCommGroup A] [Module ℂ A] |
| 17 | |
| 18 | /-- Weighted insertion restricted to a specified finite set of indices. -/ |
| 19 | def finsetWeightedInsertion {n : ℕ} (s : Finset ι) (weight : ι → ℂ) |
| 20 | (c : (Fin (n + 2) → ι) → A) (a : Fin (n + 1) → ι) : A := |
| 21 | ∑ i ∈ s, weight i • c (Fin.cons i a) |
| 22 | |
| 23 | theorem tupleCoboundary_finsetWeightedInsertion {n : ℕ} (s : Finset ι) (weight : ι → ℂ) |
| 24 | (c : (Fin (n + 2) → ι) → A) (a : Fin (n + 2) → ι) : |
| 25 | CechContractionAlgebra.tupleCoboundary (finsetWeightedInsertion s weight c) a + |
| 26 | finsetWeightedInsertion s weight (CechContractionAlgebra.tupleCoboundary c) a = |
| 27 | (∑ i ∈ s, weight i) • c a := by |
| 28 | classical |
| 29 | have hdouble : |
| 30 | (∑ i ∈ s, weight i • ∑ j : Fin (n + 2), |
| 31 | (-1 : ℤ) ^ j.val • c (Fin.cons i (a ∘ j.succAbove))) = |
| 32 | CechContractionAlgebra.tupleCoboundary (finsetWeightedInsertion s weight c) a := by |
| 33 | simp only [Finset.smul_sum, CechContractionAlgebra.tupleCoboundary, finsetWeightedInsertion] |
| 34 | rw [Finset.sum_comm] |
| 35 | apply Finset.sum_congr rfl |
| 36 | intro j _ |
| 37 | apply Finset.sum_congr rfl |
| 38 | intro i _ |
| 39 | exact smul_comm (weight i) ((-1 : ℤ) ^ j.val) _ |
| 40 | have hidentity : finsetWeightedInsertion s weight (CechContractionAlgebra.tupleCoboundary c) a = |
| 41 | (∑ i ∈ s, weight i) • c a - CechContractionAlgebra.tupleCoboundary (finsetWeightedInsertion s weight c) a := by |
| 42 | unfold finsetWeightedInsertion |
| 43 | simp_rw [CechContractionAlgebra.tupleCoboundary_cons, smul_sub] |
| 44 | rw [Finset.sum_sub_distrib, ← Finset.sum_smul] |
| 45 | exact congrArg (fun z => (∑ i ∈ s, weight i) • c a - z) hdouble |
| 46 | rw [hidentity] |
| 47 | abel |
| 48 | |
| 49 | /-- The actual pointwise `finsum` version of weighted insertion. -/ |
| 50 | def finsumWeightedInsertion {n : ℕ} (weight : ι → ℂ) |
| 51 | (c : (Fin (n + 2) → ι) → A) (a : Fin (n + 1) → ι) : A := |
| 52 | ∑ᶠ i, weight i • c (Fin.cons i a) |
| 53 | |
| 54 | theorem finsumWeightedInsertion_eq_finset {n : ℕ} (s : Finset ι) (weight : ι → ℂ) |
| 55 | (c : (Fin (n + 2) → ι) → A) (hs : support weight ⊆ s) : |
| 56 | finsumWeightedInsertion weight c = finsetWeightedInsertion s weight c := by |
| 57 | funext a |
| 58 | apply finsum_eq_sum_of_support_subset |
| 59 | intro i hi |
| 60 | apply hs |
| 61 | intro hz |
| 62 | apply hi |
| 63 | change weight i • c (Fin.cons i a) = 0 |
| 64 | rw [hz] |
| 65 | exact zero_smul ℂ _ |
| 66 | |
| 67 | /-- The Čech insertion identity needs only finitely many nonzero weights, |
| 68 | even when the index set and the tuple entries are arbitrary. -/ |
| 69 | theorem tupleCoboundary_finsumWeightedInsertion {n : ℕ} (weight : ι → ℂ) |
| 70 | (hweight : HasFiniteSupport weight) (c : (Fin (n + 2) → ι) → A) |
| 71 | (a : Fin (n + 2) → ι) : |
| 72 | CechContractionAlgebra.tupleCoboundary (finsumWeightedInsertion weight c) a + |
| 73 | finsumWeightedInsertion weight (CechContractionAlgebra.tupleCoboundary c) a = (∑ᶠ i, weight i) • c a := by |
| 74 | let s := hweight.toFinset |
| 75 | have hs : support weight ⊆ s := by |
| 76 | intro i hi |
| 77 | exact hweight.mem_toFinset.mpr hi |
| 78 | rw [finsumWeightedInsertion_eq_finset s weight c hs, |
| 79 | finsumWeightedInsertion_eq_finset s weight (CechContractionAlgebra.tupleCoboundary c) hs, |
| 80 | tupleCoboundary_finsetWeightedInsertion, finsum_eq_sum_of_support_subset weight hs] |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.Analysis.DifferentialForms.Manifold.CechLocallyFiniteAlgebra |