Metamath Proof Explorer


Theorem cbvriotavw2

Description: Change bound variable and domain in a restricted description binder, using implicit substitution. (Contributed by GG, 14-Aug-2025)

Ref Expression
Hypotheses cbvriotavw2.1 ( 𝑥 = 𝑦𝐴 = 𝐵 )
cbvriotavw2.2 ( 𝑥 = 𝑦 → ( 𝜑𝜓 ) )
Assertion cbvriotavw2 ( 𝑥𝐴 𝜑 ) = ( 𝑦𝐵 𝜓 )

Proof

Step Hyp Ref Expression
1 cbvriotavw2.1 ( 𝑥 = 𝑦𝐴 = 𝐵 )
2 cbvriotavw2.2 ( 𝑥 = 𝑦 → ( 𝜑𝜓 ) )
3 id ( 𝑥 = 𝑦𝑥 = 𝑦 )
4 3 1 eleq12d ( 𝑥 = 𝑦 → ( 𝑥𝐴𝑦𝐵 ) )
5 4 2 anbi12d ( 𝑥 = 𝑦 → ( ( 𝑥𝐴𝜑 ) ↔ ( 𝑦𝐵𝜓 ) ) )
6 5 cbviotavw ( ℩ 𝑥 ( 𝑥𝐴𝜑 ) ) = ( ℩ 𝑦 ( 𝑦𝐵𝜓 ) )
7 df-riota ( 𝑥𝐴 𝜑 ) = ( ℩ 𝑥 ( 𝑥𝐴𝜑 ) )
8 df-riota ( 𝑦𝐵 𝜓 ) = ( ℩ 𝑦 ( 𝑦𝐵𝜓 ) )
9 6 7 8 3eqtr4i ( 𝑥𝐴 𝜑 ) = ( 𝑦𝐵 𝜓 )