Metamath Proof Explorer


Theorem rspcedeq2vd

Description: Restricted existential specialization, using implicit substitution. Variant of rspcedvd for equations, in which the right hand side depends on the quantified variable. (Contributed by AV, 24-Dec-2019)

Ref Expression
Hypotheses rspcedeqvd.1 ( 𝜑𝐴𝐵 )
rspcedeqvd.2 ( ( 𝜑𝑥 = 𝐴 ) → 𝐶 = 𝐷 )
Assertion rspcedeq2vd ( 𝜑 → ∃ 𝑥𝐵 𝐶 = 𝐷 )

Proof

Step Hyp Ref Expression
1 rspcedeqvd.1 ( 𝜑𝐴𝐵 )
2 rspcedeqvd.2 ( ( 𝜑𝑥 = 𝐴 ) → 𝐶 = 𝐷 )
3 2 eqcomd ( ( 𝜑𝑥 = 𝐴 ) → 𝐷 = 𝐶 )
4 3 eqeq2d ( ( 𝜑𝑥 = 𝐴 ) → ( 𝐶 = 𝐷𝐶 = 𝐶 ) )
5 eqidd ( 𝜑𝐶 = 𝐶 )
6 1 4 5 rspcedvd ( 𝜑 → ∃ 𝑥𝐵 𝐶 = 𝐷 )