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.ConnectingConeDegreeTwo |
| 2 | |
| 3 | /-! # Connecting Derived Degree Two -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.ConnectingDerivedDegreeTwo |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Actual derived composition of a connecting morphism and a degree-one cocycle. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive |
| 12 | open _root_.CochainComplex _root_.CochainComplex.HomComplex DerivedCategory |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | |
| 18 | universe u v w |
| 19 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasDerivedCategory.{w} C] |
| 20 | |
| 21 | theorem derivedCocycleShiftedMap_eq_of_class_eq {A K : CochainComplex C ℤ} {n : ℤ} |
| 22 | (z z' : Cocycle A K n) (h : CohomologyClass.mk z = CohomologyClass.mk z') : |
| 23 | ShiftedHom.map (Cocycle.equivHomShift.symm z) Q = |
| 24 | ShiftedHom.map (Cocycle.equivHomShift.symm z') Q := |
| 25 | congrArg (fun f => f ≫ (Q.commShiftIso n).hom.app K) (ConnectingDerivedCocycle.derivedCocycleMap_eq_of_class_eq z z' h) |
| 26 | |
| 27 | variable (S : ShortComplex (CochainComplex C ℤ)) {K : CochainComplex C ℤ} |
| 28 | (a : Cocycle S.X₁ K 1) (b : Cochain S.X₂ K 1) (z : Cocycle S.X₃ K 2) |
| 29 | (hb : (Cochain.ofHom S.f).comp b (zero_add 1) = a.val) |
| 30 | (hd : δ 1 2 b = (Cochain.ofHom S.g).comp z.val (zero_add 2)) |
| 31 | |
| 32 | include hb hd in |
| 33 | theorem connectingCone_degreeTwo_derived : |
| 34 | Q.map (mappingCone.descShortComplex S) ≫ ShiftedHom.map (Cocycle.equivHomShift.symm z) Q = |
| 35 | ShiftedHom.comp (ShiftedHom.map (ConnectingDerivedCocycle.connectingConeArrow S) Q) |
| 36 | (ShiftedHom.map (Cocycle.equivHomShift.symm a) Q) (show (1 : ℤ) + 1 = 2 from rfl) := by |
| 37 | have hc : ShiftedHom.map (ConnectingDerivedCocycle.connectingConeArrow S) Q = |
| 38 | -ShiftedHom.map (Cocycle.equivHomShift.symm (mappingCone.fst S.f)) Q := by |
| 39 | change ShiftedHom.map (Cocycle.equivHomShift.symm (-mappingCone.fst S.f)) Q = _ |
| 40 | simp only [map_neg, ShiftedHom.map, Functor.map_neg, neg_comp] |
| 41 | calc |
| 42 | _ = ShiftedHom.map (Cocycle.equivHomShift.symm (z.precomp (mappingCone.descShortComplex S))) Q := by |
| 43 | rw [Cocycle.equivHomShift_symm_precomp] |
| 44 | simp only [ShiftedHom.map, Functor.map_comp, Category.assoc] |
| 45 | _ = ShiftedHom.map (Cocycle.equivHomShift.symm (-CocycleComposition.cocycleOneComp (mappingCone.fst S.f) a)) Q := |
| 46 | derivedCocycleShiftedMap_eq_of_class_eq _ _ |
| 47 | (ConnectingConeDegreeTwo.connectingCone_degreeTwo_cohomologyClass S a b z hb hd) |
| 48 | _ = -ShiftedHom.map (Cocycle.equivHomShift.symm (CocycleComposition.cocycleOneComp (mappingCone.fst S.f) a)) Q := by |
| 49 | simp only [map_neg, ShiftedHom.map, Functor.map_neg, neg_comp] |
| 50 | _ = -ShiftedHom.comp (ShiftedHom.map (Cocycle.equivHomShift.symm (mappingCone.fst S.f)) Q) |
| 51 | (ShiftedHom.map (Cocycle.equivHomShift.symm a) Q) (show (1 : ℤ) + 1 = 2 from rfl) := by |
| 52 | rw [CocycleComposition.cocycleOneComp_shiftHom, ShiftedHom.map_comp] |
| 53 | _ = _ := by rw [hc, ShiftedHom.neg_comp] |
| 54 | |
| 55 | include hb hd in |
| 56 | theorem connectingDerivedDegreeTwo (hS : S.ShortExact) : |
| 57 | ShiftedHom.comp (triangleOfSESδ hS) (ShiftedHom.map (Cocycle.equivHomShift.symm a) Q) |
| 58 | (show (1 : ℤ) + 1 = 2 from rfl) = ShiftedHom.map (Cocycle.equivHomShift.symm z) Q := by |
| 59 | have := mappingCone.quasiIso_descShortComplex hS |
| 60 | apply (cancel_epi (Q.map (mappingCone.descShortComplex S))).mp |
| 61 | calc |
| 62 | _ = ShiftedHom.comp (Q.map (mappingCone.descShortComplex S) ≫ triangleOfSESδ hS) |
| 63 | (ShiftedHom.map (Cocycle.equivHomShift.symm a) Q) (show (1 : ℤ) + 1 = 2 from rfl) := by |
| 64 | simp only [ShiftedHom.comp, Category.assoc] |
| 65 | _ = ShiftedHom.comp (ShiftedHom.map (ConnectingDerivedCocycle.connectingConeArrow S) Q) |
| 66 | (ShiftedHom.map (Cocycle.equivHomShift.symm a) Q) (show (1 : ℤ) + 1 = 2 from rfl) := by |
| 67 | rw [descShortComplex_triangleOfSESδ] |
| 68 | rfl |
| 69 | _ = _ := (connectingCone_degreeTwo_derived S a b z hb hd).symm |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.DivisorClass.Chern.ConnectingDerivedDegreeTwo |