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

Theorem cbvoprab2 7244
Description: Change the second bound variable in an operation abstraction. (Contributed by Jeff Madsen, 11-Jun-2010.) (Revised by Mario Carneiro, 11-Dec-2016.)
Hypotheses
Ref Expression
cbvoprab2.1 𝑤𝜑
cbvoprab2.2 𝑦𝜓
cbvoprab2.3 (𝑦 = 𝑤 → (𝜑𝜓))
Assertion
Ref Expression
cbvoprab2 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑} = {⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∣ 𝜓}
Distinct variable group:   𝑥,𝑤,𝑦,𝑧
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑧,𝑤)   𝜓(𝑥,𝑦,𝑧,𝑤)

Proof of Theorem cbvoprab2
Dummy variable 𝑣 is distinct from all other variables.
StepHypRef Expression
1 nfv 1915 . . . . . . 7 𝑤 𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧
2 cbvoprab2.1 . . . . . . 7 𝑤𝜑
31, 2nfan 1900 . . . . . 6 𝑤(𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑)
43nfex 2343 . . . . 5 𝑤𝑧(𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑)
5 nfv 1915 . . . . . . 7 𝑦 𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧
6 cbvoprab2.2 . . . . . . 7 𝑦𝜓
75, 6nfan 1900 . . . . . 6 𝑦(𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∧ 𝜓)
87nfex 2343 . . . . 5 𝑦𝑧(𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∧ 𝜓)
9 opeq2 4806 . . . . . . . . 9 (𝑦 = 𝑤 → ⟨𝑥, 𝑦⟩ = ⟨𝑥, 𝑤⟩)
109opeq1d 4811 . . . . . . . 8 (𝑦 = 𝑤 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩)
1110eqeq2d 2834 . . . . . . 7 (𝑦 = 𝑤 → (𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ↔ 𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩))
12 cbvoprab2.3 . . . . . . 7 (𝑦 = 𝑤 → (𝜑𝜓))
1311, 12anbi12d 632 . . . . . 6 (𝑦 = 𝑤 → ((𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑) ↔ (𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∧ 𝜓)))
1413exbidv 1922 . . . . 5 (𝑦 = 𝑤 → (∃𝑧(𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑) ↔ ∃𝑧(𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∧ 𝜓)))
154, 8, 14cbvexv1 2362 . . . 4 (∃𝑦𝑧(𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑) ↔ ∃𝑤𝑧(𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∧ 𝜓))
1615exbii 1848 . . 3 (∃𝑥𝑦𝑧(𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑) ↔ ∃𝑥𝑤𝑧(𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∧ 𝜓))
1716abbii 2888 . 2 {𝑣 ∣ ∃𝑥𝑦𝑧(𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑)} = {𝑣 ∣ ∃𝑥𝑤𝑧(𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∧ 𝜓)}
18 df-oprab 7162 . 2 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑} = {𝑣 ∣ ∃𝑥𝑦𝑧(𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑)}
19 df-oprab 7162 . 2 {⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∣ 𝜓} = {𝑣 ∣ ∃𝑥𝑤𝑧(𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∧ 𝜓)}
2017, 18, 193eqtr4i 2856 1 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑} = {⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∣ 𝜓}
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398   = wceq 1537  wex 1780  wnf 1784  {cab 2801  cop 4575  {coprab 7159
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2795
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-clab 2802  df-cleq 2816  df-clel 2895  df-nfc 2965  df-rab 3149  df-v 3498  df-dif 3941  df-un 3943  df-in 3945  df-ss 3954  df-nul 4294  df-if 4470  df-sn 4570  df-pr 4572  df-op 4576  df-oprab 7162
This theorem is referenced by:  cbvmpo2  41370
  Copyright terms: Public domain W3C validator