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.ArithmeticGeometry.OrdinaryLocus.Openness.ExtOneExtensions |
| 2 | import Mathlib.Algebra.Homology.DerivedCategory.Ext.Map |
| 3 | |
| 4 | /-! # Adjunction Ext One -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AdjunctionExtOne.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An exact left adjoint gives an injection from first Ext into the corresponding source Ext group. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | open _root_.CategoryTheory.Abelian |
| 14 | |
| 15 | universe u v w u' v' w' |
| 16 | |
| 17 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{w} C] |
| 18 | {D : Type u'} [Category.{v'} D] [Abelian D] [HasExt.{w'} D] |
| 19 | {L : C ⥤ D} {R : D ⥤ C} (adj : L ⊣ R) |
| 20 | [L.Additive] [PreservesFiniteLimits L] [PreservesFiniteColimits L] |
| 21 | |
| 22 | def adjunctionExtMap (P : C) (F : D) (n : ℕ) : Ext P (R.obj F) n →+ Ext (L.obj P) F n := |
| 23 | ((Ext.mk₀ (adj.counit.app F)).postcomp (L.obj P) (add_zero n)).comp |
| 24 | (L.mapExtAddHom P (R.obj F) n) |
| 25 | |
| 26 | theorem adjunctionExtMap_one_injective [EnoughInjectives C] (P : C) (F : D) : |
| 27 | Function.Injective (adjunctionExtMap adj P F 1) := by |
| 28 | have hzero (e : Ext P (R.obj F) 1) (he : adjunctionExtMap adj P F 1 e = 0) : e = 0 := by |
| 29 | obtain ⟨E, a, b, hab, hS, rfl⟩ := ExtOneExtensions.Construction.ext_one_has_extension P (R.obj F) e |
| 30 | change (hS.extClass.mapExactFunctor L).comp (Ext.mk₀ (adj.counit.app F)) (add_zero 1) = 0 at he |
| 31 | rw [Ext.mapExactFunctor_extClass] at he |
| 32 | obtain ⟨t, ht⟩ := (ExtOneExtensions.Construction.extClass_comp_zero_iff_extends _ (hS.map_of_exact L) (adj.counit.app F)).mp he |
| 33 | have ha : a ≫ adj.homEquiv E F t = 𝟙 (R.obj F) := by |
| 34 | calc |
| 35 | _ = adj.homEquiv (R.obj F) F (L.map a ≫ t) := (adj.homEquiv_naturality_left a t).symm |
| 36 | _ = adj.homEquiv (R.obj F) F (adj.counit.app F) := congrArg (adj.homEquiv _ _) ht |
| 37 | _ = 𝟙 _ := by rw [← adj.homEquiv_symm_id, Equiv.apply_symm_apply] |
| 38 | have hz := (ExtOneExtensions.Construction.extClass_comp_zero_iff_extends _ hS (𝟙 (R.obj F))).mpr ⟨_, ha⟩ |
| 39 | rw [Ext.comp_mk₀_id] at hz |
| 40 | exact hz |
| 41 | intro x y hxy |
| 42 | apply sub_eq_zero.mp |
| 43 | apply hzero (x - y) |
| 44 | exact (map_sub (adjunctionExtMap adj P F 1) x y).trans |
| 45 | ((congrArg (fun t ↦ t - adjunctionExtMap adj P F 1 y) hxy).trans (sub_self _)) |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AdjunctionExtOne.Construction |