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.Crystalline.Cohomology.ExactInjective |
| 2 | import Mathlib.CategoryTheory.Abelian.Injective.Ext |
| 3 | import Mathlib.CategoryTheory.Adjunction.Additive |
| 4 | |
| 5 | /-! # Exact Adjunction -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.ExactAdjunction.ExactAdjunctionExtVanishing |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # Transporting positive Ext vanishing across an exact adjunction -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | |
| 15 | universe u v u' v' e e' |
| 16 | |
| 17 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{e} C] |
| 18 | |
| 19 | theorem of_sourceIso {X X' Y : C} (i : X ≅ X') (n : ℕ) |
| 20 | (h : ∀ α : Abelian.Ext X' Y n, α = 0) (α : Abelian.Ext X Y n) : α = 0 := by |
| 21 | have hz := congrArg (fun β : Abelian.Ext X' Y n => |
| 22 | (Abelian.Ext.mk₀ i.hom).comp β (zero_add n)) |
| 23 | (h ((Abelian.Ext.mk₀ i.inv).comp α (zero_add n))) |
| 24 | simpa only [Abelian.Ext.mk₀_comp_mk₀_assoc, i.hom_inv_id, |
| 25 | Abelian.Ext.mk₀_id_comp, Abelian.Ext.comp_zero] using hz |
| 26 | |
| 27 | variable {D : Type u'} [Category.{v'} D] [Abelian D] [HasExt.{e'} D] |
| 28 | {F : C ⥤ D} [F.Additive] {G : D ⥤ C} [G.Additive] |
| 29 | [G.PreservesHomology] [G.PreservesInjectiveObjects] (adj : F ⊣ G) |
| 30 | {X : C} {Y : D} (I : InjectiveResolution Y) (n : ℕ) |
| 31 | |
| 32 | include adj I in |
| 33 | theorem rightAdjoint |
| 34 | (h : ∀ α : Abelian.Ext (F.obj X) Y (n + 1), α = 0) |
| 35 | (α : Abelian.Ext X (G.obj Y) (n + 1)) : α = 0 := by |
| 36 | let I' : InjectiveResolution (G.obj Y) := ExactInjective.ExactInjectiveResolution.map G I |
| 37 | obtain ⟨f, hf, rfl⟩ := I'.extMk_surjective α (n + 2) rfl |
| 38 | change X ⟶ G.obj (I.cocomplex.X (n + 1)) at f |
| 39 | let f' : F.obj X ⟶ I.cocomplex.X (n + 1) := (adj.homEquiv X _).symm f |
| 40 | have hf' : f' ≫ I.cocomplex.d (n + 1) (n + 2) = 0 := by |
| 41 | apply (adj.homEquiv X (I.cocomplex.X (n + 2))).injective |
| 42 | rw [adj.homEquiv_naturality_right, adj.homAddEquiv_zero] |
| 43 | change adj.homEquiv X _ ((adj.homEquiv X _).symm f) ≫ |
| 44 | G.map (I.cocomplex.d (n + 1) (n + 2)) = 0 |
| 45 | rw [Equiv.apply_symm_apply] |
| 46 | exact hf |
| 47 | obtain ⟨g, hg⟩ := (I.extMk_eq_zero_iff f' (n + 2) rfl hf' n rfl).mp (h (I.extMk f' (n + 2) rfl hf')) |
| 48 | apply (I'.extMk_eq_zero_iff f (n + 2) rfl hf n rfl).mpr |
| 49 | refine ⟨adj.homEquiv X _ g, ?_⟩ |
| 50 | change adj.homEquiv X _ g ≫ G.map (I.cocomplex.d n (n + 1)) = f |
| 51 | rw [← adj.homEquiv_naturality_right, hg] |
| 52 | exact (adj.homEquiv X _).apply_symm_apply f |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.ExactAdjunction.ExactAdjunctionExtVanishing |