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.Complex.Extension |
| 2 | |
| 3 | /-! # Transpose -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Complex.Transpose |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Transposition and extension of the actual functors of section complexes. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 12 | open ZeroObject |
| 13 | |
| 14 | variable {T : Type*} [Category* T] {C : Type*} [Category* C] |
| 15 | [Preadditive C] [HasZeroObject C] |
| 16 | {ι ι' : Type*} {c : ComplexShape ι} {c' : ComplexShape ι'} |
| 17 | |
| 18 | def transpose (F : T ⥤ HomologicalComplex C c) : HomologicalComplex (T ⥤ C) c where |
| 19 | X i := F ⋙ HomologicalComplex.eval _ _ i |
| 20 | d i j := |
| 21 | { app := fun t => (F.obj t).d i j |
| 22 | naturality := fun _ _ f => (F.map f).comm i j } |
| 23 | shape i j h := NatTrans.ext (funext (fun t => (F.obj t).shape i j h)) |
| 24 | d_comp_d' i j k _ _ := NatTrans.ext (funext (fun t => (F.obj t).d_comp_d i j k)) |
| 25 | |
| 26 | def transposeMap {F G : T ⥤ HomologicalComplex C c} (φ : F ⟶ G) : transpose F ⟶ transpose G where |
| 27 | f i := |
| 28 | { app := fun t => (φ.app t).f i |
| 29 | naturality := fun _ _ f => congrArg (fun k => k.f i) (φ.naturality f) } |
| 30 | comm' i j _ := NatTrans.ext (funext (fun t => (φ.app t).comm i j)) |
| 31 | |
| 32 | def optionXIso (F : T ⥤ HomologicalComplex C c) (i : Option ι) (t : T) : |
| 33 | HomologicalComplex.extend.X (F.obj t) i ≅ |
| 34 | (HomologicalComplex.extend.X (transpose F) i).obj t := |
| 35 | match i with |
| 36 | | some _ => Iso.refl _ |
| 37 | | none => (((evaluation T C).obj t).mapZeroObject).symm |
| 38 | |
| 39 | theorem optionXIso_naturality (F : T ⥤ HomologicalComplex C c) |
| 40 | (i : Option ι) {t s : T} (f : t ⟶ s) : |
| 41 | HomologicalComplex.extend.mapX (F.map f) i ≫ (optionXIso F i s).hom = |
| 42 | (optionXIso F i t).hom ≫ (HomologicalComplex.extend.X (transpose F) i).map f := by |
| 43 | cases i with |
| 44 | | none => exact (isZero_zero C).eq_of_src _ _ |
| 45 | | some i => |
| 46 | change (F.map f).f i ≫ 𝟙 ((F.obj s).X i) = 𝟙 ((F.obj t).X i) ≫ (F.map f).f i |
| 47 | simp only [Category.comp_id, Category.id_comp] |
| 48 | |
| 49 | def transposeExtendXIso (F : T ⥤ HomologicalComplex C c) (e : c.Embedding c') (i : ι') : |
| 50 | (transpose (F ⋙ e.extendFunctor C)).X i ≅ ((transpose F).extend e).X i := |
| 51 | NatIso.ofComponents (fun t => optionXIso F (e.r i) t) |
| 52 | (fun f => optionXIso_naturality F (e.r i) f) |
| 53 | |
| 54 | theorem optionXIso_d (F : T ⥤ HomologicalComplex C c) (i j : Option ι) (t : T) : |
| 55 | (optionXIso F i t).hom ≫ (HomologicalComplex.extend.d (transpose F) i j).app t = |
| 56 | HomologicalComplex.extend.d (F.obj t) i j ≫ (optionXIso F j t).hom := by |
| 57 | cases i with |
| 58 | | none => exact (isZero_zero C).eq_of_src _ _ |
| 59 | | some i => |
| 60 | cases j with |
| 61 | | none => exact (((evaluation T C).obj t).map_isZero (isZero_zero (T ⥤ C))).eq_of_tgt _ _ |
| 62 | | some j => |
| 63 | change 𝟙 ((F.obj t).X i) ≫ (F.obj t).d i j = (F.obj t).d i j ≫ 𝟙 ((F.obj t).X j) |
| 64 | simp only [Category.comp_id, Category.id_comp] |
| 65 | |
| 66 | /-- Extension and transposition give canonically isomorphic complexes of functors. -/ |
| 67 | def transposeExtendIso (F : T ⥤ HomologicalComplex C c) (e : c.Embedding c') : |
| 68 | transpose (F ⋙ e.extendFunctor C) ≅ (transpose F).extend e := |
| 69 | HomologicalComplex.Hom.isoOfComponents (transposeExtendXIso F e) (by |
| 70 | intro i j _ |
| 71 | apply NatTrans.ext |
| 72 | funext t |
| 73 | exact optionXIso_d F (e.r i) (e.r j) t) |
| 74 | |
| 75 | theorem optionXIso_map {F G : T ⥤ HomologicalComplex C c} (φ : F ⟶ G) (i : Option ι) (t : T) : |
| 76 | HomologicalComplex.extend.mapX (φ.app t) i ≫ (optionXIso G i t).hom = |
| 77 | (optionXIso F i t).hom ≫ (HomologicalComplex.extend.mapX (transposeMap φ) i).app t := by |
| 78 | cases i with |
| 79 | | none => exact (isZero_zero C).eq_of_src _ _ |
| 80 | | some i => |
| 81 | change (φ.app t).f i ≫ 𝟙 ((G.obj t).X i) = 𝟙 ((F.obj t).X i) ≫ (φ.app t).f i |
| 82 | simp only [Category.comp_id, Category.id_comp] |
| 83 | |
| 84 | theorem transposeExtendIso_naturality (e : c.Embedding c') |
| 85 | {F G : T ⥤ HomologicalComplex C c} (φ : F ⟶ G) : |
| 86 | transposeMap (Functor.whiskerRight φ (e.extendFunctor C)) ≫ (transposeExtendIso G e).hom = |
| 87 | (transposeExtendIso F e).hom ≫ HomologicalComplex.extendMap (transposeMap φ) e := by |
| 88 | apply HomologicalComplex.Hom.ext |
| 89 | funext i |
| 90 | apply NatTrans.ext |
| 91 | funext t |
| 92 | exact optionXIso_map φ (e.r i) t |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.AlgebraicGeometry.Comparison.Betti.Complex.Transpose |