Metamath Proof Explorer


Theorem cbvmptv

Description: Rule to change the bound variable in a maps-to function, using implicit substitution. (Contributed by Mario Carneiro, 19-Feb-2013) Add disjoint variable condition to avoid auxiliary axioms . See cbvmptvg for a less restrictive version requiring more axioms. (Revised by Gino Giotto, 17-Nov-2024)

Ref Expression
Hypothesis cbvmptv.1 ( 𝑥 = 𝑦𝐵 = 𝐶 )
Assertion cbvmptv ( 𝑥𝐴𝐵 ) = ( 𝑦𝐴𝐶 )

Proof

Step Hyp Ref Expression
1 cbvmptv.1 ( 𝑥 = 𝑦𝐵 = 𝐶 )
2 eleq1w ( 𝑥 = 𝑦 → ( 𝑥𝐴𝑦𝐴 ) )
3 1 eqeq2d ( 𝑥 = 𝑦 → ( 𝑧 = 𝐵𝑧 = 𝐶 ) )
4 2 3 anbi12d ( 𝑥 = 𝑦 → ( ( 𝑥𝐴𝑧 = 𝐵 ) ↔ ( 𝑦𝐴𝑧 = 𝐶 ) ) )
5 4 cbvopab1v { ⟨ 𝑥 , 𝑧 ⟩ ∣ ( 𝑥𝐴𝑧 = 𝐵 ) } = { ⟨ 𝑦 , 𝑧 ⟩ ∣ ( 𝑦𝐴𝑧 = 𝐶 ) }
6 df-mpt ( 𝑥𝐴𝐵 ) = { ⟨ 𝑥 , 𝑧 ⟩ ∣ ( 𝑥𝐴𝑧 = 𝐵 ) }
7 df-mpt ( 𝑦𝐴𝐶 ) = { ⟨ 𝑦 , 𝑧 ⟩ ∣ ( 𝑦𝐴𝑧 = 𝐶 ) }
8 5 6 7 3eqtr4i ( 𝑥𝐴𝐵 ) = ( 𝑦𝐴𝐶 )