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 35043
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 5545 . 2 ({⟨𝑦, 𝑧⟩ ∣ 𝜓} ∘ {⟨𝑥, 𝑦⟩ ∣ 𝜑}) = {⟨𝑎, 𝑏⟩ ∣ ∃𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)}
2 nfcv 2897 . . . . . 6 𝑥𝑎
3 nfopab1 5108 . . . . . 6 𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}
4 nfcv 2897 . . . . . 6 𝑥𝑐
52, 3, 4nfbr 5086 . . . . 5 𝑥 𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐
6 nfv 1922 . . . . 5 𝑥 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏
75, 6nfan 1907 . . . 4 𝑥(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
87nfex 2325 . . 3 𝑥𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
9 nfv 1922 . . . . 5 𝑧 𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐
10 nfcv 2897 . . . . . 6 𝑧𝑐
11 nfopab2 5109 . . . . . 6 𝑧{⟨𝑦, 𝑧⟩ ∣ 𝜓}
12 nfcv 2897 . . . . . 6 𝑧𝑏
1310, 11, 12nfbr 5086 . . . . 5 𝑧 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏
149, 13nfan 1907 . . . 4 𝑧(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
1514nfex 2325 . . 3 𝑧𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
16 nfv 1922 . . 3 𝑎𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)
17 nfv 1922 . . 3 𝑏𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)
18 nfv 1922 . . . 4 𝑦(𝑎 = 𝑥𝑏 = 𝑧)
19 nfcv 2897 . . . . . . 7 𝑦𝑎
20 nfopab2 5109 . . . . . . 7 𝑦{⟨𝑥, 𝑦⟩ ∣ 𝜑}
21 nfcv 2897 . . . . . . 7 𝑦𝑐
2219, 20, 21nfbr 5086 . . . . . 6 𝑦 𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐
23 nfopab1 5108 . . . . . . 7 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}
24 nfcv 2897 . . . . . . 7 𝑦𝑏
2521, 23, 24nfbr 5086 . . . . . 6 𝑦 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏
2622, 25nfan 1907 . . . . 5 𝑦(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
2726a1i 11 . . . 4 ((𝑎 = 𝑥𝑏 = 𝑧) → Ⅎ𝑦(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏))
28 simpll 767 . . . . . . 7 (((𝑎 = 𝑥𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → 𝑎 = 𝑥)
29 simpr 488 . . . . . . 7 (((𝑎 = 𝑥𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → 𝑐 = 𝑦)
3028, 29breq12d 5052 . . . . . 6 (((𝑎 = 𝑥𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → (𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦))
31 simplr 769 . . . . . . 7 (((𝑎 = 𝑥𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → 𝑏 = 𝑧)
3229, 31breq12d 5052 . . . . . 6 (((𝑎 = 𝑥𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → (𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧))
3330, 32anbi12d 634 . . . . 5 (((𝑎 = 𝑥𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → ((𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏) ↔ (𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)))
3433ex 416 . . . 4 ((𝑎 = 𝑥𝑏 = 𝑧) → (𝑐 = 𝑦 → ((𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏) ↔ (𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧))))
3518, 27, 34cbvexdw 2340 . . 3 ((𝑎 = 𝑥𝑏 = 𝑧) → (∃𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏) ↔ ∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)))
368, 15, 16, 17, 35cbvopab 5110 . 2 {⟨𝑎, 𝑏⟩ ∣ ∃𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)} = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)}
37 bj-opelopabid 35042 . . . . 5 (𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝜑)
38 bj-opelopabid 35042 . . . . 5 (𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧𝜓)
3937, 38anbi12i 630 . . . 4 ((𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧) ↔ (𝜑𝜓))
4039exbii 1855 . . 3 (∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧) ↔ ∃𝑦(𝜑𝜓))
4140opabbii 5106 . 2 {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)} = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝜑𝜓)}
421, 36, 413eqtri 2763 1 ({⟨𝑦, 𝑧⟩ ∣ 𝜓} ∘ {⟨𝑥, 𝑦⟩ ∣ 𝜑}) = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝜑𝜓)}
Colors of variables: wff setvar class
Syntax hints:  wb 209  wa 399   = wceq 1543  wex 1787  wnf 1791   class class class wbr 5039  {copab 5101  ccom 5540
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2018  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2160  ax-12 2177  ax-ext 2708  ax-sep 5177  ax-nul 5184  ax-pr 5307
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2073  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2728  df-clel 2809  df-nfc 2879  df-rab 3060  df-v 3400  df-dif 3856  df-un 3858  df-nul 4224  df-if 4426  df-sn 4528  df-pr 4530  df-op 4534  df-br 5040  df-opab 5102  df-co 5545
This theorem is referenced by:  bj-imdirco  35045
  Copyright terms: Public domain W3C validator