Lemma (Neyman-Pearson Lemma)
Suppose the data $X$ follows $p(x; θ)$ where $θ$ is unknown. Let $H_0$$: θ = θ_0$ and $H_1$$: θ = θ_1$ be simple hypotheses.
Assume $p(x; θ_0)$ and $p(x; θ_1)$ have the same support, i.e. are non-zero on the same set. Suppose there exists $c>0$ such that the likelihood ratio test $T^\ast(X) = 1_{\set{Λ(X) > c}}$ has size exactly $α$.
Then $T^\ast$ is uniformly most powerful, i.e. $T^\ast$ maximises $β(T; θ_1)$ subject to $β(T; θ_0)\leq α$.