Metamath Proof Explorer


Theorem cbvsbc

Description: Change bound variables in a wff substitution. Usage of this theorem is discouraged because it depends on ax-13 . Use the weaker cbvsbcw when possible. (Contributed by Jeff Hankins, 19-Sep-2009) (Proof shortened by Andrew Salmon, 8-Jun-2011) (New usage is discouraged.)

Ref Expression
Hypotheses cbvsbc.1 𝑦 𝜑
cbvsbc.2 𝑥 𝜓
cbvsbc.3 ( 𝑥 = 𝑦 → ( 𝜑𝜓 ) )
Assertion cbvsbc ( [ 𝐴 / 𝑥 ] 𝜑[ 𝐴 / 𝑦 ] 𝜓 )

Proof

Step Hyp Ref Expression
1 cbvsbc.1 𝑦 𝜑
2 cbvsbc.2 𝑥 𝜓
3 cbvsbc.3 ( 𝑥 = 𝑦 → ( 𝜑𝜓 ) )
4 1 2 3 cbvab { 𝑥𝜑 } = { 𝑦𝜓 }
5 4 eleq2i ( 𝐴 ∈ { 𝑥𝜑 } ↔ 𝐴 ∈ { 𝑦𝜓 } )
6 df-sbc ( [ 𝐴 / 𝑥 ] 𝜑𝐴 ∈ { 𝑥𝜑 } )
7 df-sbc ( [ 𝐴 / 𝑦 ] 𝜓𝐴 ∈ { 𝑦𝜓 } )
8 5 6 7 3bitr4i ( [ 𝐴 / 𝑥 ] 𝜑[ 𝐴 / 𝑦 ] 𝜓 )