---
title: "Algebraic-Geometric Codes"
canonical: "https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/index-algebraic-geometric-codes.html"
source: "https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/index-algebraic-geometric-codes.md"
part: "Coding Theory"
chapter: "Algebraic-Geometric Codes"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Coding Theory", "source": "https://docs.magma-maths.org/v2.30-1/CodingTheory/index-coding-theory.md"}
prev: {"title": "Bibliography", "source": "https://docs.magma-maths.org/v2.30-1/CodingTheory/LinearCodes/bibliography.md"}
next: {"title": "Introduction", "source": "https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/introduction.md"}
---

<a id="error-correcting-linear-code"></a>
<a id="chap-codealg"></a>
# Algebraic-Geometric Codes

- [Introduction](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/introduction.md)
- [Creation of an Algebraic Geometric Code](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/creation.md)
  - [`AlgebraicGeometricCode(S, D): [PlcCrvElt], DivCrvElt → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/creation.md#function-algebraicgeometriccode-plccrvelt-divcrvelt)
  - [`AGCode(S, D): [PlcCrvElt], DivCrvElt → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/creation.md#function-agcode-plccrvelt-divcrvelt)
  - [`AlgebraicGeometricDualCode(S, D): [PlcCrvElt], DivCrvElt → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/creation.md#function-algebraicgeometricdualcode-plccrvelt-divcrvelt)
  - [`AGDualCode(S, D): [PlcCrvElt], DivCrvElt → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/creation.md#function-agdualcode-plccrvelt-divcrvelt)
  - [`HermitianCode(q, r): RngIntElt, RngIntElt → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/creation.md#function-hermitiancode-rngintelt-rngintelt)
  - [Example: Algebraic Geometric Code from a Genus 1 Curve](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/creation.md#example-ex-239058)
  - [Example: Algebraic Geometric Code from a Genus 4 Curve](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/creation.md#example-ex-24ba2f)
- [Properties of AG–Codes](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/properties.md)
  - [`IsWeaklyAG(C): Code → BoolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/properties.md#function-isweaklyag-code)
  - [`IsWeaklyAGDual(C): Code → BoolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/properties.md#function-isweaklyagdual-code)
  - [`IsAlgebraicGeometric(C): Code → BoolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/properties.md#function-isalgebraicgeometric-code)
  - [`IsStronglyAG(C): Code → BoolElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/properties.md#function-isstronglyag-code)
- [Access Functions](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/access.md)
  - [`Curve(C): Code → Crv`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/access.md#function-curve-code)
  - [`GeometricSupport(C): Code → DivCrvElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/access.md#function-geometricsupport-code)
  - [`Divisor(C): Code → DivCrvElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/access.md#function-divisor-code)
  - [`GoppaDesignedDistance(C): Code → RngIntElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/access.md#function-goppadesigneddistance-code)
- [Decoding AG Codes](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/decode.md)
  - [`AGDecode(C, v, Fd): CodeLinFld, ModTupFldElt, DivCrvElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/decode.md#function-agdecode-codelinfld-modtupfldelt-divcrvelt)
  - [Example: Decoding an Algebraic Geometric Code](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/decode.md#example-ex-a1eda2)
- [Toric Codes](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/decode-2.md)
  - [`ToricCode(P, q): TorPol, RngIntElt → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/decode-2.md#function-toriccode-torpol-rngintelt)
  - [`ToricCode(S, q): SeqEnum[TorLatElt], RngIntElt → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/decode-2.md#function-toriccode-seqenum-torlatelt-rngintelt)
  - [`ToricCode(S, q): SetEnum[TorLatElt], RngIntElt → Code`](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/decode-2.md#function-toriccode-setenum-torlatelt-rngintelt)
  - [Example: Toric Code from a Polygon](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/decode-2.md#example-ex-deddf3)
- [Bibliography](https://docs.magma-maths.org/v2.30-1/CodingTheory/AlgebraicGeometricCodes/bibliography.md)
