Metamath Proof Explorer < Previous   Next > Nearby theorems Mirrors  >  Home  >  MPE Home  >  Th. List  >  cbvopab1 Structured version   Visualization version   GIF version

Theorem cbvopab1 5136
 Description: Change first bound variable in an ordered-pair class abstraction, using explicit substitution. (Contributed by NM, 6-Oct-2004.) (Revised by Mario Carneiro, 14-Oct-2016.) Add disjoint variable condition to avoid ax-13 2385. See cbvopab1g 5137 for a less restrictive version requiring more axioms. (Revised by Gino Giotto, 17-Jan-2024.)
Hypotheses
Ref Expression
cbvopab1.1 𝑧𝜑
cbvopab1.2 𝑥𝜓
cbvopab1.3 (𝑥 = 𝑧 → (𝜑𝜓))
Assertion
Ref Expression
cbvopab1 {⟨𝑥, 𝑦⟩ ∣ 𝜑} = {⟨𝑧, 𝑦⟩ ∣ 𝜓}
Distinct variable group:   𝑥,𝑦,𝑧
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑧)   𝜓(𝑥,𝑦,𝑧)

Proof of Theorem cbvopab1
Dummy variables 𝑤 𝑣 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nfv 1908 . . . . 5 𝑣𝑦(𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)
2 nfv 1908 . . . . . . 7 𝑥 𝑤 = ⟨𝑣, 𝑦
3 nfs1v 2267 . . . . . . 7 𝑥[𝑣 / 𝑥]𝜑
42, 3nfan 1893 . . . . . 6 𝑥(𝑤 = ⟨𝑣, 𝑦⟩ ∧ [𝑣 / 𝑥]𝜑)
54nfex 2337 . . . . 5 𝑥𝑦(𝑤 = ⟨𝑣, 𝑦⟩ ∧ [𝑣 / 𝑥]𝜑)
6 opeq1 4802 . . . . . . . 8 (𝑥 = 𝑣 → ⟨𝑥, 𝑦⟩ = ⟨𝑣, 𝑦⟩)
76eqeq2d 2837 . . . . . . 7 (𝑥 = 𝑣 → (𝑤 = ⟨𝑥, 𝑦⟩ ↔ 𝑤 = ⟨𝑣, 𝑦⟩))
8 sbequ12 2246 . . . . . . 7 (𝑥 = 𝑣 → (𝜑 ↔ [𝑣 / 𝑥]𝜑))
97, 8anbi12d 630 . . . . . 6 (𝑥 = 𝑣 → ((𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ↔ (𝑤 = ⟨𝑣, 𝑦⟩ ∧ [𝑣 / 𝑥]𝜑)))
109exbidv 1915 . . . . 5 (𝑥 = 𝑣 → (∃𝑦(𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ↔ ∃𝑦(𝑤 = ⟨𝑣, 𝑦⟩ ∧ [𝑣 / 𝑥]𝜑)))
111, 5, 10cbvexv1 2356 . . . 4 (∃𝑥𝑦(𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ↔ ∃𝑣𝑦(𝑤 = ⟨𝑣, 𝑦⟩ ∧ [𝑣 / 𝑥]𝜑))
12 nfv 1908 . . . . . . 7 𝑧 𝑤 = ⟨𝑣, 𝑦
13 cbvopab1.1 . . . . . . . 8 𝑧𝜑
1413nfsbv 2343 . . . . . . 7 𝑧[𝑣 / 𝑥]𝜑
1512, 14nfan 1893 . . . . . 6 𝑧(𝑤 = ⟨𝑣, 𝑦⟩ ∧ [𝑣 / 𝑥]𝜑)
1615nfex 2337 . . . . 5 𝑧𝑦(𝑤 = ⟨𝑣, 𝑦⟩ ∧ [𝑣 / 𝑥]𝜑)
17 nfv 1908 . . . . 5 𝑣𝑦(𝑤 = ⟨𝑧, 𝑦⟩ ∧ 𝜓)
18 opeq1 4802 . . . . . . . 8 (𝑣 = 𝑧 → ⟨𝑣, 𝑦⟩ = ⟨𝑧, 𝑦⟩)
1918eqeq2d 2837 . . . . . . 7 (𝑣 = 𝑧 → (𝑤 = ⟨𝑣, 𝑦⟩ ↔ 𝑤 = ⟨𝑧, 𝑦⟩))
20 cbvopab1.2 . . . . . . . 8 𝑥𝜓
21 cbvopab1.3 . . . . . . . 8 (𝑥 = 𝑧 → (𝜑𝜓))
2220, 21sbhypf 3558 . . . . . . 7 (𝑣 = 𝑧 → ([𝑣 / 𝑥]𝜑𝜓))
2319, 22anbi12d 630 . . . . . 6 (𝑣 = 𝑧 → ((𝑤 = ⟨𝑣, 𝑦⟩ ∧ [𝑣 / 𝑥]𝜑) ↔ (𝑤 = ⟨𝑧, 𝑦⟩ ∧ 𝜓)))
2423exbidv 1915 . . . . 5 (𝑣 = 𝑧 → (∃𝑦(𝑤 = ⟨𝑣, 𝑦⟩ ∧ [𝑣 / 𝑥]𝜑) ↔ ∃𝑦(𝑤 = ⟨𝑧, 𝑦⟩ ∧ 𝜓)))
2516, 17, 24cbvexv1 2356 . . . 4 (∃𝑣𝑦(𝑤 = ⟨𝑣, 𝑦⟩ ∧ [𝑣 / 𝑥]𝜑) ↔ ∃𝑧𝑦(𝑤 = ⟨𝑧, 𝑦⟩ ∧ 𝜓))
2611, 25bitri 276 . . 3 (∃𝑥𝑦(𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ↔ ∃𝑧𝑦(𝑤 = ⟨𝑧, 𝑦⟩ ∧ 𝜓))
2726abbii 2891 . 2 {𝑤 ∣ ∃𝑥𝑦(𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)} = {𝑤 ∣ ∃𝑧𝑦(𝑤 = ⟨𝑧, 𝑦⟩ ∧ 𝜓)}
28 df-opab 5126 . 2 {⟨𝑥, 𝑦⟩ ∣ 𝜑} = {𝑤 ∣ ∃𝑥𝑦(𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)}
29 df-opab 5126 . 2 {⟨𝑧, 𝑦⟩ ∣ 𝜓} = {𝑤 ∣ ∃𝑧𝑦(𝑤 = ⟨𝑧, 𝑦⟩ ∧ 𝜓)}
3027, 28, 293eqtr4i 2859 1 {⟨𝑥, 𝑦⟩ ∣ 𝜑} = {⟨𝑧, 𝑦⟩ ∣ 𝜓}
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ↔ wb 207   ∧ wa 396   = wceq 1530  ∃wex 1773  Ⅎwnf 1777  [wsb 2062  {cab 2804  ⟨cop 4570  {copab 5125 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1789  ax-4 1803  ax-5 1904  ax-6 1963  ax-7 2008  ax-8 2109  ax-9 2117  ax-10 2138  ax-11 2153  ax-12 2169  ax-ext 2798 This theorem depends on definitions:  df-bi 208  df-an 397  df-or 844  df-3an 1083  df-tru 1533  df-ex 1774  df-nf 1778  df-sb 2063  df-clab 2805  df-cleq 2819  df-clel 2898  df-nfc 2968  df-rab 3152  df-v 3502  df-dif 3943  df-un 3945  df-in 3947  df-ss 3956  df-nul 4296  df-if 4471  df-sn 4565  df-pr 4567  df-op 4571  df-opab 5126 This theorem is referenced by:  cbvopab1v  5140  cbvmptf  5162  phpreu  34762  poimirlem26  34804  mbfposadd  34825
 Copyright terms: Public domain W3C validator