Users' Mathboxes Mathbox for BJ < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  bj-opabco Structured version   Visualization version   GIF version

Theorem bj-opabco 35419
Description: Composition of ordered-pair class abstractions. (Contributed by BJ, 22-May-2024.)
Assertion
Ref Expression
bj-opabco ({⟨𝑦, 𝑧⟩ ∣ 𝜓} ∘ {⟨𝑥, 𝑦⟩ ∣ 𝜑}) = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝜑𝜓)}
Distinct variable groups:   𝑥,𝑦,𝑧   𝜓,𝑥   𝜑,𝑧
Allowed substitution hints:   𝜑(𝑥,𝑦)   𝜓(𝑦,𝑧)

Proof of Theorem bj-opabco
Dummy variables 𝑎 𝑏 𝑐 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-co 5614 . 2 ({⟨𝑦, 𝑧⟩ ∣ 𝜓} ∘ {⟨𝑥, 𝑦⟩ ∣ 𝜑}) = {⟨𝑎, 𝑏⟩ ∣ ∃𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)}
2 nfcv 2905 . . . . . 6 𝑥𝑎
3 nfopab1 5155 . . . . . 6 𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}
4 nfcv 2905 . . . . . 6 𝑥𝑐
52, 3, 4nfbr 5132 . . . . 5 𝑥 𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐
6 nfv 1916 . . . . 5 𝑥 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏
75, 6nfan 1901 . . . 4 𝑥(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
87nfex 2317 . . 3 𝑥𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
9 nfv 1916 . . . . 5 𝑧 𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐
10 nfcv 2905 . . . . . 6 𝑧𝑐
11 nfopab2 5156 . . . . . 6 𝑧{⟨𝑦, 𝑧⟩ ∣ 𝜓}
12 nfcv 2905 . . . . . 6 𝑧𝑏
1310, 11, 12nfbr 5132 . . . . 5 𝑧 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏
149, 13nfan 1901 . . . 4 𝑧(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
1514nfex 2317 . . 3 𝑧𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
16 nfv 1916 . . 3 𝑎𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)
17 nfv 1916 . . 3 𝑏𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)
18 nfv 1916 . . . 4 𝑦(𝑎 = 𝑥𝑏 = 𝑧)
19 nfcv 2905 . . . . . . 7 𝑦𝑎
20 nfopab2 5156 . . . . . . 7 𝑦{⟨𝑥, 𝑦⟩ ∣ 𝜑}
21 nfcv 2905 . . . . . . 7 𝑦𝑐
2219, 20, 21nfbr 5132 . . . . . 6 𝑦 𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐
23 nfopab1 5155 . . . . . . 7 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}
24 nfcv 2905 . . . . . . 7 𝑦𝑏
2521, 23, 24nfbr 5132 . . . . . 6 𝑦 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏
2622, 25nfan 1901 . . . . 5 𝑦(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
2726a1i 11 . . . 4 ((𝑎 = 𝑥𝑏 = 𝑧) → Ⅎ𝑦(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏))
28 simpll 764 . . . . . . 7 (((𝑎 = 𝑥𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → 𝑎 = 𝑥)
29 simpr 485 . . . . . . 7 (((𝑎 = 𝑥𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → 𝑐 = 𝑦)
3028, 29breq12d 5098 . . . . . 6 (((𝑎 = 𝑥𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → (𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦))
31 simplr 766 . . . . . . 7 (((𝑎 = 𝑥𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → 𝑏 = 𝑧)
3229, 31breq12d 5098 . . . . . 6 (((𝑎 = 𝑥𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → (𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧))
3330, 32anbi12d 631 . . . . 5 (((𝑎 = 𝑥𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → ((𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏) ↔ (𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)))
3433ex 413 . . . 4 ((𝑎 = 𝑥𝑏 = 𝑧) → (𝑐 = 𝑦 → ((𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏) ↔ (𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧))))
3518, 27, 34cbvexdw 2335 . . 3 ((𝑎 = 𝑥𝑏 = 𝑧) → (∃𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏) ↔ ∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)))
368, 15, 16, 17, 35cbvopab 5157 . 2 {⟨𝑎, 𝑏⟩ ∣ ∃𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)} = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)}
37 bj-opelopabid 35418 . . . . 5 (𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝜑)
38 bj-opelopabid 35418 . . . . 5 (𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧𝜓)
3937, 38anbi12i 627 . . . 4 ((𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧) ↔ (𝜑𝜓))
4039exbii 1849 . . 3 (∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧) ↔ ∃𝑦(𝜑𝜓))
4140opabbii 5152 . 2 {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)} = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝜑𝜓)}
421, 36, 413eqtri 2769 1 ({⟨𝑦, 𝑧⟩ ∣ 𝜓} ∘ {⟨𝑥, 𝑦⟩ ∣ 𝜑}) = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝜑𝜓)}
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 396   = wceq 1540  wex 1780  wnf 1784   class class class wbr 5085  {copab 5147  ccom 5609
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1912  ax-6 1970  ax-7 2010  ax-8 2107  ax-9 2115  ax-10 2136  ax-11 2153  ax-12 2170  ax-ext 2708  ax-sep 5236  ax-nul 5243  ax-pr 5365
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1543  df-fal 1553  df-ex 1781  df-nf 1785  df-sb 2067  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2729  df-clel 2815  df-nfc 2887  df-rab 3405  df-v 3443  df-dif 3899  df-un 3901  df-in 3903  df-ss 3913  df-nul 4267  df-if 4470  df-sn 4570  df-pr 4572  df-op 4576  df-br 5086  df-opab 5148  df-co 5614
This theorem is referenced by:  bj-imdirco  35421
  Copyright terms: Public domain W3C validator