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.Powers |
| 2 | import Mathlib.LinearAlgebra.PiTensorProduct.Basic |
| 3 | |
| 4 | /-! # Presheaf -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TensorPower.Presheaf |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The presheaf tensor power, with restriction maps over the varying coordinate rings. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {X : Scheme.{u}} |
| 18 | |
| 19 | /-- Tensor-power sections before sheafification. -/ |
| 20 | def tensorPowerSections (L : X.Modules) (n : ℕ) (U : X.Opens) : ModuleCat Γ(X, U) := |
| 21 | ModuleCat.of Γ(X, U) (PiTensorProduct Γ(X, U) (fun _ : Fin n => Γ(L, U))) |
| 22 | |
| 23 | /-- Restrict every entry of a tensor-generating tuple. -/ |
| 24 | def tensorPowerVectorMap (L : X.Modules) {U V : X.Opensᵒᵖ} (h : U ⟶ V) |
| 25 | {n : ℕ} (s : Fin n → Γ(L, U.unop)) : Fin n → Γ(L, V.unop) := |
| 26 | fun i => L.val.map h (s i) |
| 27 | |
| 28 | theorem tensorPowerVectorMap_update (L : X.Modules) {U V : X.Opensᵒᵖ} (h : U ⟶ V) |
| 29 | {n : ℕ} [DecidableEq (Fin n)] (s : Fin n → Γ(L, U.unop)) (i : Fin n) (x : Γ(L, U.unop)) : |
| 30 | tensorPowerVectorMap L h (Function.update s i x) = |
| 31 | Function.update (tensorPowerVectorMap L h s) i (L.val.map h x) := |
| 32 | Function.comp_update (fun x => L.val.map h x) s i x |
| 33 | |
| 34 | /-- Restriction of tensor generators is multilinear over the original coordinate ring. -/ |
| 35 | def tensorPowerRestrictionMultilinear (L : X.Modules) (n : ℕ) |
| 36 | {U V : X.Opensᵒᵖ} (h : U ⟶ V) : |
| 37 | MultilinearMap Γ(X, U.unop) (fun _ : Fin n => Γ(L, U.unop)) |
| 38 | ((ModuleCat.restrictScalars (X.presheaf.map h).hom).obj (tensorPowerSections L n V.unop)) where |
| 39 | toFun s := PiTensorProduct.tprod Γ(X, V.unop) (tensorPowerVectorMap L h s) |
| 40 | map_update_add' s i x y := by |
| 41 | let t := PiTensorProduct.tprod Γ(X, V.unop) (s := fun _ : Fin n => Γ(L, V.unop)) |
| 42 | exact (congrArg t (tensorPowerVectorMap_update L h s i (x + y))).trans |
| 43 | ((congrArg (fun a => t (Function.update (tensorPowerVectorMap L h s) i a)) |
| 44 | ((L.val.map h).hom.map_add x y)).trans |
| 45 | ((t.map_update_add (tensorPowerVectorMap L h s) i _ _).trans |
| 46 | (congrArg₂ (fun a b => t a + t b) |
| 47 | (tensorPowerVectorMap_update L h s i x).symm |
| 48 | (tensorPowerVectorMap_update L h s i y).symm))) |
| 49 | map_update_smul' s i r x := by |
| 50 | let t := PiTensorProduct.tprod Γ(X, V.unop) (s := fun _ : Fin n => Γ(L, V.unop)) |
| 51 | exact (congrArg t (tensorPowerVectorMap_update L h s i (r • x))).trans |
| 52 | ((congrArg (fun a => t (Function.update (tensorPowerVectorMap L h s) i a)) |
| 53 | (L.val.map_smul h r x)).trans |
| 54 | ((t.map_update_smul (tensorPowerVectorMap L h s) i (X.presheaf.map h r) _).trans |
| 55 | (congrArg (fun a => (X.presheaf.map h r) • t a) |
| 56 | (tensorPowerVectorMap_update L h s i x).symm))) |
| 57 | |
| 58 | /-- The linear restriction map on tensor-power sections. -/ |
| 59 | def tensorPowerRestriction (L : X.Modules) (n : ℕ) {U V : X.Opensᵒᵖ} (h : U ⟶ V) : |
| 60 | tensorPowerSections L n U.unop ⟶ |
| 61 | (ModuleCat.restrictScalars (X.presheaf.map h).hom).obj (tensorPowerSections L n V.unop) := by |
| 62 | let Q : ModuleCat Γ(X, U.unop) := |
| 63 | (ModuleCat.restrictScalars (X.presheaf.map h).hom).obj (tensorPowerSections L n V.unop) |
| 64 | let : Module Γ(X, U.unop) Q := Q.isModule |
| 65 | exact (ModuleCat.ofHom (Y := Q) |
| 66 | (PiTensorProduct.lift (E := Q) (tensorPowerRestrictionMultilinear L n h)) : |
| 67 | ModuleCat.of Γ(X, U.unop) (PiTensorProduct Γ(X, U.unop) (fun _ : Fin n => Γ(L, U.unop))) ⟶ Q) |
| 68 | |
| 69 | @[simp] |
| 70 | theorem tensorPowerRestriction_tprod (L : X.Modules) (n : ℕ) {U V : X.Opensᵒᵖ} (h : U ⟶ V) |
| 71 | (s : Fin n → Γ(L, U.unop)) : |
| 72 | tensorPowerRestriction L n h (PiTensorProduct.tprod Γ(X, U.unop) s) = |
| 73 | PiTensorProduct.tprod Γ(X, V.unop) (tensorPowerVectorMap L h s) := by |
| 74 | let Q : ModuleCat Γ(X, U.unop) := |
| 75 | (ModuleCat.restrictScalars (X.presheaf.map h).hom).obj (tensorPowerSections L n V.unop) |
| 76 | let : Module Γ(X, U.unop) Q := Q.isModule |
| 77 | exact PiTensorProduct.lift.tprod (φ := tensorPowerRestrictionMultilinear L n h) s |
| 78 | |
| 79 | /-- The presheaf of tensor powers of a module sheaf. -/ |
| 80 | def tensorPowerPresheaf (L : X.Modules) (n : ℕ) : X.PresheafOfModules where |
| 81 | obj U := tensorPowerSections L n U.unop |
| 82 | map h := tensorPowerRestriction L n h |
| 83 | map_id U := by |
| 84 | apply ModuleCat.hom_ext |
| 85 | apply PiTensorProduct.ext |
| 86 | apply MultilinearMap.ext |
| 87 | intro s |
| 88 | exact (tensorPowerRestriction_tprod L n (𝟙 U) s).trans |
| 89 | (congrArg (PiTensorProduct.tprod Γ(X, U.unop)) |
| 90 | (funext (fun i => ConcreteCategory.congr_hom (L.val.map_id U) (s i)))) |
| 91 | map_comp f h := by |
| 92 | apply ModuleCat.hom_ext |
| 93 | apply PiTensorProduct.ext |
| 94 | apply MultilinearMap.ext |
| 95 | intro s |
| 96 | change tensorPowerRestriction L n (f ≫ h) (PiTensorProduct.tprod _ s) = |
| 97 | tensorPowerRestriction L n h (tensorPowerRestriction L n f (PiTensorProduct.tprod _ s)) |
| 98 | rw [tensorPowerRestriction_tprod, tensorPowerRestriction_tprod, tensorPowerRestriction_tprod] |
| 99 | congr 1 |
| 100 | funext i |
| 101 | exact L.val.map_comp_apply f h (s i) |
| 102 | |
| 103 | end |
| 104 | |
| 105 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TensorPower.Presheaf |