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.HomCoefficientFunctor |
| 2 | |
| 3 | /-! # Hom Coefficient Naturality -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.HomCoefficientNaturality |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Coefficient maps and coefficient isomorphisms on the ordinary |
| 10 | Hom presheaf, with all resolution maps and differentials retained. -/ |
| 11 | open _root_.CategoryTheory Opposite |
| 12 | set_option backward.defeqAttrib.useBackward true |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | universe u v |
| 15 | open OAI.NumberTheory.PadicHodge.IntegralComparison.HomCoefficientFunctor |
| 16 | variable {C : Type v} [Category C] (R : Type u) [CommRing R] |
| 17 | {P Q : C ⥤ ModuleCat.{u} R} (a : P ⟶ Q) |
| 18 | |
| 19 | def postcomp (M : ModuleCat.{u} R) : HomCoefficientFunctor.homPresheaf R P M ⟶ HomCoefficientFunctor.homPresheaf R Q M where |
| 20 | app c := ModuleCat.ofHom |
| 21 | { toFun := fun φ => (a.app c).hom.comp φ |
| 22 | map_add' := by intros; ext; simp |
| 23 | map_smul' := by intros; ext; simp } |
| 24 | naturality c d f := by |
| 25 | apply ModuleCat.hom_ext |
| 26 | apply LinearMap.ext |
| 27 | intro φ |
| 28 | change M →ₗ[R] P.obj c at φ |
| 29 | apply LinearMap.ext |
| 30 | intro x |
| 31 | exact ConcreteCategory.congr_hom (a.naturality f) (φ x) |
| 32 | |
| 33 | def transformation : HomCoefficientFunctor.functor R P ⟶ HomCoefficientFunctor.functor R Q where |
| 34 | app M := postcomp R a M.unop |
| 35 | naturality M N f := by |
| 36 | apply NatTrans.ext |
| 37 | funext c |
| 38 | apply ModuleCat.hom_ext |
| 39 | apply LinearMap.ext |
| 40 | intro φ |
| 41 | apply LinearMap.ext |
| 42 | intro x |
| 43 | rfl |
| 44 | |
| 45 | def iso (e : P ≅ Q) : HomCoefficientFunctor.functor R P ≅ HomCoefficientFunctor.functor R Q where |
| 46 | hom := transformation R e.hom |
| 47 | inv := transformation R e.inv |
| 48 | hom_inv_id := by |
| 49 | apply NatTrans.ext |
| 50 | funext M |
| 51 | apply NatTrans.ext |
| 52 | funext c |
| 53 | apply ModuleCat.hom_ext |
| 54 | apply LinearMap.ext |
| 55 | intro φ |
| 56 | change M.unop →ₗ[R] P.obj c at φ |
| 57 | apply LinearMap.ext |
| 58 | intro x |
| 59 | exact ConcreteCategory.congr_hom (congrArg (fun z => z.app c) e.hom_inv_id) (φ x) |
| 60 | inv_hom_id := by |
| 61 | apply NatTrans.ext |
| 62 | funext M |
| 63 | apply NatTrans.ext |
| 64 | funext c |
| 65 | apply ModuleCat.hom_ext |
| 66 | apply LinearMap.ext |
| 67 | intro φ |
| 68 | change M.unop →ₗ[R] Q.obj c at φ |
| 69 | apply LinearMap.ext |
| 70 | intro x |
| 71 | exact ConcreteCategory.congr_hom (congrArg (fun z => z.app c) e.inv_hom_id) (φ x) |
| 72 | |
| 73 | def complexMap {ι : Type*} {c : ComplexShape ι} |
| 74 | (K : HomologicalComplex (ModuleCat.{u} R) c) : HomCoefficientFunctor.complex R P K ⟶ HomCoefficientFunctor.complex R Q K := |
| 75 | ((transformation R a).mapHomologicalComplex c.symm).app K.op |
| 76 | |
| 77 | def complexIso {ι : Type*} {c : ComplexShape ι} |
| 78 | (e : P ≅ Q) (K : HomologicalComplex (ModuleCat.{u} R) c) : |
| 79 | HomCoefficientFunctor.complex R P K ≅ HomCoefficientFunctor.complex R Q K := |
| 80 | (NatIso.mapHomologicalComplex (iso R e) c.symm).app K.op |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.NumberTheory.PadicHodge.IntegralComparison.HomCoefficientNaturality |