Metamath Proof Explorer


Theorem eqeq12d

Description: A useful inference for substituting definitions into an equality. (Contributed by NM, 5-Aug-1993) (Proof shortened by Andrew Salmon, 25-May-2011) (Proof shortened by Wolf Lammen, 23-Oct-2024)

Ref Expression
Hypotheses eqeq12d.1 φA=B
eqeq12d.2 φC=D
Assertion eqeq12d φA=CB=D

Proof

Step Hyp Ref Expression
1 eqeq12d.1 φA=B
2 eqeq12d.2 φC=D
3 1 2 eqeqan12d φφA=CB=D
4 3 anidms φA=CB=D