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

Theorem oprabv 6668
 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 6667 . . 3 Rel {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑}
2 brrelex12 5125 . . 3 ((Rel {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑} ∧ ⟨𝑋, 𝑌⟩{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑}𝑍) → (⟨𝑋, 𝑌⟩ ∈ V ∧ 𝑍 ∈ V))
31, 2mpan 705 . 2 (⟨𝑋, 𝑌⟩{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑}𝑍 → (⟨𝑋, 𝑌⟩ ∈ V ∧ 𝑍 ∈ V))
4 df-br 4624 . . . . 5 (⟨𝑋, 𝑌⟩{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑}𝑍 ↔ ⟨⟨𝑋, 𝑌⟩, 𝑍⟩ ∈ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑})
5 opex 4903 . . . . . . . . 9 𝑋, 𝑌⟩ ∈ V
6 nfcv 2761 . . . . . . . . . . . . . 14 𝑤𝑋, 𝑌
76nfeq1 2774 . . . . . . . . . . . . 13 𝑤𝑋, 𝑌⟩ = ⟨𝑥, 𝑦
8 nfv 1840 . . . . . . . . . . . . 13 𝑤𝜑
97, 8nfan 1825 . . . . . . . . . . . 12 𝑤(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ 𝜑)
109nfex 2151 . . . . . . . . . . 11 𝑤𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ 𝜑)
1110nfex 2151 . . . . . . . . . 10 𝑤𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ 𝜑)
12 nfcv 2761 . . . . . . . . . . . . . 14 𝑧𝑋, 𝑌
1312nfeq1 2774 . . . . . . . . . . . . 13 𝑧𝑋, 𝑌⟩ = ⟨𝑥, 𝑦
14 nfsbc1v 3442 . . . . . . . . . . . . 13 𝑧[𝑍 / 𝑧]𝜑
1513, 14nfan 1825 . . . . . . . . . . . 12 𝑧(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑)
1615nfex 2151 . . . . . . . . . . 11 𝑧𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑)
1716nfex 2151 . . . . . . . . . 10 𝑧𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑)
18 eqeq1 2625 . . . . . . . . . . . 12 (𝑤 = ⟨𝑋, 𝑌⟩ → (𝑤 = ⟨𝑥, 𝑦⟩ ↔ ⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩))
1918anbi1d 740 . . . . . . . . . . 11 (𝑤 = ⟨𝑋, 𝑌⟩ → ((𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ↔ (⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ 𝜑)))
20192exbidv 1849 . . . . . . . . . 10 (𝑤 = ⟨𝑋, 𝑌⟩ → (∃𝑥𝑦(𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ↔ ∃𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ 𝜑)))
21 sbceq1a 3433 . . . . . . . . . . . 12 (𝑧 = 𝑍 → (𝜑[𝑍 / 𝑧]𝜑))
2221anbi2d 739 . . . . . . . . . . 11 (𝑧 = 𝑍 → ((⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ↔ (⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑)))
23222exbidv 1849 . . . . . . . . . 10 (𝑧 = 𝑍 → (∃𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ 𝜑) ↔ ∃𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑)))
2411, 17, 20, 23opelopabgf 4965 . . . . . . . . 9 ((⟨𝑋, 𝑌⟩ ∈ V ∧ 𝑍 ∈ V) → (⟨⟨𝑋, 𝑌⟩, 𝑍⟩ ∈ {⟨𝑤, 𝑧⟩ ∣ ∃𝑥𝑦(𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)} ↔ ∃𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑)))
255, 24mpan 705 . . . . . . . 8 (𝑍 ∈ V → (⟨⟨𝑋, 𝑌⟩, 𝑍⟩ ∈ {⟨𝑤, 𝑧⟩ ∣ ∃𝑥𝑦(𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)} ↔ ∃𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑)))
26 eqcom 2628 . . . . . . . . . . . . . . 15 (⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ↔ ⟨𝑥, 𝑦⟩ = ⟨𝑋, 𝑌⟩)
27 vex 3193 . . . . . . . . . . . . . . . 16 𝑥 ∈ V
28 vex 3193 . . . . . . . . . . . . . . . 16 𝑦 ∈ V
2927, 28opth 4915 . . . . . . . . . . . . . . 15 (⟨𝑥, 𝑦⟩ = ⟨𝑋, 𝑌⟩ ↔ (𝑥 = 𝑋𝑦 = 𝑌))
3026, 29bitri 264 . . . . . . . . . . . . . 14 (⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ↔ (𝑥 = 𝑋𝑦 = 𝑌))
31 eqvisset 3201 . . . . . . . . . . . . . . 15 (𝑥 = 𝑋𝑋 ∈ V)
32 eqvisset 3201 . . . . . . . . . . . . . . 15 (𝑦 = 𝑌𝑌 ∈ V)
3331, 32anim12i 589 . . . . . . . . . . . . . 14 ((𝑥 = 𝑋𝑦 = 𝑌) → (𝑋 ∈ V ∧ 𝑌 ∈ V))
3430, 33sylbi 207 . . . . . . . . . . . . 13 (⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ → (𝑋 ∈ V ∧ 𝑌 ∈ V))
3534adantr 481 . . . . . . . . . . . 12 ((⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑) → (𝑋 ∈ V ∧ 𝑌 ∈ V))
3635exlimivv 1857 . . . . . . . . . . 11 (∃𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑) → (𝑋 ∈ V ∧ 𝑌 ∈ V))
3736anim1i 591 . . . . . . . . . 10 ((∃𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑) ∧ 𝑍 ∈ V) → ((𝑋 ∈ V ∧ 𝑌 ∈ V) ∧ 𝑍 ∈ V))
38 df-3an 1038 . . . . . . . . . 10 ((𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V) ↔ ((𝑋 ∈ V ∧ 𝑌 ∈ V) ∧ 𝑍 ∈ V))
3937, 38sylibr 224 . . . . . . . . 9 ((∃𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑) ∧ 𝑍 ∈ V) → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V))
4039expcom 451 . . . . . . . 8 (𝑍 ∈ V → (∃𝑥𝑦(⟨𝑋, 𝑌⟩ = ⟨𝑥, 𝑦⟩ ∧ [𝑍 / 𝑧]𝜑) → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V)))
4125, 40sylbid 230 . . . . . . 7 (𝑍 ∈ V → (⟨⟨𝑋, 𝑌⟩, 𝑍⟩ ∈ {⟨𝑤, 𝑧⟩ ∣ ∃𝑥𝑦(𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)} → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V)))
4241com12 32 . . . . . 6 (⟨⟨𝑋, 𝑌⟩, 𝑍⟩ ∈ {⟨𝑤, 𝑧⟩ ∣ ∃𝑥𝑦(𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)} → (𝑍 ∈ V → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V)))
43 dfoprab2 6666 . . . . . 6 {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑} = {⟨𝑤, 𝑧⟩ ∣ ∃𝑥𝑦(𝑤 = ⟨𝑥, 𝑦⟩ ∧ 𝜑)}
4442, 43eleq2s 2716 . . . . 5 (⟨⟨𝑋, 𝑌⟩, 𝑍⟩ ∈ {⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑} → (𝑍 ∈ V → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V)))
454, 44sylbi 207 . . . 4 (⟨𝑋, 𝑌⟩{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑}𝑍 → (𝑍 ∈ V → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V)))
4645com12 32 . . 3 (𝑍 ∈ V → (⟨𝑋, 𝑌⟩{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑}𝑍 → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V)))
4746adantl 482 . 2 ((⟨𝑋, 𝑌⟩ ∈ V ∧ 𝑍 ∈ V) → (⟨𝑋, 𝑌⟩{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑}𝑍 → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V)))
483, 47mpcom 38 1 (⟨𝑋, 𝑌⟩{⟨⟨𝑥, 𝑦⟩, 𝑧⟩ ∣ 𝜑}𝑍 → (𝑋 ∈ V ∧ 𝑌 ∈ V ∧ 𝑍 ∈ V))
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ↔ wb 196   ∧ wa 384   ∧ w3a 1036   = wceq 1480  ∃wex 1701   ∈ wcel 1987  Vcvv 3190  [wsbc 3422  ⟨cop 4161   class class class wbr 4623  {copab 4682  Rel wrel 5089  {coprab 6616 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-sep 4751  ax-nul 4759  ax-pr 4877 This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-ral 2913  df-rex 2914  df-rab 2917  df-v 3192  df-sbc 3423  df-dif 3563  df-un 3565  df-in 3567  df-ss 3574  df-nul 3898  df-if 4065  df-sn 4156  df-pr 4158  df-op 4162  df-br 4624  df-opab 4684  df-xp 5090  df-rel 5091  df-oprab 6619 This theorem is referenced by: (None)
 Copyright terms: Public domain W3C validator