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.FreePresheafTensor |
| 2 | |
| 3 | /-! # Free Presheaf Pullback -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.FreePresheafPullback |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Pullback of the free module on an open subspace. -/ |
| 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 Y : Scheme.{u}} (f : X ⟶ Y) |
| 22 | |
| 23 | local instance freePresheafPullbackLocal1 : MonoidalCategory X.PresheafOfModules := PresheafOfModulesOfCommRing.monoidalCategory |
| 24 | local instance freePresheafPullbackLocal2 : MonoidalCategory Y.PresheafOfModules := PresheafOfModulesOfCommRing.monoidalCategory |
| 25 | |
| 26 | local instance freePresheafPullbackLocal3 (Z : Scheme.{u}) (U : Z.Opensᵒᵖ) : CommRing (Z.ringCatSheaf.obj.obj U) := |
| 27 | inferInstanceAs (CommRing Γ(Z, U.unop)) |
| 28 | |
| 29 | local instance freePresheafPullbackLocal4 (Z : Scheme.{u}) (M : Z.PresheafOfModules) (U : Z.Opensᵒᵖ) : |
| 30 | Module Γ(Z, U.unop) (M.obj U) := (M.obj U).isModule |
| 31 | |
| 32 | def pullbackFreeOpenCorepresentable (U : Y.Opens) : |
| 33 | (PresheafTensorPullback.Construction.modulePresheafPushforward f ⋙ coyoneda.obj (op (FreePresheafTensor.Construction.freeOpenModulePresheaf Y U))).CorepresentableBy |
| 34 | ((PresheafTensorPullback.Construction.modulePresheafPullback f).obj (FreePresheafTensor.Construction.freeOpenModulePresheaf Y U)) where |
| 35 | homEquiv := (PresheafTensorPullback.Construction.modulePresheafAdjunction f).homEquiv _ _ |
| 36 | homEquiv_comp g h := (PresheafTensorPullback.Construction.modulePresheafAdjunction f).homEquiv_naturality_right h g |
| 37 | |
| 38 | def freeOpenPullbackIso (U : Y.Opens) : |
| 39 | (PresheafTensorPullback.Construction.modulePresheafPullback f).obj (FreePresheafTensor.Construction.freeOpenModulePresheaf Y U) ≅ |
| 40 | FreePresheafTensor.Construction.freeOpenModulePresheaf X (f ⁻¹ᵁ U) := |
| 41 | (pullbackFreeOpenCorepresentable f U).uniqueUpToIso |
| 42 | (PresheafOfModules.pushforwardCompCoyonedaFreeYonedaCorepresentableBy |
| 43 | f.toRingCatSheafHom.hom U) |
| 44 | |
| 45 | theorem freeOpenPullbackIso_homEquiv (U : Y.Opens) : |
| 46 | (PresheafTensorPullback.Construction.modulePresheafAdjunction f).homEquiv _ _ (freeOpenPullbackIso f U).hom = |
| 47 | PresheafOfModules.freeYonedaEquiv.symm (ModuleCat.freeMk (𝟙 (f ⁻¹ᵁ U))) := by |
| 48 | simp [freeOpenPullbackIso, Functor.CorepresentableBy.uniqueUpToIso_hom, |
| 49 | Coyoneda.fullyFaithful_preimage, |
| 50 | pullbackFreeOpenCorepresentable, |
| 51 | PresheafOfModules.pushforwardCompCoyonedaFreeYonedaCorepresentableBy] |
| 52 | rfl |
| 53 | |
| 54 | theorem freeOpenPullbackIso_unit_generator (U : Y.Opens) : |
| 55 | (freeOpenPullbackIso f U).hom.app (op (f ⁻¹ᵁ U)) |
| 56 | (((PresheafTensorPullback.Construction.modulePresheafAdjunction f).unit.app (FreePresheafTensor.Construction.freeOpenModulePresheaf Y U)).app (op U) |
| 57 | (ModuleCat.freeMk (𝟙 U))) = ModuleCat.freeMk (𝟙 (f ⁻¹ᵁ U)) := by |
| 58 | have h := congrArg (fun a => a.app (op U) (ModuleCat.freeMk (𝟙 U))) |
| 59 | (freeOpenPullbackIso_homEquiv f U) |
| 60 | erw [PresheafOfModules.freeYonedaEquiv_symm_app] at h |
| 61 | exact h |
| 62 | |
| 63 | theorem freeOpenHom_generator {Z : Scheme.{u}} {U W : Z.Opens} |
| 64 | {M : Z.PresheafOfModules} (a : FreePresheafTensor.Construction.freeOpenModulePresheaf Z U ⟶ M) (h : W ⟶ U) : |
| 65 | a.app (op W) (ModuleCat.freeMk h) = |
| 66 | M.map h.op (a.app (op U) (ModuleCat.freeMk (𝟙 U))) := by |
| 67 | have e := PresheafOfModules.naturality_apply a h.op (ModuleCat.freeMk (𝟙 U)) |
| 68 | erw [FreePresheafTensor.Construction.freeModulePresheaf_map_freeMk] at e |
| 69 | simpa using e |
| 70 | |
| 71 | theorem freeOpenTensorIso_hom_freeMk (Z : Scheme.{u}) (U V W : Z.Opens) |
| 72 | (h : W ⟶ U) (k : W ⟶ V) : |
| 73 | (FreePresheafTensor.Construction.freeOpenTensorIso Z U V).hom.app (op W) (ModuleCat.freeMk h ⊗ₜ ModuleCat.freeMk k) = |
| 74 | ModuleCat.freeMk (homOfLE (le_inf (leOfHom h) (leOfHom k))) := by |
| 75 | change (ModuleCat.free (Z.ringCatSheaf.obj.obj (op W))).map |
| 76 | ((FreePresheafTensor.Construction.openYonedaProductIso Z U V).hom.app (op W)) |
| 77 | ((ModuleCat.FreeMonoidal.μIso (Z.ringCatSheaf.obj.obj (op W)) _ _).hom |
| 78 | (ModuleCat.freeMk h ⊗ₜ ModuleCat.freeMk k)) = _ |
| 79 | erw [ModuleCat.FreeMonoidal.μIso_hom_freeMk_tmul_freeMk, ModuleCat.free_map_apply] |
| 80 | rfl |
| 81 | |
| 82 | theorem freeOpenTensorIso_inv_freeMk (Z : Scheme.{u}) (U V W : Z.Opens) (h : W ⟶ U ⊓ V) : |
| 83 | (FreePresheafTensor.Construction.freeOpenTensorIso Z U V).inv.app (op W) (ModuleCat.freeMk h) = |
| 84 | ModuleCat.freeMk (h ≫ homOfLE inf_le_left) ⊗ₜ |
| 85 | ModuleCat.freeMk (h ≫ homOfLE inf_le_right) := by |
| 86 | change (ModuleCat.FreeMonoidal.μIso (Z.ringCatSheaf.obj.obj (op W)) _ _).inv |
| 87 | ((ModuleCat.free (Z.ringCatSheaf.obj.obj (op W))).map |
| 88 | ((FreePresheafTensor.Construction.openYonedaProductIso Z U V).inv.app (op W)) (ModuleCat.freeMk h)) = _ |
| 89 | erw [ModuleCat.free_map_apply, ModuleCat.FreeMonoidal.μIso_inv_freeMk] |
| 90 | rfl |
| 91 | |
| 92 | theorem presheafTensorPullbackComparison_unit_tmul (M N : Y.PresheafOfModules) |
| 93 | (U : Y.Opens) (m : M.obj (op U)) (n : N.obj (op U)) : |
| 94 | (PresheafTensorPullback.Construction.presheafTensorPullbackComparison f M N).app (op (f ⁻¹ᵁ U)) |
| 95 | (((PresheafTensorPullback.Construction.modulePresheafAdjunction f).unit.app (M ⊗ N)).app (op U) (m ⊗ₜ n)) = |
| 96 | (show ((PresheafTensorPullback.Construction.modulePresheafPullback f).obj M).obj (op (f ⁻¹ᵁ U)) from |
| 97 | ((PresheafTensorPullback.Construction.modulePresheafAdjunction f).unit.app M).app (op U) m) ⊗ₜ[Γ(X, f ⁻¹ᵁ U)] |
| 98 | (show ((PresheafTensorPullback.Construction.modulePresheafPullback f).obj N).obj (op (f ⁻¹ᵁ U)) from |
| 99 | ((PresheafTensorPullback.Construction.modulePresheafAdjunction f).unit.app N).app (op U) n) := by |
| 100 | have h := congrArg (fun a => a.app (op U) (m ⊗ₜ n)) |
| 101 | (PresheafTensorPullback.Construction.presheafTensorPullbackComparison_homEquiv f M N) |
| 102 | change (PresheafTensorPullback.Construction.presheafTensorPullbackComparison f M N).app (op (f ⁻¹ᵁ U)) |
| 103 | (((PresheafTensorPullback.Construction.modulePresheafAdjunction f).unit.app (M ⊗ N)).app (op U) (m ⊗ₜ n)) = |
| 104 | (Functor.LaxMonoidal.μ (ModuleCat.restrictScalars (f.app U).hom) _ _) |
| 105 | (((PresheafTensorPullback.Construction.modulePresheafAdjunction f).unit.app M ⊗ₘ (PresheafTensorPullback.Construction.modulePresheafAdjunction f).unit.app N).app |
| 106 | (op U) (m ⊗ₜ n)) at h |
| 107 | have ht := ModuleCat.MonoidalCategory.tensorHom_tmul |
| 108 | (((PresheafTensorPullback.Construction.modulePresheafAdjunction f).unit.app M).app (op U)) |
| 109 | (((PresheafTensorPullback.Construction.modulePresheafAdjunction f).unit.app N).app (op U)) m n |
| 110 | have ht' := congrArg (fun t => |
| 111 | (Functor.LaxMonoidal.μ (ModuleCat.restrictScalars (f.app U).hom) |
| 112 | (((PresheafTensorPullback.Construction.modulePresheafPullback f).obj M).obj (op (f ⁻¹ᵁ U))) |
| 113 | (((PresheafTensorPullback.Construction.modulePresheafPullback f).obj N).obj (op (f ⁻¹ᵁ U)))) t) ht |
| 114 | exact h.trans (ht'.trans (ModuleCat.restrictScalars_μ_tmul (f.app U).hom |
| 115 | (((PresheafTensorPullback.Construction.modulePresheafPullback f).obj M).obj (op (f ⁻¹ᵁ U))) |
| 116 | (((PresheafTensorPullback.Construction.modulePresheafPullback f).obj N).obj (op (f ⁻¹ᵁ U))) |
| 117 | (((PresheafTensorPullback.Construction.modulePresheafAdjunction f).unit.app M).app (op U) m) |
| 118 | (((PresheafTensorPullback.Construction.modulePresheafAdjunction f).unit.app N).app (op U) n))) |
| 119 | |
| 120 | theorem freeOpenPullbackIso_unit_freeMk {U W : Y.Opens} (h : W ⟶ U) : |
| 121 | (freeOpenPullbackIso f U).hom.app (op (f ⁻¹ᵁ W)) |
| 122 | (((PresheafTensorPullback.Construction.modulePresheafAdjunction f).unit.app (FreePresheafTensor.Construction.freeOpenModulePresheaf Y U)).app (op W) |
| 123 | (ModuleCat.freeMk h)) = ModuleCat.freeMk ((TopologicalSpace.Opens.map f.base).map h) := by |
| 124 | have e := freeOpenHom_generator |
| 125 | ((PresheafTensorPullback.Construction.modulePresheafAdjunction f).homEquiv _ _ (freeOpenPullbackIso f U).hom) h |
| 126 | change (freeOpenPullbackIso f U).hom.app (op (f ⁻¹ᵁ W)) |
| 127 | (((PresheafTensorPullback.Construction.modulePresheafAdjunction f).unit.app (FreePresheafTensor.Construction.freeOpenModulePresheaf Y U)).app (op W) |
| 128 | (ModuleCat.freeMk h)) = |
| 129 | (FreePresheafTensor.Construction.freeOpenModulePresheaf X (f ⁻¹ᵁ U)).map ((TopologicalSpace.Opens.map f.base).map h).op |
| 130 | ((freeOpenPullbackIso f U).hom.app (op (f ⁻¹ᵁ U)) |
| 131 | (((PresheafTensorPullback.Construction.modulePresheafAdjunction f).unit.app (FreePresheafTensor.Construction.freeOpenModulePresheaf Y U)).app (op U) |
| 132 | (ModuleCat.freeMk (𝟙 U)))) at e |
| 133 | rw [freeOpenPullbackIso_unit_generator] at e |
| 134 | erw [FreePresheafTensor.Construction.freeModulePresheaf_map_freeMk] at e |
| 135 | simpa using e |
| 136 | |
| 137 | end Construction |
| 138 | |
| 139 | end |
| 140 | |
| 141 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.FreePresheafPullback |