Metamath Proof Explorer


Theorem cbvmptdavw2

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

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

Proof

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