---
title: "Over Orders"
canonical: "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/over_orders.html"
source: "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/over_orders.md"
part: "Global Fields"
chapter: "Étale Algebras"
breadcrumbs:
  - {"title": "Magma Handbook", "source": "https://docs.magma-maths.org/v2.30-1/index.md"}
  - {"title": "Global Fields", "source": "https://docs.magma-maths.org/v2.30-1/GlobalFields/index-global-fields.md"}
  - {"title": "Étale Algebras", "source": "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/index-etale-algebras.md"}
prev: {"title": "Quotients", "source": "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/quotients.md"}
next: {"title": "Over Order Graph", "source": "https://docs.magma-maths.org/v2.30-1/GlobalFields/EtaleAlgebras/graph_over_orders.md"}
intrinsics:
  - {"name": "IsMaximalAtPrime", "signature": "IsMaximalAtPrime(R, P): AlgEtQOrd, AlgEtQIdl -> BoolElt"}
  - {"name": "MinimalOverOrdersAtPrime", "signature": "MinimalOverOrdersAtPrime(R, P): AlgEtQOrd, AlgEtQIdl -> SetIndx[AlgEtQOrd]"}
  - {"name": "MinimalOverOrders", "signature": "MinimalOverOrders(R): AlgEtQOrd -> SetIndx[AlgEtQOrd]"}
  - {"name": "OverOrdersAtPrime", "signature": "OverOrdersAtPrime(R, P): AlgEtQOrd, AlgEtQIdl -> SeqEnum[AlgEtQOrd]"}
  - {"name": "OverOrders", "signature": "OverOrders(R): AlgEtQOrd -> SeqEnum[AlgEtQOrd]"}
  - {"name": "FindOverOrders", "signature": "FindOverOrders(R): AlgEtQOrd -> SetIndx[AlgEtQOrd]"}
examples:
  - "ex-1d4978"
---

# Over Orders

<a id="function-ismaximalatprime-algetqord-algetqidl"></a>
## `IsMaximalAtPrime(R, P): AlgEtQOrd, AlgEtQIdl -> BoolElt`

Returns whether $R$ is maximal at the prime $P$, that is, if $(R:O)$ is not contained in $P$, where $O$ is the maximal order.

<a id="function-minimaloverordersatprime-algetqord-algetqidl"></a>
## `MinimalOverOrdersAtPrime(R, P): AlgEtQOrd, AlgEtQIdl -> SetIndx[AlgEtQOrd]`

Given an order $R$ and prime $P$ of $R$, it returns the minimal overorders $S$ of $R$ with conductor $(R:S)$ which is $P$-primary. The minimality assumption forces the conductor $(R:S)$ to be exactly $P$. Based on [[HS20](https://docs.magma-maths.org/v2.30-1/references.md#cite-hofmannsircana)].

<a id="function-minimaloverorders-algetqord"></a>
## `MinimalOverOrders(R): AlgEtQOrd -> SetIndx[AlgEtQOrd]`

Computes the minimal overorders of $R$.

<a id="function-overordersatprime-algetqord-algetqidl"></a>
## `OverOrdersAtPrime(R, P): AlgEtQOrd, AlgEtQIdl -> SeqEnum[AlgEtQOrd]`

Given an order $R$ and prime $P$ of $R$, it returns $R$ and the overorders $S$ of $R$ with conductor $(R:S)$ which is $P$-primary. We recursively produce the minimal $PP$-overorders where $PP$ are primes above $P$. Based on [[HS20](https://docs.magma-maths.org/v2.30-1/references.md#cite-hofmannsircana)].

<a id="function-overorders-algetqord"></a>
## `OverOrders(R): AlgEtQOrd -> SeqEnum[AlgEtQOrd]`

```magma
populateoo_in_oo: BoolElt                    Default: false
```

We compute all the overorders of $R$. The parameter `populateoo_in_oo` (default `false`) determines whether we should fill the attribute ``T`OverOrders`` for every overorder $T$ of $R$. The computation is based on [[HS20](https://docs.magma-maths.org/v2.30-1/references.md#cite-hofmannsircana)].

<a id="example-ex-1d4978"></a>
## `Example: Over-Orders of an Equation Order (ex-1d4978)`

```magma
> _<x> := PolynomialRing(Integers());
> f := (x^4+16)*(x^4+81);
> A := EtaleAlgebra(f);
> E := EquationOrder(A);
> oo := OverOrders(E);
> #oo;
2288
> pp := SingularPrimes(E);
> // We see that the size of the lattice of inclusions of the overorders is the
> // product of the sizes of local component of the lattice.
> #oo eq &*[ #OverOrdersAtPrime(E,P) : P in pp ];
true
> // Now we consider only the P-overorders S for the first singular prime P.
> // We verify that there is always a positive integer i such that (R:S)^i is
> // invertible in its multiplicator ring.
> ooP := OverOrdersAtPrime(E,pp[1]);
> #ooP;
11
> forall{exists{IsInvertible(Ti!!Ci) where Ti:=MultiplicatorRing(Ci)
> where Ci:=C^i : i in [1..10]} where C := ColonIdeal(E,E!!OneIdeal(S))
>                                                             : S in ooP};
true
```

<a id="function-findoverorders-algetqord"></a>
## `FindOverOrders(R): AlgEtQOrd -> SetIndx[AlgEtQOrd]`

```magma
populateoo_in_oo: BoolElt                    Default: false
```

We compute all the overorders of $R$. The parameter `populateoo_in_oo` (default `false`) determines whether we should fill the attribute ``T`OverOrders`` for every overorder $T$ of $R$. The computation is based on [[HS20](https://docs.magma-maths.org/v2.30-1/references.md#cite-hofmannsircana)].
