Follows up on Yael's comment in #8612 by making n (in x ^ (p ^ n)) explicit.
n
x ^ (p ^ n)
CI should fail in places where the theorems are used, but I will fix them using the CI results.