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.AbelianModuli.HilbertConstruction.ExtExactFunctorNaturality |
| 2 | |
| 3 | /-! # Ext Exact Functor Composition -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ExtExactFunctorComposition |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Exact-functor maps on Ext preserve the identity and composition of functors. Injective effacement proves the laws in all degrees. -/ |
| 10 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Abelian |
| 11 | universe u v u' v' u'' v'' w w' w'' |
| 12 | |
| 13 | attribute [local instance] comp_preservesFiniteLimits comp_preservesFiniteColimits |
| 14 | |
| 15 | variable {C : Type u} [Category.{v} C] [Abelian C] [EnoughInjectives C] [HasExt.{w} C] |
| 16 | variable {D : Type u'} [Category.{v'} D] [Abelian D] [HasExt.{w'} D] |
| 17 | variable {E : Type u''} [Category.{v''} E] [Abelian E] [HasExt.{w''} E] |
| 18 | |
| 19 | omit [EnoughInjectives C] in |
| 20 | theorem ext_extClass_mapExactFunctor_comp |
| 21 | (F : C ⥤ D) [F.Additive] [PreservesFiniteLimits F] [PreservesFiniteColimits F] |
| 22 | (G : D ⥤ E) [G.Additive] [PreservesFiniteLimits G] [PreservesFiniteColimits G] |
| 23 | {S : ShortComplex C} (hS : S.ShortExact) : |
| 24 | (hS.extClass.mapExactFunctor F).mapExactFunctor G = |
| 25 | hS.extClass.mapExactFunctor (F ⋙ G) := by |
| 26 | let x : Ext (F.obj S.X₃) (F.obj S.X₁) 1 := (hS.map_of_exact F).extClass |
| 27 | have hx : hS.extClass.mapExactFunctor F = x := Ext.mapExactFunctor_extClass F hS |
| 28 | have hy : x.mapExactFunctor G = ((hS.map_of_exact F).map_of_exact G).extClass := |
| 29 | Ext.mapExactFunctor_extClass G (hS.map_of_exact F) |
| 30 | exact (congrArg (fun z : Ext (F.obj S.X₃) (F.obj S.X₁) 1 => |
| 31 | z.mapExactFunctor G) hx).trans |
| 32 | (hy.trans (Ext.mapExactFunctor_extClass (F ⋙ G) hS).symm) |
| 33 | |
| 34 | theorem ext_mapExactFunctor_id (X Y : C) (n : ℕ) (x : Ext X Y n) : |
| 35 | x.mapExactFunctor (𝟭 C) = x := by |
| 36 | induction n generalizing Y with |
| 37 | | zero => |
| 38 | obtain ⟨a, rfl⟩ := Ext.addEquiv₀.symm.surjective x |
| 39 | change (Ext.mk₀ a).mapExactFunctor (𝟭 C) = Ext.mk₀ a |
| 40 | rw [Ext.mapExactFunctor_mk₀] |
| 41 | rfl |
| 42 | | succ n ih => |
| 43 | let I : InjectivePresentation Y := Classical.arbitrary _ |
| 44 | let S := ShortComplex.mk I.f (cokernel.π I.f) (cokernel.condition I.f) |
| 45 | have hS : S.ShortExact := { exact := ShortComplex.cokernelSequence_exact I.f } |
| 46 | have : Injective S.X₂ := I.injective |
| 47 | obtain ⟨z, hz⟩ := Ext.covariant_sequence_exact₁ X hS x |
| 48 | (Ext.eq_zero_of_injective _) (rfl : n + 1 = n + 1) |
| 49 | rw [← hz, Ext.mapExactFunctor_comp, ih, Ext.mapExactFunctor_extClass] |
| 50 | |
| 51 | theorem ext_mapExactFunctor_comp |
| 52 | (F : C ⥤ D) [F.Additive] [PreservesFiniteLimits F] [PreservesFiniteColimits F] |
| 53 | (G : D ⥤ E) [G.Additive] [PreservesFiniteLimits G] [PreservesFiniteColimits G] |
| 54 | (X Y : C) (n : ℕ) (x : Ext X Y n) : |
| 55 | (x.mapExactFunctor F).mapExactFunctor G = x.mapExactFunctor (F ⋙ G) := by |
| 56 | induction n generalizing Y with |
| 57 | | zero => |
| 58 | obtain ⟨a, rfl⟩ := Ext.addEquiv₀.symm.surjective x |
| 59 | change ((Ext.mk₀ a).mapExactFunctor F).mapExactFunctor G = |
| 60 | (Ext.mk₀ a).mapExactFunctor (F ⋙ G) |
| 61 | rw [Ext.mapExactFunctor_mk₀, Ext.mapExactFunctor_mk₀, Ext.mapExactFunctor_mk₀] |
| 62 | rfl |
| 63 | | succ n ih => |
| 64 | let I : InjectivePresentation Y := Classical.arbitrary _ |
| 65 | let S := ShortComplex.mk I.f (cokernel.π I.f) (cokernel.condition I.f) |
| 66 | have hS : S.ShortExact := { exact := ShortComplex.cokernelSequence_exact I.f } |
| 67 | have : Injective S.X₂ := I.injective |
| 68 | obtain ⟨z, hz⟩ := Ext.covariant_sequence_exact₁ X hS x |
| 69 | (Ext.eq_zero_of_injective _) (rfl : n + 1 = n + 1) |
| 70 | rw [← hz] |
| 71 | simp only [Ext.mapExactFunctor_comp] |
| 72 | rw [ih] |
| 73 | exact congrArg (fun b : Ext ((F ⋙ G).obj S.X₃) ((F ⋙ G).obj Y) 1 => |
| 74 | (z.mapExactFunctor (F ⋙ G)).comp b (rfl : n + 1 = n + 1)) |
| 75 | (ext_extClass_mapExactFunctor_comp F G hS) |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ExtExactFunctorComposition |