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.LineBundle.Powers |
| 2 | |
| 3 | /-! # Maps -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TensorPower.Maps |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Functorial tensor powers of module sheaves and powers of actual line-bundle sections. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable {X : Scheme.{u}} {L M P Q : X.Modules} {n : ℕ} |
| 16 | |
| 17 | /-- The canonical multilinear map into the constructed tensor-power sheaf. -/ |
| 18 | def tensorPowerMultilinear (L : X.Modules) (n : ℕ) : |
| 19 | Tensor.Powers.SheafMultilinearMap L n (PowerSheaf.tensorPowerModule L n) := |
| 20 | PowerSheaf.tensorPowerHomEquiv L (PowerSheaf.tensorPowerModule L n) n (𝟙 _) |
| 21 | |
| 22 | theorem tensorPowerMultilinear_postcomp (f : PowerSheaf.tensorPowerModule L n ⟶ P) : |
| 23 | (tensorPowerMultilinear L n).postcomp f = PowerSheaf.tensorPowerHomEquiv L P n f := |
| 24 | (PowerSheaf.tensorPowerHomEquiv_postcomp (𝟙 _) f).symm.trans |
| 25 | (congrArg (PowerSheaf.tensorPowerHomEquiv L P n) (Category.id_comp f)) |
| 26 | |
| 27 | /-- The canonical multilinear map detects equality of maps out of the tensor power. -/ |
| 28 | theorem tensorPower_hom_ext {f h : PowerSheaf.tensorPowerModule L n ⟶ P} |
| 29 | (he : (tensorPowerMultilinear L n).postcomp f = (tensorPowerMultilinear L n).postcomp h) : |
| 30 | f = h := |
| 31 | (PowerSheaf.tensorPowerHomEquiv L P n).injective |
| 32 | ((tensorPowerMultilinear_postcomp f).symm.trans |
| 33 | (he.trans (tensorPowerMultilinear_postcomp h))) |
| 34 | |
| 35 | /-- Apply the same module-sheaf morphism to every tensor factor. -/ |
| 36 | def tensorPowerMap (f : L ⟶ M) (n : ℕ) : PowerSheaf.tensorPowerModule L n ⟶ PowerSheaf.tensorPowerModule M n := |
| 37 | (PowerSheaf.tensorPowerHomEquiv L (PowerSheaf.tensorPowerModule M n) n).symm |
| 38 | ((tensorPowerMultilinear M n).precomp f) |
| 39 | |
| 40 | theorem tensorPowerMap_spec (f : L ⟶ M) (n : ℕ) : |
| 41 | (tensorPowerMultilinear L n).postcomp (tensorPowerMap f n) = |
| 42 | (tensorPowerMultilinear M n).precomp f := |
| 43 | (tensorPowerMultilinear_postcomp _).trans |
| 44 | ((PowerSheaf.tensorPowerHomEquiv L (PowerSheaf.tensorPowerModule M n) n).apply_symm_apply _) |
| 45 | |
| 46 | @[simp] |
| 47 | theorem tensorPowerMap_id (L : X.Modules) (n : ℕ) : tensorPowerMap (𝟙 L) n = 𝟙 _ := by |
| 48 | apply tensorPower_hom_ext |
| 49 | exact (tensorPowerMap_spec (𝟙 L) n).trans |
| 50 | ((Tensor.Powers.SheafMultilinearMap.precomp_id _).trans (Tensor.Powers.SheafMultilinearMap.postcomp_id _).symm) |
| 51 | |
| 52 | theorem tensorPowerMap_comp (f : L ⟶ M) (h : M ⟶ P) (n : ℕ) : |
| 53 | tensorPowerMap (f ≫ h) n = tensorPowerMap f n ≫ tensorPowerMap h n := by |
| 54 | apply tensorPower_hom_ext |
| 55 | calc |
| 56 | (tensorPowerMultilinear L n).postcomp (tensorPowerMap (f ≫ h) n) = |
| 57 | (tensorPowerMultilinear P n).precomp (f ≫ h) := tensorPowerMap_spec _ _ |
| 58 | _ = ((tensorPowerMultilinear P n).precomp h).precomp f := |
| 59 | (Tensor.Powers.SheafMultilinearMap.precomp_comp _ h f).symm |
| 60 | _ = ((tensorPowerMultilinear M n).postcomp (tensorPowerMap h n)).precomp f := |
| 61 | congrArg (fun β : Tensor.Powers.SheafMultilinearMap M n (PowerSheaf.tensorPowerModule P n) => β.precomp f) |
| 62 | (tensorPowerMap_spec h n).symm |
| 63 | _ = ((tensorPowerMultilinear M n).precomp f).postcomp (tensorPowerMap h n) := |
| 64 | Tensor.Powers.SheafMultilinearMap.precomp_postcomp _ _ _ |
| 65 | _ = ((tensorPowerMultilinear L n).postcomp (tensorPowerMap f n)).postcomp |
| 66 | (tensorPowerMap h n) := |
| 67 | congrArg (fun β : Tensor.Powers.SheafMultilinearMap L n (PowerSheaf.tensorPowerModule M n) => |
| 68 | β.postcomp (tensorPowerMap h n)) (tensorPowerMap_spec f n).symm |
| 69 | _ = (tensorPowerMultilinear L n).postcomp (tensorPowerMap f n ≫ tensorPowerMap h n) := |
| 70 | (Tensor.Powers.SheafMultilinearMap.postcomp_comp _ _ _).symm |
| 71 | |
| 72 | /-- Tensor powers form a functor on the actual category of module sheaves. -/ |
| 73 | def tensorPowerFunctor (X : Scheme.{u}) (n : ℕ) : X.Modules ⥤ X.Modules where |
| 74 | obj L := PowerSheaf.tensorPowerModule L n |
| 75 | map f := tensorPowerMap f n |
| 76 | map_id L := tensorPowerMap_id L n |
| 77 | map_comp f h := tensorPowerMap_comp f h n |
| 78 | |
| 79 | /-- A map from a tensor power of the unit to the unit is multiplication of its factors. -/ |
| 80 | def tensorPowerUnitHom (X : Scheme.{u}) (n : ℕ) : |
| 81 | PowerSheaf.tensorPowerModule (Line.Bundles.structureModule X) n ⟶ Line.Bundles.structureModule X := |
| 82 | (PowerSheaf.tensorPowerHomEquiv (Line.Bundles.structureModule X) (Line.Bundles.structureModule X) n).symm |
| 83 | (LineBundle.Powers.structureModuleTensorMap X n) |
| 84 | |
| 85 | /-- The inverse map is determined by the value of the universal tensor on ones. -/ |
| 86 | def tensorPowerUnitInv (X : Scheme.{u}) (n : ℕ) : |
| 87 | Line.Bundles.structureModule X ⟶ PowerSheaf.tensorPowerModule (Line.Bundles.structureModule X) n := |
| 88 | (tensorPowerMultilinear (Line.Bundles.structureModule X) n).unitToHom |
| 89 | |
| 90 | theorem tensorPowerUnitHom_spec (X : Scheme.{u}) (n : ℕ) : |
| 91 | (tensorPowerMultilinear (Line.Bundles.structureModule X) n).postcomp (tensorPowerUnitHom X n) = |
| 92 | LineBundle.Powers.structureModuleTensorMap X n := |
| 93 | (tensorPowerMultilinear_postcomp _).trans |
| 94 | ((PowerSheaf.tensorPowerHomEquiv (Line.Bundles.structureModule X) (Line.Bundles.structureModule X) n).apply_symm_apply _) |
| 95 | |
| 96 | /-- The canonical tensor power of the structure sheaf is canonically the structure sheaf. -/ |
| 97 | def tensorPowerUnitIso (X : Scheme.{u}) (n : ℕ) : |
| 98 | PowerSheaf.tensorPowerModule (Line.Bundles.structureModule X) n ≅ Line.Bundles.structureModule X where |
| 99 | hom := tensorPowerUnitHom X n |
| 100 | inv := tensorPowerUnitInv X n |
| 101 | hom_inv_id := by |
| 102 | apply tensorPower_hom_ext |
| 103 | exact (Tensor.Powers.SheafMultilinearMap.postcomp_comp _ _ _).trans |
| 104 | ((congrArg (fun β : Tensor.Powers.SheafMultilinearMap (Line.Bundles.structureModule X) n (Line.Bundles.structureModule X) => |
| 105 | β.postcomp (tensorPowerUnitInv X n)) (tensorPowerUnitHom_spec X n)).trans |
| 106 | ((LineBundle.Powers.structureModuleTensorMap_postcomp_unitToHom _).trans |
| 107 | (Tensor.Powers.SheafMultilinearMap.postcomp_id _).symm)) |
| 108 | inv_hom_id := by |
| 109 | have h := congrArg Tensor.Powers.SheafMultilinearMap.unitToHom (tensorPowerUnitHom_spec X n) |
| 110 | have he : ((tensorPowerMultilinear (Line.Bundles.structureModule X) n).postcomp |
| 111 | (tensorPowerUnitHom X n)).unitToHom = tensorPowerUnitInv X n ≫ tensorPowerUnitHom X n := by |
| 112 | apply Scheme.Modules.hom_ext |
| 113 | intro U |
| 114 | apply ConcreteCategory.hom_ext |
| 115 | intro r |
| 116 | exact ((tensorPowerUnitHom X n).app_smul r |
| 117 | ((tensorPowerMultilinear (Line.Bundles.structureModule X) n).app U |
| 118 | (fun _ => (1 : Γ(X, U))))).symm |
| 119 | exact he.symm.trans (h.trans (by |
| 120 | simpa only [Tensor.Powers.SheafMultilinearMap.postcomp_id] using |
| 121 | (LineBundle.Powers.unitToHom_structureModuleTensorMap_postcomp (X := X) (n := n) (𝟙 (Line.Bundles.structureModule X))))) |
| 122 | |
| 123 | /-- Raising a section to a power, as a morphism into the tensor-power sheaf. -/ |
| 124 | def tensorPowerSection (s : Line.Bundles.structureModule X ⟶ L) (n : ℕ) : |
| 125 | Line.Bundles.structureModule X ⟶ PowerSheaf.tensorPowerModule L n := |
| 126 | (tensorPowerUnitIso X n).inv ≫ tensorPowerMap s n |
| 127 | |
| 128 | /-- On sections, the power of a section is the universal tensor of its repeated value. -/ |
| 129 | theorem tensorPowerSection_app (s : Line.Bundles.structureModule X ⟶ L) (n : ℕ) (U : X.Opens) |
| 130 | (r : Γ(X, U)) : |
| 131 | (tensorPowerSection s n).app U r = |
| 132 | r • (tensorPowerMultilinear L n).app U (fun _ => s.app U (1 : Γ(X, U))) := by |
| 133 | have hs := congrArg (fun β : Tensor.Powers.SheafMultilinearMap (Line.Bundles.structureModule X) n (PowerSheaf.tensorPowerModule L n) => |
| 134 | β.app U (fun _ => (1 : Γ(X, U)))) (tensorPowerMap_spec s n) |
| 135 | change (tensorPowerMap s n).app U |
| 136 | ((tensorPowerMultilinear (Line.Bundles.structureModule X) n).app U (fun _ => (1 : Γ(X, U)))) = |
| 137 | (tensorPowerMultilinear L n).app U (fun _ => s.app U (1 : Γ(X, U))) at hs |
| 138 | exact ((tensorPowerMap s n).app_smul r _).trans |
| 139 | (congrArg (fun a : Γ(PowerSheaf.tensorPowerModule L n, U) => r • a) hs) |
| 140 | |
| 141 | /-- A global frame raises to a global frame in every tensor power. -/ |
| 142 | instance tensorPowerSection_isIso (s : Line.Bundles.structureModule X ⟶ L) [IsIso s] (n : ℕ) : |
| 143 | IsIso (tensorPowerSection s n) := by |
| 144 | have : IsIso (tensorPowerMap s n) := (tensorPowerFunctor X n).map_isIso s |
| 145 | dsimp [tensorPowerSection] |
| 146 | infer_instance |
| 147 | |
| 148 | end |
| 149 | |
| 150 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TensorPower.Maps |