---
title: "Coherent Sheaves"
canonical: "https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/index-sheaves.html"
source: "https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/index-sheaves.md"
part: "Algebraic Geometry"
chapter: "Coherent Sheaves"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Algebraic Geometry", "source": "https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/index-algebraic-geometry.md"}
prev: {"title": "Bibliography", "source": "https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Schemes/bibliography.md"}
next: {"title": "Introduction", "source": "https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/introduction.md"}
---

<a id="sheaf-coh"></a>
<a id="id1"></a>
# Coherent Sheaves

- [Introduction](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/introduction.md)
- [Creation Functions](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/creation.md)
  - [`Sheaf(M, X): ModMPol, Sch → ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/creation.md#function-sheaf-modmpol-sch)
  - [`StructureSheaf(X): Sch → ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/creation.md#function-structuresheaf-sch)
  - [`StructureSheaf(X, n): Sch, RngIntElt → ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/creation.md#function-structuresheaf-sch-rngintelt)
  - [`CanonicalSheaf(X): Sch → ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/creation.md#function-canonicalsheaf-sch)
  - [`CanonicalSheaf(X, n): Sch, RngIntElt → ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/creation.md#function-canonicalsheaf-sch-rngintelt)
  - [`Twist(S, n): ShfCoh, RngIntElt → ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/creation.md#function-twist-shfcoh-rngintelt)
  - [Example: Sheaves on a Cubic Surface](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/creation.md#example-ex-ac24b9)
  - [`SheafOfDifferentials(X): Sch → ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/creation.md#function-sheafofdifferentials-sch)
  - [`TangentSheaf(X): Sch → ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/creation.md#function-tangentsheaf-sch)
  - [`HorrocksMumfordBundle(P): Prj → ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/creation.md#function-horrocksmumfordbundle-prj)
- [Accessor Functions](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/accessors.md)
  - [`Module(S): ShfCoh → ModMPol`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/accessors.md#function-module-shfcoh)
  - [`Scheme(S): ShfCoh → Sch`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/accessors.md#function-scheme-shfcoh)
  - [`FullModule(S): ShfCoh → ModMPol`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/accessors.md#function-fullmodule-shfcoh)
  - [`GlobalSectionSubmodule(S): ShfCoh → ModMPol`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/accessors.md#function-globalsectionsubmodule-shfcoh)
  - [`SaturateSheaf(~S): ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/accessors.md#procedure-saturatesheaf-shfcoh-ref)
  - [Example: Sheaf of an Unsaturated Module](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/accessors.md#example-ex-0b6d9f)
- [Basic Constructions](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/more-cons.md)
  - [`TensorProduct(S, T): ShfCoh, ShfCoh → ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/more-cons.md#function-tensorproduct-shfcoh-shfcoh)
  - [`TensorPower(S, n): ShfCoh, RngIntElt → ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/more-cons.md#function-tensorpower-shfcoh-rngintelt)
  - [`Dual(S): ShfCoh → ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/more-cons.md#function-dual-shfcoh)
  - [`SheafHoms(S, T): ShfCoh, ShfCoh → ShfCoh, Map`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/more-cons.md#function-shf-shfhoms)
  - [`DirectSum(S, T): ShfCoh, ShfCoh → ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/more-cons.md#function-directsum-shfcoh-shfcoh)
  - [`Restriction(S, Y): ShfCoh, Sch → ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/more-cons.md#function-restriction-shfcoh-sch)
  - [Example: Ruling on a Quadric Cone](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/more-cons.md#example-ex-22d504)
- [Sheaf Homomorphisms](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/sheaf-homs.md)
  - [`SheafHomomorphism(S, T, h): ShfCoh, ShfCoh, ModMPolHom → ShfHom`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/sheaf-homs.md#function-sheafhomomorphism-shfcoh-shfcoh-modmpolhom)
  - [`Domain(f): ShfHom → ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/sheaf-homs.md#function-domain-shfhom)
  - [`Codomain(f): ShfHom → ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/sheaf-homs.md#function-codomain-shfhom)
  - [`Degree(f): ShfHom → RngIntElt`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/sheaf-homs.md#function-degree-shfhom)
  - [`ModuleHomomorphism(f): ShfHom → ModMPolHom`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/sheaf-homs.md#function-modulehomomorphism-shfhom)
  - [`Kernel(f): ShfHom → ShfCoh, ShfHom`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/sheaf-homs.md#function-kernel-shfhom)
  - [`Image(f): ShfHom → ShfCoh, ShfHom, ShfHom`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/sheaf-homs.md#function-image-shfhom)
  - [`Cokernel(f): ShfHom → ShfCoh, ShfHom`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/sheaf-homs.md#function-cokernel-shfhom)
  - [`Expand(hms): SeqEnum[ShfHom] → ShfHom`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/sheaf-homs.md#function-expand-seqenum-shfhom)
- [Divisor Maps and Riemann-Roch Spaces](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/div_maps.md)
  - [`DivisorMap(S): ShfCoh → Map, Sch`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/div_maps.md#function-divisormap-shfcoh)
  - [`DivisorToSheaf(X, I): Sch, RngMPol → ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/div_maps.md#function-shf-div-to-shf)
  - [`RiemannRochBasis(X, I): Sch, RngMPol → SeqEnum, RngMPolElt, ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/div_maps.md#function-riemannrochbasis-sch-rngmpol)
  - [`IneffectiveDivisorToSheaf(X, I, J): Sch, RngMPol, RngMPol → ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/div_maps.md#function-shf-ineff-div-to-shf)
  - [`IneffectiveRiemannRochBasis(X, I, J): Sch, RngMPol, RngMPol → SeqEnum, RngMPolElt, ShfCoh`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/div_maps.md#function-ineffectiveriemannrochbasis-sch-rngmpol-rngmpol)
  - [Example: Divisor Map of a Rational Scroll](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/div_maps.md#example-ex-72931f)
  - [Example: Blowing Down Lines by a Divisor Map](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/div_maps.md#example-ex-774e58)
- [Predicates](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/shf-preds.md)
  - [`IsLocallyFree(S): ShfCoh → BoolElt, RngIntElt`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/shf-preds.md#function-shf-loc-free)
  - [`IsIsomorphic(S, T): ShfCoh, ShfCoh → BoolElt, ShfHom`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/shf-preds.md#function-isisomorphic-shfcoh-shfcoh)
  - [`IsIsomorphicWithTwist(S, T): ShfCoh, ShfCoh → BoolElt, RngIntElt, ShfHom`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/shf-preds.md#function-isisomorphicwithtwist-shfcoh-shfcoh)
  - [`IsArithmeticallyCohenMacaulay(S): ShfCoh → BoolElt`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/shf-preds.md#function-shf-arith-cm)
- [Miscellaneous](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/shf-misc.md)
  - [`CohomologyDimension(S, r, n): ShfCoh, RngIntElt, RngIntElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/shf-misc.md#function-cohomologydimension-shfcoh-rngintelt-rngintelt)
  - [`DimensionOfGlobalSections(S): ShfCoh → RngIntElt`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/shf-misc.md#function-dimensionofglobalsections-shfcoh)
  - [`IntersectionPairing(S, T): ShfCoh, ShfCoh → RngIntElt`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/shf-misc.md#function-intersectionpairing-shfcoh-shfcoh)
  - [`ZeroSubscheme(S, s): ShfCoh, ModMPolElt → Sch`](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/shf-misc.md#function-zerosubscheme-shfcoh-modmpolelt)
- [Examples](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/shf-exs.md)
  - [Example: Rational Surface of Degree 10](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/shf-exs.md#example-ex-1d7a31)
  - [Example: Normalising a Coordinate Ring](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/shf-exs.md#example-ex-362695)
- [Bibliography](https://docs.magma-maths.org/v2.30-1/AlgebraicGeometry/Sheaves/bibliography.md)
