---
title: "Brandt Modules"
canonical: "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/index-brandt-modules.html"
source: "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/index-brandt-modules.md"
part: "Modular Arithmetic Geometry"
chapter: "Brandt Modules"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Modular Arithmetic Geometry", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/index-modular-arithmetic-geometry.md"}
prev: {"title": "Bibliography", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/ModularSymbols/bibliography.md"}
next: {"title": "Introduction", "source": "https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-introduction.md"}
---

<a id="modbrdt"></a>
<a id="id1"></a>
# Brandt Modules

- [Introduction](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-introduction.md)
- [Brandt Module Creation](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md)
  - [`BrandtModule(D): RngIntElt → ModBrdt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-brandtmodule-rngintelt)
  - [`BrandtModule(D, m): RngIntElt, RngIntElt → ModBrdt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-brandtmodule-rngintelt-rngintelt)
  - [`BrandtModule(A): AlgQuatOrd → ModBrdt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-brandtmodule-algquatord)
  - [`BrandtModule(A, R): AlgQuatOrd, Rng → ModBrdt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-brandtmodule-algquatord-rng)
  - [`BaseExtend(M, R): ModBrdt, Rng → ModBrdt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-baseextend-modbrdt-rng)
  - [`BrandtModule(M, N): AlgQuatOrd, RngElt → ModBrdt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-brandtmodule-algquatord-rngelt)
  - [Example: Brandt Module over a Finite Field](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#example-ex-800093)
  - [Creation of Elements](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#creation-of-elements)
    - [`M ! x: ModBrdt, . → ModBrdtElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#operation-op-modbrdt)
    - [`M . i: ModBrdt, RngIntElt → ModBrdtElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#operation-operation-modbrdt-rngintelt-modbrdtelt)
  - [Operations on Elements](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#operations-on-elements)
    - [`a * x: RngElt, ModBrdtElt → ModBrdtElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#operation-op-times-rngelt-modbrdtelt)
    - [`x * a: ModBrdtElt, RngElt → ModBrdtElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#operation-op-times-modbrdtelt-rngelt)
    - [`x * T: ModBrdtElt, AlgMatElt → ModBrdtElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#operation-op-times-modbrdtelt-algmatelt)
    - [`x + y: ModBrdtElt, ModBrdtElt → ModBrdtElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#operation-op-plus-modbrdtelt-modbrdtelt)
    - [`x - y: ModBrdtElt, ModBrdtElt → ModBrdtElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#operation-op-minus-modbrdtelt-modbrdtelt)
    - [`x eq y: ModBrdtElt, ModBrdtElt → BoolElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#operation-op-eq-modbrdtelt-modbrdtelt)
    - [`Eltseq(x): ModBrdtElt → SeqEnum`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-eltseq-modbrdtelt)
    - [`InnerProduct(x, y): ModBrdtElt, ModBrdtElt → RngElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-innerproduct-modbrdtelt-modbrdtelt)
    - [`Norm(x): ModBrdtElt → RngElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-norm-modbrdtelt)
  - [Categories and Parent](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#categories-and-parent)
    - [`Category(M): ModBrdt → Cat`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-category-modbrdt)
    - [`Type(M): ModBrdt → Cat`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-type-modbrdt)
    - [`Category(x): ModBrdtElt → Cat`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-category-modbrdtelt)
    - [`Type(x): ModBrdtElt → Cat`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-type-modbrdtelt)
    - [`Parent(x): ModBrdtElt → ModBrdt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-parent-modbrdtelt)
    - [`x in M: ModBrdtElt, ModBrdt → BoolElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#operation-op-in-modbrdtelt-modbrdt)
  - [Elementary Invariants](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#elementary-invariants)
    - [`Level(M): ModBrdt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-level-modbrdt)
    - [`Discriminant(M): ModBrdt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-discriminant-modbrdt)
    - [`Conductor(M): ModBrdt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-conductor-modbrdt)
    - [`BaseRing(M): ModBrdt → Rng`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-basering-modbrdt)
    - [`Basis(M): ModBrdt → SeqEnum`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-basis-modbrdt)
  - [Associated Structures](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#associated-structures)
    - [`AmbientModule(M): ModBrdt → ModBrdt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-ambientmodule-modbrdt)
    - [`IsAmbient(M): ModBrdt → BoolElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-isambient-modbrdt)
    - [`Dimension(M): ModBrdt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-dimension-modbrdt)
    - [`Rank(M): ModBrdt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-rank-modbrdt)
    - [`Degree(M): ModBrdt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-degree-modbrdt)
    - [`GramMatrix(M): ModBrdt → AlgMatElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-grammatrix-modbrdt)
    - [`InnerProductMatrix(M): ModBrdt → AlgMatElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-innerproductmatrix-modbrdt)
    - [Example: Recovering the Ambient Module](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#example-ex-3bb6f4)
    - [`Ideals(M): ModBrdt → []`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#function-ideals-modbrdt)
  - [Verbose Output](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#verbose-output)
    - [Example: Verbose Brandt Module Creation](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-brandt-modules.md#example-ex-15591a)
- [Subspaces and Decomposition](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-Subspaces.md)
  - [`EisensteinSubspace(M): ModBrdt → ModBrdt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-Subspaces.md#function-eisensteinsubspace-modbrdt)
  - [`CuspidalSubspace(M): ModBrdt → ModBrdt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-Subspaces.md#function-cuspidalsubspace-modbrdt)
  - [`OrthogonalComplement(M): ModBrdt → ModBrdt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-Subspaces.md#function-orthogonalcomplement-modbrdt)
  - [`M meet N: ModBrdt, ModBrdt → ModBrdt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-Subspaces.md#operation-op-meet-modbrdt-modbrdt)
  - [`Decomposition(M, B): ModBrdt, RngIntElt → [ModBrdt]`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-Subspaces.md#function-decomposition-modbrdt-rngintelt)
  - [`SortDecomposition(D): [ModBrdt] → SeqEnum`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-Subspaces.md#function-sortdecomposition-modbrdt)
  - [Example: Decomposing a Brandt Module](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-Subspaces.md#example-ex-5a913e)
  - [Boolean Tests on Subspaces](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-Subspaces.md#boolean-tests-on-subspaces)
    - [`IsEisenstein(M): ModBrdt → BoolElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-Subspaces.md#function-iseisenstein-modbrdt)
    - [`IsCuspidal(M): ModBrdt → BoolElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-Subspaces.md#function-iscuspidal-modbrdt)
    - [`IsIndecomposable(M, B): ModBrdt, RngIntElt → BoolElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-Subspaces.md#function-isindecomposable-modbrdt-rngintelt)
    - [`M1 subset M2: ModBrdt, ModBrdt → BoolElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-Subspaces.md#operation-op-subset-modbrdt-modbrdt)
    - [`M1 lt M2: ModBrdt, ModBrdt → BoolElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-Subspaces.md#operation-op-lt-modbrdt-modbrdt)
    - [`M1 gt M2: ModBrdt, ModBrdt → BoolElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-Subspaces.md#operation-op-gt-modbrdt-modbrdt)
    - [Example: Eisenstein and Cuspidal Subspaces](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-Subspaces.md#example-ex-577acc)
- [Hecke Operators](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/hecke-operators.md)
  - [`HeckeOperator(M, n): ModBrdt, RngIntElt → AlgMatElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/hecke-operators.md#function-heckeoperator-modbrdt-rngintelt)
  - [`AtkinLehnerOperator(M, p): ModBrdt, RngIntElt → AlgMatElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/hecke-operators.md#function-atkinlehneroperator-modbrdt-rngintelt)
- [$q$-Expansions](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/qexpansions.md)
  - [`ThetaSeries(x, y, prec): ModBrdtElt, ModBrdtElt, RngIntElt → RngSerElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/qexpansions.md#function-thetaseries-modbrdtelt-modbrdtelt-rngintelt)
  - [`qExpansionBasis(M, prec): ModBrdt, RngIntElt → SeqEnum`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/qexpansions.md#function-qexpansionbasis-modbrdt-rngintelt)
- [Dimensions of Spaces](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-dimension-formulas.md)
  - [`BrandtModuleDimension(D, N): RngIntElt, RngIntElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-dimension-formulas.md#function-brandtmoduledimension-rngintelt-rngintelt)
  - [Example: Dimensions of Brandt Modules](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-dimension-formulas.md#example-ex-4ee604)
- [Brandt Modules Over $F_q[t]$](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-fldfunrat.md)
  - [`BrandtModuleDimension(D, N): RngElt, RngElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-fldfunrat.md#function-brandtmoduledimension-rngelt-rngelt)
  - [`BrandtModuleDimensionOfNewSubspace(D, N): RngElt, RngElt → RngIntElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-fldfunrat.md#function-brandtmoduledimensionofnewsubspace-rngelt-rngelt)
  - [`BrandtModule(M, N): AlgQuatOrd, RngElt → ModBrdt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-fldfunrat.md#function-brandtmodule-algquatord-rngelt-2)
  - [`QuaternionOrder(M): ModBrdt → AlgQuatOrd`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-fldfunrat.md#function-quaternionorder-modbrdt)
  - [`Level(M): ModBrdt → RngElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-fldfunrat.md#function-level-modbrdt-2)
  - [`Discriminant(M): ModBrdt → RngElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-fldfunrat.md#function-discriminant-modbrdt-2)
  - [`Conductor(M): ModBrdt → RngElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-fldfunrat.md#function-conductor-modbrdt-2)
  - [`Ideals(M): ModBrdt → []`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-fldfunrat.md#function-ideals-modbrdt-2)
  - [`InnerProductMatrix(M): ModBrdt → AlgMatElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-fldfunrat.md#function-innerproductmatrix-modbrdt-2)
  - [`HeckeOperator(M, n): ModBrdtNew, RngElt → Mtrx`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-fldfunrat.md#function-heckeoperator-modbrdtnew-rngelt)
  - [`HeckeEigenvectors(M): ModBrdt → [ ModBrdt ]`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-fldfunrat.md#function-heckeeigenvectors-modbrdt)
  - [`HeckeEigenvalue(f, p): ModBrdtElt, RngElt → RngElt`](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/ModBrdt-fldfunrat.md#function-heckeeigenvalue-modbrdtelt-rngelt)
- [Bibliography](https://docs.magma-maths.org/v2.30-1/ModularArithmeticGeometry/BrandtModules/bibliography.md)
