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.Algebra.BigOperators.Module |
| 3 | import Mathlib.Algebra.BigOperators.Group.Finset.Basic |
| 4 | import Mathlib.Algebra.Group.Subgroup.Defs |
| 5 | import Mathlib.Algebra.Module.NatInt |
| 6 | import Mathlib.AlgebraicTopology.SimplexCategory.Basic |
| 7 | |
| 8 | /-! # Supported Cochains -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.Comparison.Betti.SupportedCochains.Cech |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! Support-restricted Cech cochains with arbitrary additive coefficients. -/ |
| 15 | |
| 16 | open scoped BigOperators |
| 17 | |
| 18 | variable {ι V : Type} [DecidableEq ι] [AddCommGroup V] |
| 19 | |
| 20 | def supportCechDelete {q : ℕ} (t : Fin (q + 2) → ι) (k : Fin (q + 2)) : Fin (q + 1) → ι := |
| 21 | t ∘ (SimplexCategory.δ k).toOrderHom |
| 22 | |
| 23 | theorem supportCechDelete_range_subset {q : ℕ} (t : Fin (q + 2) → ι) (k : Fin (q + 2)) : |
| 24 | Finset.univ.image (supportCechDelete t k) ⊆ Finset.univ.image t := by |
| 25 | intro j hj |
| 26 | obtain ⟨l, _, rfl⟩ := Finset.mem_image.mp hj |
| 27 | exact Finset.mem_image.mpr ⟨(SimplexCategory.δ k).toOrderHom l, Finset.mem_univ _, rfl⟩ |
| 28 | |
| 29 | def supportedCechCochains (V : Type) [AddCommGroup V] (N : Finset ι) (q : ℕ) : |
| 30 | AddSubgroup ((Fin (q + 1) → ι) → V) where |
| 31 | carrier := {s | ∀ t, ¬N ⊆ Finset.univ.image t → s t = 0} |
| 32 | zero_mem' := fun _ _ => rfl |
| 33 | add_mem' := by |
| 34 | intro s t hs ht a ha |
| 35 | change s a + t a = 0 |
| 36 | rw [hs a ha, ht a ha, add_zero] |
| 37 | neg_mem' := by |
| 38 | intro s hs a ha |
| 39 | change -s a = 0 |
| 40 | rw [hs a ha, neg_zero] |
| 41 | |
| 42 | def supportedCechDifferential (N : Finset ι) (q : ℕ) : |
| 43 | supportedCechCochains V N q →+ supportedCechCochains V N (q + 1) where |
| 44 | toFun s := ⟨fun t => ∑ k : Fin (q + 2), (-1 : ℤ) ^ k.val • s.val (supportCechDelete t k), by |
| 45 | intro t ht |
| 46 | apply Finset.sum_eq_zero |
| 47 | intro k _ |
| 48 | rw [s.property _ (fun h => ht (h.trans (supportCechDelete_range_subset t k))), smul_zero]⟩ |
| 49 | map_zero' := by |
| 50 | apply Subtype.ext |
| 51 | funext t |
| 52 | change (∑ k : Fin (q + 2), (-1 : ℤ) ^ k.val • (0 : V)) = 0 |
| 53 | simp only [smul_zero, Finset.sum_const_zero] |
| 54 | map_add' s t := by |
| 55 | apply Subtype.ext |
| 56 | funext a |
| 57 | change (∑ k : Fin (q + 2), (-1 : ℤ) ^ k.val • |
| 58 | (s.val (supportCechDelete a k) + t.val (supportCechDelete a k))) = |
| 59 | (∑ k : Fin (q + 2), (-1 : ℤ) ^ k.val • s.val (supportCechDelete a k)) + |
| 60 | ∑ k : Fin (q + 2), (-1 : ℤ) ^ k.val • t.val (supportCechDelete a k) |
| 61 | exact (Finset.sum_congr rfl (fun k _ => smul_add ((-1 : ℤ) ^ k.val) |
| 62 | (s.val (supportCechDelete a k)) (t.val (supportCechDelete a k)))).trans Finset.sum_add_distrib |
| 63 | |
| 64 | theorem supportedCechDifferential_apply (N : Finset ι) (q : ℕ) |
| 65 | (s : supportedCechCochains V N q) (t : Fin (q + 2) → ι) : |
| 66 | (supportedCechDifferential N q s).val t = |
| 67 | ∑ k : Fin (q + 2), (-1 : ℤ) ^ k.val • s.val (supportCechDelete t k) := rfl |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.Comparison.Betti.SupportedCochains.Cech |