Metamath Proof Explorer


Theorem eqsbc2

Description: Substitution for the right-hand side in an equality. (Contributed by Alan Sare, 24-Oct-2011) (Proof shortened by JJ, 7-Jul-2021)

Ref Expression
Assertion eqsbc2 AV[˙A/x]˙B=xB=A

Proof

Step Hyp Ref Expression
1 eqsbc1 AV[˙A/x]˙x=BA=B
2 eqcom B=xx=B
3 2 sbcbii [˙A/x]˙B=x[˙A/x]˙x=B
4 eqcom B=AA=B
5 1 3 4 3bitr4g AV[˙A/x]˙B=xB=A