Metamath Proof Explorer


Theorem relexp2

Description: A set operated on by the relation exponent to the second power is equal to the composition of the set with itself. (Contributed by RP, 1-Jun-2020)

Ref Expression
Assertion relexp2 RVRr2=RR

Proof

Step Hyp Ref Expression
1 df-2 2=1+1
2 1 oveq2i Rr2=Rr1+1
3 2 a1i RVRr2=Rr1+1
4 1nn 1
5 relexpsucnnr RV1Rr1+1=Rr1R
6 4 5 mpan2 RVRr1+1=Rr1R
7 relexp1g RVRr1=R
8 7 coeq1d RVRr1R=RR
9 3 6 8 3eqtrd RVRr2=RR