ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  cbvoprab2 GIF version

Theorem cbvoprab2 5837
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 1508 . . . . . . 7 𝑤 𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧
2 cbvoprab2.1 . . . . . . 7 𝑤𝜑
31, 2nfan 1544 . . . . . 6 𝑤(𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑)
43nfex 1616 . . . . 5 𝑤𝑧(𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑)
5 nfv 1508 . . . . . . 7 𝑦 𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧
6 cbvoprab2.2 . . . . . . 7 𝑦𝜓
75, 6nfan 1544 . . . . . 6 𝑦(𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∧ 𝜓)
87nfex 1616 . . . . 5 𝑦𝑧(𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∧ 𝜓)
9 opeq2 3701 . . . . . . . . 9 (𝑦 = 𝑤 → ⟨𝑥, 𝑦⟩ = ⟨𝑥, 𝑤⟩)
109opeq1d 3706 . . . . . . . 8 (𝑦 = 𝑤 → ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩)
1110eqeq2d 2149 . . . . . . 7 (𝑦 = 𝑤 → (𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ↔ 𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩))
12 cbvoprab2.3 . . . . . . 7 (𝑦 = 𝑤 → (𝜑𝜓))
1311, 12anbi12d 464 . . . . . 6 (𝑦 = 𝑤 → ((𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑) ↔ (𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∧ 𝜓)))
1413exbidv 1797 . . . . 5 (𝑦 = 𝑤 → (∃𝑧(𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑) ↔ ∃𝑧(𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∧ 𝜓)))
154, 8, 14cbvex 1729 . . . 4 (∃𝑦𝑧(𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑) ↔ ∃𝑤𝑧(𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∧ 𝜓))
1615exbii 1584 . . 3 (∃𝑥𝑦𝑧(𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑) ↔ ∃𝑥𝑤𝑧(𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∧ 𝜓))
1716abbii 2253 . 2 {𝑣 ∣ ∃𝑥𝑦𝑧(𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑)} = {𝑣 ∣ ∃𝑥𝑤𝑧(𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∧ 𝜓)}
18 df-oprab 5771 . 2 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑} = {𝑣 ∣ ∃𝑥𝑦𝑧(𝑣 = ⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∧ 𝜑)}
19 df-oprab 5771 . 2 {⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∣ 𝜓} = {𝑣 ∣ ∃𝑥𝑤𝑧(𝑣 = ⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∧ 𝜓)}
2017, 18, 193eqtr4i 2168 1 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑} = {⟨⟨𝑥, 𝑤⟩, 𝑧⟩ ∣ 𝜓}
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103  wb 104   = wceq 1331  wnf 1436  wex 1468  {cab 2123  cop 3525  {coprab 5768
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-io 698  ax-5 1423  ax-7 1424  ax-gen 1425  ax-ie1 1469  ax-ie2 1470  ax-8 1482  ax-10 1483  ax-11 1484  ax-i12 1485  ax-bndl 1486  ax-4 1487  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-ext 2119
This theorem depends on definitions:  df-bi 116  df-3an 964  df-tru 1334  df-nf 1437  df-sb 1736  df-clab 2124  df-cleq 2130  df-clel 2133  df-nfc 2268  df-v 2683  df-un 3070  df-sn 3528  df-pr 3529  df-op 3531  df-oprab 5771
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator