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 | import OAI.Analysis.DifferentialForms.Manifold.CochainAugmentation |
| 3 | |
| 4 | /-! # Resolution Exact Image -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Comparison.Betti.ResolutionExactImage |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! |
| 13 | # Comparing a proved resolution with an injective resolution |
| 14 | |
| 15 | The source consists of an actual complex with a proved kernel augmentation |
| 16 | and proved positive-degree exactness. The comparison extends the original |
| 17 | augmentation by injectivity, following the standard degreewise construction |
| 18 | of `InjectiveResolution.desc`, without assuming injectivity of the source. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 22 | |
| 23 | variable {C : Type*} [Category* C] [Abelian C] |
| 24 | |
| 25 | structure Data (Z : C) where |
| 26 | complex : CochainComplex C ℕ |
| 27 | augmentation : Z ⟶ complex.X 0 |
| 28 | augmentation_d : augmentation ≫ complex.d 0 1 = 0 |
| 29 | isKernel : IsLimit (KernelFork.ofι augmentation augmentation_d) |
| 30 | exact_succ : ∀ n, complex.ExactAt (n + 1) |
| 31 | |
| 32 | variable {Z : C} (R : Data Z) (I : InjectiveResolution Z) |
| 33 | |
| 34 | instance augmentation_mono : Mono R.augmentation := mono_of_isLimit_fork R.isKernel |
| 35 | |
| 36 | def cochainAugmentation : (CochainComplex.single₀ C).obj Z ⟶ R.complex := |
| 37 | (CochainComplex.fromSingle₀Equiv R.complex Z).symm ⟨R.augmentation, R.augmentation_d⟩ |
| 38 | |
| 39 | instance cochainAugmentation_quasiIso : QuasiIso (cochainAugmentation R) := |
| 40 | Analysis.DifferentialForms.Manifold.CochainAugmentation.cochainAugmentation_quasiIso R.complex R.augmentation R.augmentation_d R.isKernel R.exact_succ |
| 41 | |
| 42 | def zeroMap : R.complex.X 0 ⟶ I.cocomplex.X 0 := |
| 43 | Injective.factorThru (show Z ⟶ I.cocomplex.X 0 from I.ι.f 0) R.augmentation |
| 44 | |
| 45 | theorem augmentation_zeroMap : R.augmentation ≫ zeroMap R I = I.ι.f 0 := |
| 46 | Injective.comp_factorThru (show Z ⟶ I.cocomplex.X 0 from I.ι.f 0) R.augmentation |
| 47 | |
| 48 | def oneMap : R.complex.X 1 ⟶ I.cocomplex.X 1 := |
| 49 | (ShortComplex.exact_of_f_is_kernel |
| 50 | (ShortComplex.mk R.augmentation (R.complex.d 0 1) R.augmentation_d) R.isKernel).descToInjective |
| 51 | (zeroMap R I ≫ I.cocomplex.d 0 1) (by |
| 52 | rw [← Category.assoc, augmentation_zeroMap] |
| 53 | exact I.ι_f_zero_comp_complex_d) |
| 54 | |
| 55 | theorem oneMap_comm : R.complex.d 0 1 ≫ oneMap R I = zeroMap R I ≫ I.cocomplex.d 0 1 := by |
| 56 | unfold oneMap |
| 57 | exact (ShortComplex.exact_of_f_is_kernel |
| 58 | (ShortComplex.mk R.augmentation (R.complex.d 0 1) R.augmentation_d) R.isKernel).comp_descToInjective _ _ |
| 59 | |
| 60 | theorem exact_next (n : ℕ) : |
| 61 | (ShortComplex.mk (R.complex.d n (n + 1)) (R.complex.d (n + 1) (n + 2)) |
| 62 | (R.complex.d_comp_d n (n + 1) (n + 2))).Exact := |
| 63 | (HomologicalComplex.exactAt_iff' _ n (n + 1) (n + 2) (by simp) |
| 64 | (by simp only [CochainComplex.next]; rfl)).1 (R.exact_succ n) |
| 65 | |
| 66 | def nextMap (n : ℕ) (g : R.complex.X n ⟶ I.cocomplex.X n) |
| 67 | (g' : R.complex.X (n + 1) ⟶ I.cocomplex.X (n + 1)) |
| 68 | (w : R.complex.d n (n + 1) ≫ g' = g ≫ I.cocomplex.d n (n + 1)) : |
| 69 | Σ' g'' : R.complex.X (n + 2) ⟶ I.cocomplex.X (n + 2), |
| 70 | R.complex.d (n + 1) (n + 2) ≫ g'' = g' ≫ I.cocomplex.d (n + 1) (n + 2) := |
| 71 | ⟨(exact_next R n).descToInjective (g' ≫ I.cocomplex.d (n + 1) (n + 2)) (by |
| 72 | rw [← Category.assoc, w, Category.assoc, I.cocomplex.d_comp_d, comp_zero]), |
| 73 | (exact_next R n).comp_descToInjective _ _⟩ |
| 74 | |
| 75 | /-- An actual cochain map extending the given augmentation. -/ |
| 76 | def toInjective : R.complex ⟶ I.cocomplex := |
| 77 | CochainComplex.mkHom _ _ (zeroMap R I) (oneMap R I) (oneMap_comm R I).symm |
| 78 | (fun n ⟨g, g', w⟩ => ⟨(nextMap R I n g g' w.symm).1, (nextMap R I n g g' w.symm).2.symm⟩) |
| 79 | |
| 80 | theorem toInjective_normalization : cochainAugmentation R ≫ toInjective R I = I.ι := by |
| 81 | apply HomologicalComplex.Hom.ext |
| 82 | funext n |
| 83 | cases n with |
| 84 | | zero => |
| 85 | simp only [HomologicalComplex.comp_f, cochainAugmentation, |
| 86 | CochainComplex.fromSingle₀Equiv_symm_apply_f_zero, toInjective, CochainComplex.mkHom_f_0] |
| 87 | exact augmentation_zeroMap R I |
| 88 | | succ n => |
| 89 | exact (HomologicalComplex.isZero_single_obj_X (ComplexShape.up ℕ) 0 Z (n + 1) (by omega)).eq_of_src _ _ |
| 90 | |
| 91 | /-- The constructed comparison is a quasi-isomorphism because both augmentations are resolutions. -/ |
| 92 | theorem toInjective_quasiIso : QuasiIso (toInjective R I) := by |
| 93 | have : QuasiIso (cochainAugmentation R ≫ toInjective R I) := by |
| 94 | rw [toInjective_normalization] |
| 95 | infer_instance |
| 96 | exact quasiIso_of_comp_left (cochainAugmentation R) (toInjective R I) |
| 97 | |
| 98 | end |
| 99 | |
| 100 | /-! Exact functors carry genuine resolutions to genuine resolutions. -/ |
| 101 | |
| 102 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 103 | |
| 104 | variable {C : Type*} [Category* C] [Abelian C] {Z : C} |
| 105 | |
| 106 | def ofInjective (I : InjectiveResolution Z) : Data Z where |
| 107 | complex := I.cocomplex |
| 108 | augmentation := I.ι.f 0 |
| 109 | augmentation_d := I.ι_f_zero_comp_complex_d |
| 110 | isKernel := I.isLimitKernelFork |
| 111 | exact_succ := I.cocomplex_exactAt_succ |
| 112 | |
| 113 | def changeSource (R : Data Z) {W : C} (e : W ≅ Z) : Data W where |
| 114 | complex := R.complex |
| 115 | augmentation := e.hom ≫ R.augmentation |
| 116 | augmentation_d := by rw [Category.assoc, R.augmentation_d, comp_zero] |
| 117 | isKernel := IsLimit.ofIsoLimit R.isKernel (Fork.ext e.symm (by |
| 118 | change e.inv ≫ (e.hom ≫ R.augmentation) = R.augmentation |
| 119 | exact e.inv_hom_id_assoc _)) |
| 120 | exact_succ := R.exact_succ |
| 121 | |
| 122 | variable {D : Type*} [Category* D] [Abelian D] |
| 123 | (R : Data Z) (F : C ⥤ D) [F.Additive] |
| 124 | [PreservesFiniteLimits F] [PreservesFiniteColimits F] |
| 125 | |
| 126 | def exactImage : Data (F.obj Z) where |
| 127 | complex := (F.mapHomologicalComplex (ComplexShape.up ℕ)).obj R.complex |
| 128 | augmentation := F.map R.augmentation |
| 129 | augmentation_d := by |
| 130 | change F.map R.augmentation ≫ F.map (R.complex.d 0 1) = 0 |
| 131 | rw [← F.map_comp, R.augmentation_d, F.map_zero] |
| 132 | isKernel := KernelFork.mapIsLimit _ R.isKernel F |
| 133 | exact_succ n := by |
| 134 | change ((R.complex.sc (n + 1)).map F).Exact |
| 135 | exact ((HomologicalComplex.exactAt_iff _ _).mp (R.exact_succ n)).map F |
| 136 | |
| 137 | end |
| 138 | |
| 139 | end OAI.AlgebraicGeometry.Comparison.Betti.ResolutionExactImage |