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.AbelianModuli.HilbertConstruction.Dual.ShortComplexHomotopy |
| 2 | |
| 3 | /-! # Short Complex Last Cokernel -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ShortComplexLastCokernel |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Endpoint-controlled short-complex homotopies preserve the last cokernel. Reversing a homotopy with zero first endpoint supplies exactly the required control for the dual augmentation. -/ |
| 10 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 11 | universe u v |
| 12 | variable {V : Type u} [Category.{v} V] [Abelian V] |
| 13 | {S T U : ShortComplex V} |
| 14 | |
| 15 | def shortComplexLastCokernelMap (φ : S ⟶ T) : cokernel S.g ⟶ cokernel T.g := |
| 16 | cokernel.desc S.g (φ.τ₃ ≫ cokernel.π T.g) (by |
| 17 | rw [← Category.assoc, ← φ.comm₂₃, Category.assoc, cokernel.condition, comp_zero]) |
| 18 | |
| 19 | @[reassoc (attr := simp)] |
| 20 | theorem shortComplexLastCokernelMap_fac (φ : S ⟶ T) : |
| 21 | cokernel.π S.g ≫ shortComplexLastCokernelMap φ = φ.τ₃ ≫ cokernel.π T.g := |
| 22 | cokernel.π_desc _ _ _ |
| 23 | |
| 24 | theorem shortComplexLastCokernelMap_id : shortComplexLastCokernelMap (𝟙 S) = 𝟙 _ := by |
| 25 | apply (cancel_epi (cokernel.π S.g)).mp |
| 26 | simp |
| 27 | |
| 28 | theorem shortComplexLastCokernelMap_comp (φ : S ⟶ T) (ψ : T ⟶ U) : |
| 29 | shortComplexLastCokernelMap (φ ≫ ψ) = shortComplexLastCokernelMap φ ≫ shortComplexLastCokernelMap ψ := by |
| 30 | apply (cancel_epi (cokernel.π S.g)).mp |
| 31 | simp [Category.assoc] |
| 32 | |
| 33 | theorem shortComplexLastCokernelMap_homotopy {φ ψ : S ⟶ T} |
| 34 | (h : ShortComplex.Homotopy φ ψ) (h₃ : h.h₃ = 0) : |
| 35 | shortComplexLastCokernelMap φ = shortComplexLastCokernelMap ψ := by |
| 36 | apply (cancel_epi (cokernel.π S.g)).mp |
| 37 | rw [shortComplexLastCokernelMap_fac, shortComplexLastCokernelMap_fac, |
| 38 | h.comm₃, h₃, zero_add, Preadditive.add_comp, Category.assoc, cokernel.condition, comp_zero, zero_add] |
| 39 | |
| 40 | def shortComplexLastCokernelIso (e : ShortComplex.HomotopyEquiv S T) |
| 41 | (hh : e.homotopyHomInvId.h₃ = 0) (hi : e.homotopyInvHomId.h₃ = 0) : |
| 42 | cokernel S.g ≅ cokernel T.g where |
| 43 | hom := shortComplexLastCokernelMap e.hom |
| 44 | inv := shortComplexLastCokernelMap e.inv |
| 45 | hom_inv_id := by |
| 46 | rw [← shortComplexLastCokernelMap_comp, |
| 47 | shortComplexLastCokernelMap_homotopy e.homotopyHomInvId hh, shortComplexLastCokernelMap_id] |
| 48 | inv_hom_id := by |
| 49 | rw [← shortComplexLastCokernelMap_comp, |
| 50 | shortComplexLastCokernelMap_homotopy e.homotopyInvHomId hi, shortComplexLastCokernelMap_id] |
| 51 | |
| 52 | def dualShortComplexLastCokernelIso |
| 53 | {R : Type u} [CommRing R] {S T : ShortComplex (ModuleCat.{u} R)} |
| 54 | (e : ShortComplex.HomotopyEquiv S T) |
| 55 | (hh : e.homotopyHomInvId.h₀ = 0) (hi : e.homotopyInvHomId.h₀ = 0) : |
| 56 | cokernel (Module.DualFunctor.dualModuleShortComplex S).g ≅ cokernel (Module.DualFunctor.dualModuleShortComplex T).g := by |
| 57 | apply shortComplexLastCokernelIso (Dual.ShortComplexHomotopy.dualShortComplexHomotopyEquiv e) |
| 58 | · change (Module.DualFunctor.moduleDualFunctor R).map e.homotopyHomInvId.h₀.op = 0 |
| 59 | rw [hh, op_zero, Functor.map_zero] |
| 60 | · change (Module.DualFunctor.moduleDualFunctor R).map e.homotopyInvHomId.h₀.op = 0 |
| 61 | rw [hi, op_zero, Functor.map_zero] |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ShortComplexLastCokernel |