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 |
| 2 | |
| 3 | /-! # Left Exact Resolution -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.LeftExactResolution |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: mapping an injective resolution through a left exact functor |
| 11 | |
| 12 | This construction requires exactness of the particular mapped complex |
| 13 | in positive degrees. It does not assume that the functor is exact. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 17 | |
| 18 | universe v v' u u' |
| 19 | |
| 20 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 21 | {D : Type u'} [Category.{v'} D] [Abelian D] |
| 22 | (F : C ⥤ D) [F.Additive] [PreservesFiniteLimits F] [F.PreservesInjectiveObjects] |
| 23 | {Z : C} (I : InjectiveResolution Z) |
| 24 | |
| 25 | def complex : CochainComplex D ℕ := (F.mapHomologicalComplex (ComplexShape.up ℕ)).obj I.cocomplex |
| 26 | |
| 27 | omit [PreservesFiniteLimits F] [F.PreservesInjectiveObjects] in |
| 28 | theorem augmentation_condition : F.map (I.ι.f 0) ≫ (complex F I).d 0 1 = 0 := by |
| 29 | change F.map (I.ι.f 0) ≫ F.map (I.cocomplex.d 0 1) = 0 |
| 30 | rw [← F.map_comp, I.ι_f_zero_comp_complex_d, F.map_zero] |
| 31 | |
| 32 | def augmentation : (CochainComplex.single₀ D).obj (F.obj Z) ⟶ complex F I := |
| 33 | (CochainComplex.fromSingle₀Equiv _ _).symm ⟨F.map (I.ι.f 0), augmentation_condition F I⟩ |
| 34 | |
| 35 | omit [F.PreservesInjectiveObjects] in |
| 36 | theorem augmentation_exact : |
| 37 | (ShortComplex.mk (F.map (I.ι.f 0)) ((complex F I).d 0 1) (augmentation_condition F I)).Exact := |
| 38 | ShortComplex.exact_of_f_is_kernel _ (KernelFork.mapIsLimit _ I.isLimitKernelFork F) |
| 39 | |
| 40 | omit [PreservesFiniteLimits F] [F.PreservesInjectiveObjects] in |
| 41 | theorem augmentation_zero : (augmentation F I).f 0 = F.map (I.ι.f 0) := |
| 42 | CochainComplex.fromSingle₀Equiv_symm_apply_f_zero _ _ |
| 43 | |
| 44 | def resolution (h : ∀ n, (complex F I).ExactAt (n + 1)) : InjectiveResolution (F.obj Z) where |
| 45 | cocomplex := complex F I |
| 46 | injective n := F.injective_obj_of_injective (I.injective n) |
| 47 | ι := augmentation F I |
| 48 | quasiIso := ⟨fun n => by |
| 49 | cases n with |
| 50 | | zero => |
| 51 | rw [CochainComplex.quasiIsoAt₀_iff, ShortComplex.quasiIso_iff_of_zeros] |
| 52 | · refine (ShortComplex.exact_and_mono_f_iff_of_iso ?_).2 |
| 53 | ⟨augmentation_exact F I, inferInstance⟩ |
| 54 | exact ShortComplex.isoMk (Iso.refl _) (Iso.refl _) (Iso.refl _) |
| 55 | ((Category.id_comp _).trans ((augmentation_zero F I).symm.trans (Category.comp_id _).symm)) |
| 56 | ((Category.id_comp _).trans (Category.comp_id _).symm) |
| 57 | all_goals first | rfl | exact (complex F I).shape 0 0 (by simp) |
| 58 | | succ n => |
| 59 | exact (quasiIsoAt_iff_exactAt _ (n + 1) (CochainComplex.exactAt_succ_single_obj _ _)).mpr (h n)⟩ |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.NumberTheory.PadicHodge.IntegralComparison.LeftExactResolution |