Metamath Proof Explorer


Theorem fpprel

Description: A Fermat pseudoprime to the base N . (Contributed by AV, 30-May-2023)

Ref Expression
Assertion fpprel NXFPPrNX4XNX1modX=1

Proof

Step Hyp Ref Expression
1 fpprmod NFPPrN=x4|xNx1modx=1
2 1 eleq2d NXFPPrNXx4|xNx1modx=1
3 neleq1 x=XxX
4 oveq1 x=Xx1=X1
5 4 oveq2d x=XNx1=NX1
6 id x=Xx=X
7 5 6 oveq12d x=XNx1modx=NX1modX
8 7 eqeq1d x=XNx1modx=1NX1modX=1
9 3 8 anbi12d x=XxNx1modx=1XNX1modX=1
10 9 elrab Xx4|xNx1modx=1X4XNX1modX=1
11 2 10 bitrdi NXFPPrNX4XNX1modX=1
12 3anass X4XNX1modX=1X4XNX1modX=1
13 11 12 bitr4di NXFPPrNX4XNX1modX=1