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.Algebra.Homology.ShortComplex.PreservesHomology |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.HomologicalComplex |
| 3 | import Mathlib.CategoryTheory.Abelian.Basic |
| 4 | |
| 5 | /-! # Exact Homology -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.ExactHomology.ExactHomologyComparison |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Homology commutes naturally with an exact coefficient functor and an actual isomorphism of complexes. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory Limits |
| 14 | |
| 15 | theorem compose {C : Type*} [Category* C] {A B D E F G : C} |
| 16 | (a : A ⟶ B) (b : B ⟶ D) (c : D ⟶ E) (d : A ⟶ F) (e : F ⟶ D) |
| 17 | (f : F ⟶ G) (g : G ⟶ E) (h₁ : a ≫ b = d ≫ e) (h₂ : e ≫ c = f ≫ g) : |
| 18 | a ≫ b ≫ c = (d ≫ f) ≫ g := by |
| 19 | rw [← Category.assoc, h₁, Category.assoc, h₂, ← Category.assoc] |
| 20 | |
| 21 | variable {C D : Type*} [Category* C] [Category* D] [Abelian C] [Abelian D] |
| 22 | (F : C ⥤ D) [F.Additive] [F.PreservesHomology] |
| 23 | {ι : Type*} (c : ComplexShape ι) |
| 24 | |
| 25 | def iso (K : HomologicalComplex C c) (L : HomologicalComplex D c) |
| 26 | (e : (F.mapHomologicalComplex c).obj K ≅ L) (n : ι) : F.obj (K.homology n) ≅ L.homology n := |
| 27 | ((K.sc n).mapHomologyIso F).symm ≪≫ (HomologicalComplex.homologyFunctor D c n).mapIso e |
| 28 | |
| 29 | theorem naturality {K K' : HomologicalComplex C c} {L L' : HomologicalComplex D c} |
| 30 | (e : (F.mapHomologicalComplex c).obj K ≅ L) |
| 31 | (e' : (F.mapHomologicalComplex c).obj K' ≅ L') |
| 32 | (f : K ⟶ K') (g : L ⟶ L') |
| 33 | (h : (F.mapHomologicalComplex c).map f ≫ e'.hom = e.hom ≫ g) (n : ι) : |
| 34 | F.map (HomologicalComplex.homologyMap f n) ≫ (iso F c K' L' e' n).hom = |
| 35 | (iso F c K L e n).hom ≫ HomologicalComplex.homologyMap g n := by |
| 36 | have h₁ := ShortComplex.mapHomologyIso_inv_naturality |
| 37 | ((HomologicalComplex.shortComplexFunctor C c n).map f) F |
| 38 | have h₂ := congrArg (HomologicalComplex.homologyFunctor D c n).map h |
| 39 | simp only [Functor.map_comp] at h₂ |
| 40 | exact compose _ _ _ _ _ _ _ h₁ h₂ |
| 41 | |
| 42 | end |
| 43 | |
| 44 | end OAI.NumberTheory.PadicHodge.GeometricComparison.ExactHomology.ExactHomologyComparison |