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.AbelianModuli.HilbertConstruction.Tensor.ProductSheaf |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Tensor.Powers |
| 3 | |
| 4 | /-! # Sheaves -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Bilinear.Sheaves |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Bilinear maps of module sheaves and the universal property of their actual tensor product. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {X : Scheme.{u}} |
| 18 | |
| 19 | /-- Bilinear maps on sections compatible with restriction to smaller opens. -/ |
| 20 | structure SheafBilinearMap (M N P : X.Modules) where |
| 21 | app (U : X.Opens) : Γ(M, U) →ₗ[Γ(X, U)] Γ(N, U) →ₗ[Γ(X, U)] Γ(P, U) |
| 22 | naturality {U V : X.Opens} (h : V ⟶ U) (x : Γ(M, U)) (y : Γ(N, U)) : |
| 23 | P.presheaf.map h.op (app U x y) = |
| 24 | app V (M.presheaf.map h.op x) (N.presheaf.map h.op y) |
| 25 | |
| 26 | namespace SheafBilinearMap |
| 27 | |
| 28 | variable {M M' N N' P Q R : X.Modules} |
| 29 | |
| 30 | @[ext] |
| 31 | theorem ext {β γ : SheafBilinearMap M N P} (h : ∀ U, β.app U = γ.app U) : β = γ := by |
| 32 | cases β |
| 33 | cases γ |
| 34 | congr |
| 35 | exact funext h |
| 36 | |
| 37 | /-- Postcompose a bilinear map by a morphism of module sheaves. -/ |
| 38 | def postcomp (β : SheafBilinearMap M N P) (f : P ⟶ Q) : SheafBilinearMap M N Q where |
| 39 | app U := (β.app U).compr₂ (Tensor.Powers.SheafMultilinearMap.homApp f U) |
| 40 | naturality {U V} h x y := |
| 41 | (ConcreteCategory.congr_hom (f.mapPresheaf.naturality h.op) (β.app U x y)).symm.trans |
| 42 | (congrArg (fun z => f.app V z) (β.naturality h x y)) |
| 43 | |
| 44 | /-- Precompose the two arguments independently. -/ |
| 45 | def precomp (β : SheafBilinearMap M N P) (f : M' ⟶ M) (g : N' ⟶ N) : |
| 46 | SheafBilinearMap M' N' P where |
| 47 | app U := (β.app U).compl₁₂ (Tensor.Powers.SheafMultilinearMap.homApp f U) (Tensor.Powers.SheafMultilinearMap.homApp g U) |
| 48 | naturality {U V} h x y := |
| 49 | (β.naturality h (f.app U x) (g.app U y)).trans |
| 50 | (congrArg₂ (fun a b => β.app V a b) |
| 51 | (ConcreteCategory.congr_hom (f.mapPresheaf.naturality h.op) x).symm |
| 52 | (ConcreteCategory.congr_hom (g.mapPresheaf.naturality h.op) y).symm) |
| 53 | |
| 54 | @[simp] |
| 55 | theorem postcomp_id (β : SheafBilinearMap M N P) : β.postcomp (𝟙 P) = β := by |
| 56 | ext U x y |
| 57 | rfl |
| 58 | |
| 59 | theorem postcomp_comp (β : SheafBilinearMap M N P) (f : P ⟶ Q) (g : Q ⟶ R) : |
| 60 | β.postcomp (f ≫ g) = (β.postcomp f).postcomp g := by |
| 61 | ext U x y |
| 62 | rfl |
| 63 | |
| 64 | @[simp] |
| 65 | theorem precomp_id (β : SheafBilinearMap M N P) : β.precomp (𝟙 M) (𝟙 N) = β := by |
| 66 | ext U x y |
| 67 | rfl |
| 68 | |
| 69 | theorem precomp_postcomp (β : SheafBilinearMap M N P) (f : M' ⟶ M) (g : N' ⟶ N) |
| 70 | (h : P ⟶ Q) : |
| 71 | (β.postcomp h).precomp f g = (β.precomp f g).postcomp h := by |
| 72 | ext U x y |
| 73 | rfl |
| 74 | |
| 75 | /-- A map out of the tensor presheaf gives its bilinear formula on sections. -/ |
| 76 | def ofTensorPresheafHom |
| 77 | (f : PresheafOfModulesOfCommRing.Monoidal.tensorObj (R := X.presheaf) M.val N.val ⟶ P.val) : |
| 78 | SheafBilinearMap M N P where |
| 79 | app U := TensorProduct.curry (f.app (.op U)).hom |
| 80 | naturality h x y := (PresheafOfModules.naturality_apply f h.op (x ⊗ₜ y)).symm |
| 81 | |
| 82 | /-- A bilinear section formula defines a map out of the tensor presheaf. -/ |
| 83 | def toTensorPresheafHom (β : SheafBilinearMap M N P) : |
| 84 | PresheafOfModulesOfCommRing.Monoidal.tensorObj (R := X.presheaf) M.val N.val ⟶ P.val where |
| 85 | app U := (ModuleCat.ofHom (TensorProduct.lift (β.app U.unop)) : |
| 86 | ModuleCat.of Γ(X, U.unop) (Γ(M, U.unop) ⊗[Γ(X, U.unop)] Γ(N, U.unop)) ⟶ |
| 87 | ModuleCat.of Γ(X, U.unop) Γ(P, U.unop)) |
| 88 | naturality {_U _V} h := ModuleCat.MonoidalCategory.tensor_ext |
| 89 | (fun x y => (β.naturality h.unop x y).symm) |
| 90 | |
| 91 | /-- The tensor presheaf has exactly the prescribed natural bilinear maps. -/ |
| 92 | def tensorPresheafHomEquiv (M N P : X.Modules) : |
| 93 | (PresheafOfModulesOfCommRing.Monoidal.tensorObj (R := X.presheaf) M.val N.val ⟶ P.val) ≃ |
| 94 | SheafBilinearMap M N P where |
| 95 | toFun := ofTensorPresheafHom |
| 96 | invFun := toTensorPresheafHom |
| 97 | left_inv f := by |
| 98 | ext U : 1 |
| 99 | apply ModuleCat.MonoidalCategory.tensor_ext |
| 100 | intro x y |
| 101 | rfl |
| 102 | right_inv β := by |
| 103 | ext U x y |
| 104 | rfl |
| 105 | |
| 106 | /-- The actual sheaf tensor product represents natural bilinear maps. -/ |
| 107 | def tensorHomEquiv (M N P : X.Modules) : |
| 108 | (Tensor.ProductSheaf.tensorModule M N ⟶ P) ≃ SheafBilinearMap M N P := |
| 109 | (Tensor.ProductSheaf.tensorModuleHomEquiv M N P).trans (tensorPresheafHomEquiv M N P) |
| 110 | |
| 111 | /-- Varying the output sheaf gives the functor represented by the tensor sheaf. -/ |
| 112 | def outputFunctor (M N : X.Modules) : X.Modules ⥤ Type u where |
| 113 | obj P := SheafBilinearMap M N P |
| 114 | map {P Q} f := TypeCat.ofHom (fun β : SheafBilinearMap M N P => β.postcomp f) |
| 115 | map_id P := by |
| 116 | apply ConcreteCategory.ext_apply |
| 117 | intro β |
| 118 | exact β.postcomp_id |
| 119 | map_comp f g := by |
| 120 | apply ConcreteCategory.ext_apply |
| 121 | exact fun β => β.postcomp_comp f g |
| 122 | |
| 123 | /-- The tensor-to-bilinear equivalence is natural in the output sheaf. -/ |
| 124 | theorem tensorHomEquiv_postcomp (f : Tensor.ProductSheaf.tensorModule M N ⟶ P) (h : P ⟶ Q) : |
| 125 | tensorHomEquiv M N Q (f ≫ h) = (tensorHomEquiv M N P f).postcomp h := by |
| 126 | have he : Tensor.ProductSheaf.tensorModuleHomEquiv M N Q (f ≫ h) = |
| 127 | Tensor.ProductSheaf.tensorModuleHomEquiv M N P f ≫ h.val := |
| 128 | (PresheafOfModules.sheafificationAdjunction (𝟙 X.ringCatSheaf.obj)).homEquiv_naturality_right f h |
| 129 | change ofTensorPresheafHom (Tensor.ProductSheaf.tensorModuleHomEquiv M N Q (f ≫ h)) = _ |
| 130 | rw [he] |
| 131 | ext U x y |
| 132 | rfl |
| 133 | |
| 134 | /-- The tensor sheaf corepresents the functor of natural bilinear maps. -/ |
| 135 | def corepresentable (M N : X.Modules) : |
| 136 | (outputFunctor M N).CorepresentableBy (Tensor.ProductSheaf.tensorModule M N) where |
| 137 | homEquiv := tensorHomEquiv M N _ |
| 138 | homEquiv_comp g f := tensorHomEquiv_postcomp f g |
| 139 | |
| 140 | end SheafBilinearMap |
| 141 | |
| 142 | end |
| 143 | |
| 144 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Bilinear.Sheaves |