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.UnitLeftNaturality |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Global.ModuleScalars |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.Gluing |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.ModuleMonomorphisms |
| 5 | |
| 6 | /-! # Section Multiplication -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.SectionMultiplication |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Multiplication by a line-bundle section acts on every module sheaf. In a frame of the line bundle, the actual tensor map becomes multiplication by its actual regular-function coordinate. -/ |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | universe u |
| 15 | variable {X : Scheme.{u}} |
| 16 | |
| 17 | def moduleSectionMultiply (L : Line.Bundles.LineBundle X) (M : X.Modules) |
| 18 | (s : Line.Bundles.structureModule X ⟶ L.sheaf) : M ⟶ Tensor.ProductSheaf.tensorModule L.sheaf M := |
| 19 | (Tensor.ProductSheaf.tensorModuleUnitLeftIso M).inv ≫ Tensor.Bifunctor.tensorModuleMap s (𝟙 M) |
| 20 | |
| 21 | theorem tensorModuleUnitLeftIso_scalar (M : X.Modules) (a : End (Line.Bundles.structureModule X)) : |
| 22 | Tensor.Bifunctor.tensorModuleMap a (𝟙 M) ≫ (Tensor.ProductSheaf.tensorModuleUnitLeftIso M).hom = |
| 23 | (Tensor.ProductSheaf.tensorModuleUnitLeftIso M).hom ≫ Global.ModuleScalars.globalModuleScalar M (Frame.Coordinates.structureModuleEndValue X a) := by |
| 24 | apply (Bilinear.Sheaves.SheafBilinearMap.tensorHomEquiv (Line.Bundles.structureModule X) M M).injective |
| 25 | rw [← Tensor.Bifunctor.tensorBilinear_postcomp, Bilinear.Sheaves.SheafBilinearMap.postcomp_comp, Tensor.Bifunctor.tensorModuleMap_spec, |
| 26 | ← Bilinear.Sheaves.SheafBilinearMap.precomp_postcomp, Tensor.Bifunctor.tensorBilinear_postcomp, |
| 27 | Tensor.PullbackUnits.tensorModuleUnitLeftIso_formula, Bilinear.Sheaves.SheafBilinearMap.tensorHomEquiv_postcomp, |
| 28 | Tensor.PullbackUnits.tensorModuleUnitLeftIso_formula] |
| 29 | apply Bilinear.Sheaves.SheafBilinearMap.ext |
| 30 | intro U |
| 31 | apply DFunLike.ext |
| 32 | intro r |
| 33 | change Γ(X, U) at r |
| 34 | apply DFunLike.ext |
| 35 | intro m |
| 36 | change (show Γ(X, U) from a.app U r) • m = |
| 37 | X.presheaf.map U.leTop.op (Global.Sections.moduleSectionHomEquiv (Line.Bundles.structureModule X) a) • (r • m) |
| 38 | have hres : X.presheaf.map U.leTop.op (Global.Sections.moduleSectionHomEquiv (Line.Bundles.structureModule X) a) = |
| 39 | (show Γ(X, U) from a.app U (1 : Γ(X, U))) := |
| 40 | Section.Gluing.moduleSectionHomEquiv_restrict (Line.Bundles.structureModule X) a U |
| 41 | have ha : (show Γ(X, U) from a.app U r) = r * (show Γ(X, U) from a.app U (1 : Γ(X, U))) := |
| 42 | (congrArg (a.app U) (mul_one r)).symm.trans (a.app_smul r (1 : Γ(X, U))) |
| 43 | exact (congrArg (fun c : Γ(X, U) => c • m) ha).trans |
| 44 | ((mul_smul r (show Γ(X, U) from a.app U (1 : Γ(X, U))) m).trans |
| 45 | ((smul_comm r (show Γ(X, U) from a.app U (1 : Γ(X, U))) m).trans |
| 46 | (congrArg (fun c : Γ(X, U) => c • (r • m)) hres.symm))) |
| 47 | |
| 48 | def moduleSectionFrameIso (L : Line.Bundles.LineBundle X) (M : X.Modules) |
| 49 | (e : L.sheaf ≅ Line.Bundles.structureModule X) : Tensor.ProductSheaf.tensorModule L.sheaf M ≅ M := |
| 50 | Tensor.Bifunctor.tensorModuleMapIso e (Iso.refl M) ≪≫ Tensor.ProductSheaf.tensorModuleUnitLeftIso M |
| 51 | |
| 52 | theorem moduleSectionMultiply_frame (L : Line.Bundles.LineBundle X) (M : X.Modules) |
| 53 | (s : Line.Bundles.structureModule X ⟶ L.sheaf) (e : L.sheaf ≅ Line.Bundles.structureModule X) : |
| 54 | moduleSectionMultiply L M s ≫ (moduleSectionFrameIso L M e).hom = |
| 55 | Global.ModuleScalars.globalModuleScalar M (Frame.Coordinates.structureModuleEndValue X (s ≫ e.hom)) := by |
| 56 | change ((Tensor.ProductSheaf.tensorModuleUnitLeftIso M).inv ≫ Tensor.Bifunctor.tensorModuleMap s (𝟙 M)) ≫ |
| 57 | (Tensor.Bifunctor.tensorModuleMap e.hom (𝟙 M) ≫ (Tensor.ProductSheaf.tensorModuleUnitLeftIso M).hom) = _ |
| 58 | calc |
| 59 | ((Tensor.ProductSheaf.tensorModuleUnitLeftIso M).inv ≫ Tensor.Bifunctor.tensorModuleMap s (𝟙 M)) ≫ |
| 60 | (Tensor.Bifunctor.tensorModuleMap e.hom (𝟙 M) ≫ (Tensor.ProductSheaf.tensorModuleUnitLeftIso M).hom) = |
| 61 | (Tensor.ProductSheaf.tensorModuleUnitLeftIso M).inv ≫ |
| 62 | (Tensor.Bifunctor.tensorModuleMap s (𝟙 M) ≫ Tensor.Bifunctor.tensorModuleMap e.hom (𝟙 M)) ≫ |
| 63 | (Tensor.ProductSheaf.tensorModuleUnitLeftIso M).hom := by simp only [Category.assoc] |
| 64 | _ = (Tensor.ProductSheaf.tensorModuleUnitLeftIso M).inv ≫ |
| 65 | Tensor.Bifunctor.tensorModuleMap (s ≫ e.hom) (𝟙 M) ≫ (Tensor.ProductSheaf.tensorModuleUnitLeftIso M).hom := by |
| 66 | rw [Tensor.Bifunctor.tensorModuleMap_comp, Category.id_comp] |
| 67 | _ = Global.ModuleScalars.globalModuleScalar M (Frame.Coordinates.structureModuleEndValue X (s ≫ e.hom)) := by |
| 68 | rw [tensorModuleUnitLeftIso_scalar] |
| 69 | simp only [Iso.inv_hom_id_assoc] |
| 70 | |
| 71 | theorem moduleSectionMultiply_mono_iff_frame |
| 72 | (L : Line.Bundles.LineBundle X) (M : X.Modules) |
| 73 | (s : Line.Bundles.structureModule X ⟶ L.sheaf) (e : L.sheaf ≅ Line.Bundles.structureModule X) : |
| 74 | Mono (moduleSectionMultiply L M s) ↔ |
| 75 | Mono (Global.ModuleScalars.globalModuleScalar M (Frame.Coordinates.structureModuleEndValue X (s ≫ e.hom))) := by |
| 76 | rw [← moduleSectionMultiply_frame L M s e] |
| 77 | constructor |
| 78 | · intro h |
| 79 | let := h |
| 80 | infer_instance |
| 81 | · intro h |
| 82 | let := h |
| 83 | refine ⟨fun {Z} f g hfg => ?_⟩ |
| 84 | apply (cancel_mono (moduleSectionMultiply L M s ≫ (moduleSectionFrameIso L M e).hom)).mp |
| 85 | exact (Category.assoc _ _ _).symm.trans |
| 86 | ((congrArg (fun q => q ≫ (moduleSectionFrameIso L M e).hom) hfg).trans (Category.assoc _ _ _)) |
| 87 | |
| 88 | theorem moduleSectionMultiply_mono_iff_avoids_associatedPrimes |
| 89 | [IsAffine X] [IsNoetherianRing Γ(X, ⊤)] |
| 90 | (L : Line.Bundles.LineBundle X) (M : X.Modules) [M.IsQuasicoherent] |
| 91 | (s : Line.Bundles.structureModule X ⟶ L.sheaf) (e : L.sheaf ≅ Line.Bundles.structureModule X) : |
| 92 | Mono (moduleSectionMultiply L M s) ↔ |
| 93 | ∀ P ∈ associatedPrimes Γ(X, ⊤) Γ(M, ⊤), |
| 94 | Frame.Coordinates.structureModuleEndValue X (s ≫ e.hom) ∉ P := by |
| 95 | rw [moduleSectionMultiply_mono_iff_frame L M s e, |
| 96 | Affine.ModuleMonomorphisms.affineModuleScalar_mono_iff_avoids_associatedPrimes] |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.SectionMultiplication |