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.Module.ConstantSections |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ExhaustiveSectionNaturality |
| 3 | |
| 4 | /-! # Section Currying -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.SectionCurrying |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: explicit currying for module-valued presheaf sections |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory Opposite |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | variable {C : Type u} [Category.{v} C] (R : Type u) [CommRing R] |
| 19 | (M : ModuleCat.{u} R) (F : Cᵒᵖ ⥤ ModuleCat.{u} R) |
| 20 | |
| 21 | abbrev sections := (ExhaustiveSectionNaturality.globalSectionsFunctor R (ModuleCat.of R R)).obj F |
| 22 | |
| 23 | def curry (a : (Functor.const Cᵒᵖ).obj M ⟶ F) : M ⟶ sections R F := |
| 24 | ModuleCat.ofHom |
| 25 | { toFun := fun x => (Functor.const Cᵒᵖ).map (Module.ConstantSections.elementHom R M x) ≫ a |
| 26 | map_add' := by |
| 27 | intro x y |
| 28 | apply NatTrans.ext |
| 29 | funext T |
| 30 | change (Module.ConstantSections.elementHom R M (x + y)) ≫ a.app T = _ |
| 31 | rw [map_add, Preadditive.add_comp] |
| 32 | rfl |
| 33 | map_smul' := by |
| 34 | intro r x |
| 35 | apply NatTrans.ext |
| 36 | funext T |
| 37 | change (Module.ConstantSections.elementHom R M (r • x)) ≫ a.app T = _ |
| 38 | rw [map_smul, Linear.smul_comp] |
| 39 | rfl } |
| 40 | |
| 41 | theorem curry_app (a : (Functor.const Cᵒᵖ).obj M ⟶ F) (x : M) (T : Cᵒᵖ) (r : R) : |
| 42 | (curry R M F a x).app T r = a.app T (r • x) := rfl |
| 43 | |
| 44 | def uncurry (b : M ⟶ sections R F) : (Functor.const Cᵒᵖ).obj M ⟶ F where |
| 45 | app T := ModuleCat.ofHom |
| 46 | { toFun := fun x => (b x).app T (1 : R) |
| 47 | map_add' := by |
| 48 | intro x y |
| 49 | change (b.hom (x + y)).app T (1 : R) = _ |
| 50 | rw [map_add] |
| 51 | rfl |
| 52 | map_smul' := by |
| 53 | intro r x |
| 54 | change (b.hom (r • x)).app T (1 : R) = _ |
| 55 | rw [map_smul] |
| 56 | rfl } |
| 57 | naturality T U α := by |
| 58 | apply ModuleCat.hom_ext |
| 59 | apply LinearMap.ext |
| 60 | intro x |
| 61 | exact (congrArg (fun f : ModuleCat.of R R ⟶ F.obj U => f (1 : R)) ((b x).naturality α)) |
| 62 | |
| 63 | theorem uncurry_curry (a : (Functor.const Cᵒᵖ).obj M ⟶ F) : uncurry R M F (curry R M F a) = a := by |
| 64 | apply NatTrans.ext |
| 65 | funext T |
| 66 | apply ModuleCat.hom_ext |
| 67 | apply LinearMap.ext |
| 68 | intro x |
| 69 | change a.app T ((1 : R) • x) = a.app T x |
| 70 | rw [one_smul] |
| 71 | |
| 72 | theorem curry_uncurry (b : M ⟶ sections R F) : curry R M F (uncurry R M F b) = b := by |
| 73 | apply ModuleCat.hom_ext |
| 74 | apply LinearMap.ext |
| 75 | intro x |
| 76 | apply NatTrans.ext |
| 77 | funext T |
| 78 | apply ModuleCat.hom_ext |
| 79 | apply LinearMap.ext |
| 80 | intro r |
| 81 | change R at r |
| 82 | change (b.hom (r • x)).app T (1 : R) = (b x).app T r |
| 83 | rw [map_smul] |
| 84 | change r • (b x).app T (1 : R) = (b x).app T r |
| 85 | let l : R →ₗ[R] F.obj T := ((b x).app T).hom |
| 86 | change r • l 1 = l r |
| 87 | have hr : (r : R) * (1 : R) = r := @mul_one R _ r |
| 88 | have hl : l ((r : R) * (1 : R)) = r • l 1 := l.map_smul (r : R) (1 : R) |
| 89 | exact hl.symm.trans (congrArg l hr) |
| 90 | |
| 91 | def equiv : ((Functor.const Cᵒᵖ).obj M ⟶ F) ≃ (M ⟶ sections R F) where |
| 92 | toFun := curry R M F |
| 93 | invFun := uncurry R M F |
| 94 | left_inv := uncurry_curry R M F |
| 95 | right_inv := curry_uncurry R M F |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.NumberTheory.PadicHodge.IntegralComparison.SectionCurrying |