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.ConnectingDerivedDegreeTwo |
| 2 | import OAI.AlgebraicGeometry.DivisorClass.Chern.ConnectingResolutionCocycle |
| 3 | |
| 4 | /-! # Connecting Resolution Degree Two -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.ConnectingResolutionDegreeTwo |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Construct the actual resolution cocycle for the product with a short exact sequence. -/ |
| 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) {Y : C} (R : InjectiveResolution Y) |
| 22 | (f : S.X₁ ⟶ R.cocomplex.X 1) (hf : f ≫ R.cocomplex.d 1 2 = 0) |
| 23 | |
| 24 | def connectingResolutionOneMiddle : S.X₂ ⟶ R.cocomplex.X 1 := by |
| 25 | have := hS.mono_f |
| 26 | exact Injective.factorThru f S.f |
| 27 | |
| 28 | theorem connectingResolutionOneMiddle_comm : S.f ≫ connectingResolutionOneMiddle hS R f = f := by |
| 29 | have := hS.mono_f |
| 30 | exact Injective.comp_factorThru _ _ |
| 31 | |
| 32 | def connectingResolutionTwoQuotient : S.X₃ ⟶ R.cocomplex.X 2 := by |
| 33 | have := hS.epi_g |
| 34 | exact hS.exact.desc (connectingResolutionOneMiddle hS R f ≫ R.cocomplex.d 1 2) (by |
| 35 | rw [← Category.assoc, connectingResolutionOneMiddle_comm, hf]) |
| 36 | |
| 37 | theorem connectingResolutionTwoQuotient_comm : |
| 38 | S.g ≫ connectingResolutionTwoQuotient hS R f hf = |
| 39 | connectingResolutionOneMiddle hS R f ≫ R.cocomplex.d 1 2 := by |
| 40 | have := hS.epi_g |
| 41 | exact hS.exact.g_desc _ _ |
| 42 | |
| 43 | theorem connectingResolutionTwoQuotient_closed : |
| 44 | connectingResolutionTwoQuotient hS R f hf ≫ R.cocomplex.d 2 3 = 0 := by |
| 45 | have := hS.epi_g |
| 46 | apply (cancel_epi S.g).mp |
| 47 | rw [← Category.assoc, connectingResolutionTwoQuotient_comm, Category.assoc, |
| 48 | HomologicalComplex.d_comp_d, comp_zero, comp_zero] |
| 49 | |
| 50 | def resolutionOneCocycle : Cocycle ((singleFunctor C 0).obj S.X₁) R.cochainComplex 1 := |
| 51 | Cocycle.fromSingleMk (f ≫ (R.cochainComplexXIso 1 1 rfl).inv) (zero_add 1) 2 rfl (by |
| 52 | rw [R.cochainComplex_d 1 2 1 2 rfl rfl] |
| 53 | simp only [Category.assoc, Iso.inv_hom_id_assoc, reassoc_of% hf, zero_comp]) |
| 54 | |
| 55 | def connectingResolutionOneCochain : Cochain ((singleFunctor C 0).obj S.X₂) R.cochainComplex 1 := |
| 56 | Cochain.fromSingleMk (connectingResolutionOneMiddle hS R f ≫ (R.cochainComplexXIso 1 1 rfl).inv) |
| 57 | (zero_add 1) |
| 58 | |
| 59 | def connectingResolutionTwoCocycle : Cocycle ((singleFunctor C 0).obj S.X₃) R.cochainComplex 2 := |
| 60 | Cocycle.fromSingleMk (connectingResolutionTwoQuotient hS R f hf ≫ (R.cochainComplexXIso 2 2 rfl).inv) |
| 61 | (zero_add 2) 3 rfl (by |
| 62 | rw [R.cochainComplex_d 2 3 2 3 rfl rfl] |
| 63 | simp only [Category.assoc, Iso.inv_hom_id_assoc] |
| 64 | rw [← Category.assoc, connectingResolutionTwoQuotient_closed, zero_comp]) |
| 65 | |
| 66 | theorem connectingResolutionOneCochain_lift : |
| 67 | (Cochain.ofHom ((singleFunctor C 0).map S.f)).comp |
| 68 | (connectingResolutionOneCochain hS R f) (zero_add 1) = (resolutionOneCocycle R f hf).val := by |
| 69 | unfold connectingResolutionOneCochain resolutionOneCocycle |
| 70 | rw [Cocycle.fromSingleMk_coe, ← Cochain.fromSingleMk_precomp, |
| 71 | ← Category.assoc, connectingResolutionOneMiddle_comm] |
| 72 | |
| 73 | theorem connectingResolutionOneCochain_d : |
| 74 | δ 1 2 (connectingResolutionOneCochain hS R f) = |
| 75 | (Cochain.ofHom ((singleFunctor C 0).map S.g)).comp |
| 76 | (connectingResolutionTwoCocycle hS R f hf).val (zero_add 2) := by |
| 77 | unfold connectingResolutionOneCochain connectingResolutionTwoCocycle |
| 78 | rw [Cochain.δ_fromSingleMk _ _ 2 2 (zero_add 2), Cocycle.fromSingleMk_coe, |
| 79 | ← Cochain.fromSingleMk_precomp] |
| 80 | congr 1 |
| 81 | rw [R.cochainComplex_d 1 2 1 2 rfl rfl] |
| 82 | simp only [Category.assoc, Iso.inv_hom_id_assoc] |
| 83 | rw [← Category.assoc, ← connectingResolutionTwoQuotient_comm, Category.assoc] |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.AlgebraicGeometry.DivisorClass.Chern.ConnectingResolutionDegreeTwo |