---
title: "Construction of a Plane"
canonical: "https://docs.magma-maths.org/v2.30-1/Geometry/FinitePlanes/creation.html"
source: "https://docs.magma-maths.org/v2.30-1/Geometry/FinitePlanes/creation.md"
part: "Geometry"
chapter: "Finite Planes"
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"}
  - {"title": "Finite Planes", "source": "https://docs.magma-maths.org/v2.30-1/Geometry/FinitePlanes/index-finite-planes.md"}
prev: {"title": "Introduction", "source": "https://docs.magma-maths.org/v2.30-1/Geometry/FinitePlanes/introduction.md"}
next: {"title": "The Point-Set and Line-Set of a Plane", "source": "https://docs.magma-maths.org/v2.30-1/Geometry/FinitePlanes/point-line-set.md"}
intrinsics:
  - {"name": "FiniteProjectivePlane", "signature": "FiniteProjectivePlane< v | X : parameters >: RngIntElt, List -> PlaneProj"}
  - {"name": "FiniteProjectivePlane", "signature": "FiniteProjectivePlane< V | X : parameters >: SetIndx, List -> PlaneProj"}
  - {"name": "FiniteProjectivePlane", "signature": "FiniteProjectivePlane(W): ModTupFld -> PlaneProj"}
  - {"name": "FiniteProjectivePlane", "signature": "FiniteProjectivePlane(F): FldFin -> PlaneProj"}
  - {"name": "FiniteProjectivePlane", "signature": "FiniteProjectivePlane(q): RngIntElt -> PlaneProj"}
  - {"name": "FiniteAffinePlane", "signature": "FiniteAffinePlane< v | X : parameters >: RngIntElt, List -> PlaneAff"}
  - {"name": "FiniteAffinePlane", "signature": "FiniteAffinePlane< V | X : parameters >: SetIndx, List -> PlaneAff"}
  - {"name": "FiniteAffinePlane", "signature": "FiniteAffinePlane(W): ModFld -> PlaneAff"}
  - {"name": "FiniteAffinePlane", "signature": "FiniteAffinePlane(F): FldFin -> PlaneProj"}
  - {"name": "FiniteAffinePlane", "signature": "FiniteAffinePlane(q): RngIntElt -> PlaneProj"}
examples:
  - "ex-9ba67e"
---

# Construction of a Plane

All functions which create a plane return three values:

**(i)**
the plane itself;

**(ii)**
the point–set of the plane;

**(iii)**
the line–set of the plane.

These “sets” ((ii) and (iii)) are used as the parent structures for points and lines respectively, and are explained more fully in the next section.

<a id="constructor-constructor-finiteprojectiveplane-rngintelt-list-planeproj"></a>
## `FiniteProjectivePlane< v | X : parameters >: RngIntElt, List -> PlaneProj`

<a id="constructor-constructor-finiteprojectiveplane-setindx-list-planeproj"></a>
## `FiniteProjectivePlane< V | X : parameters >: SetIndx, List -> PlaneProj`

```magma
Check: BoolElt                    Default: true
```

Construct the projective plane $P$ having as point set the indexed set $V$ (or $\lbrace @ 1, 2, \ldots, v @ \rbrace$ if an integer $v$ is given), and as line set $L = \lbrace L_1, L_2, \ldots, L_b \rbrace$ given by the list $X$. The value of $X$ must be either:

**(a)**
A list of subsets of the set $V$.

**(b)**
A sequence, set, or indexed set of subsets of $V$.

**(c)**
A list of lines of an existing plane.

**(d)**
A sequence, set, or indexed set of lines of an existing plane.

**(e)**
A combination of the above.

**(f)**
A $v \times b$ $(0,1)$-matrix $A$, where $A$ may be defined over any coefficient ring. The matrix $A$ will be interpreted as the incidence matrix for the plane $P$.

**(g)**
A set of codewords of a linear code with length $v$. The line set of $P$ is taken to be the set of supports of the codewords.

The optional boolean argument `Check` indicates whether or not to check that the given data satisfies the projective plane axioms.

<a id="function-finiteprojectiveplane-modtupfld"></a>
## `FiniteProjectivePlane(W): ModTupFld -> PlaneProj`

<a id="function-finiteprojectiveplane-fldfin"></a>
## `FiniteProjectivePlane(F): FldFin -> PlaneProj`

<a id="function-finiteprojectiveplane-rngintelt"></a>
## `FiniteProjectivePlane(q): RngIntElt -> PlaneProj`

Given a $3$–dimensional vector space $W$ defined over the field $F = {\bf F}_{q}$, construct the classical projective plane defined by the one–dimensional and two–dimensional subspaces of $W$.

<a id="constructor-constructor-finiteaffineplane-rngintelt-list-planeaff"></a>
## `FiniteAffinePlane< v | X : parameters >: RngIntElt, List -> PlaneAff`

<a id="constructor-constructor-finiteaffineplane-setindx-list-planeaff"></a>
## `FiniteAffinePlane< V | X : parameters >: SetIndx, List -> PlaneAff`

```magma
Check: BoolElt                    Default: true
```

Construct the affine plane $P$ having as point set the indexed set $V$ (or $\lbrace @ 1, 2, \ldots, v @ \rbrace$ if an integer $v$ is given), and as line set $L = \lbrace L_1, L_2, \ldots, L_b \rbrace$ given by the list $X$. The value of $X$ must be either:

**(a)**
A list of subsets of the set $V$.

**(b)**
A sequence, set, or indexed set of subsets of $V$.

**(c)**
A list of lines of an existing plane.

**(d)**
A sequence, set, or indexed set of lines of an existing plane.

**(e)**
A combination of the above.

**(f)**
A $v \times b$ $(0,1)$-matrix $A$, where $A$ may be defined over any coefficient ring. The matrix $A$ will be interpreted as the incidence matrix for the plane $P$.

**(g)**
A set of codewords of a linear code with length $v$. The line set of $P$ is taken to be the set of supports of the codewords.

The optional boolean argument `Check` indicates whether or not to check that the given data satisfies the affine plane axioms.

<a id="function-finiteaffineplane-modfld"></a>
## `FiniteAffinePlane(W): ModFld -> PlaneAff`

<a id="function-finiteaffineplane-fldfin"></a>
## `FiniteAffinePlane(F): FldFin -> PlaneProj`

<a id="function-finiteaffineplane-rngintelt"></a>
## `FiniteAffinePlane(q): RngIntElt -> PlaneProj`

Given a $2$–dimensional vector space $W$ defined over the field $F = {\bf F}_{q}$, construct the classical affine plane defined by the cosets of the subspaces of $W$.

<a id="example-ex-9ba67e"></a>
## `Example: Classical Projective Plane of Order 3 (ex-9ba67e)`

The classical projective plane of order 3 can be constructed by the following statement:

```magma
> P, V, L := FiniteProjectivePlane(3);
> P;
Projective Plane PG(2, 3)
> V;
Point-set of Projective Plane PG(2, 3)
> L;
Line-set of Projective Plane PG(2, 3)
```

A non-classical affine plane of order 2 can be constructed in the following way:

```magma
> A := FiniteAffinePlane< 4 | Setseq(Subsets({1, 2, 3, 4}, 2)) >;
> A: Maximal;
Affine Plane of order 2
Points: {@ 1, 2, 3, 4 @}
Lines:
    {1, 3},
    {1, 4},
    {2, 4},
    {2, 3},
    {1, 2},
    {3, 4}
```

To demonstrate the use of the `Check` argument, we recreate the classical projective plane of order 16 with `Check := true` (the default) and `Check := false`.

```magma
> P, V, L := FiniteProjectivePlane(16);
> time P2 := FiniteProjectivePlane<
>     Points(P) | {Set(l): l in L} : Check := true >;
Time: 10.769
> time P2 := FiniteProjectivePlane<
>     Points(P) | {Set(l): l in L} : Check := false >;
Time: 0.030
```
