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.ConnectingResolutionDegreeTwo |
| 2 | import OAI.AlgebraicGeometry.DivisorClass.Chern.ConnectingExt |
| 3 | |
| 4 | /-! # Connecting Ext Degree Two -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.ConnectingExtDegreeTwo |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual Yoneda product with an extension is the constructed degree-two resolution class. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive _root_.CategoryTheory.Abelian |
| 13 | open _root_.CochainComplex.HomComplex DerivedCategory |
| 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 w w' |
| 20 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{w} C] |
| 21 | [HasDerivedCategory.{w'} C] {S : ShortComplex C} (hS : S.ShortExact) |
| 22 | {Y : C} (R : InjectiveResolution Y) (f : S.X₁ ⟶ R.cocomplex.X 1) |
| 23 | (hf : f ≫ R.cocomplex.d 1 2 = 0) |
| 24 | |
| 25 | theorem resolutionOneCocycle_extMk_hom : |
| 26 | (R.extMk f 2 rfl hf).hom = |
| 27 | ShiftedHom.comp (ShiftedHom.map (Cocycle.equivHomShift.symm (ConnectingResolutionDegreeTwo.resolutionOneCocycle R f hf)) Q) |
| 28 | (ShiftedHom.mk₀ (0 : ℤ) rfl (inv (Q.map R.ι'))) (zero_add 1) := by |
| 29 | rw [R.extMk_hom] |
| 30 | simp only [singleFunctorIsoCompQ, Iso.refl_hom, Iso.refl_inv, NatTrans.id_app, |
| 31 | ShiftedHom.comp_mk₀] |
| 32 | erw [ShiftedHom.mk₀_id_comp, Category.comp_id] |
| 33 | rfl |
| 34 | |
| 35 | theorem connectingResolutionTwoCocycle_extMk_hom : |
| 36 | (R.extMk (ConnectingResolutionDegreeTwo.connectingResolutionTwoQuotient hS R f hf) 3 rfl |
| 37 | (ConnectingResolutionDegreeTwo.connectingResolutionTwoQuotient_closed hS R f hf)).hom = |
| 38 | ShiftedHom.comp |
| 39 | (ShiftedHom.map (Cocycle.equivHomShift.symm (ConnectingResolutionDegreeTwo.connectingResolutionTwoCocycle hS R f hf)) Q) |
| 40 | (ShiftedHom.mk₀ (0 : ℤ) rfl (inv (Q.map R.ι'))) (zero_add 2) := by |
| 41 | rw [R.extMk_hom] |
| 42 | simp only [singleFunctorIsoCompQ, Iso.refl_hom, Iso.refl_inv, NatTrans.id_app, |
| 43 | ShiftedHom.comp_mk₀] |
| 44 | erw [ShiftedHom.mk₀_id_comp, Category.comp_id] |
| 45 | rfl |
| 46 | |
| 47 | theorem connectingExtDegreeTwo_hom : |
| 48 | ShiftedHom.comp hS.extClass.hom |
| 49 | (ShiftedHom.map (Cocycle.equivHomShift.symm (ConnectingResolutionDegreeTwo.resolutionOneCocycle R f hf)) Q) |
| 50 | (show (1 : ℤ) + 1 = 2 from rfl) = |
| 51 | ShiftedHom.map (Cocycle.equivHomShift.symm (ConnectingResolutionDegreeTwo.connectingResolutionTwoCocycle hS R f hf)) Q := by |
| 52 | rw [ShortComplex.ShortExact.extClass_hom, ConnectingExt.singleConnecting_eq_triangle] |
| 53 | exact ConnectingDerivedDegreeTwo.connectingDerivedDegreeTwo (S.map (CochainComplex.singleFunctor C 0)) |
| 54 | (ConnectingResolutionDegreeTwo.resolutionOneCocycle R f hf) (ConnectingResolutionDegreeTwo.connectingResolutionOneCochain hS R f) |
| 55 | (ConnectingResolutionDegreeTwo.connectingResolutionTwoCocycle hS R f hf) |
| 56 | (ConnectingResolutionDegreeTwo.connectingResolutionOneCochain_lift hS R f hf) (ConnectingResolutionDegreeTwo.connectingResolutionOneCochain_d hS R f hf) |
| 57 | (hS.map_of_exact (HomologicalComplex.single C (.up ℤ) 0)) |
| 58 | |
| 59 | theorem connectingExt_comp_resolutionOne : |
| 60 | hS.extClass.comp (R.extMk f 2 rfl hf) (show 1 + 1 = 2 from rfl) = |
| 61 | R.extMk (ConnectingResolutionDegreeTwo.connectingResolutionTwoQuotient hS R f hf) 3 rfl |
| 62 | (ConnectingResolutionDegreeTwo.connectingResolutionTwoQuotient_closed hS R f hf) := by |
| 63 | ext |
| 64 | rw [Ext.comp_hom, resolutionOneCocycle_extMk_hom, connectingResolutionTwoCocycle_extMk_hom] |
| 65 | let b := ShiftedHom.map (Cocycle.equivHomShift.symm (ConnectingResolutionDegreeTwo.resolutionOneCocycle R f hf)) Q |
| 66 | let g := ShiftedHom.mk₀ (0 : ℤ) rfl (inv (Q.map R.ι')) |
| 67 | have ha := ShiftedHom.comp_assoc hS.extClass.hom b g |
| 68 | (show (1 : ℤ) + 1 = 2 from rfl) (zero_add 1) (show (0 : ℤ) + 1 + 1 = 2 from rfl) |
| 69 | exact ha.symm.trans (congrArg (fun z => ShiftedHom.comp z g (zero_add 2)) |
| 70 | (connectingExtDegreeTwo_hom hS R f hf)) |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.DivisorClass.Chern.ConnectingExtDegreeTwo |