# Definition:Maximal

## Definition

Let $\left({S, \preceq}\right)$ be an ordered set.

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

### Ordered Set

An element $x \in T$ is a maximal element of $T$ if and only if:

$x \preceq y \implies x = y$

That is, the only element of $S$ that $x$ precedes or is equal to is itself.

### Maximal Set

Let $S$ be a set.

Let $\powerset S$ be the power set of $S$.

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

Let $\struct {\mathcal T, \subseteq}$ be the ordered set formed on $\mathcal T$ by $\subseteq$ considered as an ordering.

Then $T \in \mathcal T$ is a maximal set of $\mathcal T$ if and only if $T$ is a maximal element of $\struct {\mathcal T, \subseteq}$.

That is:

$\forall X \in \mathcal T: T \subseteq X \implies T = X$

### Mapping

Let $f: S \to \R$ be a real-valued function.

Let $f$ be bounded above by a supremum $B$.

It may or may not be the case that $\exists x \in S: f \left({x}\right) = B$.

If such a value exists, it is called the maximal value or maximum of $f$ on $S$, and that this maximum is attained at $x$.