for all prompts \(x\) and completions \(y\). Then we must have \(\pi(y|x)\exp(\frac{1}{\beta}f(x))=\pi^{\prime}(y|x)\). Since these are distributions, summing over \(y\) on both sides, we obtain that \(\exp(\frac{1}{\beta}f(x))=1\) and since \(\beta>0\), we must have \(f(x)=0\) for all \(x\). Therefore \(r(x,y)=r^{\prime}(x,y)\). This completes the proof.