Equivalence of Definitions of Maximal Element

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

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

Definition 1 implies Definition 2
Let $x$ be an maximal element by definition 1.

That is:
 * $(1): \quad \forall y \in T: x \preceq y \implies x = y$

Aiming for a contradiction, suppose that:
 * $\exists y \in T: x \prec y$

Then by definition:
 * $x \preceq y \land x \ne y$

which contradicts $(1)$.

Thus by Proof by Contradiction:
 * $\nexists y \in T: x \prec y$

That is $x$ is a maximal element by definition 2.

Definition 2 implies Definition 1
Let $x$ be a maximal element by definition 2.

That is:
 * $(2): \quad \nexists y \in T: x \prec y$

Aiming for a contradiction, suppose that:
 * $\exists y \in T: x \preceq y: x \ne y$

That is:
 * $\exists y \in T: x \prec y$

which contradicts $(2)$.

Thus:
 * $\forall y \in T: x \preceq y \implies x = y$

Thus $x$ is a maximal element by definition 1.