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 |
| 2 | |
| 3 | /-! # Extension -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Complex.Extension |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Extension of complexes commutes with additive functors |
| 11 | |
| 12 | The comparison is the identity in degrees already present, and the canonical |
| 13 | zero-object isomorphism in the remaining degrees. It preserves differentials |
| 14 | and is natural in the original complex. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 18 | |
| 19 | universe u v u' v' |
| 20 | |
| 21 | variable {C : Type u} [Category.{v} C] [Preadditive C] [HasZeroObject C] |
| 22 | {D : Type u'} [Category.{v'} D] [Preadditive D] [HasZeroObject D] |
| 23 | (F : C ⥤ D) [F.Additive] |
| 24 | {ι ι' : Type*} {c : ComplexShape ι} {c' : ComplexShape ι'} |
| 25 | |
| 26 | def mapXIso (K : HomologicalComplex C c) (i : Option ι) : |
| 27 | F.obj (HomologicalComplex.extend.X K i) ≅ |
| 28 | HomologicalComplex.extend.X ((F.mapHomologicalComplex c).obj K) i := |
| 29 | match i with |
| 30 | | some _ => Iso.refl _ |
| 31 | | none => F.mapZeroObject |
| 32 | |
| 33 | theorem mapXIso_d (K : HomologicalComplex C c) (i j : Option ι) : |
| 34 | (mapXIso F K i).hom ≫ HomologicalComplex.extend.d ((F.mapHomologicalComplex c).obj K) i j = |
| 35 | F.map (HomologicalComplex.extend.d K i j) ≫ (mapXIso F K j).hom := by |
| 36 | cases i with |
| 37 | | none => exact (F.map_isZero (isZero_zero C)).eq_of_src _ _ |
| 38 | | some i => |
| 39 | cases j with |
| 40 | | none => exact (isZero_zero D).eq_of_tgt _ _ |
| 41 | | some j => |
| 42 | change 𝟙 (F.obj (K.X i)) ≫ F.map (K.d i j) = F.map (K.d i j) ≫ 𝟙 (F.obj (K.X j)) |
| 43 | simp only [Category.id_comp, Category.comp_id] |
| 44 | |
| 45 | /-- The canonical comparison of actual extended complexes. -/ |
| 46 | def mapExtendIso (e : c.Embedding c') (K : HomologicalComplex C c) : |
| 47 | (F.mapHomologicalComplex c').obj (K.extend e) ≅ |
| 48 | ((F.mapHomologicalComplex c).obj K).extend e := |
| 49 | HomologicalComplex.Hom.isoOfComponents (fun i => mapXIso F K (e.r i)) |
| 50 | (fun i j _ => mapXIso_d F K (e.r i) (e.r j)) |
| 51 | |
| 52 | theorem mapXIso_naturality {K L : HomologicalComplex C c} (φ : K ⟶ L) (i : Option ι) : |
| 53 | F.map (HomologicalComplex.extend.mapX φ i) ≫ (mapXIso F L i).hom = |
| 54 | (mapXIso F K i).hom ≫ |
| 55 | HomologicalComplex.extend.mapX ((F.mapHomologicalComplex c).map φ) i := by |
| 56 | cases i with |
| 57 | | none => exact (isZero_zero D).eq_of_tgt _ _ |
| 58 | | some i => |
| 59 | change F.map (φ.f i) ≫ 𝟙 (F.obj (L.X i)) = 𝟙 (F.obj (K.X i)) ≫ F.map (φ.f i) |
| 60 | simp only [Category.id_comp, Category.comp_id] |
| 61 | |
| 62 | theorem mapExtendIso_naturality (e : c.Embedding c') |
| 63 | {K L : HomologicalComplex C c} (φ : K ⟶ L) : |
| 64 | (F.mapHomologicalComplex c').map (HomologicalComplex.extendMap φ e) ≫ |
| 65 | (mapExtendIso F e L).hom = |
| 66 | (mapExtendIso F e K).hom ≫ |
| 67 | HomologicalComplex.extendMap ((F.mapHomologicalComplex c).map φ) e := by |
| 68 | apply HomologicalComplex.Hom.ext |
| 69 | funext i |
| 70 | exact mapXIso_naturality F φ (e.r i) |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.Comparison.Betti.Complex.Extension |