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

Theorem dfoprab4f 8102
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 1949 . . . . 5 Ⅎ𝑥 𝑤 = ⟨𝑡, 𝑢⟩
2 dfoprab4f.x . . . . . 6 Ⅎ𝑥𝜑
3 nfs1v 2196 . . . . . 6 Ⅎ𝑥[𝑡 / 𝑥][𝑢 / 𝑦]𝜓
42, 3nfbi 1938 . . . . 5 Ⅎ𝑥(𝜑 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)
51, 4nfim 1931 . . . 4 Ⅎ𝑥(𝑤 = ⟨𝑡, 𝑢⟩ → (𝜑 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓))
6 opeq1 4845 . . . . . 6 (𝑥 = 𝑡 → ⟨𝑥, 𝑢⟩ = ⟨𝑡, 𝑢⟩)
76eqeq2d 2774 . . . . 5 (𝑥 = 𝑡 → (𝑤 = ⟨𝑥, 𝑢⟩ ↔ 𝑤 = ⟨𝑡, 𝑢⟩))
8 sbequ12 2290 . . . . . 6 (𝑥 = 𝑡 → ([𝑢 / 𝑦]𝜓 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓))
98bibi2d 345 . . . . 5 (𝑥 = 𝑡 → ((𝜑 ↔ [𝑢 / 𝑦]𝜓) ↔ (𝜑 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)))
107, 9imbi12d 347 . . . 4 (𝑥 = 𝑡 → ((𝑤 = ⟨𝑥, 𝑢⟩ → (𝜑 ↔ [𝑢 / 𝑦]𝜓)) ↔ (𝑤 = ⟨𝑡, 𝑢⟩ → (𝜑 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓))))
11 nfv 1949 . . . . . 6 Ⅎ𝑦 𝑤 = ⟨𝑥, 𝑢⟩
12 dfoprab4f.y . . . . . . 7 Ⅎ𝑦𝜑
13 nfs1v 2196 . . . . . . 7 Ⅎ𝑦[𝑢 / 𝑦]𝜓
1412, 13nfbi 1938 . . . . . 6 Ⅎ𝑦(𝜑 ↔ [𝑢 / 𝑦]𝜓)
1511, 14nfim 1931 . . . . 5 Ⅎ𝑦(𝑤 = ⟨𝑥, 𝑢⟩ → (𝜑 ↔ [𝑢 / 𝑦]𝜓))
16 opeq2 4846 . . . . . . 7 (𝑦 = 𝑢 → ⟨𝑥, 𝑦⟩ = ⟨𝑥, 𝑢⟩)
1716eqeq2d 2774 . . . . . 6 (𝑦 = 𝑢 → (𝑤 = ⟨𝑥, 𝑦⟩ ↔ 𝑤 = ⟨𝑥, 𝑢⟩))
18 sbequ12 2290 . . . . . . 7 (𝑦 = 𝑢 → (𝜓 ↔ [𝑢 / 𝑦]𝜓))
1918bibi2d 345 . . . . . 6 (𝑦 = 𝑢 → ((𝜑 ↔ 𝜓) ↔ (𝜑 ↔ [𝑢 / 𝑦]𝜓)))
2017, 19imbi12d 347 . . . . 5 (𝑦 = 𝑢 → ((𝑤 = ⟨𝑥, 𝑦⟩ → (𝜑 ↔ 𝜓)) ↔ (𝑤 = ⟨𝑥, 𝑢⟩ → (𝜑 ↔ [𝑢 / 𝑦]𝜓))))
21 dfoprab4f.1 . . . . 5 (𝑤 = ⟨𝑥, 𝑦⟩ → (𝜑 ↔ 𝜓))
2215, 20, 21chvarfv 2280 . . . 4 (𝑤 = ⟨𝑥, 𝑢⟩ → (𝜑 ↔ [𝑢 / 𝑦]𝜓))
235, 10, 22chvarfv 2280 . . 3 (𝑤 = ⟨𝑡, 𝑢⟩ → (𝜑 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓))
2423dfoprab4 8101 . 2 {⟨𝑤, 𝑧⟩ ∣ (𝑤 ∈ (𝐴 × 𝐵) ∧ 𝜑)} = {⟨⟨𝑡, 𝑢⟩, 𝑧⟩ ∣ ((𝑡 ∈ 𝐴 ∧ 𝑢 ∈ 𝐵) ∧ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)}
25 nfv 1949 . . 3 Ⅎ𝑡((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝜓)
26 nfv 1949 . . 3 Ⅎ𝑢((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝜓)
27 nfv 1949 . . . 4 Ⅎ𝑥(𝑡 ∈ 𝐴 ∧ 𝑢 ∈ 𝐵)
2827, 3nfan 1934 . . 3 Ⅎ𝑥((𝑡 ∈ 𝐴 ∧ 𝑢 ∈ 𝐵) ∧ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)
29 nfv 1949 . . . 4 Ⅎ𝑦(𝑡 ∈ 𝐴 ∧ 𝑢 ∈ 𝐵)
3013nfsbv 2364 . . . 4 Ⅎ𝑦[𝑡 / 𝑥][𝑢 / 𝑦]𝜓
3129, 30nfan 1934 . . 3 Ⅎ𝑦((𝑡 ∈ 𝐴 ∧ 𝑢 ∈ 𝐵) ∧ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)
32 eleq1w 2847 . . . . 5 (𝑥 = 𝑡 → (𝑥 ∈ 𝐴 ↔ 𝑡 ∈ 𝐴))
33 eleq1w 2847 . . . . 5 (𝑦 = 𝑢 → (𝑦 ∈ 𝐵 ↔ 𝑢 ∈ 𝐵))
3432, 33bi2anan9 650 . . . 4 ((𝑥 = 𝑡 ∧ 𝑦 = 𝑢) → ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ↔ (𝑡 ∈ 𝐴 ∧ 𝑢 ∈ 𝐵)))
3518, 8sylan9bbr 520 . . . 4 ((𝑥 = 𝑡 ∧ 𝑦 = 𝑢) → (𝜓 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓))
3634, 35anbi12d 644 . . 3 ((𝑥 = 𝑡 ∧ 𝑦 = 𝑢) → (((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝜓) ↔ ((𝑡 ∈ 𝐴 ∧ 𝑢 ∈ 𝐵) ∧ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)))
3725, 26, 28, 31, 36cbvoprab12 7540 . 2 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝜓)} = {⟨⟨𝑡, 𝑢⟩, 𝑧⟩ ∣ ((𝑡 ∈ 𝐴 ∧ 𝑢 ∈ 𝐵) ∧ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)}
3824, 37eqtr4i 2789 1 {⟨𝑤, 𝑧⟩ ∣ (𝑤 ∈ (𝐴 × 𝐵) ∧ 𝜑)} = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝜓)}
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1570  Ⅎwnf 1816  [wsb 2101   ∈ wcel 2147  ⟨cop 4840  {copab 5173   × cxp 5656  {coprab 7452
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5255  ax-nul 5266  ax-pr 5398  ax-un 7783
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-sbc 3743  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-sn 4589  df-pr 4591  df-op 4841  df-uni 4873  df-br 5109  df-opab 5174  df-mpt 5193  df-id 5553  df-xp 5664  df-rel 5665  df-cnv 5666  df-co 5667  df-dm 5668  df-rn 5669  df-iota 6520  df-fun 6568  df-fv 6574  df-oprab 7455  df-1st 8035  df-2nd 8036
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator