Metamath Proof Explorer


Theorem bj-rabeqbid

Description: Version of rabeqbidv with two disjoint variable conditions removed and the third replaced by a nonfreeness hypothesis. (Contributed by BJ, 27-Apr-2019)

Ref Expression
Hypotheses bj-rabeqbid.nf 𝑥 𝜑
bj-rabeqbid.1 ( 𝜑𝐴 = 𝐵 )
bj-rabeqbid.2 ( 𝜑 → ( 𝜓𝜒 ) )
Assertion bj-rabeqbid ( 𝜑 → { 𝑥𝐴𝜓 } = { 𝑥𝐵𝜒 } )

Proof

Step Hyp Ref Expression
1 bj-rabeqbid.nf 𝑥 𝜑
2 bj-rabeqbid.1 ( 𝜑𝐴 = 𝐵 )
3 bj-rabeqbid.2 ( 𝜑 → ( 𝜓𝜒 ) )
4 1 2 bj-rabeqd ( 𝜑 → { 𝑥𝐴𝜓 } = { 𝑥𝐵𝜓 } )
5 1 3 rabbid ( 𝜑 → { 𝑥𝐵𝜓 } = { 𝑥𝐵𝜒 } )
6 4 5 eqtrd ( 𝜑 → { 𝑥𝐴𝜓 } = { 𝑥𝐵𝜒 } )