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

Theorem dfoprab4f 8065
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 1947 . . . . 5 Ⅎ𝑥 𝑤 = ⟨𝑡, 𝑢⟩
2 dfoprab4f.x . . . . . 6 Ⅎ𝑥𝜑
3 nfs1v 2193 . . . . . 6 Ⅎ𝑥[𝑡 / 𝑥][𝑢 / 𝑦]𝜓
42, 3nfbi 1936 . . . . 5 Ⅎ𝑥(𝜑 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)
51, 4nfim 1929 . . . 4 Ⅎ𝑥(𝑤 = ⟨𝑡, 𝑢⟩ → (𝜑 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓))
6 opeq1 4833 . . . . . 6 (𝑥 = 𝑡 → ⟨𝑥, 𝑢⟩ = ⟨𝑡, 𝑢⟩)
76eqeq2d 2772 . . . . 5 (𝑥 = 𝑡 → (𝑤 = ⟨𝑥, 𝑢⟩ ↔ 𝑤 = ⟨𝑡, 𝑢⟩))
8 sbequ12 2287 . . . . . 6 (𝑥 = 𝑡 → ([𝑢 / 𝑦]𝜓 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓))
98bibi2d 345 . . . . 5 (𝑥 = 𝑡 → ((𝜑 ↔ [𝑢 / 𝑦]𝜓) ↔ (𝜑 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)))
107, 9imbi12d 347 . . . 4 (𝑥 = 𝑡 → ((𝑤 = ⟨𝑥, 𝑢⟩ → (𝜑 ↔ [𝑢 / 𝑦]𝜓)) ↔ (𝑤 = ⟨𝑡, 𝑢⟩ → (𝜑 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓))))
11 nfv 1947 . . . . . 6 Ⅎ𝑦 𝑤 = ⟨𝑥, 𝑢⟩
12 dfoprab4f.y . . . . . . 7 Ⅎ𝑦𝜑
13 nfs1v 2193 . . . . . . 7 Ⅎ𝑦[𝑢 / 𝑦]𝜓
1412, 13nfbi 1936 . . . . . 6 Ⅎ𝑦(𝜑 ↔ [𝑢 / 𝑦]𝜓)
1511, 14nfim 1929 . . . . 5 Ⅎ𝑦(𝑤 = ⟨𝑥, 𝑢⟩ → (𝜑 ↔ [𝑢 / 𝑦]𝜓))
16 opeq2 4834 . . . . . . 7 (𝑦 = 𝑢 → ⟨𝑥, 𝑦⟩ = ⟨𝑥, 𝑢⟩)
1716eqeq2d 2772 . . . . . 6 (𝑦 = 𝑢 → (𝑤 = ⟨𝑥, 𝑦⟩ ↔ 𝑤 = ⟨𝑥, 𝑢⟩))
18 sbequ12 2287 . . . . . . 7 (𝑦 = 𝑢 → (𝜓 ↔ [𝑢 / 𝑦]𝜓))
1918bibi2d 345 . . . . . 6 (𝑦 = 𝑢 → ((𝜑 ↔ 𝜓) ↔ (𝜑 ↔ [𝑢 / 𝑦]𝜓)))
2017, 19imbi12d 347 . . . . 5 (𝑦 = 𝑢 → ((𝑤 = ⟨𝑥, 𝑦⟩ → (𝜑 ↔ 𝜓)) ↔ (𝑤 = ⟨𝑥, 𝑢⟩ → (𝜑 ↔ [𝑢 / 𝑦]𝜓))))
21 dfoprab4f.1 . . . . 5 (𝑤 = ⟨𝑥, 𝑦⟩ → (𝜑 ↔ 𝜓))
2215, 20, 21chvarfv 2277 . . . 4 (𝑤 = ⟨𝑥, 𝑢⟩ → (𝜑 ↔ [𝑢 / 𝑦]𝜓))
235, 10, 22chvarfv 2277 . . 3 (𝑤 = ⟨𝑡, 𝑢⟩ → (𝜑 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓))
2423dfoprab4 8064 . 2 {⟨𝑤, 𝑧⟩ ∣ (𝑤 ∈ (𝐴 × 𝐵) ∧ 𝜑)} = {⟨⟨𝑡, 𝑢⟩, 𝑧⟩ ∣ ((𝑡 ∈ 𝐴 ∧ 𝑢 ∈ 𝐵) ∧ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)}
25 nfv 1947 . . 3 Ⅎ𝑡((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝜓)
26 nfv 1947 . . 3 Ⅎ𝑢((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝜓)
27 nfv 1947 . . . 4 Ⅎ𝑥(𝑡 ∈ 𝐴 ∧ 𝑢 ∈ 𝐵)
2827, 3nfan 1932 . . 3 Ⅎ𝑥((𝑡 ∈ 𝐴 ∧ 𝑢 ∈ 𝐵) ∧ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)
29 nfv 1947 . . . 4 Ⅎ𝑦(𝑡 ∈ 𝐴 ∧ 𝑢 ∈ 𝐵)
3013nfsbv 2361 . . . 4 Ⅎ𝑦[𝑡 / 𝑥][𝑢 / 𝑦]𝜓
3129, 30nfan 1932 . . 3 Ⅎ𝑦((𝑡 ∈ 𝐴 ∧ 𝑢 ∈ 𝐵) ∧ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)
32 eleq1w 2844 . . . . 5 (𝑥 = 𝑡 → (𝑥 ∈ 𝐴 ↔ 𝑡 ∈ 𝐴))
33 eleq1w 2844 . . . . 5 (𝑦 = 𝑢 → (𝑦 ∈ 𝐵 ↔ 𝑢 ∈ 𝐵))
3432, 33bi2anan9 650 . . . 4 ((𝑥 = 𝑡 ∧ 𝑦 = 𝑢) → ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ↔ (𝑡 ∈ 𝐴 ∧ 𝑢 ∈ 𝐵)))
3518, 8sylan9bbr 520 . . . 4 ((𝑥 = 𝑡 ∧ 𝑦 = 𝑢) → (𝜓 ↔ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓))
3634, 35anbi12d 644 . . 3 ((𝑥 = 𝑡 ∧ 𝑦 = 𝑢) → (((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝜓) ↔ ((𝑡 ∈ 𝐴 ∧ 𝑢 ∈ 𝐵) ∧ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)))
3725, 26, 28, 31, 36cbvoprab12 7507 . 2 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝜓)} = {⟨⟨𝑡, 𝑢⟩, 𝑧⟩ ∣ ((𝑡 ∈ 𝐴 ∧ 𝑢 ∈ 𝐵) ∧ [𝑡 / 𝑥][𝑢 / 𝑦]𝜓)}
3824, 37eqtr4i 2787 1 {⟨𝑤, 𝑧⟩ ∣ (𝑤 ∈ (𝐴 × 𝐵) ∧ 𝜑)} = {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) ∧ 𝜓)}
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1570  Ⅎwnf 1816  [wsb 2099   ∈ wcel 2145  ⟨cop 4590  {copab 5167   × cxp 5649  {coprab 7419
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 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-nul 5260  ax-pr 5391  ax-un 7749
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 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-sbc 3740  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-iota 6493  df-fun 6539  df-fv 6545  df-oprab 7422  df-1st 7999  df-2nd 8000
This theorem is used by: (None)
  Copyright terms: Public domain W3C validator