# Definition:Maximal Element/Definition 2

## Definition

Let $\struct {S, \RR}$ be a relational structure.

Let $T \subseteq S$ be a subset of $S$.

An element $x \in T$ is a maximal element (under $\RR$) of $T$ if and only if:

$\neg \exists y \in T: x \mathrel {\RR^\ne} y$

where $x \mathrel {\RR^\ne} y$ denotes that $x \mathrel \RR y$ but $x \ne y$.

## Also defined as

Most treatments of the concept of a maximal element restrict the definition of the relation $\RR$ to the requirement that it be an ordering.

However, this is not strictly required, and this more general definition as used on $\mathsf{Pr} \infty \mathsf{fWiki}$ is of far more use.