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

Theorem opabex3d 7684
Description: Existence of an ordered pair abstraction, deduction version. (Contributed by Alexander van der Vekens, 19-Oct-2017.) (Revised by AV, 9-Aug-2024.)
Hypotheses
Ref Expression
opabex3d.1 (𝜑𝐴𝑉)
opabex3d.2 ((𝜑𝑥𝐴) → {𝑦𝜓} ∈ V)
Assertion
Ref Expression
opabex3d (𝜑 → {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝜓)} ∈ V)
Distinct variable groups:   𝑥,𝐴,𝑦   𝜑,𝑥
Allowed substitution hints:   𝜑(𝑦)   𝜓(𝑥,𝑦)   𝑉(𝑥,𝑦)

Proof of Theorem opabex3d
Dummy variables 𝑣 𝑤 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 19.42v 1960 . . . . . 6 (∃𝑦(𝑥𝐴 ∧ (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜓)) ↔ (𝑥𝐴 ∧ ∃𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜓)))
2 an12 645 . . . . . . 7 ((𝑧 = ⟨𝑥, 𝑦⟩ ∧ (𝑥𝐴𝜓)) ↔ (𝑥𝐴 ∧ (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜓)))
32exbii 1854 . . . . . 6 (∃𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ (𝑥𝐴𝜓)) ↔ ∃𝑦(𝑥𝐴 ∧ (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜓)))
4 elxp 5542 . . . . . . . 8 (𝑧 ∈ ({𝑥} × {𝑦𝜓}) ↔ ∃𝑣𝑤(𝑧 = ⟨𝑣, 𝑤⟩ ∧ (𝑣 ∈ {𝑥} ∧ 𝑤 ∈ {𝑦𝜓})))
5 excom 2169 . . . . . . . . 9 (∃𝑣𝑤(𝑧 = ⟨𝑣, 𝑤⟩ ∧ (𝑣 ∈ {𝑥} ∧ 𝑤 ∈ {𝑦𝜓})) ↔ ∃𝑤𝑣(𝑧 = ⟨𝑣, 𝑤⟩ ∧ (𝑣 ∈ {𝑥} ∧ 𝑤 ∈ {𝑦𝜓})))
6 an12 645 . . . . . . . . . . . . 13 ((𝑧 = ⟨𝑣, 𝑤⟩ ∧ (𝑣 ∈ {𝑥} ∧ 𝑤 ∈ {𝑦𝜓})) ↔ (𝑣 ∈ {𝑥} ∧ (𝑧 = ⟨𝑣, 𝑤⟩ ∧ 𝑤 ∈ {𝑦𝜓})))
7 velsn 4529 . . . . . . . . . . . . . 14 (𝑣 ∈ {𝑥} ↔ 𝑣 = 𝑥)
87anbi1i 627 . . . . . . . . . . . . 13 ((𝑣 ∈ {𝑥} ∧ (𝑧 = ⟨𝑣, 𝑤⟩ ∧ 𝑤 ∈ {𝑦𝜓})) ↔ (𝑣 = 𝑥 ∧ (𝑧 = ⟨𝑣, 𝑤⟩ ∧ 𝑤 ∈ {𝑦𝜓})))
96, 8bitri 278 . . . . . . . . . . . 12 ((𝑧 = ⟨𝑣, 𝑤⟩ ∧ (𝑣 ∈ {𝑥} ∧ 𝑤 ∈ {𝑦𝜓})) ↔ (𝑣 = 𝑥 ∧ (𝑧 = ⟨𝑣, 𝑤⟩ ∧ 𝑤 ∈ {𝑦𝜓})))
109exbii 1854 . . . . . . . . . . 11 (∃𝑣(𝑧 = ⟨𝑣, 𝑤⟩ ∧ (𝑣 ∈ {𝑥} ∧ 𝑤 ∈ {𝑦𝜓})) ↔ ∃𝑣(𝑣 = 𝑥 ∧ (𝑧 = ⟨𝑣, 𝑤⟩ ∧ 𝑤 ∈ {𝑦𝜓})))
11 opeq1 4756 . . . . . . . . . . . . . 14 (𝑣 = 𝑥 → ⟨𝑣, 𝑤⟩ = ⟨𝑥, 𝑤⟩)
1211eqeq2d 2749 . . . . . . . . . . . . 13 (𝑣 = 𝑥 → (𝑧 = ⟨𝑣, 𝑤⟩ ↔ 𝑧 = ⟨𝑥, 𝑤⟩))
1312anbi1d 633 . . . . . . . . . . . 12 (𝑣 = 𝑥 → ((𝑧 = ⟨𝑣, 𝑤⟩ ∧ 𝑤 ∈ {𝑦𝜓}) ↔ (𝑧 = ⟨𝑥, 𝑤⟩ ∧ 𝑤 ∈ {𝑦𝜓})))
1413equsexvw 2015 . . . . . . . . . . 11 (∃𝑣(𝑣 = 𝑥 ∧ (𝑧 = ⟨𝑣, 𝑤⟩ ∧ 𝑤 ∈ {𝑦𝜓})) ↔ (𝑧 = ⟨𝑥, 𝑤⟩ ∧ 𝑤 ∈ {𝑦𝜓}))
1510, 14bitri 278 . . . . . . . . . 10 (∃𝑣(𝑧 = ⟨𝑣, 𝑤⟩ ∧ (𝑣 ∈ {𝑥} ∧ 𝑤 ∈ {𝑦𝜓})) ↔ (𝑧 = ⟨𝑥, 𝑤⟩ ∧ 𝑤 ∈ {𝑦𝜓}))
1615exbii 1854 . . . . . . . . 9 (∃𝑤𝑣(𝑧 = ⟨𝑣, 𝑤⟩ ∧ (𝑣 ∈ {𝑥} ∧ 𝑤 ∈ {𝑦𝜓})) ↔ ∃𝑤(𝑧 = ⟨𝑥, 𝑤⟩ ∧ 𝑤 ∈ {𝑦𝜓}))
175, 16bitri 278 . . . . . . . 8 (∃𝑣𝑤(𝑧 = ⟨𝑣, 𝑤⟩ ∧ (𝑣 ∈ {𝑥} ∧ 𝑤 ∈ {𝑦𝜓})) ↔ ∃𝑤(𝑧 = ⟨𝑥, 𝑤⟩ ∧ 𝑤 ∈ {𝑦𝜓}))
18 nfv 1920 . . . . . . . . . 10 𝑦 𝑧 = ⟨𝑥, 𝑤
19 nfsab1 2725 . . . . . . . . . 10 𝑦 𝑤 ∈ {𝑦𝜓}
2018, 19nfan 1905 . . . . . . . . 9 𝑦(𝑧 = ⟨𝑥, 𝑤⟩ ∧ 𝑤 ∈ {𝑦𝜓})
21 nfv 1920 . . . . . . . . 9 𝑤(𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜓)
22 opeq2 4758 . . . . . . . . . . 11 (𝑤 = 𝑦 → ⟨𝑥, 𝑤⟩ = ⟨𝑥, 𝑦⟩)
2322eqeq2d 2749 . . . . . . . . . 10 (𝑤 = 𝑦 → (𝑧 = ⟨𝑥, 𝑤⟩ ↔ 𝑧 = ⟨𝑥, 𝑦⟩))
24 df-clab 2717 . . . . . . . . . . 11 (𝑤 ∈ {𝑦𝜓} ↔ [𝑤 / 𝑦]𝜓)
25 sbequ12 2252 . . . . . . . . . . . 12 (𝑦 = 𝑤 → (𝜓 ↔ [𝑤 / 𝑦]𝜓))
2625equcoms 2031 . . . . . . . . . . 11 (𝑤 = 𝑦 → (𝜓 ↔ [𝑤 / 𝑦]𝜓))
2724, 26bitr4id 293 . . . . . . . . . 10 (𝑤 = 𝑦 → (𝑤 ∈ {𝑦𝜓} ↔ 𝜓))
2823, 27anbi12d 634 . . . . . . . . 9 (𝑤 = 𝑦 → ((𝑧 = ⟨𝑥, 𝑤⟩ ∧ 𝑤 ∈ {𝑦𝜓}) ↔ (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜓)))
2920, 21, 28cbvexv1 2343 . . . . . . . 8 (∃𝑤(𝑧 = ⟨𝑥, 𝑤⟩ ∧ 𝑤 ∈ {𝑦𝜓}) ↔ ∃𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜓))
304, 17, 293bitri 300 . . . . . . 7 (𝑧 ∈ ({𝑥} × {𝑦𝜓}) ↔ ∃𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜓))
3130anbi2i 626 . . . . . 6 ((𝑥𝐴𝑧 ∈ ({𝑥} × {𝑦𝜓})) ↔ (𝑥𝐴 ∧ ∃𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜓)))
321, 3, 313bitr4ri 307 . . . . 5 ((𝑥𝐴𝑧 ∈ ({𝑥} × {𝑦𝜓})) ↔ ∃𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ (𝑥𝐴𝜓)))
3332exbii 1854 . . . 4 (∃𝑥(𝑥𝐴𝑧 ∈ ({𝑥} × {𝑦𝜓})) ↔ ∃𝑥𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ (𝑥𝐴𝜓)))
34 eliun 4882 . . . . 5 (𝑧 𝑥𝐴 ({𝑥} × {𝑦𝜓}) ↔ ∃𝑥𝐴 𝑧 ∈ ({𝑥} × {𝑦𝜓}))
35 df-rex 3059 . . . . 5 (∃𝑥𝐴 𝑧 ∈ ({𝑥} × {𝑦𝜓}) ↔ ∃𝑥(𝑥𝐴𝑧 ∈ ({𝑥} × {𝑦𝜓})))
3634, 35bitri 278 . . . 4 (𝑧 𝑥𝐴 ({𝑥} × {𝑦𝜓}) ↔ ∃𝑥(𝑥𝐴𝑧 ∈ ({𝑥} × {𝑦𝜓})))
37 elopab 5379 . . . 4 (𝑧 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝜓)} ↔ ∃𝑥𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ (𝑥𝐴𝜓)))
3833, 36, 373bitr4i 306 . . 3 (𝑧 𝑥𝐴 ({𝑥} × {𝑦𝜓}) ↔ 𝑧 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝜓)})
3938eqriv 2735 . 2 𝑥𝐴 ({𝑥} × {𝑦𝜓}) = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝜓)}
40 opabex3d.1 . . 3 (𝜑𝐴𝑉)
41 snex 5295 . . . . 5 {𝑥} ∈ V
42 opabex3d.2 . . . . 5 ((𝜑𝑥𝐴) → {𝑦𝜓} ∈ V)
43 xpexg 7485 . . . . 5 (({𝑥} ∈ V ∧ {𝑦𝜓} ∈ V) → ({𝑥} × {𝑦𝜓}) ∈ V)
4441, 42, 43sylancr 590 . . . 4 ((𝜑𝑥𝐴) → ({𝑥} × {𝑦𝜓}) ∈ V)
4544ralrimiva 3096 . . 3 (𝜑 → ∀𝑥𝐴 ({𝑥} × {𝑦𝜓}) ∈ V)
46 iunexg 7682 . . 3 ((𝐴𝑉 ∧ ∀𝑥𝐴 ({𝑥} × {𝑦𝜓}) ∈ V) → 𝑥𝐴 ({𝑥} × {𝑦𝜓}) ∈ V)
4740, 45, 46syl2anc 587 . 2 (𝜑 𝑥𝐴 ({𝑥} × {𝑦𝜓}) ∈ V)
4839, 47eqeltrrid 2838 1 (𝜑 → {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐴𝜓)} ∈ V)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399   = wceq 1542  wex 1786  [wsb 2073  wcel 2113  {cab 2716  wral 3053  wrex 3054  Vcvv 3397  {csn 4513  cop 4519   ciun 4878  {copab 5089   × cxp 5517
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1802  ax-4 1816  ax-5 1916  ax-6 1974  ax-7 2019  ax-8 2115  ax-9 2123  ax-10 2144  ax-11 2161  ax-12 2178  ax-ext 2710  ax-rep 5151  ax-sep 5164  ax-nul 5171  ax-pow 5229  ax-pr 5293  ax-un 7473
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 847  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1787  df-nf 1791  df-sb 2074  df-mo 2540  df-eu 2570  df-clab 2717  df-cleq 2730  df-clel 2811  df-nfc 2881  df-ne 2935  df-ral 3058  df-rex 3059  df-reu 3060  df-rab 3062  df-v 3399  df-sbc 3680  df-csb 3789  df-dif 3844  df-un 3846  df-in 3848  df-ss 3858  df-nul 4210  df-if 4412  df-pw 4487  df-sn 4514  df-pr 4516  df-op 4520  df-uni 4794  df-iun 4880  df-br 5028  df-opab 5090  df-mpt 5108  df-id 5425  df-xp 5525  df-rel 5526  df-cnv 5527  df-co 5528  df-dm 5529  df-rn 5530  df-res 5531  df-ima 5532  df-iota 6291  df-fun 6335  df-fn 6336  df-f 6337  df-f1 6338  df-fo 6339  df-f1o 6340  df-fv 6341
This theorem is referenced by:  wksfval  27543  fpwrelmap  30635  satfv0  32883  cnvepresex  36081  opabresex0d  44294  upwlksfval  44815
  Copyright terms: Public domain W3C validator