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.Picard.Homomorphisms.ModuleHomSections |
| 2 | |
| 3 | /-! # Internal Hom -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.InternalHom |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The internal Hom as an actual sheaf of modules on a scheme. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency.types false |
| 14 | |
| 15 | namespace Construction |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable {X : Scheme.{u}} (M N : X.Modules) |
| 20 | |
| 21 | local instance (U : X.Opensᵒᵖ) : |
| 22 | AddCommGroup ((ModuleHomSheaf.Construction.linearHomSubfunctor M N).toFunctor.obj U) := |
| 23 | ModuleHomSections.Construction.linearHomSectionAddCommGroup M N U.unop |
| 24 | |
| 25 | local instance (U : X.Opensᵒᵖ) : |
| 26 | AddCommGroup ((presheafHom M.presheaf N.presheaf).obj U) := |
| 27 | ModuleHomSections.Construction.localAdditiveHomAddCommGroup M N U.unop |
| 28 | |
| 29 | local instance (U : X.Opensᵒᵖ) : |
| 30 | Module (X.ringCatSheaf.obj.obj U) ((presheafHom M.presheaf N.presheaf).obj U) := |
| 31 | ModuleHomSections.Construction.localAdditiveHomModule M N U.unop |
| 32 | |
| 33 | def linearHomAbPresheaf : TopCat.Presheaf Ab X where |
| 34 | obj U := AddCommGrpCat.of ((ModuleHomSheaf.Construction.linearHomSubfunctor M N).toFunctor.obj U) |
| 35 | map f := AddCommGrpCat.ofHom |
| 36 | { toFun := (ModuleHomSheaf.Construction.linearHomSubfunctor M N).toFunctor.map f |
| 37 | map_zero' := Subtype.ext rfl |
| 38 | map_add' _ _ := Subtype.ext rfl } |
| 39 | map_id U := by |
| 40 | ext a |
| 41 | exact (ModuleHomSheaf.Construction.linearHomSubfunctor M N).toFunctor.map_id_apply U a |
| 42 | map_comp f g := by |
| 43 | ext a |
| 44 | exact (ModuleHomSheaf.Construction.linearHomSubfunctor M N).toFunctor.map_comp_apply f g a |
| 45 | |
| 46 | instance linearHomAbPresheafModule (U : X.Opensᵒᵖ) : |
| 47 | Module (X.ringCatSheaf.obj.obj U) ((linearHomAbPresheaf M N).obj U) := |
| 48 | ModuleHomSections.Construction.linearHomSectionModule M N U.unop |
| 49 | |
| 50 | theorem linearHomAbPresheaf_map_smul {U V : X.Opensᵒᵖ} (f : U ⟶ V) |
| 51 | (r : X.ringCatSheaf.obj.obj U) (a : (linearHomAbPresheaf M N).obj U) : |
| 52 | (linearHomAbPresheaf M N).map f (r • a) = |
| 53 | X.ringCatSheaf.obj.map f r • (linearHomAbPresheaf M N).map f a := by |
| 54 | apply Subtype.ext |
| 55 | apply NatTrans.ext |
| 56 | funext W |
| 57 | apply AddCommGrpCat.ext |
| 58 | intro s |
| 59 | change X.presheaf.map (W.unop.hom ≫ f.unop).op r • |
| 60 | (show Γ(N, W.unop.left) from a.val.app (.op ((Over.map f.unop).obj W.unop)) s) = |
| 61 | X.presheaf.map W.unop.hom.op (X.presheaf.map f r) • |
| 62 | (show Γ(N, W.unop.left) from a.val.app (.op ((Over.map f.unop).obj W.unop)) s) |
| 63 | have hr : X.presheaf.map W.unop.hom.op (X.presheaf.map f r) = |
| 64 | X.presheaf.map (W.unop.hom ≫ f.unop).op r := by |
| 65 | rw [op_comp, Functor.map_comp_apply] |
| 66 | rfl |
| 67 | exact congrArg (fun c : Γ(X, W.unop.left) => |
| 68 | c • (show Γ(N, W.unop.left) from a.val.app (.op ((Over.map f.unop).obj W.unop)) s)) hr.symm |
| 69 | |
| 70 | theorem linearHomAbPresheaf_isSheaf : (linearHomAbPresheaf M N).IsSheaf := |
| 71 | Presheaf.isSheaf_of_isSheaf_comp _ (linearHomAbPresheaf M N) (forget Ab) |
| 72 | (ModuleHomSheaf.Construction.linearHomSubfunctor_isSheaf M N) |
| 73 | |
| 74 | /-- Internal Hom with sections equal to linear maps on the restricted open. -/ |
| 75 | def moduleInternalHom : X.Modules where |
| 76 | val := PresheafOfModules.ofPresheaf (linearHomAbPresheaf M N) |
| 77 | (fun {_ _} f r a => linearHomAbPresheaf_map_smul M N f r a) |
| 78 | isSheaf := linearHomAbPresheaf_isSheaf M N |
| 79 | |
| 80 | end Construction |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.InternalHom |