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.ConnectingResolutionCocycle |
| 2 | import Mathlib.Algebra.Homology.DerivedCategory.Ext.ExtClass |
| 3 | |
| 4 | /-! # Connecting Ext -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.ConnectingExt |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Compute the actual extension class from the constructed injective-resolution cocycle. -/ |
| 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 | (R : InjectiveResolution S.X₁) |
| 23 | |
| 24 | theorem connectingResolution_extMk_hom : |
| 25 | (R.extMk (ConnectingResolutionCocycle.connectingResolutionQuotient hS R) 2 rfl |
| 26 | (ConnectingResolutionCocycle.connectingResolutionQuotient_closed hS R)).hom = |
| 27 | ShiftedHom.map (Cocycle.equivHomShift.symm (ConnectingResolutionCocycle.connectingResolutionCocycle hS R)) Q ≫ |
| 28 | (inv (Q.map R.ι'))⟦(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 | omit [HasExt.{w} C] in |
| 36 | theorem singleConnecting_eq_triangle : |
| 37 | hS.singleδ = triangleOfSESδ |
| 38 | (hS.map_of_exact (HomologicalComplex.single C (.up ℤ) 0)) := by |
| 39 | dsimp [ShortComplex.ShortExact.singleδ] |
| 40 | |
| 41 | theorem connectingExtClass_hom_equation : |
| 42 | hS.extClass.hom ≫ (Q.map R.ι')⟦(1 : ℤ)⟧' = |
| 43 | -ShiftedHom.map (Cocycle.equivHomShift.symm (ConnectingResolutionCocycle.connectingResolutionCocycle hS R)) Q := by |
| 44 | rw [ShortComplex.ShortExact.extClass_hom, singleConnecting_eq_triangle] |
| 45 | exact ConnectingDerivedCocycle.connectingDerivedCocycle |
| 46 | (S.map (CochainComplex.singleFunctor C 0)) |
| 47 | (hS.map_of_exact (HomologicalComplex.single C (.up ℤ) 0)) R.ι' |
| 48 | (ConnectingResolutionCocycle.connectingResolutionCochain hS R) (ConnectingResolutionCocycle.connectingResolutionCocycle hS R) |
| 49 | (ConnectingResolutionCocycle.connectingResolutionCochain_lift hS R) (ConnectingResolutionCocycle.connectingResolutionCochain_d hS R) |
| 50 | |
| 51 | theorem connectingExtClass_eq_neg_resolution : |
| 52 | hS.extClass = -R.extMk (ConnectingResolutionCocycle.connectingResolutionQuotient hS R) 2 rfl |
| 53 | (ConnectingResolutionCocycle.connectingResolutionQuotient_closed hS R) := by |
| 54 | ext |
| 55 | rw [Ext.neg_hom, connectingResolution_extMk_hom] |
| 56 | have h := congrArg (fun f => f ≫ (inv (Q.map R.ι'))⟦(1 : ℤ)⟧') |
| 57 | (connectingExtClass_hom_equation hS R) |
| 58 | rw [Category.assoc, ← CategoryTheory.Functor.map_comp, IsIso.hom_inv_id, |
| 59 | CategoryTheory.Functor.map_id] at h |
| 60 | exact ((Category.comp_id hS.extClass.hom).symm.trans h).trans (neg_comp _ _) |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.DivisorClass.Chern.ConnectingExt |