Metamath Proof Explorer


Theorem cbvreu

Description: Change the bound variable of a restricted unique existential quantifier using implicit substitution. Usage of this theorem is discouraged because it depends on ax-13 . Use the weaker cbvreuw when possible. (Contributed by Mario Carneiro, 15-Oct-2016) (New usage is discouraged.)

Ref Expression
Hypotheses cbvral.1 𝑦 𝜑
cbvral.2 𝑥 𝜓
cbvral.3 ( 𝑥 = 𝑦 → ( 𝜑𝜓 ) )
Assertion cbvreu ( ∃! 𝑥𝐴 𝜑 ↔ ∃! 𝑦𝐴 𝜓 )

Proof

Step Hyp Ref Expression
1 cbvral.1 𝑦 𝜑
2 cbvral.2 𝑥 𝜓
3 cbvral.3 ( 𝑥 = 𝑦 → ( 𝜑𝜓 ) )
4 nfv 𝑧 ( 𝑥𝐴𝜑 )
5 4 sb8eu ( ∃! 𝑥 ( 𝑥𝐴𝜑 ) ↔ ∃! 𝑧 [ 𝑧 / 𝑥 ] ( 𝑥𝐴𝜑 ) )
6 sban ( [ 𝑧 / 𝑥 ] ( 𝑥𝐴𝜑 ) ↔ ( [ 𝑧 / 𝑥 ] 𝑥𝐴 ∧ [ 𝑧 / 𝑥 ] 𝜑 ) )
7 6 eubii ( ∃! 𝑧 [ 𝑧 / 𝑥 ] ( 𝑥𝐴𝜑 ) ↔ ∃! 𝑧 ( [ 𝑧 / 𝑥 ] 𝑥𝐴 ∧ [ 𝑧 / 𝑥 ] 𝜑 ) )
8 clelsb1 ( [ 𝑧 / 𝑥 ] 𝑥𝐴𝑧𝐴 )
9 8 anbi1i ( ( [ 𝑧 / 𝑥 ] 𝑥𝐴 ∧ [ 𝑧 / 𝑥 ] 𝜑 ) ↔ ( 𝑧𝐴 ∧ [ 𝑧 / 𝑥 ] 𝜑 ) )
10 9 eubii ( ∃! 𝑧 ( [ 𝑧 / 𝑥 ] 𝑥𝐴 ∧ [ 𝑧 / 𝑥 ] 𝜑 ) ↔ ∃! 𝑧 ( 𝑧𝐴 ∧ [ 𝑧 / 𝑥 ] 𝜑 ) )
11 nfv 𝑦 𝑧𝐴
12 1 nfsb 𝑦 [ 𝑧 / 𝑥 ] 𝜑
13 11 12 nfan 𝑦 ( 𝑧𝐴 ∧ [ 𝑧 / 𝑥 ] 𝜑 )
14 nfv 𝑧 ( 𝑦𝐴𝜓 )
15 eleq1w ( 𝑧 = 𝑦 → ( 𝑧𝐴𝑦𝐴 ) )
16 sbequ ( 𝑧 = 𝑦 → ( [ 𝑧 / 𝑥 ] 𝜑 ↔ [ 𝑦 / 𝑥 ] 𝜑 ) )
17 2 3 sbie ( [ 𝑦 / 𝑥 ] 𝜑𝜓 )
18 16 17 bitrdi ( 𝑧 = 𝑦 → ( [ 𝑧 / 𝑥 ] 𝜑𝜓 ) )
19 15 18 anbi12d ( 𝑧 = 𝑦 → ( ( 𝑧𝐴 ∧ [ 𝑧 / 𝑥 ] 𝜑 ) ↔ ( 𝑦𝐴𝜓 ) ) )
20 13 14 19 cbveu ( ∃! 𝑧 ( 𝑧𝐴 ∧ [ 𝑧 / 𝑥 ] 𝜑 ) ↔ ∃! 𝑦 ( 𝑦𝐴𝜓 ) )
21 10 20 bitri ( ∃! 𝑧 ( [ 𝑧 / 𝑥 ] 𝑥𝐴 ∧ [ 𝑧 / 𝑥 ] 𝜑 ) ↔ ∃! 𝑦 ( 𝑦𝐴𝜓 ) )
22 5 7 21 3bitri ( ∃! 𝑥 ( 𝑥𝐴𝜑 ) ↔ ∃! 𝑦 ( 𝑦𝐴𝜓 ) )
23 df-reu ( ∃! 𝑥𝐴 𝜑 ↔ ∃! 𝑥 ( 𝑥𝐴𝜑 ) )
24 df-reu ( ∃! 𝑦𝐴 𝜓 ↔ ∃! 𝑦 ( 𝑦𝐴𝜓 ) )
25 22 23 24 3bitr4i ( ∃! 𝑥𝐴 𝜑 ↔ ∃! 𝑦𝐴 𝜓 )