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.PresheafTensorPullback |
| 2 | |
| 3 | /-! # Free Presheaf Tensor -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.FreePresheafTensor |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Tensor products of free local module generators. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 12 | open _root_.CategoryTheory.MonoidalCategory |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | namespace Construction |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable (X : Scheme.{u}) |
| 22 | |
| 23 | local instance freePresheafTensorLocal1 : MonoidalCategory X.PresheafOfModules := PresheafOfModulesOfCommRing.monoidalCategory |
| 24 | |
| 25 | local instance freePresheafTensorLocal2 (U : X.Opensᵒᵖ) : CommRing (X.ringCatSheaf.obj.obj U) := |
| 26 | inferInstanceAs (CommRing Γ(X, U.unop)) |
| 27 | |
| 28 | local instance freePresheafTensorLocal3 (U : X.Opens) (W : X.Opensᵒᵖ) : Subsingleton ((yoneda.obj U).obj W) := |
| 29 | inferInstanceAs (Subsingleton (W.unop ⟶ U)) |
| 30 | |
| 31 | def productTypePresheaf (F G : X.Opensᵒᵖ ⥤ Type u) : X.Opensᵒᵖ ⥤ Type u where |
| 32 | obj U := F.obj U × G.obj U |
| 33 | map f := TypeCat.ofHom (fun p => (F.map f p.1, G.map f p.2)) |
| 34 | map_id U := by ext p <;> simp |
| 35 | map_comp f g := by ext p <;> simp |
| 36 | |
| 37 | def freeModulePresheaf (F : X.Opensᵒᵖ ⥤ Type u) : X.PresheafOfModules := |
| 38 | (PresheafOfModules.free X.ringCatSheaf.obj).obj F |
| 39 | |
| 40 | theorem freeModulePresheaf_map_freeMk (F : X.Opensᵒᵖ ⥤ Type u) |
| 41 | {U V : X.Opensᵒᵖ} (f : U ⟶ V) (x : F.obj U) : |
| 42 | (freeModulePresheaf X F).map f (ModuleCat.freeMk x) = ModuleCat.freeMk (F.map f x) := |
| 43 | ModuleCat.freeDesc_apply _ x |
| 44 | |
| 45 | def freePresheafTensorIso (F G : X.Opensᵒᵖ ⥤ Type u) : |
| 46 | freeModulePresheaf X F ⊗ freeModulePresheaf X G ≅ |
| 47 | freeModulePresheaf X (productTypePresheaf X F G) := |
| 48 | PresheafOfModules.isoMk |
| 49 | (fun U => ModuleCat.FreeMonoidal.μIso (X.ringCatSheaf.obj.obj U) (F.obj U) (G.obj U)) (by |
| 50 | intro U V f |
| 51 | apply (cancel_epi (ModuleCat.FreeMonoidal.μIso |
| 52 | (X.ringCatSheaf.obj.obj U) (F.obj U) (G.obj U)).inv).mp |
| 53 | apply ModuleCat.free_hom_ext |
| 54 | rintro ⟨m, n⟩ |
| 55 | change (ModuleCat.FreeMonoidal.μIso (X.ringCatSheaf.obj.obj V) (F.obj V) (G.obj V)).hom |
| 56 | ((freeModulePresheaf X F ⊗ freeModulePresheaf X G).map f |
| 57 | ((ModuleCat.FreeMonoidal.μIso (X.ringCatSheaf.obj.obj U) (F.obj U) (G.obj U)).inv |
| 58 | (ModuleCat.freeMk (m, n)))) = |
| 59 | (freeModulePresheaf X (productTypePresheaf X F G)).map f |
| 60 | ((ModuleCat.FreeMonoidal.μIso (X.ringCatSheaf.obj.obj U) (F.obj U) (G.obj U)).hom |
| 61 | ((ModuleCat.FreeMonoidal.μIso (X.ringCatSheaf.obj.obj U) (F.obj U) (G.obj U)).inv |
| 62 | (ModuleCat.freeMk (m, n)))) |
| 63 | erw [ModuleCat.FreeMonoidal.μIso_inv_freeMk, |
| 64 | PresheafOfModulesOfCommRing.Monoidal.tensorObj_map_tmul, |
| 65 | freeModulePresheaf_map_freeMk, freeModulePresheaf_map_freeMk, |
| 66 | ModuleCat.FreeMonoidal.μIso_hom_freeMk_tmul_freeMk, |
| 67 | ModuleCat.FreeMonoidal.μIso_hom_freeMk_tmul_freeMk, freeModulePresheaf_map_freeMk] |
| 68 | rfl) |
| 69 | |
| 70 | def openYonedaProductIso (U V : X.Opens) : |
| 71 | productTypePresheaf X (yoneda.obj U) (yoneda.obj V) ≅ yoneda.obj (U ⊓ V) := |
| 72 | NatIso.ofComponents (fun W => Equiv.toIso |
| 73 | { toFun := fun p => homOfLE (le_inf (leOfHom p.1) (leOfHom p.2)) |
| 74 | invFun := fun h => (h ≫ homOfLE inf_le_left, h ≫ homOfLE inf_le_right) |
| 75 | left_inv := fun _ => Prod.ext (Subsingleton.elim _ _) (Subsingleton.elim _ _) |
| 76 | right_inv := fun _ => Subsingleton.elim _ _ }) (by |
| 77 | intro W Z f |
| 78 | ext p |
| 79 | exact Subsingleton.elim _ _) |
| 80 | |
| 81 | def freeOpenModulePresheaf (U : X.Opens) : X.PresheafOfModules := freeModulePresheaf X (yoneda.obj U) |
| 82 | |
| 83 | def freeOpenTensorIso (U V : X.Opens) : |
| 84 | freeOpenModulePresheaf X U ⊗ freeOpenModulePresheaf X V ≅ freeOpenModulePresheaf X (U ⊓ V) := |
| 85 | freePresheafTensorIso X (yoneda.obj U) (yoneda.obj V) ≪≫ |
| 86 | (PresheafOfModules.free X.ringCatSheaf.obj).mapIso (openYonedaProductIso X U V) |
| 87 | |
| 88 | end Construction |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.FreePresheafTensor |