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.Comparison.Betti.SupportedCochains |
| 2 | import Mathlib.Tactic.Abel |
| 3 | |
| 4 | /-! # Supported Cochain Contraction -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Comparison.Betti.SupportedCochainContraction.Cech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Prepending an index outside the required support contracts positive-degree cycles. -/ |
| 11 | |
| 12 | open scoped BigOperators |
| 13 | |
| 14 | variable {ι V : Type} [DecidableEq ι] [AddCommGroup V] |
| 15 | |
| 16 | def supportCechPrepend {q : ℕ} (i : ι) (t : Fin (q + 1) → ι) : Fin (q + 2) → ι := Fin.cases i t |
| 17 | |
| 18 | omit [DecidableEq ι] in |
| 19 | theorem supportCechDelete_prepend_zero {q : ℕ} (i : ι) (t : Fin (q + 1) → ι) : |
| 20 | SupportedCochains.Cech.supportCechDelete (supportCechPrepend i t) 0 = t := by |
| 21 | funext k |
| 22 | rfl |
| 23 | |
| 24 | omit [DecidableEq ι] in |
| 25 | theorem supportCechDelete_prepend_succ {q : ℕ} (i : ι) (t : Fin (q + 2) → ι) (k : Fin (q + 2)) : |
| 26 | SupportedCochains.Cech.supportCechDelete (supportCechPrepend i t) k.succ = supportCechPrepend i (SupportedCochains.Cech.supportCechDelete t k) := by |
| 27 | funext l |
| 28 | refine Fin.cases ?_ (fun m => ?_) l |
| 29 | · rfl |
| 30 | · simp [SupportedCochains.Cech.supportCechDelete, supportCechPrepend, SimplexCategory.δ, Function.comp_apply] |
| 31 | |
| 32 | theorem supportCechPrepend_not_subset {N : Finset ι} {i : ι} (hi : i ∉ N) |
| 33 | {q : ℕ} (t : Fin (q + 1) → ι) (ht : ¬N ⊆ Finset.univ.image t) : |
| 34 | ¬N ⊆ Finset.univ.image (supportCechPrepend i t) := by |
| 35 | intro h |
| 36 | apply ht |
| 37 | intro j hj |
| 38 | obtain ⟨k, _, hk⟩ := Finset.mem_image.mp (h hj) |
| 39 | induction k using Fin.cases with |
| 40 | | zero => |
| 41 | have hij : i = j := hk |
| 42 | exact False.elim (hi (hij.symm ▸ hj)) |
| 43 | | succ k => |
| 44 | exact Finset.mem_image.mpr ⟨k, Finset.mem_univ _, hk⟩ |
| 45 | |
| 46 | def supportedCechContraction (N : Finset ι) (i : ι) (hi : i ∉ N) (q : ℕ) : |
| 47 | SupportedCochains.Cech.supportedCechCochains V N (q + 1) →+ SupportedCochains.Cech.supportedCechCochains V N q where |
| 48 | toFun s := ⟨fun t => s.val (supportCechPrepend i t), |
| 49 | fun t ht => s.property _ (supportCechPrepend_not_subset hi t ht)⟩ |
| 50 | map_zero' := rfl |
| 51 | map_add' _ _ := rfl |
| 52 | |
| 53 | theorem supportedCechContraction_homotopy (N : Finset ι) (i : ι) (hi : i ∉ N) (q : ℕ) |
| 54 | (s : SupportedCochains.Cech.supportedCechCochains V N (q + 1)) : |
| 55 | SupportedCochains.Cech.supportedCechDifferential N q (supportedCechContraction N i hi q s) + |
| 56 | supportedCechContraction N i hi (q + 1) (SupportedCochains.Cech.supportedCechDifferential N (q + 1) s) = s := by |
| 57 | apply Subtype.ext |
| 58 | funext t |
| 59 | change (∑ k : Fin (q + 2), (-1 : ℤ) ^ k.val • |
| 60 | s.val (supportCechPrepend i (SupportedCochains.Cech.supportCechDelete t k))) + |
| 61 | ∑ k : Fin (q + 3), (-1 : ℤ) ^ k.val • |
| 62 | s.val (SupportedCochains.Cech.supportCechDelete (supportCechPrepend i t) k) = s.val t |
| 63 | conv_lhs => |
| 64 | rhs |
| 65 | rw [Fin.sum_univ_succ] |
| 66 | simp only [Fin.val_zero, pow_zero, one_smul, Fin.val_succ, pow_succ, |
| 67 | mul_neg, mul_one, neg_smul, supportCechDelete_prepend_zero, supportCechDelete_prepend_succ] |
| 68 | rw [Finset.sum_neg_distrib] |
| 69 | abel |
| 70 | |
| 71 | theorem supportedCechContraction_cycle (N : Finset ι) (i : ι) (hi : i ∉ N) (q : ℕ) |
| 72 | (s : SupportedCochains.Cech.supportedCechCochains V N (q + 1)) (hs : SupportedCochains.Cech.supportedCechDifferential N (q + 1) s = 0) : |
| 73 | SupportedCochains.Cech.supportedCechDifferential N q (supportedCechContraction N i hi q s) = s := by |
| 74 | have h := supportedCechContraction_homotopy N i hi q s |
| 75 | rw [hs, map_zero, add_zero] at h |
| 76 | exact h |
| 77 | |
| 78 | theorem supportedCechCycle_has_primitive (N : Finset ι) (i : ι) (hi : i ∉ N) (q : ℕ) |
| 79 | (s : SupportedCochains.Cech.supportedCechCochains V N (q + 1)) (hs : SupportedCochains.Cech.supportedCechDifferential N (q + 1) s = 0) : |
| 80 | ∃ t : SupportedCochains.Cech.supportedCechCochains V N q, SupportedCochains.Cech.supportedCechDifferential N q t = s := by |
| 81 | exact ⟨supportedCechContraction N i hi q s, supportedCechContraction_cycle N i hi q s hs⟩ |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.Comparison.Betti.SupportedCochainContraction.Cech |