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.AlgebraicTopology.Products.SimplexFaceIdentities |
| 2 | import Mathlib.AlgebraicTopology.AlternatingFaceMapComplex |
| 3 | import Mathlib.Algebra.Category.Ring.Limits |
| 4 | import Mathlib.Tactic.Abel |
| 5 | |
| 6 | /-! # Cup -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Cosimplicial.Cup |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The Alexander–Whitney product on the genuine alternating-coface |
| 13 | complex of a cosimplicial ring, with arbitrary ring-map naturality. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory |
| 16 | open scoped Simplicial |
| 17 | |
| 18 | open OAI.AlgebraicTopology.Products.SimplexFaceIdentities |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable (A : CosimplicialObject CommRingCat.{u}) |
| 23 | |
| 24 | def additive : CosimplicialObject AddCommGrpCat.{u} := |
| 25 | A ⋙ forget₂ CommRingCat RingCat ⋙ forget₂ RingCat AddCommGrpCat |
| 26 | |
| 27 | def complex : CochainComplex AddCommGrpCat.{u} ℕ := |
| 28 | (AlgebraicTopology.alternatingCofaceMapComplex AddCommGrpCat).obj (additive A) |
| 29 | |
| 30 | def cup {p q : ℕ} (x : A.obj ⦋p⦌) (y : A.obj ⦋q⦌) : A.obj ⦋p + q⦌ := |
| 31 | A.map (OAI.AlgebraicTopology.Products.SimplexFaceIdentities.frontInclusion p q) x * A.map (OAI.AlgebraicTopology.Products.SimplexFaceIdentities.backInclusion p q) y |
| 32 | |
| 33 | def differential (n : ℕ) (x : A.obj ⦋n⦌) : A.obj ⦋n + 1⦌ := |
| 34 | ∑ i : Fin (n + 2), (-1 : ℤ) ^ i.val • A.map (SimplexCategory.δ i) x |
| 35 | |
| 36 | theorem complex_d_apply (n : ℕ) (x : A.obj ⦋n⦌) : |
| 37 | (complex A).d n (n + 1) x = differential A n x := by |
| 38 | dsimp only [complex, AlgebraicTopology.alternatingCofaceMapComplex, |
| 39 | AlgebraicTopology.AlternatingCofaceMapComplex.obj] |
| 40 | rw [CochainComplex.of_d] |
| 41 | let ev : ((additive A).obj ⦋n⦌ ⟶ (additive A).obj ⦋n + 1⦌) →+ |
| 42 | (additive A).obj ⦋n + 1⦌ := |
| 43 | { toFun := fun f => f x |
| 44 | map_zero' := rfl |
| 45 | map_add' := fun _ _ => rfl } |
| 46 | exact map_sum ev (fun i : Fin (n + 2) => (-1 : ℤ) ^ i.val • (additive A).δ i) Finset.univ |
| 47 | |
| 48 | theorem cup_add_left {p q : ℕ} (x x' : A.obj ⦋p⦌) (y : A.obj ⦋q⦌) : |
| 49 | cup A (x + x') y = cup A x y + cup A x' y := by |
| 50 | simp only [cup, map_add, add_mul] |
| 51 | |
| 52 | theorem cup_add_right {p q : ℕ} (x : A.obj ⦋p⦌) (y y' : A.obj ⦋q⦌) : |
| 53 | cup A x (y + y') = cup A x y + cup A x y' := by |
| 54 | simp only [cup, map_add, mul_add] |
| 55 | |
| 56 | theorem cup_natural {B : CosimplicialObject CommRingCat.{u}} (f : A ⟶ B) |
| 57 | {p q : ℕ} (x : A.obj ⦋p⦌) (y : A.obj ⦋q⦌) : |
| 58 | f.app ⦋p + q⦌ (cup A x y) = cup B (f.app ⦋p⦌ x) (f.app ⦋q⦌ y) := by |
| 59 | unfold cup |
| 60 | rw [map_mul] |
| 61 | congr 1 |
| 62 | · exact ConcreteCategory.congr_hom (f.naturality (OAI.AlgebraicTopology.Products.SimplexFaceIdentities.frontInclusion p q)) x |
| 63 | · exact ConcreteCategory.congr_hom (f.naturality (OAI.AlgebraicTopology.Products.SimplexFaceIdentities.backInclusion p q)) y |
| 64 | |
| 65 | theorem differential_natural {B : CosimplicialObject CommRingCat.{u}} (f : A ⟶ B) |
| 66 | (n : ℕ) (x : A.obj ⦋n⦌) : |
| 67 | f.app ⦋n + 1⦌ (differential A n x) = differential B n (f.app ⦋n⦌ x) := by |
| 68 | simp only [differential, map_sum, map_zsmul] |
| 69 | apply Finset.sum_congr rfl |
| 70 | intro i _ |
| 71 | congr 1 |
| 72 | exact ConcreteCategory.congr_hom (f.naturality (SimplexCategory.δ i)) x |
| 73 | |
| 74 | theorem differential_sq (n : ℕ) (x : A.obj ⦋n⦌) : |
| 75 | differential A (n + 1) (differential A n x) = 0 := by |
| 76 | rw [← complex_d_apply, ← complex_d_apply] |
| 77 | exact ConcreteCategory.congr_hom ((complex A).d_comp_d n (n + 1) (n + 1 + 1)) x |
| 78 | |
| 79 | theorem coface_cup_left (p q : ℕ) (x : A.obj ⦋p⦌) (y : A.obj ⦋q⦌) |
| 80 | (i : Fin (p + 1)) : |
| 81 | A.map (SimplexCategory.δ (OAI.AlgebraicTopology.Products.SimplexFaceIdentities.leftFaceIndex p q i)) (cup A x y) = |
| 82 | A.map (SimplexCategory.subinterval 0 (p + 1) (by omega : 0 + (p + 1) ≤ p + q + 1)) |
| 83 | (A.map (SimplexCategory.δ i.castSucc) x) * |
| 84 | A.map (SimplexCategory.subinterval (p + 1) q (by omega : (p + 1) + q ≤ p + q + 1)) y := by |
| 85 | simp only [cup, map_mul] |
| 86 | rw [← CommRingCat.comp_apply, ← CommRingCat.comp_apply, ← CommRingCat.comp_apply, |
| 87 | ← A.map_comp, ← A.map_comp, ← A.map_comp, |
| 88 | OAI.AlgebraicTopology.Products.SimplexFaceIdentities.frontInclusion_comp_delta_left, OAI.AlgebraicTopology.Products.SimplexFaceIdentities.backInclusion_comp_delta_left] |
| 89 | |
| 90 | theorem coface_cup_right (p q : ℕ) (x : A.obj ⦋p⦌) (y : A.obj ⦋q⦌) |
| 91 | (i : Fin (q + 1)) : |
| 92 | A.map (SimplexCategory.δ (OAI.AlgebraicTopology.Products.SimplexFaceIdentities.rightFaceIndex p q i)) (cup A x y) = |
| 93 | A.map (SimplexCategory.subinterval 0 p (by omega : 0 + p ≤ p + q + 1)) x * |
| 94 | A.map (SimplexCategory.subinterval p (q + 1) (by omega : p + (q + 1) ≤ p + q + 1)) |
| 95 | (A.map (SimplexCategory.δ i.succ) y) := by |
| 96 | simp only [cup, map_mul] |
| 97 | rw [← CommRingCat.comp_apply, ← CommRingCat.comp_apply, ← CommRingCat.comp_apply, |
| 98 | ← A.map_comp, ← A.map_comp, ← A.map_comp, |
| 99 | OAI.AlgebraicTopology.Products.SimplexFaceIdentities.frontInclusion_comp_delta_right, OAI.AlgebraicTopology.Products.SimplexFaceIdentities.backInclusion_comp_delta_right] |
| 100 | |
| 101 | private theorem alternating_cut {V : Type*} [AddCommGroup V] (p q : ℕ) |
| 102 | (a : Fin (p + 2) → V) (b : Fin (q + 2) → V) |
| 103 | (h : a (Fin.last (p + 1)) = b 0) : |
| 104 | (∑ i : Fin (p + 1), (-1 : ℤ) ^ i.val • a i.castSucc) + |
| 105 | (∑ j : Fin (q + 1), (-1 : ℤ) ^ (p + 1 + j.val) • b j.succ) = |
| 106 | (∑ i : Fin (p + 2), (-1 : ℤ) ^ i.val • a i) + |
| 107 | (-1 : ℤ) ^ p • (∑ j : Fin (q + 2), (-1 : ℤ) ^ j.val • b j) := by |
| 108 | rw [Fin.sum_univ_castSucc (fun i : Fin (p + 2) => (-1 : ℤ) ^ i.val • a i), |
| 109 | Fin.sum_univ_succ (fun j : Fin (q + 2) => (-1 : ℤ) ^ j.val • b j)] |
| 110 | simp only [Fin.val_castSucc, Fin.val_last, Fin.val_zero, Fin.val_succ, |
| 111 | pow_zero, one_smul] |
| 112 | rw [smul_add, Finset.smul_sum] |
| 113 | simp_rw [smul_smul, ← pow_add] |
| 114 | have hs : (∑ j : Fin (q + 1), (-1 : ℤ) ^ (p + (j.val + 1)) • b j.succ) = |
| 115 | ∑ j : Fin (q + 1), (-1 : ℤ) ^ (p + 1 + j.val) • b j.succ := by |
| 116 | simp only [Nat.add_assoc, Nat.add_comm 1] |
| 117 | rw [hs, h, pow_succ] |
| 118 | simp only [mul_neg_one, neg_smul] |
| 119 | abel |
| 120 | |
| 121 | /-- The Leibniz rule in a common target degree. The interval notation |
| 122 | avoids introducing transports between equal parenthesizations of the degree. -/ |
| 123 | theorem differential_cup (p q : ℕ) (x : A.obj ⦋p⦌) (y : A.obj ⦋q⦌) : |
| 124 | differential A (p + q) (cup A x y) = |
| 125 | A.map (SimplexCategory.subinterval 0 (p + 1) (by omega : 0 + (p + 1) ≤ p + q + 1)) |
| 126 | (differential A p x) * |
| 127 | A.map (SimplexCategory.subinterval (p + 1) q (by omega : (p + 1) + q ≤ p + q + 1)) y + |
| 128 | (-1 : ℤ) ^ p • |
| 129 | (A.map (SimplexCategory.subinterval 0 p (by omega : 0 + p ≤ p + q + 1)) x * |
| 130 | A.map (SimplexCategory.subinterval p (q + 1) (by omega : p + (q + 1) ≤ p + q + 1)) |
| 131 | (differential A q y)) := by |
| 132 | let a (i : Fin (p + 2)) := |
| 133 | A.map (SimplexCategory.subinterval 0 (p + 1) (by omega : 0 + (p + 1) ≤ p + q + 1)) |
| 134 | (A.map (SimplexCategory.δ i) x) * |
| 135 | A.map (SimplexCategory.subinterval (p + 1) q (by omega : (p + 1) + q ≤ p + q + 1)) y |
| 136 | let b (i : Fin (q + 2)) := |
| 137 | A.map (SimplexCategory.subinterval 0 p (by omega : 0 + p ≤ p + q + 1)) x * |
| 138 | A.map (SimplexCategory.subinterval p (q + 1) (by omega : p + (q + 1) ≤ p + q + 1)) |
| 139 | (A.map (SimplexCategory.δ i) y) |
| 140 | have hmiddle : a (Fin.last (p + 1)) = b 0 := by |
| 141 | dsimp only [a, b] |
| 142 | rw [← CommRingCat.comp_apply, ← CommRingCat.comp_apply, ← A.map_comp, ← A.map_comp, |
| 143 | OAI.AlgebraicTopology.Products.SimplexFaceIdentities.delta_last_comp_frontInterval, OAI.AlgebraicTopology.Products.SimplexFaceIdentities.delta_zero_comp_backInterval] |
| 144 | have hsum := alternating_cut p q a b hmiddle |
| 145 | rw [differential, OAI.AlgebraicTopology.Products.SimplexFaceIdentities.sum_face_split p q] |
| 146 | simp only [OAI.AlgebraicTopology.Products.SimplexFaceIdentities.leftFaceIndex_val, OAI.AlgebraicTopology.Products.SimplexFaceIdentities.rightFaceIndex_val, coface_cup_left, coface_cup_right] |
| 147 | dsimp only [a, b] at hsum |
| 148 | convert hsum using 1 |
| 149 | simp only [differential, map_sum, map_zsmul, Finset.sum_mul, Finset.mul_sum, |
| 150 | smul_mul_assoc, mul_smul_comm] |
| 151 | |
| 152 | theorem cup_isCocycle {p q : ℕ} (x : A.obj ⦋p⦌) (y : A.obj ⦋q⦌) |
| 153 | (hx : differential A p x = 0) (hy : differential A q y = 0) : |
| 154 | differential A (p + q) (cup A x y) = 0 := by |
| 155 | rw [differential_cup, hx, hy] |
| 156 | simp only [map_zero, zero_mul, mul_zero, smul_zero, add_zero] |
| 157 | |
| 158 | end |
| 159 | |
| 160 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Cosimplicial.Cup |