Problem
Show that the maximum of $x_1,...,x_n \sim \mathrm{Uniform}(0,\theta)$ is a sufficient statistic for $\theta$.
Background
This question has been asked before, but most answers tackle the problem with the Factorization Theorem. I am trying to understand the definition of sufficiency given in Wasserman's All of Statistics, so I've been trying to solve this problem without appealing to theorems.
Here is the definition of a sufficient statistic given by Wasserman:
Denote IID $x_1,...,x_n \sim F$ as $x^n$. Write $x^n \leftrightarrow y^n$ if $f(x^n;\theta) = cf(y^n; \theta)$ for some constant $c$ that might depend on $x^n$ and $y^n$ but not on $\theta$. A statistic $T(x^n)$ is sufficient if $T(x^n) \leftrightarrow T(y^n)$ implies that $x^n \leftrightarrow y^n$.
As I wrote up this question, I think I figured out the problem, but I would greatly appreciate if someone can check my proof.
Attempt
The joint PDF of IID $x_1,...,x_n \sim \mathrm{Uniform(0,\theta)}$ can be written as
$$ \begin{align*} f(x^n;\theta) &= \Pi_{i=1}^n \theta^{-1} \mathbf{1}_{[0,\theta]}(x_i)\\ &= \theta^{-n}\mathbf{1}_{[0,\infty]}(\min x^n)\mathbf{1}_{(-\infty,\theta]}(\max x^n) \end{align*} $$
Note: Given $x^n = x_1,...,x_n$, $T(x^n) = \max(x^n)$ is a single number, so $\max T(x^n) = T(x^n)$. Now suppose that $T(x^n) \leftrightarrow T(y^n)$. Then, by definition,
$$f(T(x^n);\theta) = cf(T(y^n); \theta)$$
for some constant $c$ that might depend on $x^n,y^n$.
This implies
$$ \begin{align*} f(x^n;\theta) &= \theta^{-n}\mathbf{1}_{[0,\infty]}(\min x^n)\mathbf{1}_{(-\infty,\theta]}(\max x^n)\\ &= \theta^{-n}\mathbf{1}_{[0,\infty]}(\min T(x^n))\mathbf{1}_{(-\infty,\theta]}(\max T(x^n))\\ &= f(T(x^n);\theta)\\ &= cf(T(y^n);\theta)\\ &= c\theta^{-n}\mathbf{1}_{[0,\infty]}(\min T(y^n))\mathbf{1}_{(-\infty,\theta]}(\max T(y^n))\\ &= c\theta^{-n}\mathbf{1}_{[0,\infty]}(\min y^n)\mathbf{1}_{(-\infty,\theta]}(\max y^n)\\ &= cf(y^n;\theta) \end{align*} $$
Thus $x^n \leftrightarrow y^n$, and we conclude that $T(x^n)$ is a sufficient statistic for $\theta$.
Edit
My question is more about correctly intepreting Wasserman's definition rather than the specific problem at hand. The problem is just one way to flesh-out my understanding of the definition.