Metamath Proof Explorer


Theorem cbvmptvw2

Description: Change bound variable and domain in a maps-to function, using implicit substitution. (Contributed by GG, 14-Aug-2025)

Ref Expression
Hypotheses cbvmptvw2.1 ( 𝑥 = 𝑦𝐶 = 𝐷 )
cbvmptvw2.2 ( 𝑥 = 𝑦𝐴 = 𝐵 )
Assertion cbvmptvw2 ( 𝑥𝐴𝐶 ) = ( 𝑦𝐵𝐷 )

Proof

Step Hyp Ref Expression
1 cbvmptvw2.1 ( 𝑥 = 𝑦𝐶 = 𝐷 )
2 cbvmptvw2.2 ( 𝑥 = 𝑦𝐴 = 𝐵 )
3 eleq1w ( 𝑥 = 𝑦 → ( 𝑥𝐴𝑦𝐴 ) )
4 2 eleq2d ( 𝑥 = 𝑦 → ( 𝑦𝐴𝑦𝐵 ) )
5 3 4 bitrd ( 𝑥 = 𝑦 → ( 𝑥𝐴𝑦𝐵 ) )
6 1 eqeq2d ( 𝑥 = 𝑦 → ( 𝑡 = 𝐶𝑡 = 𝐷 ) )
7 5 6 anbi12d ( 𝑥 = 𝑦 → ( ( 𝑥𝐴𝑡 = 𝐶 ) ↔ ( 𝑦𝐵𝑡 = 𝐷 ) ) )
8 7 cbvopab1v { ⟨ 𝑥 , 𝑡 ⟩ ∣ ( 𝑥𝐴𝑡 = 𝐶 ) } = { ⟨ 𝑦 , 𝑡 ⟩ ∣ ( 𝑦𝐵𝑡 = 𝐷 ) }
9 df-mpt ( 𝑥𝐴𝐶 ) = { ⟨ 𝑥 , 𝑡 ⟩ ∣ ( 𝑥𝐴𝑡 = 𝐶 ) }
10 df-mpt ( 𝑦𝐵𝐷 ) = { ⟨ 𝑦 , 𝑡 ⟩ ∣ ( 𝑦𝐵𝑡 = 𝐷 ) }
11 8 9 10 3eqtr4i ( 𝑥𝐴𝐶 ) = ( 𝑦𝐵𝐷 )