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.DerivedCategory.Ext.Map |
| 2 | import Mathlib.Algebra.Homology.DerivedCategory.Ext.EnoughInjectives |
| 3 | import Mathlib.Algebra.Homology.DerivedCategory.Ext.ExactSequences |
| 4 | |
| 5 | /-! # Ext Exact Functor Naturality -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ExtExactFunctorNaturality |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Maps on Ext induced by exact functors commute with natural transformations. The proof uses injective effacement in the source category and actual short-exact extension classes. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Abelian |
| 13 | universe u v u' v' w w' |
| 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 (F G : C ⥤ D) [F.Additive] [G.Additive] |
| 18 | variable [PreservesFiniteLimits F] [PreservesFiniteColimits F] |
| 19 | variable [PreservesFiniteLimits G] [PreservesFiniteColimits G] |
| 20 | |
| 21 | theorem ext_mapExactFunctor_naturality (a : F ⟶ G) (X Y : C) (n : ℕ) (x : Ext X Y n) : |
| 22 | (Ext.mk₀ (a.app X)).comp (x.mapExactFunctor G) (zero_add n) = |
| 23 | (x.mapExactFunctor F).comp (Ext.mk₀ (a.app Y)) (add_zero n) := by |
| 24 | induction n generalizing Y with |
| 25 | | zero => |
| 26 | obtain ⟨b, rfl⟩ := Ext.addEquiv₀.symm.surjective x |
| 27 | change (Ext.mk₀ (a.app X)).comp ((Ext.mk₀ b).mapExactFunctor G) (zero_add 0) = |
| 28 | ((Ext.mk₀ b).mapExactFunctor F).comp (Ext.mk₀ (a.app Y)) (add_zero 0) |
| 29 | rw [Ext.mapExactFunctor_mk₀, Ext.mapExactFunctor_mk₀, |
| 30 | Ext.mk₀_comp_mk₀, Ext.mk₀_comp_mk₀] |
| 31 | exact congrArg Ext.mk₀ (a.naturality b).symm |
| 32 | | succ n ih => |
| 33 | let I : InjectivePresentation Y := Classical.arbitrary _ |
| 34 | let S := ShortComplex.mk I.f (cokernel.π I.f) (cokernel.condition I.f) |
| 35 | have hS : S.ShortExact := { exact := ShortComplex.cokernelSequence_exact I.f } |
| 36 | have : Injective S.X₂ := I.injective |
| 37 | obtain ⟨z, hz⟩ := Ext.covariant_sequence_exact₁ X hS x |
| 38 | (Ext.eq_zero_of_injective _) (rfl : n + 1 = n + 1) |
| 39 | have hd : (hS.extClass.mapExactFunctor F).comp (Ext.mk₀ (a.app Y)) (add_zero 1) = |
| 40 | (Ext.mk₀ (a.app S.X₃)).comp (hS.extClass.mapExactFunctor G) (zero_add 1) := by |
| 41 | rw [Ext.mapExactFunctor_extClass, Ext.mapExactFunctor_extClass] |
| 42 | exact (hS.map F).extClass_naturality (hS.map G) (S.mapNatTrans a) |
| 43 | rw [← hz, Ext.mapExactFunctor_comp, Ext.mapExactFunctor_comp] |
| 44 | calc |
| 45 | (Ext.mk₀ (a.app X)).comp |
| 46 | ((z.mapExactFunctor G).comp (hS.extClass.mapExactFunctor G) rfl) (zero_add (n + 1)) = |
| 47 | ((Ext.mk₀ (a.app X)).comp (z.mapExactFunctor G) (zero_add n)).comp |
| 48 | (hS.extClass.mapExactFunctor G) rfl := |
| 49 | (Ext.comp_assoc _ _ _ (zero_add n) rfl (by omega)).symm |
| 50 | _ = ((z.mapExactFunctor F).comp (Ext.mk₀ (a.app S.X₃)) (add_zero n)).comp |
| 51 | (hS.extClass.mapExactFunctor G) rfl := by rw [ih] |
| 52 | _ = (z.mapExactFunctor F).comp |
| 53 | ((Ext.mk₀ (a.app S.X₃)).comp (hS.extClass.mapExactFunctor G) (zero_add 1)) rfl := |
| 54 | Ext.comp_assoc_of_second_deg_zero _ _ _ rfl |
| 55 | _ = (z.mapExactFunctor F).comp |
| 56 | ((hS.extClass.mapExactFunctor F).comp (Ext.mk₀ (a.app Y)) (add_zero 1)) rfl := by |
| 57 | rw [← hd] |
| 58 | _ = ((z.mapExactFunctor F).comp (hS.extClass.mapExactFunctor F) rfl).comp |
| 59 | (Ext.mk₀ (a.app Y)) (add_zero (n + 1)) := |
| 60 | (Ext.comp_assoc_of_third_deg_zero _ _ _ rfl).symm |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ExtExactFunctorNaturality |