Metamath Proof Explorer


Theorem sbequ2

Description: An equality theorem for substitution. (Contributed by NM, 16-May-1993) Revise df-sb . (Revised by BJ, 22-Dec-2020) (Proof shortened by Wolf Lammen, 3-Feb-2024)

Ref Expression
Assertion sbequ2 x = t t x φ φ

Proof

Step Hyp Ref Expression
1 dfsbimp t x φ y y = t x x = y φ
2 equvinva x = t y x = y t = y
3 equcomi t = y y = t
4 sp x x = y φ x = y φ
5 3 4 imim12i y = t x x = y φ t = y x = y φ
6 5 impcomd y = t x x = y φ x = y t = y φ
7 6 aleximi y y = t x x = y φ y x = y t = y y φ
8 1 2 7 syl2im t x φ x = t y φ
9 ax5e y φ φ
10 8 9 syl6com x = t t x φ φ