---
title: "Basis of a Module"
canonical: "https://docs.magma-maths.org/v2.30-1/Modules/ModulesOverDedekindDomains/basis.html"
source: "https://docs.magma-maths.org/v2.30-1/Modules/ModulesOverDedekindDomains/basis.md"
part: "Modules"
chapter: "Modules over Dedekind Domains"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Modules", "source": "https://docs.magma-maths.org/v2.30-1/Modules/index-modules.md"}
  - {"title": "Modules over Dedekind Domains", "source": "https://docs.magma-maths.org/v2.30-1/Modules/ModulesOverDedekindDomains/index-modules-over-dedekind-domains.md"}
prev: {"title": "Arithmetic with Modules", "source": "https://docs.magma-maths.org/v2.30-1/Modules/ModulesOverDedekindDomains/module-arith.md"}
next: {"title": "Other Functions on Modules", "source": "https://docs.magma-maths.org/v2.30-1/Modules/ModulesOverDedekindDomains/other.md"}
intrinsics:
  - {"name": "Basis", "signature": "Basis(M): ModDed -> SeqEnum"}
  - {"name": "PseudoBasis", "signature": "PseudoBasis(M): ModDed -> SeqEnum"}
  - {"name": "PseudoGenerators", "signature": "PseudoGenerators(M): ModDed -> SeqEnum"}
  - {"name": "LocalBasis", "signature": "LocalBasis(M, p): ModDed, RngOrdIdl -> [ ModTupFldElt ]"}
---

# Basis of a Module

The basis of a module is given by vectors. However, more complete information can be supplied which includes the ideals.

<a id="function-basis-modded"></a>
## `Basis(M): ModDed -> SeqEnum`

A sequence of vectors which correspond to a pseudo basis of the module $M$.

<a id="function-modded-pseudobasis"></a>
## `PseudoBasis(M): ModDed -> SeqEnum`

A sequence of tuples containing ideals and vectors which generate the module $M$. The vectors are guaranteed to be linearly independent.

<a id="function-pseudogenerators-modded"></a>
## `PseudoGenerators(M): ModDed -> SeqEnum`

A sequence of tuples containing ideals and vectors which generate the module $M$. This will return the data used to define the module, so that in contrast to [`PseudoBasis`](https://docs.magma-maths.org/v2.30-1/Modules/ModulesOverDedekindDomains/basis.md#function-modded-pseudobasis) the vectors will in general not be independent.

<a id="function-localbasis-modded-rngordidl"></a>
## `LocalBasis(M, p): ModDed, RngOrdIdl -> [ ModTupFldElt ]`

```magma
Type: MonStgElt                    Default: ""
```

Returns a basis of a free module $F$ that agrees with $M$ at the completion at $p$. If `Type` is specified, it must either be `"Submodule"` or `"Supermodule"`. In which case $F$ is either a sub- or supermodule of $M$.
