$\textit{Define the Maximum}$ of $x, y \in \mathbb{R}$ by the following: $\max\{x,y\} = \begin{cases} x & \text{if } x \geq y \\ y & \text{if } y > x \end{cases}$
How can I generalize this definition so that it applies to any finite collection $\{x_1,...x_n\}\subset\mathbb{R}$ for $n\in\mathbb{N}$?
I guess I have to make sure I understand the definition first.
My attempt: I can choose a starting point $x_n$ and my max would be $x_{n+1}$?
Please help!
It might be useful to show that $\max$ is associative in the following sense: Define $x\vee y:=\max\{x,y\}$ and observe $$(x\vee y)\vee z=x\vee(y\vee z).$$
One can show via induction that $x_1\vee x_2\vee\cdots\vee x_n$ is well-defined in the following sense: Any placement of parentheses to make $x_1\vee x_2\vee\cdots\vee x_n$ well-defined has the same value in $\mathbb{R}$.
Then define $\max\{x_1,x_2,\ldots,x_n\}:=\bigvee_{i=1}^n x_i:=x_1\vee x_2\vee\cdots\vee x_n$.