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

Theorem dfoprab4f 7748
Description: Operation class abstraction expressed without existential quantifiers. (Contributed by NM, 20-Dec-2008.) Remove unnecessary distinct variable conditions. (Revised by David Abernethy, 19-Jun-2012.) (Revised by Mario Carneiro, 31-Aug-2015.)
Hypotheses
Ref Expression
dfoprab4f.x 𝑥𝜑
dfoprab4f.y 𝑦𝜑
dfoprab4f.1 (𝑤 = ⟨𝑥, 𝑦⟩ → (𝜑𝜓))
Assertion
Ref Expression
dfoprab4f {⟨𝑤, 𝑧⟩ ∣ (𝑤 ∈ (𝐴 × 𝐵) ∧ 𝜑)} = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ 𝜓)}
Distinct variable groups:   𝑥,𝑤,𝑦,𝑧   𝑤,𝐴,𝑥,𝑦   𝑤,𝐵,𝑥,𝑦   𝜓,𝑤
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑧,𝑤)   𝜓(𝑥,𝑦,𝑧)   𝐴(𝑧)   𝐵(𝑧)

Proof of Theorem dfoprab4f
Dummy variables 𝑢 𝑡 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nfv 1911 . . . . 5 𝑥 𝑤 = ⟨𝑡, 𝑢
2 dfoprab4f.x . . . . . 6 𝑥𝜑
3 nfs1v 2156 . . . . . 6 𝑥[𝑡 / 𝑥][𝑢 / 𝑦]𝜓
42, 3nfbi 1900 . . . . 5 𝑥(𝜑 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)
51, 4nfim 1893 . . . 4 𝑥(𝑤 = ⟨𝑡, 𝑢⟩ → (𝜑 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓))
6 opeq1 4796 . . . . . 6 (𝑥 = 𝑡 → ⟨𝑥, 𝑢⟩ = ⟨𝑡, 𝑢⟩)
76eqeq2d 2832 . . . . 5 (𝑥 = 𝑡 → (𝑤 = ⟨𝑥, 𝑢⟩ ↔ 𝑤 = ⟨𝑡, 𝑢⟩))
8 sbequ12 2249 . . . . . 6 (𝑥 = 𝑡 → ([𝑢 / 𝑦]𝜓 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓))
98bibi2d 345 . . . . 5 (𝑥 = 𝑡 → ((𝜑 ↔ [𝑢 / 𝑦]𝜓) ↔ (𝜑 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)))
107, 9imbi12d 347 . . . 4 (𝑥 = 𝑡 → ((𝑤 = ⟨𝑥, 𝑢⟩ → (𝜑 ↔ [𝑢 / 𝑦]𝜓)) ↔ (𝑤 = ⟨𝑡, 𝑢⟩ → (𝜑 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓))))
11 nfv 1911 . . . . . 6 𝑦 𝑤 = ⟨𝑥, 𝑢
12 dfoprab4f.y . . . . . . 7 𝑦𝜑
13 nfs1v 2156 . . . . . . 7 𝑦[𝑢 / 𝑦]𝜓
1412, 13nfbi 1900 . . . . . 6 𝑦(𝜑 ↔ [𝑢 / 𝑦]𝜓)
1511, 14nfim 1893 . . . . 5 𝑦(𝑤 = ⟨𝑥, 𝑢⟩ → (𝜑 ↔ [𝑢 / 𝑦]𝜓))
16 opeq2 4797 . . . . . . 7 (𝑦 = 𝑢 → ⟨𝑥, 𝑦⟩ = ⟨𝑥, 𝑢⟩)
1716eqeq2d 2832 . . . . . 6 (𝑦 = 𝑢 → (𝑤 = ⟨𝑥, 𝑦⟩ ↔ 𝑤 = ⟨𝑥, 𝑢⟩))
18 sbequ12 2249 . . . . . . 7 (𝑦 = 𝑢 → (𝜓 ↔ [𝑢 / 𝑦]𝜓))
1918bibi2d 345 . . . . . 6 (𝑦 = 𝑢 → ((𝜑𝜓) ↔ (𝜑 ↔ [𝑢 / 𝑦]𝜓)))
2017, 19imbi12d 347 . . . . 5 (𝑦 = 𝑢 → ((𝑤 = ⟨𝑥, 𝑦⟩ → (𝜑𝜓)) ↔ (𝑤 = ⟨𝑥, 𝑢⟩ → (𝜑 ↔ [𝑢 / 𝑦]𝜓))))
21 dfoprab4f.1 . . . . 5 (𝑤 = ⟨𝑥, 𝑦⟩ → (𝜑𝜓))
2215, 20, 21chvarfv 2238 . . . 4 (𝑤 = ⟨𝑥, 𝑢⟩ → (𝜑 ↔ [𝑢 / 𝑦]𝜓))
235, 10, 22chvarfv 2238 . . 3 (𝑤 = ⟨𝑡, 𝑢⟩ → (𝜑 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓))
2423dfoprab4 7747 . 2 {⟨𝑤, 𝑧⟩ ∣ (𝑤 ∈ (𝐴 × 𝐵) ∧ 𝜑)} = {⟨⟨𝑡, 𝑢⟩, 𝑧⟩ ∣ ((𝑡𝐴𝑢𝐵) ∧ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)}
25 nfv 1911 . . 3 𝑡((𝑥𝐴𝑦𝐵) ∧ 𝜓)
26 nfv 1911 . . 3 𝑢((𝑥𝐴𝑦𝐵) ∧ 𝜓)
27 nfv 1911 . . . 4 𝑥(𝑡𝐴𝑢𝐵)
2827, 3nfan 1896 . . 3 𝑥((𝑡𝐴𝑢𝐵) ∧ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)
29 nfv 1911 . . . 4 𝑦(𝑡𝐴𝑢𝐵)
3013nfsbv 2345 . . . 4 𝑦[𝑡 / 𝑥][𝑢 / 𝑦]𝜓
3129, 30nfan 1896 . . 3 𝑦((𝑡𝐴𝑢𝐵) ∧ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)
32 eleq1w 2895 . . . . 5 (𝑥 = 𝑡 → (𝑥𝐴𝑡𝐴))
33 eleq1w 2895 . . . . 5 (𝑦 = 𝑢 → (𝑦𝐵𝑢𝐵))
3432, 33bi2anan9 637 . . . 4 ((𝑥 = 𝑡𝑦 = 𝑢) → ((𝑥𝐴𝑦𝐵) ↔ (𝑡𝐴𝑢𝐵)))
3518, 8sylan9bbr 513 . . . 4 ((𝑥 = 𝑡𝑦 = 𝑢) → (𝜓 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓))
3634, 35anbi12d 632 . . 3 ((𝑥 = 𝑡𝑦 = 𝑢) → (((𝑥𝐴𝑦𝐵) ∧ 𝜓) ↔ ((𝑡𝐴𝑢𝐵) ∧ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)))
3725, 26, 28, 31, 36cbvoprab12 7237 . 2 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ 𝜓)} = {⟨⟨𝑡, 𝑢⟩, 𝑧⟩ ∣ ((𝑡𝐴𝑢𝐵) ∧ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)}
3824, 37eqtr4i 2847 1 {⟨𝑤, 𝑧⟩ ∣ (𝑤 ∈ (𝐴 × 𝐵) ∧ 𝜑)} = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥𝐴𝑦𝐵) ∧ 𝜓)}
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 208  wa 398   = wceq 1533  wnf 1780  [wsb 2065  wcel 2110  cop 4566  {copab 5120   × cxp 5547  {coprab 7151
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1792  ax-4 1806  ax-5 1907  ax-6 1966  ax-7 2011  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2157  ax-12 2173  ax-ext 2793  ax-sep 5195  ax-nul 5202  ax-pow 5258  ax-pr 5321  ax-un 7455
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1536  df-ex 1777  df-nf 1781  df-sb 2066  df-mo 2618  df-eu 2650  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3772  df-dif 3938  df-un 3940  df-in 3942  df-ss 3951  df-nul 4291  df-if 4467  df-sn 4561  df-pr 4563  df-op 4567  df-uni 4832  df-br 5059  df-opab 5121  df-mpt 5139  df-id 5454  df-xp 5555  df-rel 5556  df-cnv 5557  df-co 5558  df-dm 5559  df-rn 5560  df-iota 6308  df-fun 6351  df-fv 6357  df-oprab 7154  df-1st 7683  df-2nd 7684
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator