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 38110
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 5659 . 2 ({⟨𝑦, 𝑧⟩ ∣ 𝜓} ∘ {⟨𝑥, 𝑦⟩ ∣ 𝜑}) = {⟨𝑎, 𝑏⟩ ∣ ∃𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)}
2 nfcv 2922 . . . . . 6 Ⅎ𝑥𝑎
3 nfopab1 5174 . . . . . 6 Ⅎ𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}
4 nfcv 2922 . . . . . 6 Ⅎ𝑥𝑐
52, 3, 4nfbr 5151 . . . . 5 Ⅎ𝑥 𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐
6 nfv 1946 . . . . 5 Ⅎ𝑥 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏
75, 6nfan 1931 . . . 4 Ⅎ𝑥(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
87nfex 2354 . . 3 Ⅎ𝑥∃𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
9 nfv 1946 . . . . 5 Ⅎ𝑧 𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐
10 nfcv 2922 . . . . . 6 Ⅎ𝑧𝑐
11 nfopab2 5175 . . . . . 6 Ⅎ𝑧{⟨𝑦, 𝑧⟩ ∣ 𝜓}
12 nfcv 2922 . . . . . 6 Ⅎ𝑧𝑏
1310, 11, 12nfbr 5151 . . . . 5 Ⅎ𝑧 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏
149, 13nfan 1931 . . . 4 Ⅎ𝑧(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
1514nfex 2354 . . 3 Ⅎ𝑧∃𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
16 nfv 1946 . . 3 Ⅎ𝑎∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ∧ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)
17 nfv 1946 . . 3 Ⅎ𝑏∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ∧ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)
18 nfv 1946 . . . 4 Ⅎ𝑦(𝑎 = 𝑥 ∧ 𝑏 = 𝑧)
19 nfcv 2922 . . . . . . 7 Ⅎ𝑦𝑎
20 nfopab2 5175 . . . . . . 7 Ⅎ𝑦{⟨𝑥, 𝑦⟩ ∣ 𝜑}
21 nfcv 2922 . . . . . . 7 Ⅎ𝑦𝑐
2219, 20, 21nfbr 5151 . . . . . 6 Ⅎ𝑦 𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐
23 nfopab1 5174 . . . . . . 7 Ⅎ𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}
24 nfcv 2922 . . . . . . 7 Ⅎ𝑦𝑏
2521, 23, 24nfbr 5151 . . . . . 6 Ⅎ𝑦 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏
2622, 25nfan 1931 . . . . 5 Ⅎ𝑦(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
2726a1i 11 . . . 4 ((𝑎 = 𝑥 ∧ 𝑏 = 𝑧) → Ⅎ𝑦(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏))
28 simpll 779 . . . . . . 7 (((𝑎 = 𝑥 ∧ 𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → 𝑎 = 𝑥)
29 simpr 490 . . . . . . 7 (((𝑎 = 𝑥 ∧ 𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → 𝑐 = 𝑦)
3028, 29breq12d 5115 . . . . . 6 (((𝑎 = 𝑥 ∧ 𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → (𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ↔ 𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦))
31 simplr 781 . . . . . . 7 (((𝑎 = 𝑥 ∧ 𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → 𝑏 = 𝑧)
3229, 31breq12d 5115 . . . . . 6 (((𝑎 = 𝑥 ∧ 𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → (𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏 ↔ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧))
3330, 32anbi12d 644 . . . . 5 (((𝑎 = 𝑥 ∧ 𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → ((𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏) ↔ (𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ∧ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)))
3433ex 418 . . . 4 ((𝑎 = 𝑥 ∧ 𝑏 = 𝑧) → (𝑐 = 𝑦 → ((𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏) ↔ (𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ∧ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧))))
3518, 27, 34cbvexdw 2368 . . 3 ((𝑎 = 𝑥 ∧ 𝑏 = 𝑧) → (∃𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏) ↔ ∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ∧ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)))
368, 15, 16, 17, 35cbvopab 5176 . 2 {⟨𝑎, 𝑏⟩ ∣ ∃𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)} = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ∧ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)}
37 bj-opelopabid 38109 . . . . 5 (𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ↔ 𝜑)
38 bj-opelopabid 38109 . . . . 5 (𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧 ↔ 𝜓)
3937, 38anbi12i 640 . . . 4 ((𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ∧ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧) ↔ (𝜑 ∧ 𝜓))
4039exbii 1880 . . 3 (∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ∧ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧) ↔ ∃𝑦(𝜑 ∧ 𝜓))
4140opabbii 5171 . 2 {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ∧ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)} = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝜑 ∧ 𝜓)}
421, 36, 413eqtri 2787 1 ({⟨𝑦, 𝑧⟩ ∣ 𝜓} ∘ {⟨𝑥, 𝑦⟩ ∣ 𝜑}) = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝜑 ∧ 𝜓)}
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1569  ∃wex 1811  Ⅎwnf 1815   class class class wbr 5102  {copab 5166   ∘ ccom 5654
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-pr 5390
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-rab 3413  df-v 3452  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-sn 4584  df-pr 4586  df-op 4590  df-br 5103  df-opab 5167  df-co 5659
This theorem is used by:  bj-imdirco  38112
  Copyright terms: Public domain W3C validator