Metamath Proof Explorer


Theorem rspcime

Description: Prove a restricted existential. (Contributed by Rohan Ridenour, 3-Aug-2023)

Ref Expression
Hypotheses rspcime.1 ( ( 𝜑𝑥 = 𝐴 ) → 𝜓 )
rspcime.2 ( 𝜑𝐴𝐵 )
Assertion rspcime ( 𝜑 → ∃ 𝑥𝐵 𝜓 )

Proof

Step Hyp Ref Expression
1 rspcime.1 ( ( 𝜑𝑥 = 𝐴 ) → 𝜓 )
2 rspcime.2 ( 𝜑𝐴𝐵 )
3 simpl ( ( 𝜑𝑥 = 𝐴 ) → 𝜑 )
4 1 3 2thd ( ( 𝜑𝑥 = 𝐴 ) → ( 𝜓𝜑 ) )
5 id ( 𝜑𝜑 )
6 2 4 5 rspcedvd ( 𝜑 → ∃ 𝑥𝐵 𝜓 )