Metamath Proof Explorer


Theorem cdeqab

Description: Distribute conditional equality over abstraction. (Contributed by Mario Carneiro, 11-Aug-2016)

Ref Expression
Hypothesis cdeqnot.1 CondEq ( 𝑥 = 𝑦 → ( 𝜑𝜓 ) )
Assertion cdeqab CondEq ( 𝑥 = 𝑦 → { 𝑧𝜑 } = { 𝑧𝜓 } )

Proof

Step Hyp Ref Expression
1 cdeqnot.1 CondEq ( 𝑥 = 𝑦 → ( 𝜑𝜓 ) )
2 1 cdeqri ( 𝑥 = 𝑦 → ( 𝜑𝜓 ) )
3 2 abbidv ( 𝑥 = 𝑦 → { 𝑧𝜑 } = { 𝑧𝜓 } )
4 3 cdeqi CondEq ( 𝑥 = 𝑦 → { 𝑧𝜑 } = { 𝑧𝜓 } )