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.ArithmeticGeometry.OrdinaryLocus.Openness.SheafRestriction |
| 2 | |
| 3 | /-! # Tensor Functoriality -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.TensorFunctoriality.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Tensor maps for sheaves, pushforward, and pullback. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry MonoidalCategory |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | local instance tensorFunctorialityMonoidal (X : Scheme.{u}) : MonoidalCategory X.PresheafOfModules := |
| 16 | PresheafOfModulesOfCommRing.monoidalCategory (R := X.presheaf) |
| 17 | |
| 18 | def sheafTensorMap {X : Scheme.{u}} {M M' N N' : X.Modules} |
| 19 | (f : M ⟶ M') (g : N ⟶ N') : SheafTensor.Construction.sheafTensor M N ⟶ SheafTensor.Construction.sheafTensor M' N' := |
| 20 | (PresheafOfModules.sheafification (𝟙 X.ringCatSheaf.obj)).map (f.val ⊗ₘ g.val) |
| 21 | |
| 22 | theorem sheafTensorMap_id {X : Scheme.{u}} (M N : X.Modules) : |
| 23 | sheafTensorMap (𝟙 M) (𝟙 N) = 𝟙 (SheafTensor.Construction.sheafTensor M N) := by |
| 24 | let F : X.PresheafOfModules ⥤ X.Modules := |
| 25 | PresheafOfModules.sheafification (𝟙 X.ringCatSheaf.obj) |
| 26 | change F.map ((𝟙 M.val) ⊗ₘ (𝟙 N.val)) = 𝟙 (F.obj (M.val ⊗ N.val)) |
| 27 | exact (congrArg F.map (id_tensorHom_id M.val N.val)).trans (F.map_id _) |
| 28 | |
| 29 | theorem sheafTensorMap_comp {X : Scheme.{u}} {M M' M'' N N' N'' : X.Modules} |
| 30 | (f : M ⟶ M') (f' : M' ⟶ M'') (g : N ⟶ N') (g' : N' ⟶ N'') : |
| 31 | sheafTensorMap (f ≫ f') (g ≫ g') = sheafTensorMap f g ≫ sheafTensorMap f' g' := by |
| 32 | let F : X.PresheafOfModules ⥤ X.Modules := |
| 33 | PresheafOfModules.sheafification (𝟙 X.ringCatSheaf.obj) |
| 34 | change F.map ((f.val ≫ f'.val) ⊗ₘ (g.val ≫ g'.val)) = |
| 35 | F.map (f.val ⊗ₘ g.val) ≫ F.map (f'.val ⊗ₘ g'.val) |
| 36 | exact (congrArg F.map (tensorHom_comp_tensorHom f.val g.val f'.val g'.val).symm).trans |
| 37 | (F.map_comp _ _) |
| 38 | |
| 39 | theorem sheafTensorHomEquiv_naturality_left {X : Scheme.{u}} |
| 40 | {M M' N N' P : X.Modules} (f : M ⟶ M') (g : N ⟶ N') |
| 41 | (h : SheafTensor.Construction.sheafTensor M' N' ⟶ P) : |
| 42 | SheafTensor.Construction.sheafTensorHomEquiv M N P (sheafTensorMap f g ≫ h) = |
| 43 | (f.val ⊗ₘ g.val) ≫ SheafTensor.Construction.sheafTensorHomEquiv M' N' P h := |
| 44 | (PresheafOfModules.sheafificationAdjunction (𝟙 X.ringCatSheaf.obj)).homEquiv_naturality_left |
| 45 | (f.val ⊗ₘ g.val) h |
| 46 | |
| 47 | theorem sheafTensorHomEquiv_naturality_right {X : Scheme.{u}} |
| 48 | {M N P Q : X.Modules} (h : SheafTensor.Construction.sheafTensor M N ⟶ P) (f : P ⟶ Q) : |
| 49 | SheafTensor.Construction.sheafTensorHomEquiv M N Q (h ≫ f) = SheafTensor.Construction.sheafTensorHomEquiv M N P h ≫ f.val := |
| 50 | (PresheafOfModules.sheafificationAdjunction (𝟙 X.ringCatSheaf.obj)).homEquiv_naturality_right h f |
| 51 | |
| 52 | theorem moduleSheafificationUnit_naturality {X : Scheme.{u}} |
| 53 | {M N : X.PresheafOfModules} (f : M ⟶ N) : |
| 54 | f ≫ SheafRestriction.Construction.moduleSheafificationUnit N = SheafRestriction.Construction.moduleSheafificationUnit M ≫ |
| 55 | ((PresheafOfModules.sheafification (𝟙 X.ringCatSheaf.obj)).map f).val := |
| 56 | (PresheafOfModules.sheafificationAdjunction (𝟙 X.ringCatSheaf.obj)).unit.naturality f |
| 57 | |
| 58 | def restrictScalarsSemilinearMap {R S : Type u} [CommRing R] [CommRing S] |
| 59 | (φ : R →+* S) (M : ModuleCat.{u} S) : |
| 60 | (ModuleCat.restrictScalars φ).obj M →ₛₗ[φ] M where |
| 61 | toFun := id |
| 62 | map_add' _ _ := rfl |
| 63 | map_smul' _ _ := rfl |
| 64 | |
| 65 | /-- The tensor comparison for restriction of scalars along any ring map. -/ |
| 66 | def restrictScalarsTensorMap {R S : Type u} [CommRing R] [CommRing S] |
| 67 | (φ : R →+* S) (M N : ModuleCat.{u} S) : |
| 68 | (ModuleCat.restrictScalars φ).obj M ⊗ (ModuleCat.restrictScalars φ).obj N ⟶ |
| 69 | (ModuleCat.restrictScalars φ).obj (M ⊗ N) := |
| 70 | let t := TensorProduct.map (restrictScalarsSemilinearMap φ M) (restrictScalarsSemilinearMap φ N) |
| 71 | ModuleCat.ofHom (R := R) |
| 72 | (X := ((ModuleCat.restrictScalars φ).obj M ⊗ |
| 73 | (ModuleCat.restrictScalars φ).obj N : ModuleCat R)) |
| 74 | (Y := ((ModuleCat.restrictScalars φ).obj (M ⊗ N) : ModuleCat R)) |
| 75 | { toFun := t |
| 76 | map_add' := t.map_add |
| 77 | map_smul' r x := t.map_smulₛₗ r x } |
| 78 | |
| 79 | theorem restrictScalarsTensorMap_tmul {R S : Type u} [CommRing R] [CommRing S] |
| 80 | (φ : R →+* S) (M N : ModuleCat.{u} S) (m : M) (n : N) : |
| 81 | restrictScalarsTensorMap φ M N (m ⊗ₜ[R] n) = m ⊗ₜ[S] n := rfl |
| 82 | |
| 83 | def pushforwardModulePresheaf {X Y : Scheme.{u}} (f : X ⟶ Y) : |
| 84 | X.PresheafOfModules ⥤ Y.PresheafOfModules := |
| 85 | PresheafOfModules.pushforward f.toRingCatSheafHom.hom |
| 86 | |
| 87 | def pushforwardPresheafTensorMap {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 88 | (M N : X.PresheafOfModules) : |
| 89 | (pushforwardModulePresheaf f).obj M ⊗ (pushforwardModulePresheaf f).obj N ⟶ |
| 90 | (pushforwardModulePresheaf f).obj (M ⊗ N) where |
| 91 | app U := restrictScalarsTensorMap (f.app U.unop).hom |
| 92 | (M.obj (.op (f ⁻¹ᵁ U.unop))) (N.obj (.op (f ⁻¹ᵁ U.unop))) |
| 93 | naturality {U V} h := by |
| 94 | apply ModuleCat.MonoidalCategory.tensor_ext |
| 95 | intro m n |
| 96 | rfl |
| 97 | |
| 98 | theorem pushforwardPresheafTensorMap_naturality {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 99 | {M M' N N' : X.PresheafOfModules} (a : M ⟶ M') (b : N ⟶ N') : |
| 100 | pushforwardPresheafTensorMap f M N ≫ (pushforwardModulePresheaf f).map (a ⊗ₘ b) = |
| 101 | ((pushforwardModulePresheaf f).map a ⊗ₘ (pushforwardModulePresheaf f).map b) ≫ |
| 102 | pushforwardPresheafTensorMap f M' N' := by |
| 103 | ext1 U |
| 104 | apply ModuleCat.MonoidalCategory.tensor_ext |
| 105 | intro m n |
| 106 | rfl |
| 107 | |
| 108 | /-- Tensoring two pushforwards maps naturally to the pushforward of their tensor product. -/ |
| 109 | def pushforwardSheafTensorMap {X Y : Scheme.{u}} (f : X ⟶ Y) (M N : X.Modules) : |
| 110 | SheafTensor.Construction.sheafTensor ((Scheme.Modules.pushforward f).obj M) ((Scheme.Modules.pushforward f).obj N) ⟶ |
| 111 | (Scheme.Modules.pushforward f).obj (SheafTensor.Construction.sheafTensor M N) := |
| 112 | (SheafTensor.Construction.sheafTensorHomEquiv _ _ _).symm |
| 113 | (pushforwardPresheafTensorMap f M.val N.val ≫ |
| 114 | (pushforwardModulePresheaf f).map |
| 115 | (SheafRestriction.Construction.moduleSheafificationUnit (M.val ⊗ N.val))) |
| 116 | |
| 117 | theorem pushforwardSheafTensorMap_naturality {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 118 | {M M' N N' : X.Modules} (a : M ⟶ M') (b : N ⟶ N') : |
| 119 | pushforwardSheafTensorMap f M N ≫ (Scheme.Modules.pushforward f).map (sheafTensorMap a b) = |
| 120 | sheafTensorMap ((Scheme.Modules.pushforward f).map a) ((Scheme.Modules.pushforward f).map b) ≫ |
| 121 | pushforwardSheafTensorMap f M' N' := by |
| 122 | apply (SheafTensor.Construction.sheafTensorHomEquiv _ _ _).injective |
| 123 | rw [sheafTensorHomEquiv_naturality_right, sheafTensorHomEquiv_naturality_left] |
| 124 | simp only [pushforwardSheafTensorMap, Equiv.apply_symm_apply] |
| 125 | let F := pushforwardModulePresheaf f |
| 126 | let η₁ := SheafRestriction.Construction.moduleSheafificationUnit (M.val ⊗ N.val) |
| 127 | let η₂ := SheafRestriction.Construction.moduleSheafificationUnit (M'.val ⊗ N'.val) |
| 128 | let θ := (sheafTensorMap a b).val |
| 129 | let q₁ := pushforwardPresheafTensorMap f M.val N.val |
| 130 | let q₂ := pushforwardPresheafTensorMap f M'.val N'.val |
| 131 | have hη : η₁ ≫ θ = (a.val ⊗ₘ b.val) ≫ η₂ := |
| 132 | (moduleSheafificationUnit_naturality (a.val ⊗ₘ b.val)).symm |
| 133 | have hmap : F.map η₁ ≫ F.map θ = F.map (a.val ⊗ₘ b.val) ≫ F.map η₂ := |
| 134 | (F.map_comp η₁ θ).symm.trans ((congrArg F.map hη).trans (F.map_comp _ _)) |
| 135 | have hq : q₁ ≫ F.map (a.val ⊗ₘ b.val) = (F.map a.val ⊗ₘ F.map b.val) ≫ q₂ := |
| 136 | pushforwardPresheafTensorMap_naturality f a.val b.val |
| 137 | change (q₁ ≫ F.map η₁) ≫ F.map θ = (F.map a.val ⊗ₘ F.map b.val) ≫ q₂ ≫ F.map η₂ |
| 138 | exact (Category.assoc _ _ _).trans |
| 139 | ((congrArg (fun t ↦ q₁ ≫ t) hmap).trans |
| 140 | ((Category.assoc _ _ _).symm.trans |
| 141 | ((congrArg (fun t ↦ t ≫ F.map η₂) hq).trans (Category.assoc _ _ _)))) |
| 142 | |
| 143 | /-- The canonical comparison from the pullback of a tensor product to |
| 144 | the tensor product of the pullbacks. -/ |
| 145 | def pullbackSheafTensorMap {X Y : Scheme.{u}} (f : X ⟶ Y) (M N : Y.Modules) : |
| 146 | (Scheme.Modules.pullback f).obj (SheafTensor.Construction.sheafTensor M N) ⟶ |
| 147 | SheafTensor.Construction.sheafTensor ((Scheme.Modules.pullback f).obj M) ((Scheme.Modules.pullback f).obj N) := |
| 148 | ((Scheme.Modules.pullbackPushforwardAdjunction f).homEquiv _ _).symm |
| 149 | (sheafTensorMap ((Scheme.Modules.pullbackPushforwardAdjunction f).unit.app M) |
| 150 | ((Scheme.Modules.pullbackPushforwardAdjunction f).unit.app N) ≫ |
| 151 | pushforwardSheafTensorMap f ((Scheme.Modules.pullback f).obj M) |
| 152 | ((Scheme.Modules.pullback f).obj N)) |
| 153 | |
| 154 | theorem pullbackSheafTensorMap_naturality {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 155 | {M M' N N' : Y.Modules} (a : M ⟶ M') (b : N ⟶ N') : |
| 156 | (Scheme.Modules.pullback f).map (sheafTensorMap a b) ≫ pullbackSheafTensorMap f M' N' = |
| 157 | pullbackSheafTensorMap f M N ≫ |
| 158 | sheafTensorMap ((Scheme.Modules.pullback f).map a) ((Scheme.Modules.pullback f).map b) := by |
| 159 | let L := Scheme.Modules.pullback f |
| 160 | let R := Scheme.Modules.pushforward f |
| 161 | let adj := Scheme.Modules.pullbackPushforwardAdjunction f |
| 162 | apply adj.homEquiv_naturality_right_square |
| 163 | change sheafTensorMap a b ≫ |
| 164 | (sheafTensorMap (adj.unit.app M') (adj.unit.app N') ≫ |
| 165 | pushforwardSheafTensorMap f (L.obj M') (L.obj N')) = |
| 166 | (sheafTensorMap (adj.unit.app M) (adj.unit.app N) ≫ |
| 167 | pushforwardSheafTensorMap f (L.obj M) (L.obj N)) ≫ |
| 168 | R.map (sheafTensorMap (L.map a) (L.map b)) |
| 169 | rw [Category.assoc, pushforwardSheafTensorMap_naturality, ← Category.assoc, |
| 170 | ← sheafTensorMap_comp, ← Category.assoc, ← sheafTensorMap_comp] |
| 171 | congr 1 |
| 172 | exact congrArg₂ sheafTensorMap (adj.unit.naturality a) (adj.unit.naturality b) |
| 173 | |
| 174 | end |
| 175 | |
| 176 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.TensorFunctoriality.Construction |