---
title: "Convex Polytopes and Polyhedra"
canonical: "https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/index-polytopes.html"
source: "https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/index-polytopes.md"
part: "Geometry"
chapter: "Convex Polytopes and Polyhedra"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Geometry", "source": "https://docs.magma-maths.org/v2.30-1/Geometry/index-geometry.md"}
prev: {"title": "Bibliography", "source": "https://docs.magma-maths.org/v2.30-1/Geometry/IncidenceGeometry/bibliography.md"}
next: {"title": "Introduction and First Examples", "source": "https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/introduction.md"}
---

<a id="polyhedra"></a>
<a id="pol"></a>
# Convex Polytopes and Polyhedra

- [Introduction and First Examples](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/introduction.md)
  - [Example: Polytope as a Convex Hull](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/introduction.md#example-ex-422724)
  - [Example: Cones Generated by Rays](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/introduction.md#example-ex-bab5a6)
- [Polytopes, Cones, and Polyhedra](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md)
  - [Polytopes](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#polytopes)
    - [`Polytope(Q): SeqEnum → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-polytope-seqenum)
    - [`PolyhedronWithInequalities(A,c): SeqEnum, [RngIntElt] → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-polyhedronwithinequalities-seqenum-rngintelt)
    - [`PolyhedronWithInequalities(A,c): [TorLatElt], [RngIntElt] → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-polyhedronwithinequalities-torlatelt-rngintelt)
    - [`RandomPolytope(L,n,k): TorLat, RngIntElt, RngIntElt → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-randompolytope-torlat-rngintelt-rngintelt)
    - [`RandomPolytope(d,n,k): RngIntElt, RngIntElt, RngIntElt → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-randompolytope-rngintelt-rngintelt-rngintelt)
    - [`BoundingBox(P): TorPol → TorPol, TorLatElt, TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-boundingbox-torpol)
    - [`Polar(P): TorPol → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-polar-torpol)
    - [`CrossPolytope(L): TorLat → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-crosspolytope-torlat)
    - [`CrossPolytope(d): RngIntElt → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-crosspolytope-rngintelt)
    - [`StandardSimplex(L): TorLat → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-standardsimplex-torlat)
    - [`StandardSimplex(d): RngIntElt → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-standardsimplex-rngintelt)
    - [`CyclicPolytope(L,n): TorLat, RngIntElt → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-cyclicpolytope-torlat-rngintelt)
    - [`CyclicPolytope(d,n): RngIntElt, RngIntElt → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-cyclicpolytope-rngintelt-rngintelt)
    - [`PolytopeOfProjectiveSpace(d): RngIntElt → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-polytopeofprojectivespace-rngintelt)
    - [`PolytopeOfProjectiveSpace(L): TorLat → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-polytopeofprojectivespace-torlat)
    - [`PolytopeOfWPS(d): RngIntElt → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-polytopeofwps-rngintelt)
    - [`PolytopeOfWPS(W): [RngIntElt] → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-polytopeofwps-rngintelt-2)
    - [`PolytopeOfWPS(L,W): [RngIntElt] → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-polytopeofwps-rngintelt-3)
  - [Cones](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#cones)
    - [`Cone(A): Seq → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-cone-seq)
    - [`Cone(v): TorLatElt → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-cone-torlatelt)
    - [`ConeWithInequalities(B): Set → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-conewithinequalities-set)
    - [`FullCone(L): TorLat → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-fullcone-torlat)
    - [`FullCone(n): RngIntElt → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-fullcone-rngintelt)
    - [`PositiveQuadrant(L): TorLat → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-positivequadrant-torlat)
    - [`PositiveQuadrant(n): RngIntElt → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-positivequadrant-rngintelt)
    - [`ZeroCone(L): TorLat → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-zerocone-torlat)
    - [`ZeroCone(n): RngIntElt → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-zerocone-rngintelt)
    - [`RandomCone(d,n,k): RngIntElt, RngIntElt, RngIntElt → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-randomcone-rngintelt-rngintelt-rngintelt)
    - [`RandomCone(L,n,k): TorLat, RngIntElt, RngIntElt → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-randomcone-torlat-rngintelt-rngintelt)
    - [`RandomPositiveCone(d,n,k): RngIntElt, RngIntElt, RngIntElt → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-randompositivecone-rngintelt-rngintelt-rngintelt)
    - [`RandomPositiveCone(L,n,k): TorLat, RngIntElt, RngIntElt → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-randompositivecone-torlat-rngintelt-rngintelt)
    - [`Dual(C): TorCon → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-dual-torcon)
    - [`NormalisedCone(P): TorPol → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-normalisedcone-torpol)
    - [`ConeInSublattice(C): TorCon → TorCon, Map`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-coneinsublattice-torcon)
    - [`ConeQuotientByLinearSubspace(C): TorCon → TorCon, Map, Map`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-conequotientbylinearsubspace-torcon)
    - [`SimplicialSubcone(C): TorCon → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-simplicialsubcone-torcon)
    - [`LatticeBasisInCone(C): TorCon → [TorLatElt]`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-latticebasisincone-torcon)
  - [Polyhedra](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#polyhedra)
    - [`Polyhedron(C,H,h): TorCon, TorLatElt, FldRatElt → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-polyhedron-torcon-torlatelt-fldratelt)
    - [`Polyhedron(C,H,h): TorCon, TorLatElt, RngIntElt → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-polyhedron-torcon-torlatelt-rngintelt)
    - [`Polyhedron(C): TorCon → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-polyhedron-torcon)
    - [`HalfspaceToPolyhedron(v,h): TorLatElt, FldRatElt → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-halfspacetopolyhedron-torlatelt-fldratelt)
    - [`HalfspaceToPolyhedron(Q,h): [FldRatElt], FldRatElt → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-halfspacetopolyhedron-fldratelt-fldratelt)
    - [`HyperplaneToPolyhedron(v,h): TorLatElt, FldRatElt → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-hyperplanetopolyhedron-torlatelt-fldratelt)
    - [`HyperplaneToPolyhedron(Q,h): [FldRatElt], FldRatElt → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-hyperplanetopolyhedron-fldratelt-fldratelt)
    - [`Polyhedron(C,f,v): TorCon, Map, TorLatElt → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-polyhedron-torcon-map-torlatelt)
    - [`EmptyPolyhedron(L): TorLat → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-emptypolyhedron-torlat)
    - [`ConeToPolyhedron(C): TorCon → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-conetopolyhedron-torcon)
    - [`PolyhedronInSublattice(P): TorPol → TorPol, Map, TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-polyhedroninsublattice-torpol)
    - [`FixedSubspaceToPolyhedron(G): GrpMat → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-fixedsubspacetopolyhedron-grpmat)
    - [`FixedSubspaceToPolyhedron(L,G): TorLat, GrpMat → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#function-fixedsubspacetopolyhedron-torlat-grpmat)
    - [Example: Polyhedra as Slices of a Quadrant](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#example-ex-d6dc93)
  - [Arithmetic Operations on Polyhedra](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#arithmetic-operations-on-polyhedra)
    - [`C eq D: TorCon, TorCon → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#operation-op-eq-torcon-torcon)
    - [`P eq Q: TorPol, TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#operation-op-eq-torpol-torpol)
    - [`C meet D: TorCon, TorCon → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#operation-op-meet-torcon-torcon)
    - [`P meet Q: TorPol, TorPol → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#operation-op-meet-torpol-torpol)
    - [`P subset Q: TorPol, TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#operation-op-subset-torpol-torpol)
    - [`C + D: TorCon, TorCon → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#operation-op-plus-torcon-torcon)
    - [`P + Q: TorPol, TorPol → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#operation-op-plus-torpol-torpol)
    - [`P + C: TorPol, TorCon → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#operation-op-plus-torpol-torcon)
    - [`C + P: TorCon, TorPol → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#operation-op-plus-torcon-torpol)
    - [`P * Q: TorPol, TorPol → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#operation-op-times-torpol-torpol)
    - [`k * P: FldRatElt, TorPol → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#operation-op-times-fldratelt-torpol)
    - [`- P: TorPol → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/polytopes-cones-polyhedra.md#operation-operation-torpol-torpol)
- [Basic Combinatorics of Polytopes and Polyhedra](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md)
  - [Vertices and Inequalities](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#vertices-and-inequalities)
    - [`Vertices(P): TorPol → SeqEnum[TorLatElt]`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-vertices-torpol)
    - [`NumberOfVertices(P): TorPol → RngIntElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-numberofvertices-torpol)
    - [`Rays(C): TorCon → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-rays-torcon)
    - [`Ray(C,i): TorCon, RngIntElt → TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-ray-torcon-rngintelt)
    - [`LinearSpanEquations(C): TorCon → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-linearspanequations-torcon)
    - [`LinearSpanEquations(Q): [TorLatElt] → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-linearspanequations-torlatelt)
    - [`LinearSpanGenerators(C): TorCon → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-linearspangenerators-torcon)
    - [`LinearSpanGenerators(Q): [TorLatElt] → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-linearspangenerators-torlatelt)
    - [`LinearSubspaceGenerators(C): TorCon → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-linearsubspacegenerators-torcon)
    - [`Inequalities(C): TorCon → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-inequalities-torcon)
    - [`Inequalities(P): TorPol → SeqEnum, RngIntElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-inequalities-torpol)
    - [`MinimalInequalities(C): TorCon → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-minimalinequalities-torcon)
    - [`MatrixOfInequalities(R,C): Rng, TorCon → ModMatRngElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-matrixofinequalities-rng-torcon)
    - [`MatrixOfInequalities(C): TorCon → ModMatRngElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-matrixofinequalities-torcon)
    - [Example: Inequalities Defining a Polytope](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#example-ex-b4cdf2)
    - [`NormalCone(P,F): TorPol, TorPol → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-normalcone-torpol-torpol)
    - [`NormalEdgeCones(P): TorPol → [TorCon]`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-normaledgecones-torpol)
    - [`InnerNormal(C): TorCon → TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-innernormal-torcon)
    - [`OuterNormal(C): TorCon → TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-outernormal-torcon)
  - [Facets and Faces](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#facets-and-faces)
    - [`fVector(C): TorCon → SeqEnum[RngIntElt]`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-fvector-torcon)
    - [`fVector(P): TorPol → SeqEnum[RngIntElt]`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-fvector-torpol)
    - [`hVector(C): TorCon → SeqEnum[RngIntElt]`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-hvector-torcon)
    - [`hVector(P): TorPol → SeqEnum[RngIntElt]`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-hvector-torpol)
    - [`Facets(C): TorCon → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-facets-torcon)
    - [`Facets(P): TorPol → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-facets-torpol)
    - [`FacetIndices(P): TorPol → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-facetindices-torpol)
    - [`NumberOfFacets(P): TorPol → RngIntElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-numberoffacets-torpol)
    - [`Faces(C): TorCon → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-faces-torcon)
    - [`Faces(P): TorPol → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-faces-torpol)
    - [`Faces(C,i): TorCon, RngIntElt → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-faces-torcon-rngintelt)
    - [`Faces(P,i): TorPol, RngIntElt → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-faces-torpol-rngintelt)
    - [`FaceIndices(P,i): TorPol, RngIntElt → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-faceindices-torpol-rngintelt)
    - [`NumberOfFaces(P,i): TorPol, RngIntElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-numberoffaces-torpol-rngintelt)
    - [`Edges(P): TorPol → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-edges-torpol)
    - [`EdgeIndices(P): TorPol → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-edgeindices-torpol)
    - [`NumberOfEdges(P): TorPol → RngIntElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-numberofedges-torpol)
    - [`Graph(P): TorPol → GrphUnd`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-graph-torpol)
    - [`FaceSupportedBy(C,H): TorCon, TorLatElt → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-facesupportedby-torcon-torlatelt)
    - [`IsSupportingHyperplane(v,h,P): TorLatElt, FldRatElt, TorPol → BoolElt, RngIntElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-issupportinghyperplane-torlatelt-fldratelt-torpol)
    - [`SupportingCone(P,v): TorPol, TorLatElt → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-supportingcone-torpol-torlatelt)
    - [`IsFace(C,F): TorCon, TorCon → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-isface-torcon-torcon)
    - [`IsFace(P,F): TorPol, TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/basic-combinatorics.md#function-isface-torpol-torpol)
- [The Combinatorics of Polytopes](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md)
  - [Points in Polytopes and Polyhedra](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#points-in-polytopes-and-polyhedra)
    - [`v in C: TorLatElt, TorCon → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#operation-op-in-torlatelt-torcon)
    - [`v in P: TorLatElt, TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#operation-op-in-torlatelt-torpol)
    - [`IsInInterior(v,C): TorLatElt, TorCon → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-isininterior-torlatelt-torcon)
    - [`IsInInterior(v,P): TorLatElt, TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-isininterior-torlatelt-torpol)
    - [`IsOnBoundary(v,C): TorLatElt, TorCon → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-isonboundary-torlatelt-torcon)
    - [`IsOnBoundary(v,P): TorLatElt, TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-isonboundary-torlatelt-torpol)
    - [`HasIntegralPoint(P): TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-hasintegralpoint-torpol)
    - [`Points(P): TorPol → SeqEnum[TorLatElt]`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-points-torpol)
    - [`InteriorPoints(P): TorPol → SeqEnum[TorLatElt]`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-interiorpoints-torpol)
    - [`BoundaryPoints(P): TorPol → SeqEnum[TorLatElt]`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-boundarypoints-torpol)
    - [`NumberOfPoints(P): TorPol → RngIntElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-numberofpoints-torpol)
    - [`NumberOfInteriorPoints(P): TorPol → RngIntElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-numberofinteriorpoints-torpol)
    - [`NumberOfBoundaryPoints(P): TorPol → RngIntElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-numberofboundarypoints-torpol)
    - [`Volume(P): TorPol → FldRatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-volume-torpol)
    - [`VolumeOfBoundary(P): TorPol → FldRatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-volumeofboundary-torpol)
  - [Ehrhart Theory of Polytopes](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#ehrhart-theory-of-polytopes)
    - [`EhrhartSeries(P): TorPol → FldFunRatUElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-ehrhartseries-torpol)
    - [`EhrhartDeltaVector(P): TorPol → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-ehrhartdeltavector-torpol)
    - [`EhrhartPolynomial(P): TorPol → [RngUPolElt]`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-ehrhartpolynomial-torpol)
    - [`EhrhartCoefficients(P,l): TorPol, RngIntElt → [RngIntElt]`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-ehrhartcoefficients-torpol-rngintelt)
    - [`EhrhartCoefficient(P,k): TorPol, RngIntElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-ehrhartcoefficient-torpol-rngintelt)
  - [Isomorphism Testing and Normal Forms for Polytopes](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#isomorphism-testing-and-normal-forms-for-polytopes)
    - [`IsIsomorphic(P,Q): TorPol, TorPol → BoolElt, Map`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-isisomorphic-torpol-torpol)
    - [Example: Isomorphism Testing for Polytopes](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#example-ex-66ee55)
    - [`IsEquivalent(P,Q): TorPol, TorPol → BoolElt, Map, TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-isequivalent-torpol-torpol)
    - [`NormalForm(P): TorPol → SeqEnum, GrpPermElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-normalform-torpol)
    - [`PALPNormalForm(P): TorPol → SeqEnum, GrpPermElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-palpnormalform-torpol)
    - [Example: Normal Form of a Lattice Polytope](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#example-ex-3bf045)
    - [`AffineNormalForm(P): TorPol → SeqEnum, GrpPermElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-affinenormalform-torpol)
    - [Example: Classifying Polygons by Affine Normal Form](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#example-ex-7e87a2)
    - [`MaximalVertexFacetHeightMatrix(P): TorPol → AlgMatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-maximalvertexfacetheightmatrix-torpol)
  - [Automorphisms of a Polytope](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#automorphisms-of-a-polytope)
    - [`AutomorphismGroup(P): TorPol → GrpMat`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-automorphismgroup-torpol)
    - [Example: Automorphism Group of a Polytope](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#example-ex-49a1bb)
  - [Operations on Polytopes](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#operations-on-polytopes)
    - [`Triangulation(P): TorPol → SetEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-triangulation-torpol)
    - [`TriangulationOfBoundary(P): TorPol → SetEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/combinatorics.md#function-triangulationofboundary-torpol)
- [Cones and Polyhedra](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md)
  - [Generators of Cones](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#generators-of-cones)
    - [`BoxElements(C): TorCon → SetEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-boxelements-torcon)
    - [Example: Box Elements of a Simplicial Cone](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#example-ex-6a5b6c)
    - [`HilbertBasis(C): TorCon → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-hilbertbasis-torcon)
    - [`ZGenerators(C): TorCon → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-zgenerators-torcon)
    - [`RGenerators(C): TorCon → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-rgenerators-torcon)
    - [`MinimalRGenerators(C): TorCon → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-minimalrgenerators-torcon)
    - [`Points(C,H,h): TorCon, TorLatElt, FldRatElt → SetEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-points-torcon-torlatelt-fldratelt)
    - [Example: Cone Generators in a Sublattice](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#example-ex-7976dc)
    - [`QuotientGenerators(C): TorCon → SetEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-quotientgenerators-torcon)
    - [Example: Cone of a Cyclic Quotient Singularity](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#example-ex-badd91)
  - [Properties of Polyhedra](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#properties-of-polyhedra)
    - [`CompactPart(P): TorPol → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-compactpart-torpol)
    - [`IntegralPart(P): TorPol → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-integralpart-torpol)
    - [`InfinitePart(P): TorPol → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-infinitepart-torpol)
    - [`IsEmpty(P): TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-isempty-torpol)
    - [Example: Polar Polyhedron of a Polytope](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#example-ex-a585a6)
    - [Example: Polyhedron from a Cone](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#example-ex-d24d32)
    - [`IsMaximumDimensional(C): TorCon → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-ismaximumdimensional-torcon)
    - [`IsMaximumDimensional(P): TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-ismaximumdimensional-torpol)
    - [`IsStrictlyConvex(C): TorCon → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-isstrictlyconvex-torcon)
    - [`IsLinearSpace(C): TorCon → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-islinearspace-torcon)
    - [`IsLinearSpace(P): TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-islinearspace-torpol)
    - [`IsSimplicial(C): TorCon → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-issimplicial-torcon)
    - [`IsSimplicial(P): TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-issimplicial-torpol)
    - [`IsSimplex(P): TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-issimplex-torpol)
    - [`IsSimple(P): TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-issimple-torpol)
    - [`IsAffineLinear(P): TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-isaffinelinear-torpol)
    - [`IsZero(C): TorCon → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-iszero-torcon)
    - [`ContainsZero(P): TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-containszero-torpol)
    - [`IsPointed(P): TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-ispointed-torpol)
    - [`IsFlag(P): TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-isflag-torpol)
    - [`IsPerfectlyCentered(P): TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-isperfectlycentered-torpol)
    - [`IsIntegrallyClosed(P): TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-isintegrallyclosed-torpol)
  - [Attributes of Polyhedra](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#attributes-of-polyhedra)
    - [`IsPolytope(P): TorPol → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-ispolytope-torpol)
    - [`Dimension(C): TorCon → RngIntElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-dimension-torcon)
    - [`Dimension(P): TorPol → RngIntElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-dimension-torpol)
    - [`Degree(P): TorPol → RngIntElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-degree-torpol)
    - [`Codegree(P): TorPol → RngIntElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-codegree-torpol)
    - [`Index(C): TorCon → RngIntElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-index-torcon)
    - [`Width(P): TorPol → FldRatElt, SetEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-width-torpol)
    - [`Width(P,u): TorPol, TorLatElt → FldRatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-width-torpol-torlatelt)
    - [Example: Lattice Width of a Polytope](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#example-ex-d2ed42)
    - [`IsPyramid(P): TorPol → BoolElt, TorLatElt, TorPol, Map, TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-ispyramid-torpol)
    - [`Pyramid(P): TorPol → TorPol, Map, Map, Map, Map`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-pyramid-torpol)
    - [Example: Recognising a Pyramid](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#example-ex-0b2d83)
    - [`VertexEdgeIncidenceMatrix(P): TorPol → ModMatRngElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-vertexedgeincidencematrix-torpol)
    - [`VertexFacetIncidenceMatrix(P): TorPol → ModMatRngElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-vertexfacetincidencematrix-torpol)
    - [`VertexFacetHeightMatrix(P): TorPol → AlgMatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-vertexfacetheightmatrix-torpol)
    - [`EdgeFacetIncidenceMatrix(P): TorPol → ModMatRngElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-edgefacetincidencematrix-torpol)
  - [Combinatorics of Polyhedral Complexes](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#combinatorics-of-polyhedral-complexes)
    - [`Ambient(C): TorCon → TorLat`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-ambient-torcon)
    - [`Ambient(P): TorPol → TorLat`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-ambient-torpol)
    - [`ChangeAmbient(C,L): TorCon, TorLat → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-changeambient-torcon-torlat)
    - [`ChangeAmbient(P,L): TorPol, TorLat → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/cones-polyhedra.md#function-changeambient-torpol-torlat)
- [Toric Lattices](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md)
  - [Toric Lattices](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#id1)
    - [`ToricLattice(n): RngIntElt → TorLat`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-toriclattice-rngintelt)
    - [`ScalarLattice() → TorLat`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-scalarlattice)
    - [Example: Summing an Empty Sequence of Points](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#example-ex-baeb7b)
    - [`Dual(L): TorLat → TorLat`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-dual-torlat)
    - [Example: Dual Toric Lattice](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#example-ex-81a499)
    - [`L + M: TorLat, TorLat → TorLat, TorLatMap, TorLatMap, TorLatMap, TorLatMap`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#operation-op-plus-torlat-torlat)
    - [`DirectSum(L,M): TorLat, TorLat → TorLat, TorLatMap, TorLatMap, TorLatMap, TorLatMap`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-directsum-torlat-torlat)
    - [`DirectSum(Q): SeqEnum → TorLat, TorLatMap, TorLatMap, TorLatMap, TorLatMap`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-directsum-seqenum)
    - [`L ^ n: TorLat, RngIntElt → TorLat, SeqEnum, SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#operation-op-pow-torlat-rngintelt)
    - [`Dimension(L): TorLat → RngIntElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-dimension-torlat)
  - [Points of Toric Lattices](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#points-of-toric-lattices)
    - [`L ! [a,b,...]: TorLat, [RngIntElt] → TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#operation-op-torlat-rngintelt)
    - [`LatticeVector(L,Q): TorLat, [RngIntElt] → TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-latticevector-torlat-rngintelt)
    - [`LatticeVector(Q): [RngIntElt] → TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-latticevector-rngintelt)
    - [`L . i: TorLat, RngIntElt → TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#operation-operation-torlat-rngintelt-torlatelt)
    - [`Basis(L,i): TorLat, RngIntElt → TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-basis-torlat-rngintelt)
    - [`Basis(L): TorLat → TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-basis-torlat)
    - [`Form(L,Q): TorLat, [RngIntElt] → TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-form-torlat-rngintelt)
    - [`Zero(L): TorLat → TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-zero-torlat)
    - [`P + Q: TorLatElt, TorLatElt → TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#operation-op-plus-torlatelt-torlatelt)
    - [`P - Q: TorLatElt, TorLatElt → TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#operation-op-minus-torlatelt-torlatelt)
    - [`n * P: FldRatElt, TorLatElt → TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#operation-op-times-fldratelt-torlatelt)
    - [`P / n: TorLatElt, FldRatElt → TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#operation-op-div-torlatelt-fldratelt)
    - [`P eq Q: TorLatElt, TorLatElt → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#operation-op-eq-torlatelt-torlatelt)
    - [`AreProportional(P,Q): TorLatElt, TorLatElt → BoolElt, FldRatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-areproportional-torlatelt-torlatelt)
    - [`P / Q: TorLatElt, TorLatElt → FldRatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#operation-op-div-torlatelt-torlatelt)
    - [Example: Arithmetic with Toric Lattice Points](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#example-ex-817cf9)
    - [`v in L: TorLatElt, TorLat → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#operation-op-in-torlatelt-torlat)
    - [`Matrix(R,S): Rng, [TorLatElt] → ModMatRngElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-matrix-rng-torlatelt)
    - [`Matrix(S): [TorLatElt] → ModMatRngElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-matrix-torlatelt)
    - [`Vector(v): TorLatElt → ModTupFldElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-vector-torlatelt)
    - [`IsZero(v): TorLatElt → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-iszero-torlatelt)
    - [`IsIntegral(v): TorLatElt → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-isintegral-torlatelt)
    - [`IsPrimitive(v): TorLatElt → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-isprimitive-torlatelt)
    - [`PrimitiveLatticeVector(v): TorLatElt → TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-primitivelatticevector-torlatelt)
    - [Example: Primitive Points in a Sublattice](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#example-ex-db5829)
  - [Operations on Toric Lattices](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#operations-on-toric-lattices)
    - [`L eq K: TorLat, TorLat → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#operation-op-eq-torlat-torlat)
    - [`Sublattice(Q): [TorLatElt] → TorLat, TorLatMap`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-sublattice-torlatelt)
    - [`ToricLattice(Q): [[RngIntElt]] → TorLat, TorLatMap`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-toriclattice-rngintelt-2)
    - [`Quotient(C): TorCon → TorLat, TorLatMap`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-quotient-torcon)
    - [`Quotient(Q): [TorLatElt] → TorLat, TorLatMap`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-quotient-torlatelt)
    - [`Quotient(v): TorLatElt → TorLat, TorLatMap`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-quotient-torlatelt-2)
    - [`AddVectorToLattice(v): TorLatElt → TorLat, TorLatMap`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-addvectortolattice-torlatelt)
    - [`AddVectorToLattice(Q): [TorLatElt] → TorLat, TorLatMap`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-addvectortolattice-torlatelt-2)
    - [`AreGenerators(S): SetEnum → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-aregenerators-setenum)
    - [`IsSublattice(L): TorLat → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-issublattice-torlat)
    - [`IsSuperlattice(L): TorLat → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-issuperlattice-torlat)
    - [`IsDirectSum(L): TorLat → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-isdirectsum-torlat)
    - [`IsQuotient(L): TorLat → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-isquotient-torlat)
    - [`Sublattice(L): TorLat → TorLat, TorLatMap`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-sublattice-torlat)
    - [`Superlattice(L): TorLat → TorLat, TorLatMap`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-superlattice-torlat)
    - [`Summands(L): TorLat → SeqEnum, SeqEnum, SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-summands-torlat)
    - [Example: Basis of a Toric Sublattice](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#example-ex-2fbe11)
  - [Maps of Toric Lattices](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#maps-of-toric-lattices)
    - [`ZeroMap(L,K): TorLat, TorLat → TorLatMap`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-zeromap-torlat-torlat)
    - [`IdentityMap(L): TorLat → TorLatMap`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-identitymap-torlat)
    - [`hom< L -> K | M >: TorLat, TorLat, Mtrx → TorLatMap`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#constructor-constructor-hom-torlat-torlat-mtrx-torlatmap)
    - [`LatticeMap(L,K,M): TorLat, TorLat, Mtrx → TorLatMap`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-latticemap-torlat-torlat-mtrx)
    - [`LatticeMap(L,Q): TorLat, [TorLatElt] → TorLatMap`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-latticemap-torlat-torlatelt)
    - [`DefiningMatrix(f): TorLatMap → ModMatRngElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-definingmatrix-torlatmap)
    - [`Image(f,C): TorLatMap, TorCon → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-image-torlatmap-torcon)
    - [`Image(f,P): TorLatMap, TorPol → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-image-torlatmap-torpol)
    - [`Image(f,v): TorLatMap, TorLatElt → TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-image-torlatmap-torlatelt)
    - [`Preimage(f,C): TorLatMap, TorCon → TorCon`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-preimage-torlatmap-torcon)
    - [`Preimage(f,P): TorLatMap, TorPol → TorPol`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-preimage-torlatmap-torpol)
    - [`Preimage(f,v): TorLatMap, TorLatElt → TorLatElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-preimage-torlatmap-torlatelt)
    - [`KernelEmbedding(f): TorLatMap → Map`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-kernelembedding-torlatmap)
    - [`KernelEmbedding(v): TorLatElt → Map`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-kernelembedding-torlatelt)
    - [`KernelBasis(f): TorLatMap → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-kernelbasis-torlatmap)
    - [`KernelBasis(v): TorLatElt → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-kernelbasis-torlatelt)
    - [`ImageBasis(f): TorLatMap → SeqEnum`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-imagebasis-torlatmap)
    - [`IsCokernelTorsionFree(f): TorLatMap → BoolElt`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-iscokerneltorsionfree-torlatmap)
    - [`ChangeBasis(v): TorLatElt → Map`](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#function-changebasis-torlatelt)
    - [Example: Change of Basis Revealing Lattice Width](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/toric-lattices.md#example-ex-03b562)
- [Bibliography](https://docs.magma-maths.org/v2.30-1/Geometry/Polytopes/bibliography.md)
