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.MultilinearComposition |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.ModuleIsomorphisms |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Tensor.LineBundles |
| 4 | |
| 5 | /-! # Powers -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Single and iterated tensor powers of a line bundle are canonically isomorphic. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | open scoped BigOperators |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable {X Y : Scheme.{u}} {L M : X.Modules} |
| 19 | |
| 20 | /-- Multiplication in the structure sheaf is compatible with grouping tensor factors. -/ |
| 21 | theorem Iterated.Powers.structureModuleTensorMap_compose (X : Scheme.{u}) (m n : ℕ) : |
| 22 | (LineBundle.Powers.structureModuleTensorMap X m).compose (LineBundle.Powers.structureModuleTensorMap X n) = |
| 23 | LineBundle.Powers.structureModuleTensorMap X (m * n) := by |
| 24 | apply Tensor.Powers.SheafMultilinearMap.ext |
| 25 | intro U |
| 26 | apply MultilinearMap.ext_ring |
| 27 | change (∏ _ : Fin m, (∏ _ : Fin n, (1 : Γ(X, U)))) = ∏ _ : Fin (m * n), (1 : Γ(X, U)) |
| 28 | simp only [Finset.prod_const_one] |
| 29 | |
| 30 | /-- The canonical trivialization of an iterated power of the structure module. -/ |
| 31 | def Iterated.Powers.tensorPowerIteratedUnitIso (X : Scheme.{u}) (m n : ℕ) : |
| 32 | TensorPower.PowerSheaf.tensorPowerModule (TensorPower.PowerSheaf.tensorPowerModule (Line.Bundles.structureModule X) n) m ≅ Line.Bundles.structureModule X := |
| 33 | (TensorPower.Maps.tensorPowerFunctor X m).mapIso (TensorPower.Maps.tensorPowerUnitIso X n) ≪≫ TensorPower.Maps.tensorPowerUnitIso X m |
| 34 | |
| 35 | theorem Iterated.Powers.tensorPowerComposeMap_unit (X : Scheme.{u}) (m n : ℕ) : |
| 36 | MultilinearComposition.tensorPowerComposeMap (Line.Bundles.structureModule X) m n ≫ (Iterated.Powers.tensorPowerIteratedUnitIso X m n).hom = |
| 37 | (TensorPower.Maps.tensorPowerUnitIso X (m * n)).hom := by |
| 38 | apply TensorPower.Maps.tensorPower_hom_ext |
| 39 | change (TensorPower.Maps.tensorPowerMultilinear (Line.Bundles.structureModule X) (m * n)).postcomp |
| 40 | (MultilinearComposition.tensorPowerComposeMap (Line.Bundles.structureModule X) m n ≫ |
| 41 | TensorPower.Maps.tensorPowerMap (TensorPower.Maps.tensorPowerUnitHom X n) m ≫ TensorPower.Maps.tensorPowerUnitHom X m) = _ |
| 42 | rw [Tensor.Powers.SheafMultilinearMap.postcomp_comp, MultilinearComposition.tensorPowerComposeMap_spec, |
| 43 | Tensor.Powers.SheafMultilinearMap.postcomp_comp, Tensor.Powers.SheafMultilinearMap.compose_postcomp, |
| 44 | TensorPower.Maps.tensorPowerMap_spec, Tensor.Powers.SheafMultilinearMap.compose_middle, TensorPower.Maps.tensorPowerUnitHom_spec, |
| 45 | Tensor.Powers.SheafMultilinearMap.compose_postcomp, TensorPower.Maps.tensorPowerUnitHom_spec, |
| 46 | Iterated.Powers.structureModuleTensorMap_compose] |
| 47 | exact (TensorPower.Maps.tensorPowerUnitHom_spec X (m * n)).symm |
| 48 | |
| 49 | instance Iterated.Powers.tensorPowerComposeMap_unit_isIso (X : Scheme.{u}) (m n : ℕ) : |
| 50 | IsIso (MultilinearComposition.tensorPowerComposeMap (Line.Bundles.structureModule X) m n) := by |
| 51 | have : IsIso (MultilinearComposition.tensorPowerComposeMap (Line.Bundles.structureModule X) m n ≫ |
| 52 | (Iterated.Powers.tensorPowerIteratedUnitIso X m n).hom) := |
| 53 | (Iterated.Powers.tensorPowerComposeMap_unit X m n).symm ▸ inferInstance |
| 54 | exact (isIso_comp_right_iff _ _).mp this |
| 55 | |
| 56 | /-- A globally trivialized line bundle has the expected iterated-power comparison. -/ |
| 57 | theorem Iterated.Powers.tensorPowerComposeMap_isIso_of_frame (e : L ≅ Line.Bundles.structureModule X) (m n : ℕ) : |
| 58 | IsIso (MultilinearComposition.tensorPowerComposeMap L m n) := by |
| 59 | have : IsIso (TensorPower.Maps.tensorPowerMap e.hom (m * n)) := (TensorPower.Maps.tensorPowerFunctor X (m * n)).map_isIso _ |
| 60 | have : IsIso (TensorPower.Maps.tensorPowerMap e.hom n) := (TensorPower.Maps.tensorPowerFunctor X n).map_isIso _ |
| 61 | have : IsIso (TensorPower.Maps.tensorPowerMap (TensorPower.Maps.tensorPowerMap e.hom n) m) := (TensorPower.Maps.tensorPowerFunctor X m).map_isIso _ |
| 62 | have he := MultilinearComposition.tensorPowerComposeMap_naturality e.hom m n |
| 63 | have : IsIso (MultilinearComposition.tensorPowerComposeMap L m n ≫ TensorPower.Maps.tensorPowerMap (TensorPower.Maps.tensorPowerMap e.hom n) m) := |
| 64 | he ▸ inferInstance |
| 65 | exact (isIso_comp_right_iff _ _).mp this |
| 66 | |
| 67 | /-- Restriction preserves substitution of multilinear sheaf maps. -/ |
| 68 | theorem Tensor.Powers.SheafMultilinearMap.compose_restrict {L M P : Y.Modules} {m n : ℕ} |
| 69 | (γ : Tensor.Powers.SheafMultilinearMap M m P) (β : Tensor.Powers.SheafMultilinearMap L n M) |
| 70 | (f : X ⟶ Y) [IsOpenImmersion f] : |
| 71 | (γ.compose β).restrict f = (γ.restrict f).compose (β.restrict f) := by |
| 72 | ext U s |
| 73 | rfl |
| 74 | |
| 75 | /-- Apply the canonical restriction comparisons to both powers in an iterated power. -/ |
| 76 | def Iterated.Powers.tensorPowerIteratedRestrictIso (f : X ⟶ Y) [IsOpenImmersion f] (L : Y.Modules) (m n : ℕ) : |
| 77 | TensorPower.PowerSheaf.tensorPowerModule (TensorPower.PowerSheaf.tensorPowerModule (L.restrict f) n) m ≅ |
| 78 | (TensorPower.PowerSheaf.tensorPowerModule (TensorPower.PowerSheaf.tensorPowerModule L n) m).restrict f := |
| 79 | (TensorPower.Maps.tensorPowerFunctor X m).mapIso (TensorPower.RestrictionMaps.tensorPowerRestrictIso f L n) ≪≫ |
| 80 | TensorPower.RestrictionMaps.tensorPowerRestrictIso f (TensorPower.PowerSheaf.tensorPowerModule L n) m |
| 81 | |
| 82 | /-- The single-to-iterated comparison commutes with restriction to any open subscheme. -/ |
| 83 | theorem Iterated.Powers.tensorPowerComposeMap_restrict (f : X ⟶ Y) [IsOpenImmersion f] |
| 84 | (L : Y.Modules) (m n : ℕ) : |
| 85 | MultilinearComposition.tensorPowerComposeMap (L.restrict f) m n ≫ (Iterated.Powers.tensorPowerIteratedRestrictIso f L m n).hom = |
| 86 | (TensorPower.RestrictionMaps.tensorPowerRestrictIso f L (m * n)).hom ≫ |
| 87 | (Scheme.Modules.restrictFunctor f).map (MultilinearComposition.tensorPowerComposeMap L m n) := by |
| 88 | apply TensorPower.Maps.tensorPower_hom_ext |
| 89 | change (TensorPower.Maps.tensorPowerMultilinear (L.restrict f) (m * n)).postcomp |
| 90 | (MultilinearComposition.tensorPowerComposeMap (L.restrict f) m n ≫ |
| 91 | TensorPower.Maps.tensorPowerMap (TensorPower.RestrictionMaps.tensorPowerRestrictHom f L n) m ≫ |
| 92 | TensorPower.RestrictionMaps.tensorPowerRestrictHom f (TensorPower.PowerSheaf.tensorPowerModule L n) m) = _ |
| 93 | rw [Tensor.Powers.SheafMultilinearMap.postcomp_comp, MultilinearComposition.tensorPowerComposeMap_spec, |
| 94 | Tensor.Powers.SheafMultilinearMap.postcomp_comp, Tensor.Powers.SheafMultilinearMap.compose_postcomp, |
| 95 | TensorPower.Maps.tensorPowerMap_spec, Tensor.Powers.SheafMultilinearMap.compose_middle, TensorPower.RestrictionMaps.tensorPowerRestrictHom_spec, |
| 96 | Tensor.Powers.SheafMultilinearMap.compose_postcomp, TensorPower.RestrictionMaps.tensorPowerRestrictHom_spec, |
| 97 | ← Tensor.Powers.SheafMultilinearMap.compose_restrict, |
| 98 | ← MultilinearComposition.tensorPowerComposeMap_spec, Tensor.Powers.SheafMultilinearMap.restrict_postcomp] |
| 99 | exact (congrArg (fun β : Tensor.Powers.SheafMultilinearMap (L.restrict f) (m * n) |
| 100 | ((TensorPower.PowerSheaf.tensorPowerModule L (m * n)).restrict f) => |
| 101 | β.postcomp ((Scheme.Modules.restrictFunctor f).map (MultilinearComposition.tensorPowerComposeMap L m n))) |
| 102 | (TensorPower.RestrictionMaps.tensorPowerRestrictHom_spec f L (m * n)).symm).trans |
| 103 | (Tensor.Powers.SheafMultilinearMap.postcomp_comp _ _ _).symm |
| 104 | |
| 105 | /-- The iterated-power comparison is invertible for every algebraic line bundle. -/ |
| 106 | instance Line.Bundles.LineBundle.tensorPowerComposeMap_isIso (L : Line.Bundles.LineBundle X) (m n : ℕ) : |
| 107 | IsIso (MultilinearComposition.tensorPowerComposeMap L.sheaf m n) := by |
| 108 | apply Local.ModuleIsomorphisms.moduleMap_isIso_of_locally |
| 109 | intro x |
| 110 | obtain ⟨U, hx, ⟨e⟩⟩ := L.locallyTrivial x |
| 111 | refine ⟨U, hx, ?_⟩ |
| 112 | have : IsIso (MultilinearComposition.tensorPowerComposeMap (L.sheaf.restrict U.ι) m n) := |
| 113 | Iterated.Powers.tensorPowerComposeMap_isIso_of_frame |
| 114 | ((Scheme.Modules.restrictFunctorIsoPullback U.ι).app L.sheaf ≪≫ e) m n |
| 115 | have he := Iterated.Powers.tensorPowerComposeMap_restrict U.ι L.sheaf m n |
| 116 | have hi : IsIso ((TensorPower.RestrictionMaps.tensorPowerRestrictIso U.ι L.sheaf (m * n)).hom ≫ |
| 117 | (Scheme.Modules.restrictFunctor U.ι).map (MultilinearComposition.tensorPowerComposeMap L.sheaf m n)) := he ▸ inferInstance |
| 118 | exact (Power.Nonvanishing.isIso_restrict_map_iff U.ι _).mp ((isIso_comp_left_iff _ _).mp hi) |
| 119 | |
| 120 | /-- The power of degree m*n is canonically the mth power of the nth power. -/ |
| 121 | def Line.Bundles.LineBundle.tensorPowerComposeIso (L : Line.Bundles.LineBundle X) (m n : ℕ) : |
| 122 | (L.tensorPower (m * n)).sheaf ≅ ((L.tensorPower n).tensorPower m).sheaf := by |
| 123 | exact @asIso X.Modules _ _ _ (MultilinearComposition.tensorPowerComposeMap L.sheaf m n) |
| 124 | (L.tensorPowerComposeMap_isIso m n) |
| 125 | |
| 126 | end |
| 127 | |
| 128 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |