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

Theorem opabex3rd 7782
Description: Existence of an ordered pair abstraction if the second components are elements of a set. (Contributed by AV, 17-Sep-2023.) (Revised by AV, 9-Aug-2024.)
Hypotheses
Ref Expression
opabex3rd.1 (𝜑𝐴𝑉)
opabex3rd.2 ((𝜑𝑦𝐴) → {𝑥𝜓} ∈ V)
Assertion
Ref Expression
opabex3rd (𝜑 → {⟨𝑥, 𝑦⟩ ∣ (𝑦𝐴𝜓)} ∈ V)
Distinct variable groups:   𝑥,𝐴,𝑦   𝜑,𝑦
Allowed substitution hints:   𝜑(𝑥)   𝜓(𝑥,𝑦)   𝑉(𝑥,𝑦)

Proof of Theorem opabex3rd
Dummy variables 𝑣 𝑤 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 19.42v 1958 . . . . . . 7 (∃𝑥(𝑦𝐴 ∧ (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜓)) ↔ (𝑦𝐴 ∧ ∃𝑥(𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜓)))
2 an12 641 . . . . . . . 8 ((𝑧 = ⟨𝑥, 𝑦⟩ ∧ (𝑦𝐴𝜓)) ↔ (𝑦𝐴 ∧ (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜓)))
32exbii 1851 . . . . . . 7 (∃𝑥(𝑧 = ⟨𝑥, 𝑦⟩ ∧ (𝑦𝐴𝜓)) ↔ ∃𝑥(𝑦𝐴 ∧ (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜓)))
4 elxp 5603 . . . . . . . . . 10 (𝑧 ∈ ({𝑥𝜓} × {𝑦}) ↔ ∃𝑤𝑣(𝑧 = ⟨𝑤, 𝑣⟩ ∧ (𝑤 ∈ {𝑥𝜓} ∧ 𝑣 ∈ {𝑦})))
5 ancom 460 . . . . . . . . . . . 12 ((𝑤 ∈ {𝑥𝜓} ∧ 𝑣 ∈ {𝑦}) ↔ (𝑣 ∈ {𝑦} ∧ 𝑤 ∈ {𝑥𝜓}))
65anbi2i 622 . . . . . . . . . . 11 ((𝑧 = ⟨𝑤, 𝑣⟩ ∧ (𝑤 ∈ {𝑥𝜓} ∧ 𝑣 ∈ {𝑦})) ↔ (𝑧 = ⟨𝑤, 𝑣⟩ ∧ (𝑣 ∈ {𝑦} ∧ 𝑤 ∈ {𝑥𝜓})))
762exbii 1852 . . . . . . . . . 10 (∃𝑤𝑣(𝑧 = ⟨𝑤, 𝑣⟩ ∧ (𝑤 ∈ {𝑥𝜓} ∧ 𝑣 ∈ {𝑦})) ↔ ∃𝑤𝑣(𝑧 = ⟨𝑤, 𝑣⟩ ∧ (𝑣 ∈ {𝑦} ∧ 𝑤 ∈ {𝑥𝜓})))
84, 7bitri 274 . . . . . . . . 9 (𝑧 ∈ ({𝑥𝜓} × {𝑦}) ↔ ∃𝑤𝑣(𝑧 = ⟨𝑤, 𝑣⟩ ∧ (𝑣 ∈ {𝑦} ∧ 𝑤 ∈ {𝑥𝜓})))
9 an12 641 . . . . . . . . . . . . 13 ((𝑧 = ⟨𝑤, 𝑣⟩ ∧ (𝑣 ∈ {𝑦} ∧ 𝑤 ∈ {𝑥𝜓})) ↔ (𝑣 ∈ {𝑦} ∧ (𝑧 = ⟨𝑤, 𝑣⟩ ∧ 𝑤 ∈ {𝑥𝜓})))
10 velsn 4574 . . . . . . . . . . . . . 14 (𝑣 ∈ {𝑦} ↔ 𝑣 = 𝑦)
1110anbi1i 623 . . . . . . . . . . . . 13 ((𝑣 ∈ {𝑦} ∧ (𝑧 = ⟨𝑤, 𝑣⟩ ∧ 𝑤 ∈ {𝑥𝜓})) ↔ (𝑣 = 𝑦 ∧ (𝑧 = ⟨𝑤, 𝑣⟩ ∧ 𝑤 ∈ {𝑥𝜓})))
129, 11bitri 274 . . . . . . . . . . . 12 ((𝑧 = ⟨𝑤, 𝑣⟩ ∧ (𝑣 ∈ {𝑦} ∧ 𝑤 ∈ {𝑥𝜓})) ↔ (𝑣 = 𝑦 ∧ (𝑧 = ⟨𝑤, 𝑣⟩ ∧ 𝑤 ∈ {𝑥𝜓})))
1312exbii 1851 . . . . . . . . . . 11 (∃𝑣(𝑧 = ⟨𝑤, 𝑣⟩ ∧ (𝑣 ∈ {𝑦} ∧ 𝑤 ∈ {𝑥𝜓})) ↔ ∃𝑣(𝑣 = 𝑦 ∧ (𝑧 = ⟨𝑤, 𝑣⟩ ∧ 𝑤 ∈ {𝑥𝜓})))
14 opeq2 4802 . . . . . . . . . . . . . 14 (𝑣 = 𝑦 → ⟨𝑤, 𝑣⟩ = ⟨𝑤, 𝑦⟩)
1514eqeq2d 2749 . . . . . . . . . . . . 13 (𝑣 = 𝑦 → (𝑧 = ⟨𝑤, 𝑣⟩ ↔ 𝑧 = ⟨𝑤, 𝑦⟩))
1615anbi1d 629 . . . . . . . . . . . 12 (𝑣 = 𝑦 → ((𝑧 = ⟨𝑤, 𝑣⟩ ∧ 𝑤 ∈ {𝑥𝜓}) ↔ (𝑧 = ⟨𝑤, 𝑦⟩ ∧ 𝑤 ∈ {𝑥𝜓})))
1716equsexvw 2009 . . . . . . . . . . 11 (∃𝑣(𝑣 = 𝑦 ∧ (𝑧 = ⟨𝑤, 𝑣⟩ ∧ 𝑤 ∈ {𝑥𝜓})) ↔ (𝑧 = ⟨𝑤, 𝑦⟩ ∧ 𝑤 ∈ {𝑥𝜓}))
1813, 17bitri 274 . . . . . . . . . 10 (∃𝑣(𝑧 = ⟨𝑤, 𝑣⟩ ∧ (𝑣 ∈ {𝑦} ∧ 𝑤 ∈ {𝑥𝜓})) ↔ (𝑧 = ⟨𝑤, 𝑦⟩ ∧ 𝑤 ∈ {𝑥𝜓}))
1918exbii 1851 . . . . . . . . 9 (∃𝑤𝑣(𝑧 = ⟨𝑤, 𝑣⟩ ∧ (𝑣 ∈ {𝑦} ∧ 𝑤 ∈ {𝑥𝜓})) ↔ ∃𝑤(𝑧 = ⟨𝑤, 𝑦⟩ ∧ 𝑤 ∈ {𝑥𝜓}))
20 nfv 1918 . . . . . . . . . . 11 𝑥 𝑧 = ⟨𝑤, 𝑦
21 nfsab1 2723 . . . . . . . . . . 11 𝑥 𝑤 ∈ {𝑥𝜓}
2220, 21nfan 1903 . . . . . . . . . 10 𝑥(𝑧 = ⟨𝑤, 𝑦⟩ ∧ 𝑤 ∈ {𝑥𝜓})
23 nfv 1918 . . . . . . . . . 10 𝑤(𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜓)
24 opeq1 4801 . . . . . . . . . . . 12 (𝑤 = 𝑥 → ⟨𝑤, 𝑦⟩ = ⟨𝑥, 𝑦⟩)
2524eqeq2d 2749 . . . . . . . . . . 11 (𝑤 = 𝑥 → (𝑧 = ⟨𝑤, 𝑦⟩ ↔ 𝑧 = ⟨𝑥, 𝑦⟩))
26 df-clab 2716 . . . . . . . . . . . 12 (𝑤 ∈ {𝑥𝜓} ↔ [𝑤 / 𝑥]𝜓)
27 sbequ12 2247 . . . . . . . . . . . . 13 (𝑥 = 𝑤 → (𝜓 ↔ [𝑤 / 𝑥]𝜓))
2827equcoms 2024 . . . . . . . . . . . 12 (𝑤 = 𝑥 → (𝜓 ↔ [𝑤 / 𝑥]𝜓))
2926, 28bitr4id 289 . . . . . . . . . . 11 (𝑤 = 𝑥 → (𝑤 ∈ {𝑥𝜓} ↔ 𝜓))
3025, 29anbi12d 630 . . . . . . . . . 10 (𝑤 = 𝑥 → ((𝑧 = ⟨𝑤, 𝑦⟩ ∧ 𝑤 ∈ {𝑥𝜓}) ↔ (𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜓)))
3122, 23, 30cbvexv1 2341 . . . . . . . . 9 (∃𝑤(𝑧 = ⟨𝑤, 𝑦⟩ ∧ 𝑤 ∈ {𝑥𝜓}) ↔ ∃𝑥(𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜓))
328, 19, 313bitri 296 . . . . . . . 8 (𝑧 ∈ ({𝑥𝜓} × {𝑦}) ↔ ∃𝑥(𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜓))
3332anbi2i 622 . . . . . . 7 ((𝑦𝐴𝑧 ∈ ({𝑥𝜓} × {𝑦})) ↔ (𝑦𝐴 ∧ ∃𝑥(𝑧 = ⟨𝑥, 𝑦⟩ ∧ 𝜓)))
341, 3, 333bitr4ri 303 . . . . . 6 ((𝑦𝐴𝑧 ∈ ({𝑥𝜓} × {𝑦})) ↔ ∃𝑥(𝑧 = ⟨𝑥, 𝑦⟩ ∧ (𝑦𝐴𝜓)))
3534exbii 1851 . . . . 5 (∃𝑦(𝑦𝐴𝑧 ∈ ({𝑥𝜓} × {𝑦})) ↔ ∃𝑦𝑥(𝑧 = ⟨𝑥, 𝑦⟩ ∧ (𝑦𝐴𝜓)))
36 excom 2164 . . . . 5 (∃𝑦𝑥(𝑧 = ⟨𝑥, 𝑦⟩ ∧ (𝑦𝐴𝜓)) ↔ ∃𝑥𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ (𝑦𝐴𝜓)))
3735, 36bitri 274 . . . 4 (∃𝑦(𝑦𝐴𝑧 ∈ ({𝑥𝜓} × {𝑦})) ↔ ∃𝑥𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ (𝑦𝐴𝜓)))
38 eliun 4925 . . . . 5 (𝑧 𝑦𝐴 ({𝑥𝜓} × {𝑦}) ↔ ∃𝑦𝐴 𝑧 ∈ ({𝑥𝜓} × {𝑦}))
39 df-rex 3069 . . . . 5 (∃𝑦𝐴 𝑧 ∈ ({𝑥𝜓} × {𝑦}) ↔ ∃𝑦(𝑦𝐴𝑧 ∈ ({𝑥𝜓} × {𝑦})))
4038, 39bitri 274 . . . 4 (𝑧 𝑦𝐴 ({𝑥𝜓} × {𝑦}) ↔ ∃𝑦(𝑦𝐴𝑧 ∈ ({𝑥𝜓} × {𝑦})))
41 elopab 5433 . . . 4 (𝑧 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑦𝐴𝜓)} ↔ ∃𝑥𝑦(𝑧 = ⟨𝑥, 𝑦⟩ ∧ (𝑦𝐴𝜓)))
4237, 40, 413bitr4i 302 . . 3 (𝑧 𝑦𝐴 ({𝑥𝜓} × {𝑦}) ↔ 𝑧 ∈ {⟨𝑥, 𝑦⟩ ∣ (𝑦𝐴𝜓)})
4342eqriv 2735 . 2 𝑦𝐴 ({𝑥𝜓} × {𝑦}) = {⟨𝑥, 𝑦⟩ ∣ (𝑦𝐴𝜓)}
44 opabex3rd.1 . . 3 (𝜑𝐴𝑉)
45 opabex3rd.2 . . . . 5 ((𝜑𝑦𝐴) → {𝑥𝜓} ∈ V)
46 snex 5349 . . . . 5 {𝑦} ∈ V
47 xpexg 7578 . . . . 5 (({𝑥𝜓} ∈ V ∧ {𝑦} ∈ V) → ({𝑥𝜓} × {𝑦}) ∈ V)
4845, 46, 47sylancl 585 . . . 4 ((𝜑𝑦𝐴) → ({𝑥𝜓} × {𝑦}) ∈ V)
4948ralrimiva 3107 . . 3 (𝜑 → ∀𝑦𝐴 ({𝑥𝜓} × {𝑦}) ∈ V)
50 iunexg 7779 . . 3 ((𝐴𝑉 ∧ ∀𝑦𝐴 ({𝑥𝜓} × {𝑦}) ∈ V) → 𝑦𝐴 ({𝑥𝜓} × {𝑦}) ∈ V)
5144, 49, 50syl2anc 583 . 2 (𝜑 𝑦𝐴 ({𝑥𝜓} × {𝑦}) ∈ V)
5243, 51eqeltrrid 2844 1 (𝜑 → {⟨𝑥, 𝑦⟩ ∣ (𝑦𝐴𝜓)} ∈ V)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1539  wex 1783  [wsb 2068  wcel 2108  {cab 2715  wral 3063  wrex 3064  Vcvv 3422  {csn 4558  cop 4564   ciun 4921  {copab 5132   × cxp 5578
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-rep 5205  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-reu 3070  df-rab 3072  df-v 3424  df-sbc 3712  df-csb 3829  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-iun 4923  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426
This theorem is referenced by:  satfvsuclem1  33221  satf0suclem  33237  fmlasuc0  33246
  Copyright terms: Public domain W3C validator