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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/SheafCechDifferential.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.SheafCohomology.Cech.Cochains |
| 8 | |
| 9 | /-! # Differential -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.SheafCohomology.Cech.Differential.TopologicalSpace |
| 12 | |
| 13 | open _root_.TopologicalSpace |
| 14 | |
| 15 | /-! |
| 16 | # The Cech differential on local sections |
| 17 | |
| 18 | This file computes the coface maps and the alternating differential of mathlib's Cech |
| 19 | complex under `TopologicalSpace.cechCochainAddEquiv`. Each coface restricts the section |
| 20 | indexed by the tuple obtained by deleting one entry. |
| 21 | -/ |
| 22 | |
| 23 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | variable {T : Type u} [TopologicalSpace T] |
| 28 | variable (F : (Opens T)ᵒᵖ ⥤ AddCommGrpCat.{u}) {ι : Type u} |
| 29 | variable (U : ι → Opens T) (n : ℕ) |
| 30 | |
| 31 | private theorem cechCoface_eq (k : Fin (n + 2)) : |
| 32 | ((FormalCoproduct.cosimplicialObjectFunctor |
| 33 | (FormalCoproduct.mk _ U).cech).obj F).δ k = |
| 34 | Pi.lift (fun i : Fin (n + 2) → ι => |
| 35 | Pi.π (fun j : Fin (n + 1) → ι => |
| 36 | F.obj (op (∏ᶜ fun a : Fin (n + 1) => U (j a)))) |
| 37 | (i ∘ (SimplexCategory.δ k).toOrderHom.toFun) ≫ |
| 38 | F.map (((FormalCoproduct.mk _ U).mapPower |
| 39 | (SimplexCategory.δ k).toOrderHom.toFun).φ i).op) := by |
| 40 | rw [CosimplicialObject.δ, |
| 41 | FormalCoproduct.cosimplicialObjectFunctor_obj_map, |
| 42 | FormalCoproduct.cech_map] |
| 43 | rfl |
| 44 | |
| 45 | private theorem cechDifferential_eq : |
| 46 | ((cechComplexFunctor U).obj F).d n (n + 1) = |
| 47 | ∑ k : Fin (n + 2), (-1 : ℤ) ^ (k : ℕ) • |
| 48 | ((FormalCoproduct.cosimplicialObjectFunctor |
| 49 | (FormalCoproduct.mk _ U).cech).obj F).δ k := by |
| 50 | change ((FormalCoproduct.cochainComplexFunctor |
| 51 | (FormalCoproduct.mk _ U).cech).obj F).d n (n + 1) = _ |
| 52 | rw [FormalCoproduct.cochainComplexFunctor_obj_d] |
| 53 | exact (CochainComplex.of_d _ _ n).trans rfl |
| 54 | |
| 55 | private theorem addCommGrp_sum_apply_finset {A B : AddCommGrpCat} {κ : Type*} |
| 56 | (s : Finset κ) (f : κ → (A ⟶ B)) (x : A) : |
| 57 | (∑ i ∈ s, f i) x = ∑ i ∈ s, f i x := by |
| 58 | classical |
| 59 | induction s using Finset.induction_on with |
| 60 | | empty => rfl |
| 61 | | @insert a s ha ih => |
| 62 | rw [Finset.sum_insert ha, Finset.sum_insert ha, |
| 63 | AddCommGrpCat.hom_add_apply, ih] |
| 64 | |
| 65 | private theorem addCommGrp_sum_apply {A B : AddCommGrpCat} {κ : Type*} |
| 66 | [Fintype κ] (f : κ → (A ⟶ B)) (x : A) : |
| 67 | (∑ i, f i) x = ∑ i, f i x := |
| 68 | addCommGrp_sum_apply_finset Finset.univ f x |
| 69 | |
| 70 | /-- A Cech coface restricts the component indexed by the tuple with its `k`th entry |
| 71 | deleted to the full tuple intersection. -/ |
| 72 | theorem cechCoface_apply (x : ((cechComplexFunctor U).obj F).X n) |
| 73 | (k : Fin (n + 2)) (i : Fin (n + 2) → ι) : |
| 74 | Cochains.TopologicalSpace.cechCochainAddEquiv F U (n + 1) |
| 75 | (((FormalCoproduct.cosimplicialObjectFunctor |
| 76 | (FormalCoproduct.mk _ U).cech).obj F).δ k x) i = |
| 77 | F.map (((FormalCoproduct.mk _ U).mapPower |
| 78 | (SimplexCategory.δ k).toOrderHom.toFun).φ i).op |
| 79 | (Cochains.TopologicalSpace.cechCochainAddEquiv F U n x |
| 80 | (i ∘ (SimplexCategory.δ k).toOrderHom.toFun)) := by |
| 81 | have hout := Cochains.TopologicalSpace.cechCochainAddEquiv_apply F U (n + 1) |
| 82 | (((FormalCoproduct.cosimplicialObjectFunctor |
| 83 | (FormalCoproduct.mk _ U).cech).obj F).δ k x) i |
| 84 | have hin := Cochains.TopologicalSpace.cechCochainAddEquiv_apply F U n x |
| 85 | (i ∘ (SimplexCategory.δ k).toOrderHom.toFun) |
| 86 | rw [hout, hin, cechCoface_eq] |
| 87 | exact ConcreteCategory.congr_hom |
| 88 | (Pi.lift_comp_π (fun i : Fin (n + 2) → ι => |
| 89 | Pi.π (fun j : Fin (n + 1) → ι => |
| 90 | F.obj (op (∏ᶜ fun a : Fin (n + 1) => U (j a)))) |
| 91 | (i ∘ (SimplexCategory.δ k).toOrderHom.toFun) ≫ |
| 92 | F.map (((FormalCoproduct.mk _ U).mapPower |
| 93 | (SimplexCategory.δ k).toOrderHom.toFun).φ i).op) i) x |
| 94 | |
| 95 | /-- Under the concrete cochain equivalence, the Cech differential is the alternating |
| 96 | sum of restrictions along all tuple deletions. -/ |
| 97 | theorem cechDifferential_apply (x : ((cechComplexFunctor U).obj F).X n) |
| 98 | (i : Fin (n + 2) → ι) : |
| 99 | Cochains.TopologicalSpace.cechCochainAddEquiv F U (n + 1) |
| 100 | (((cechComplexFunctor U).obj F).d n (n + 1) x) i = |
| 101 | ∑ k : Fin (n + 2), (-1 : ℤ) ^ (k : ℕ) • |
| 102 | F.map (((FormalCoproduct.mk _ U).mapPower |
| 103 | (SimplexCategory.δ k).toOrderHom.toFun).φ i).op |
| 104 | (Cochains.TopologicalSpace.cechCochainAddEquiv F U n x |
| 105 | (i ∘ (SimplexCategory.δ k).toOrderHom.toFun)) := by |
| 106 | rw [cechDifferential_eq] |
| 107 | have hmapSum : |
| 108 | Cochains.TopologicalSpace.cechCochainAddEquiv F U (n + 1) |
| 109 | (∑ k : Fin (n + 2), |
| 110 | (((-1 : ℤ) ^ (k : ℕ) • |
| 111 | ((FormalCoproduct.cosimplicialObjectFunctor |
| 112 | (FormalCoproduct.mk _ U).cech).obj F).δ k) x)) = |
| 113 | ∑ k : Fin (n + 2), Cochains.TopologicalSpace.cechCochainAddEquiv F U (n + 1) |
| 114 | (((-1 : ℤ) ^ (k : ℕ) • |
| 115 | ((FormalCoproduct.cosimplicialObjectFunctor |
| 116 | (FormalCoproduct.mk _ U).cech).obj F).δ k) x) := by |
| 117 | exact map_sum (Cochains.TopologicalSpace.cechCochainAddEquiv F U (n + 1)) _ Finset.univ |
| 118 | calc |
| 119 | _ = Cochains.TopologicalSpace.cechCochainAddEquiv F U (n + 1) |
| 120 | (∑ k : Fin (n + 2), |
| 121 | ((-1 : ℤ) ^ (k : ℕ) • |
| 122 | ((FormalCoproduct.cosimplicialObjectFunctor |
| 123 | (FormalCoproduct.mk _ U).cech).obj F).δ k) x) i := |
| 124 | congrArg (fun y => Cochains.TopologicalSpace.cechCochainAddEquiv F U (n + 1) y i) |
| 125 | (addCommGrp_sum_apply _ x) |
| 126 | _ = (∑ k : Fin (n + 2), |
| 127 | Cochains.TopologicalSpace.cechCochainAddEquiv F U (n + 1) |
| 128 | (((-1 : ℤ) ^ (k : ℕ) • |
| 129 | ((FormalCoproduct.cosimplicialObjectFunctor |
| 130 | (FormalCoproduct.mk _ U).cech).obj F).δ k) x)) i := by |
| 131 | exact congrFun hmapSum i |
| 132 | _ = ∑ k : Fin (n + 2), |
| 133 | Cochains.TopologicalSpace.cechCochainAddEquiv F U (n + 1) |
| 134 | (((-1 : ℤ) ^ (k : ℕ) • |
| 135 | ((FormalCoproduct.cosimplicialObjectFunctor |
| 136 | (FormalCoproduct.mk _ U).cech).obj F).δ k) x) i := |
| 137 | Finset.sum_apply i Finset.univ _ |
| 138 | _ = _ := by |
| 139 | apply Finset.sum_congr rfl |
| 140 | intro k hk |
| 141 | calc |
| 142 | Cochains.TopologicalSpace.cechCochainAddEquiv F U (n + 1) |
| 143 | (((-1 : ℤ) ^ (k : ℕ) • |
| 144 | ((FormalCoproduct.cosimplicialObjectFunctor |
| 145 | (FormalCoproduct.mk _ U).cech).obj F).δ k) x) i = |
| 146 | Cochains.TopologicalSpace.cechCochainAddEquiv F U (n + 1) |
| 147 | ((-1 : ℤ) ^ (k : ℕ) • |
| 148 | (((FormalCoproduct.cosimplicialObjectFunctor |
| 149 | (FormalCoproduct.mk _ U).cech).obj F).δ k x)) i := |
| 150 | congrArg (fun y => Cochains.TopologicalSpace.cechCochainAddEquiv F U (n + 1) y i) |
| 151 | (show |
| 152 | ((-1 : ℤ) ^ (k : ℕ) • |
| 153 | ((FormalCoproduct.cosimplicialObjectFunctor |
| 154 | (FormalCoproduct.mk _ U).cech).obj F).δ k) x = |
| 155 | (-1 : ℤ) ^ (k : ℕ) • |
| 156 | (((FormalCoproduct.cosimplicialObjectFunctor |
| 157 | (FormalCoproduct.mk _ U).cech).obj F).δ k x) from rfl) |
| 158 | _ = (-1 : ℤ) ^ (k : ℕ) • |
| 159 | Cochains.TopologicalSpace.cechCochainAddEquiv F U (n + 1) |
| 160 | (((FormalCoproduct.cosimplicialObjectFunctor |
| 161 | (FormalCoproduct.mk _ U).cech).obj F).δ k x) i := |
| 162 | congrFun (map_zsmul (Cochains.TopologicalSpace.cechCochainAddEquiv F U (n + 1)) |
| 163 | ((-1 : ℤ) ^ (k : ℕ)) |
| 164 | (((FormalCoproduct.cosimplicialObjectFunctor |
| 165 | (FormalCoproduct.mk _ U).cech).obj F).δ k x)) i |
| 166 | _ = _ := congrArg (fun y => (-1 : ℤ) ^ (k : ℕ) • y) |
| 167 | (cechCoface_apply F U n x k i) |
| 168 | |
| 169 | end OAI.AlgebraicGeometry.SheafCohomology.Cech.Differential.TopologicalSpace |