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.AbelianModuli.HilbertConstruction.IntrinsicCech.Cochains |
| 8 | |
| 9 | /-! # Cofaces -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.IntrinsicCech.Cofaces |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 16 | universe u |
| 17 | |
| 18 | variable {T : Type u} [TopologicalSpace T] |
| 19 | variable (F : (Opens T)ᵒᵖ ⥤ AddCommGrpCat.{u}) {ι : Type u} |
| 20 | variable (U : ι → Opens T) (n : ℕ) |
| 21 | |
| 22 | theorem cechCoface_eq (k : Fin (n + 2)) : |
| 23 | ((FormalCoproduct.cosimplicialObjectFunctor |
| 24 | (FormalCoproduct.mk _ U).cech).obj F).δ k = |
| 25 | Pi.lift (fun i : Fin (n + 2) → ι => |
| 26 | Pi.π (fun j : Fin (n + 1) → ι => |
| 27 | F.obj (op (∏ᶜ fun a : Fin (n + 1) => U (j a)))) |
| 28 | (i ∘ (SimplexCategory.δ k).toOrderHom.toFun) ≫ |
| 29 | F.map (((FormalCoproduct.mk _ U).mapPower |
| 30 | (SimplexCategory.δ k).toOrderHom.toFun).φ i).op) := by |
| 31 | rw [CosimplicialObject.δ, |
| 32 | FormalCoproduct.cosimplicialObjectFunctor_obj_map, |
| 33 | FormalCoproduct.cech_map] |
| 34 | rfl |
| 35 | |
| 36 | theorem cechDifferential_eq : |
| 37 | ((cechComplexFunctor U).obj F).d n (n + 1) = |
| 38 | ∑ k : Fin (n + 2), (-1 : ℤ) ^ (k : ℕ) • |
| 39 | ((FormalCoproduct.cosimplicialObjectFunctor |
| 40 | (FormalCoproduct.mk _ U).cech).obj F).δ k := by |
| 41 | change ((FormalCoproduct.cochainComplexFunctor |
| 42 | (FormalCoproduct.mk _ U).cech).obj F).d n (n + 1) = _ |
| 43 | rw [FormalCoproduct.cochainComplexFunctor_obj_d] |
| 44 | exact (CochainComplex.of_d _ _ n).trans rfl |
| 45 | |
| 46 | theorem addCommGrp_sum_apply_finset {A B : AddCommGrpCat} {κ : Type*} |
| 47 | (s : Finset κ) (f : κ → (A ⟶ B)) (x : A) : |
| 48 | (∑ i ∈ s, f i) x = ∑ i ∈ s, f i x := by |
| 49 | classical |
| 50 | induction s using Finset.induction_on with |
| 51 | | empty => rfl |
| 52 | | @insert a s ha ih => |
| 53 | rw [Finset.sum_insert ha, Finset.sum_insert ha, |
| 54 | AddCommGrpCat.hom_add_apply, ih] |
| 55 | |
| 56 | theorem addCommGrp_sum_apply {A B : AddCommGrpCat} {κ : Type*} |
| 57 | [Fintype κ] (f : κ → (A ⟶ B)) (x : A) : |
| 58 | (∑ i, f i) x = ∑ i, f i x := |
| 59 | addCommGrp_sum_apply_finset Finset.univ f x |
| 60 | |
| 61 | /-- A Cech coface restricts the component indexed by the tuple with its `k`th entry |
| 62 | deleted to the full tuple intersection. -/ |
| 63 | theorem nativeCechCoface_apply (x : ((cechComplexFunctor U).obj F).X n) |
| 64 | (k : Fin (n + 2)) (i : Fin (n + 2) → ι) : |
| 65 | Cochains.cechCochainAddEquiv F U (n + 1) |
| 66 | (((FormalCoproduct.cosimplicialObjectFunctor |
| 67 | (FormalCoproduct.mk _ U).cech).obj F).δ k x) i = |
| 68 | F.map (((FormalCoproduct.mk _ U).mapPower |
| 69 | (SimplexCategory.δ k).toOrderHom.toFun).φ i).op |
| 70 | (Cochains.cechCochainAddEquiv F U n x |
| 71 | (i ∘ (SimplexCategory.δ k).toOrderHom.toFun)) := by |
| 72 | have hout := Cochains.cechCochainAddEquiv_apply F U (n + 1) |
| 73 | (((FormalCoproduct.cosimplicialObjectFunctor |
| 74 | (FormalCoproduct.mk _ U).cech).obj F).δ k x) i |
| 75 | have hin := Cochains.cechCochainAddEquiv_apply F U n x |
| 76 | (i ∘ (SimplexCategory.δ k).toOrderHom.toFun) |
| 77 | rw [hout, hin, cechCoface_eq] |
| 78 | exact ConcreteCategory.congr_hom |
| 79 | (Pi.lift_comp_π (fun i : Fin (n + 2) → ι => |
| 80 | Pi.π (fun j : Fin (n + 1) → ι => |
| 81 | F.obj (op (∏ᶜ fun a : Fin (n + 1) => U (j a)))) |
| 82 | (i ∘ (SimplexCategory.δ k).toOrderHom.toFun) ≫ |
| 83 | F.map (((FormalCoproduct.mk _ U).mapPower |
| 84 | (SimplexCategory.δ k).toOrderHom.toFun).φ i).op) i) x |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.IntrinsicCech.Cofaces |