The underlying element of toZModPow_unit n u agrees with toZModPow n (↑u).
Brute-force verification: primitive solvability of $z^2 = u_0 x^2 + v_0 y^2$ mod $8$ agrees with the closed-form formula at $(\alpha,\beta) = (0,0)$.
Brute-force verification: primitive solvability of $z^2 = 2u_0 x^2 + v_0 y^2$ mod $8$ agrees with the closed-form formula at $(\alpha,\beta) = (1,0)$.
Brute-force verification: primitive solvability of $z^2 = u_0 x^2 + 2v_0 y^2$ mod $8$ (equivalently the swap of the previous lemma) agrees with the formula at $(\alpha,\beta) = (0,1)$.
Algebraic identity used to reduce the case $(\alpha,\beta) = (1,1)$ of the $2$-adic Hilbert symbol to the other three cases via bilinearity.
The closed-form formula always evaluates to $\pm 1$, since it is a power of $-1$.
Bilinearity of the closed-form formula in the left $2$-adic unit argument, verified by brute force over the finite cases.