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

Theorem oprabv 7335
Description: If a pair and a class are in a relationship given by a class abstraction of a collection of nested ordered pairs, the involved classes are sets. (Contributed by Alexander van der Vekens, 8-Jul-2018.)
Assertion
Ref Expression
oprabv (⟨𝑋, 𝑌⟩{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑}𝑍 → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V))
Distinct variable groups:   𝑥,𝑋,𝑦,𝑧   𝑥,𝑌,𝑦,𝑧   𝑥,𝑍,𝑦,𝑧
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑧)

Proof of Theorem oprabv
Dummy variable 𝑤 is distinct from all other variables.
StepHypRef Expression
1 reloprab 7334 . . 3 Rel {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑}
21brrelex12i 5642 . 2 (⟨𝑋, 𝑌⟩{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑}𝑍 → (⟨𝑋, 𝑌⟩ ∈ V ∧ 𝑍 ∈ V))
3 df-br 5075 . . . . 5 (⟨𝑋, 𝑌⟩{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑}𝑍 ↔ ⟨⟨𝑋, 𝑌⟩, 𝑍⟩ ∈ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑})
4 opex 5379 . . . . . . . . 9 𝑋, 𝑌⟩ ∈ V
5 nfcv 2907 . . . . . . . . . . . . . 14 𝑤𝑋, 𝑌
65nfeq1 2922 . . . . . . . . . . . . 13 𝑤𝑋, 𝑌⟩ = ⟨𝑥, 𝑦
7 nfv 1917 . . . . . . . . . . . . 13 𝑤𝜑
86, 7nfan 1902 . . . . . . . . . . . 12 𝑤(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ 𝜑)
98nfex 2318 . . . . . . . . . . 11 𝑤𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ 𝜑)
109nfex 2318 . . . . . . . . . 10 𝑤𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ 𝜑)
11 nfcv 2907 . . . . . . . . . . . . . 14 𝑧𝑋, 𝑌
1211nfeq1 2922 . . . . . . . . . . . . 13 𝑧𝑋, 𝑌⟩ = ⟨𝑥, 𝑦
13 nfsbc1v 3736 . . . . . . . . . . . . 13 𝑧[𝑍 / 𝑧]𝜑
1412, 13nfan 1902 . . . . . . . . . . . 12 𝑧(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑)
1514nfex 2318 . . . . . . . . . . 11 𝑧𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑)
1615nfex 2318 . . . . . . . . . 10 𝑧𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑)
17 eqeq1 2742 . . . . . . . . . . . 12 (𝑤 = ⟨𝑋, 𝑌⟩ → (𝑤 = ⟨𝑥, 𝑦⟩ ↔ ⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩))
1817anbi1d 630 . . . . . . . . . . 11 (𝑤 = ⟨𝑋, 𝑌⟩ → ((𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ↔ (⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ 𝜑)))
19182exbidv 1927 . . . . . . . . . 10 (𝑤 = ⟨𝑋, 𝑌⟩ → (∃𝑥𝑦(𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ↔ ∃𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ 𝜑)))
20 sbceq1a 3727 . . . . . . . . . . . 12 (𝑧 = 𝑍 → (𝜑[𝑍 / 𝑧]𝜑))
2120anbi2d 629 . . . . . . . . . . 11 (𝑧 = 𝑍 → ((⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ↔ (⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑)))
22212exbidv 1927 . . . . . . . . . 10 (𝑧 = 𝑍 → (∃𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ↔ ∃𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑)))
2310, 16, 19, 22opelopabgf 5453 . . . . . . . . 9 ((⟨𝑋, 𝑌⟩ ∈ V ∧ 𝑍 ∈ V) → (⟨⟨𝑋, 𝑌⟩, 𝑍⟩ ∈ {⟨𝑤, 𝑧⟩ ∣ ∃𝑥𝑦(𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)} ↔ ∃𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑)))
244, 23mpan 687 . . . . . . . 8 (𝑍 ∈ V → (⟨⟨𝑋, 𝑌⟩, 𝑍⟩ ∈ {⟨𝑤, 𝑧⟩ ∣ ∃𝑥𝑦(𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)} ↔ ∃𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑)))
25 eqcom 2745 . . . . . . . . . . . . . . 15 (⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ↔ ⟨𝑥, 𝑦⟩ = ⟨𝑋, 𝑌⟩)
26 vex 3436 . . . . . . . . . . . . . . . 16 𝑥 ∈ V
27 vex 3436 . . . . . . . . . . . . . . . 16 𝑦 ∈ V
2826, 27opth 5391 . . . . . . . . . . . . . . 15 (⟨𝑥, 𝑦⟩ = ⟨𝑋, 𝑌⟩ ↔ (𝑥 = 𝑋𝑦 = 𝑌))
2925, 28bitri 274 . . . . . . . . . . . . . 14 (⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ↔ (𝑥 = 𝑋𝑦 = 𝑌))
30 eqvisset 3449 . . . . . . . . . . . . . . 15 (𝑥 = 𝑋𝑋 ∈ V)
31 eqvisset 3449 . . . . . . . . . . . . . . 15 (𝑦 = 𝑌𝑌 ∈ V)
3230, 31anim12i 613 . . . . . . . . . . . . . 14 ((𝑥 = 𝑋𝑦 = 𝑌) → (𝑋 ∈ V ∧ 𝑌 ∈ V))
3329, 32sylbi 216 . . . . . . . . . . . . 13 (⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ → (𝑋 ∈ V ∧ 𝑌 ∈ V))
3433adantr 481 . . . . . . . . . . . 12 ((⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑) → (𝑋 ∈ V ∧ 𝑌 ∈ V))
3534exlimivv 1935 . . . . . . . . . . 11 (∃𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑) → (𝑋 ∈ V ∧ 𝑌 ∈ V))
3635anim1i 615 . . . . . . . . . 10 ((∃𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑) ∧ 𝑍 ∈ V) → ((𝑋 ∈ V ∧ 𝑌 ∈ V) ∧ 𝑍 ∈ V))
37 df-3an 1088 . . . . . . . . . 10 ((𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V) ↔ ((𝑋 ∈ V ∧ 𝑌 ∈ V) ∧ 𝑍 ∈ V))
3836, 37sylibr 233 . . . . . . . . 9 ((∃𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑) ∧ 𝑍 ∈ V) → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V))
3938expcom 414 . . . . . . . 8 (𝑍 ∈ V → (∃𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑) → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V)))
4024, 39sylbid 239 . . . . . . 7 (𝑍 ∈ V → (⟨⟨𝑋, 𝑌⟩, 𝑍⟩ ∈ {⟨𝑤, 𝑧⟩ ∣ ∃𝑥𝑦(𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)} → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V)))
4140com12 32 . . . . . 6 (⟨⟨𝑋, 𝑌⟩, 𝑍⟩ ∈ {⟨𝑤, 𝑧⟩ ∣ ∃𝑥𝑦(𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)} → (𝑍 ∈ V → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V)))
42 dfoprab2 7333 . . . . . 6 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑} = {⟨𝑤, 𝑧⟩ ∣ ∃𝑥𝑦(𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)}
4341, 42eleq2s 2857 . . . . 5 (⟨⟨𝑋, 𝑌⟩, 𝑍⟩ ∈ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑} → (𝑍 ∈ V → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V)))
443, 43sylbi 216 . . . 4 (⟨𝑋, 𝑌⟩{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑}𝑍 → (𝑍 ∈ V → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V)))
4544com12 32 . . 3 (𝑍 ∈ V → (⟨𝑋, 𝑌⟩{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑}𝑍 → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V)))
4645adantl 482 . 2 ((⟨𝑋, 𝑌⟩ ∈ V ∧ 𝑍 ∈ V) → (⟨𝑋, 𝑌⟩{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑}𝑍 → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V)))
472, 46mpcom 38 1 (⟨𝑋, 𝑌⟩{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑}𝑍 → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 396  w3a 1086   = wceq 1539  wex 1782  wcel 2106  Vcvv 3432  [wsbc 3716  cop 4567   class class class wbr 5074  {copab 5136  {coprab 7276
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pr 5352
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-sbc 3717  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-br 5075  df-opab 5137  df-xp 5595  df-rel 5596  df-oprab 7279
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator