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.AlgebraicTopology.AlternatingFaceMapComplex |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.Ab |
| 3 | import Mathlib.CategoryTheory.Preadditive.Yoneda.Basic |
| 4 | import Mathlib.CategoryTheory.Abelian.Injective.Resolution |
| 5 | |
| 6 | /-! # Simplicial Injective -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.SimplicialInjective.SimplicialInjectiveHom |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Injective duals of exact simplicial chains |
| 14 | |
| 15 | The coface differential on morphisms into an injective object is |
| 16 | precomposition with the original face differential. Exactness of the |
| 17 | chain complex therefore extends every cocycle across the next image, |
| 18 | giving a boundary in the dual cochain complex. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite Simplicial _root_.AlgebraicTopology |
| 22 | |
| 23 | universe u v |
| 24 | |
| 25 | variable {C : Type u} [Category.{v} C] [Abelian C] (Y : SimplicialObject C) (I : C) |
| 26 | |
| 27 | def cosimplicial : CosimplicialObject AddCommGrpCat.{v} := |
| 28 | Y.rightOp ⋙ preadditiveYoneda.obj I |
| 29 | |
| 30 | def complex : CochainComplex AddCommGrpCat.{v} ℕ := |
| 31 | AlternatingCofaceMapComplex.obj (cosimplicial Y I) |
| 32 | |
| 33 | theorem differential_apply (n : ℕ) (a : Y.obj (op ⦋n⦌) ⟶ I) : |
| 34 | (complex Y I).d n (n + 1) a = (AlternatingFaceMapComplex.obj Y).d (n + 1) n ≫ a := by |
| 35 | let H := cosimplicial Y I |
| 36 | let ev : (H.obj ⦋n⦌ ⟶ H.obj ⦋n + 1⦌) →+ (Y.obj (op ⦋n + 1⦌) ⟶ I) := |
| 37 | { toFun f := f a |
| 38 | map_zero' := rfl |
| 39 | map_add' _ _ := rfl } |
| 40 | have hsum : AlternatingCofaceMapComplex.objD H n a = |
| 41 | ∑ i : Fin (n + 2), (-1 : ℤ) ^ (i : ℕ) • (Y.δ i ≫ a) := by |
| 42 | change ev (∑ i : Fin (n + 2), (-1 : ℤ) ^ (i : ℕ) • H.δ i) = _ |
| 43 | rw [map_sum] |
| 44 | apply Finset.sum_congr rfl |
| 45 | intro i _ |
| 46 | exact map_zsmul ev ((-1 : ℤ) ^ (i : ℕ)) (H.δ i) |
| 47 | have hcomp : AlternatingFaceMapComplex.objD Y n ≫ a = |
| 48 | ∑ i : Fin (n + 2), (-1 : ℤ) ^ (i : ℕ) • (Y.δ i ≫ a) := |
| 49 | (Preadditive.sum_comp Finset.univ (fun i : Fin (n + 2) => (-1 : ℤ) ^ (i : ℕ) • Y.δ i) a).trans |
| 50 | (Finset.sum_congr rfl (fun i _ => Preadditive.zsmul_comp (Y.δ i) a ((-1 : ℤ) ^ (i : ℕ)))) |
| 51 | have hc : (complex Y I).d n (n + 1) = AlternatingCofaceMapComplex.objD H n := |
| 52 | CochainComplex.of_d (fun i => H.obj ⦋i⦌) (AlternatingCofaceMapComplex.objD H) n |
| 53 | have hd : (AlternatingFaceMapComplex.obj Y).d (n + 1) n = AlternatingFaceMapComplex.objD Y n := |
| 54 | ChainComplex.of_d (fun i => Y.obj (op ⦋i⦌)) (AlternatingFaceMapComplex.objD Y) n |
| 55 | exact (congrArg (fun f => f a) hc).trans |
| 56 | (hsum.trans (hcomp.symm.trans (congrArg (fun f => f ≫ a) hd).symm)) |
| 57 | |
| 58 | theorem exactAt [Injective I] (n : ℕ) (hY : (AlternatingFaceMapComplex.obj Y).ExactAt (n + 1)) : |
| 59 | (complex Y I).ExactAt (n + 1) := by |
| 60 | rw [HomologicalComplex.exactAt_iff' _ n (n + 1) (n + 2) (by simp) (by simp)] |
| 61 | rw [ShortComplex.ab_exact_iff] |
| 62 | intro a ha |
| 63 | change Y.obj (op ⦋n + 1⦌) ⟶ I at a |
| 64 | have hS : ((AlternatingFaceMapComplex.obj Y).sc' (n + 2) (n + 1) n).Exact := |
| 65 | (HomologicalComplex.exactAt_iff' _ (n + 2) (n + 1) n (by simp) (by simp)).mp hY |
| 66 | have hz : (AlternatingFaceMapComplex.obj Y).d (n + 2) (n + 1) ≫ a = 0 := |
| 67 | (differential_apply Y I (n + 1) a).symm.trans ha |
| 68 | refine ⟨hS.descToInjective a hz, ?_⟩ |
| 69 | exact (differential_apply Y I n (hS.descToInjective a hz)).trans |
| 70 | (hS.comp_descToInjective a hz) |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.SimplicialInjective.SimplicialInjectiveHom |