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.NumberTheory.PadicHodge.IntegralComparison.RegularSequenceKoszul |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.DualComplexHomology |
| 3 | import Mathlib.Algebra.Homology.Linear |
| 4 | |
| 5 | /-! # Dual Functor -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.DualFunctor |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The genuine coefficient dual carries the scalar Koszul construction to |
| 12 | scalar mapping cones in the opposite module category. This uses additivity, |
| 13 | and does not assume that the coefficient ring is injective. -/ |
| 14 | |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open _root_.CategoryTheory Opposite |
| 19 | |
| 20 | universe u |
| 21 | variable (R : Type u) [CommRing R] |
| 22 | |
| 23 | private def oppositeHomAddEquiv (X Y : (ModuleCat.{u} R)ᵒᵖ) : |
| 24 | (X ⟶ Y) ≃+ (Y.unop ⟶ X.unop) where |
| 25 | toEquiv := CategoryTheory.opEquiv X Y |
| 26 | map_add' _ _ := rfl |
| 27 | |
| 28 | instance oppositeLinear : CategoryTheory.Linear R (ModuleCat.{u} R)ᵒᵖ where |
| 29 | homModule X Y := (oppositeHomAddEquiv R X Y).module R |
| 30 | smul_comp X Y Z r f g := by |
| 31 | apply Quiver.Hom.unop_inj |
| 32 | change g.unop ≫ (r • f.unop) = r • (g.unop ≫ f.unop) |
| 33 | simp only [CategoryTheory.Linear.comp_smul] |
| 34 | comp_smul X Y Z f r g := by |
| 35 | apply Quiver.Hom.unop_inj |
| 36 | change (r • g.unop) ≫ f.unop = r • (g.unop ≫ f.unop) |
| 37 | simp only [CategoryTheory.Linear.smul_comp] |
| 38 | |
| 39 | abbrev functor : ModuleCat.{u} R ⥤ (ModuleCat.{u} R)ᵒᵖ := |
| 40 | (ExactModuleDualFunctor.functor R).rightOp |
| 41 | |
| 42 | instance : Functor.Linear R (functor R) where |
| 43 | map_smul := by |
| 44 | intro X Y f r |
| 45 | apply Quiver.Hom.unop_inj |
| 46 | apply ModuleCat.hom_ext |
| 47 | apply LinearMap.ext |
| 48 | intro φ |
| 49 | apply LinearMap.ext |
| 50 | intro x |
| 51 | exact φ.map_smul r (f.hom x) |
| 52 | |
| 53 | abbrev complex (K : CochainComplex (ModuleCat.{u} R) ℤ) := |
| 54 | ((functor R).mapHomologicalComplex (.up ℤ)).obj K |
| 55 | |
| 56 | theorem scalar_eq_smul_id (K : CochainComplex (ModuleCat.{u} R) ℤ) (r : R) : |
| 57 | RegularElementKoszul.scalar K r = r • 𝟙 K := by |
| 58 | rfl |
| 59 | |
| 60 | theorem map_scalar (K : CochainComplex (ModuleCat.{u} R) ℤ) (r : R) : |
| 61 | ((functor R).mapHomologicalComplex (.up ℤ)).map (RegularElementKoszul.scalar K r) = |
| 62 | r • 𝟙 (complex R K) := by |
| 63 | rw [scalar_eq_smul_id, Functor.map_smul, CategoryTheory.Functor.map_id] |
| 64 | |
| 65 | def coneIso (K : CochainComplex (ModuleCat.{u} R) ℤ) (r : R) : |
| 66 | complex R (CochainComplex.mappingCone (RegularElementKoszul.scalar K r)) ≅ |
| 67 | CochainComplex.mappingCone (r • 𝟙 (complex R K)) := |
| 68 | HomologicalComplex.homotopyCofiber.mapHomologicalComplexObjIso |
| 69 | (RegularElementKoszul.scalar K r) (functor R) ≪≫ |
| 70 | eqToIso (by rw [map_scalar]; rfl) |
| 71 | |
| 72 | def ordinaryDualIso (K : CochainComplex (ModuleCat.{u} R) ℤ) : |
| 73 | complex R K ≅ (DualComplexHomology.complex R K).op := |
| 74 | HomologicalComplex.Hom.isoOfComponents (fun _ => Iso.refl _) (by intros; rfl) |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.DualFunctor |