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.DivisorClass.Chern.ConnectingDerivedCocycle |
| 2 | import Mathlib.CategoryTheory.Abelian.Injective.Ext |
| 3 | |
| 4 | /-! # Connecting Resolution Cocycle -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.ConnectingResolutionCocycle |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Construct the actual cocycle representing a short exact sequence in an injective resolution. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive |
| 13 | open _root_.CochainComplex _root_.CochainComplex.HomComplex |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | set_option backward.defeqAttrib.useBackward true |
| 18 | |
| 19 | universe u v |
| 20 | variable {C : Type u} [Category.{v} C] [Abelian C] |
| 21 | {S : ShortComplex C} (hS : S.ShortExact) (R : InjectiveResolution S.X₁) |
| 22 | |
| 23 | def connectingResolutionMiddle : S.X₂ ⟶ R.cocomplex.X 0 := by |
| 24 | have := hS.mono_f |
| 25 | exact Injective.factorThru (R.ι.f 0) S.f |
| 26 | |
| 27 | theorem connectingResolutionMiddle_comm : S.f ≫ connectingResolutionMiddle hS R = R.ι.f 0 := by |
| 28 | have := hS.mono_f |
| 29 | exact Injective.comp_factorThru _ _ |
| 30 | |
| 31 | def connectingResolutionQuotient : S.X₃ ⟶ R.cocomplex.X 1 := by |
| 32 | have := hS.epi_g |
| 33 | exact hS.exact.desc (connectingResolutionMiddle hS R ≫ R.cocomplex.d 0 1) (by |
| 34 | rw [← Category.assoc, connectingResolutionMiddle_comm] |
| 35 | exact R.ι_f_zero_comp_complex_d) |
| 36 | |
| 37 | theorem connectingResolutionQuotient_comm : S.g ≫ connectingResolutionQuotient hS R = |
| 38 | connectingResolutionMiddle hS R ≫ R.cocomplex.d 0 1 := by |
| 39 | have := hS.epi_g |
| 40 | exact hS.exact.g_desc _ _ |
| 41 | |
| 42 | theorem connectingResolutionQuotient_closed : |
| 43 | connectingResolutionQuotient hS R ≫ R.cocomplex.d 1 2 = 0 := by |
| 44 | have := hS.epi_g |
| 45 | apply (cancel_epi S.g).mp |
| 46 | rw [← Category.assoc, connectingResolutionQuotient_comm, Category.assoc, |
| 47 | HomologicalComplex.d_comp_d, comp_zero, comp_zero] |
| 48 | |
| 49 | def connectingResolutionCochain : |
| 50 | Cochain ((singleFunctor C 0).obj S.X₂) R.cochainComplex 0 := |
| 51 | Cochain.fromSingleMk (connectingResolutionMiddle hS R ≫ (R.cochainComplexXIso 0 0 rfl).inv) |
| 52 | (zero_add 0) |
| 53 | |
| 54 | def connectingResolutionCocycle : |
| 55 | Cocycle ((singleFunctor C 0).obj S.X₃) R.cochainComplex 1 := |
| 56 | Cocycle.fromSingleMk (connectingResolutionQuotient hS R ≫ (R.cochainComplexXIso 1 1 rfl).inv) |
| 57 | (zero_add 1) 2 rfl (by |
| 58 | rw [R.cochainComplex_d 1 2 1 2 rfl rfl] |
| 59 | simp only [Category.assoc, Iso.inv_hom_id_assoc] |
| 60 | rw [← Category.assoc, connectingResolutionQuotient_closed, zero_comp]) |
| 61 | |
| 62 | theorem resolutionAugmentation_fromSingle : |
| 63 | Cochain.fromSingleMk (X := S.X₁) (R.ι.f 0 ≫ (R.cochainComplexXIso 0 0 rfl).inv) (zero_add 0) = |
| 64 | Cochain.ofHom R.ι' := by |
| 65 | ext p |
| 66 | by_cases hp : p = 0 |
| 67 | · subst p |
| 68 | rw [Cochain.fromSingleMk_v, Cochain.ofHom_v, R.ι'_f_zero] |
| 69 | · exact (HomologicalComplex.isZero_single_obj_X (.up ℤ) 0 S.X₁ p hp).eq_of_src _ _ |
| 70 | |
| 71 | theorem connectingResolutionCochain_lift : |
| 72 | (Cochain.ofHom ((singleFunctor C 0).map S.f)).comp |
| 73 | (connectingResolutionCochain hS R) (zero_add 0) = Cochain.ofHom R.ι' := by |
| 74 | unfold connectingResolutionCochain |
| 75 | rw [← Cochain.fromSingleMk_precomp, ← Category.assoc, connectingResolutionMiddle_comm] |
| 76 | exact resolutionAugmentation_fromSingle R |
| 77 | |
| 78 | theorem connectingResolutionCochain_d : |
| 79 | δ 0 1 (connectingResolutionCochain hS R) = |
| 80 | (Cochain.ofHom ((singleFunctor C 0).map S.g)).comp |
| 81 | (connectingResolutionCocycle hS R).val (zero_add 1) := by |
| 82 | unfold connectingResolutionCochain connectingResolutionCocycle |
| 83 | rw [Cochain.δ_fromSingleMk _ _ 1 1 (zero_add 1), Cocycle.fromSingleMk_coe, |
| 84 | ← Cochain.fromSingleMk_precomp] |
| 85 | congr 1 |
| 86 | rw [R.cochainComplex_d 0 1 0 1 rfl rfl] |
| 87 | simp only [Category.assoc, Iso.inv_hom_id_assoc] |
| 88 | rw [← Category.assoc, ← connectingResolutionQuotient_comm, Category.assoc] |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.DivisorClass.Chern.ConnectingResolutionCocycle |