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 38300
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 5664 . 2 ({⟨𝑦, 𝑧⟩ ∣ 𝜓} ∘ {⟨𝑥, 𝑦⟩ ∣ 𝜑}) = {⟨𝑎, 𝑏⟩ ∣ ∃𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)}
2 nfcv 2926 . . . . . 6 Ⅎ𝑥𝑎
3 nfopab1 5178 . . . . . 6 Ⅎ𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}
4 nfcv 2926 . . . . . 6 Ⅎ𝑥𝑐
52, 3, 4nfbr 5155 . . . . 5 Ⅎ𝑥 𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐
6 nfv 1949 . . . . 5 Ⅎ𝑥 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏
75, 6nfan 1934 . . . 4 Ⅎ𝑥(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
87nfex 2358 . . 3 Ⅎ𝑥∃𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
9 nfv 1949 . . . . 5 Ⅎ𝑧 𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐
10 nfcv 2926 . . . . . 6 Ⅎ𝑧𝑐
11 nfopab2 5179 . . . . . 6 Ⅎ𝑧{⟨𝑦, 𝑧⟩ ∣ 𝜓}
12 nfcv 2926 . . . . . 6 Ⅎ𝑧𝑏
1310, 11, 12nfbr 5155 . . . . 5 Ⅎ𝑧 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏
149, 13nfan 1934 . . . 4 Ⅎ𝑧(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
1514nfex 2358 . . 3 Ⅎ𝑧∃𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
16 nfv 1949 . . 3 Ⅎ𝑎∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ∧ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)
17 nfv 1949 . . 3 Ⅎ𝑏∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ∧ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)
18 nfv 1949 . . . 4 Ⅎ𝑦(𝑎 = 𝑥 ∧ 𝑏 = 𝑧)
19 nfcv 2926 . . . . . . 7 Ⅎ𝑦𝑎
20 nfopab2 5179 . . . . . . 7 Ⅎ𝑦{⟨𝑥, 𝑦⟩ ∣ 𝜑}
21 nfcv 2926 . . . . . . 7 Ⅎ𝑦𝑐
2219, 20, 21nfbr 5155 . . . . . 6 Ⅎ𝑦 𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐
23 nfopab1 5178 . . . . . . 7 Ⅎ𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}
24 nfcv 2926 . . . . . . 7 Ⅎ𝑦𝑏
2521, 23, 24nfbr 5155 . . . . . 6 Ⅎ𝑦 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏
2622, 25nfan 1934 . . . . 5 Ⅎ𝑦(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)
2726a1i 11 . . . 4 ((𝑎 = 𝑥 ∧ 𝑏 = 𝑧) → Ⅎ𝑦(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏))
28 simpll 779 . . . . . . 7 (((𝑎 = 𝑥 ∧ 𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → 𝑎 = 𝑥)
29 simpr 490 . . . . . . 7 (((𝑎 = 𝑥 ∧ 𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → 𝑐 = 𝑦)
3028, 29breq12d 5119 . . . . . 6 (((𝑎 = 𝑥 ∧ 𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → (𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ↔ 𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦))
31 simplr 781 . . . . . . 7 (((𝑎 = 𝑥 ∧ 𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → 𝑏 = 𝑧)
3229, 31breq12d 5119 . . . . . 6 (((𝑎 = 𝑥 ∧ 𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → (𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏 ↔ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧))
3330, 32anbi12d 644 . . . . 5 (((𝑎 = 𝑥 ∧ 𝑏 = 𝑧) ∧ 𝑐 = 𝑦) → ((𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏) ↔ (𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ∧ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)))
3433ex 418 . . . 4 ((𝑎 = 𝑥 ∧ 𝑏 = 𝑧) → (𝑐 = 𝑦 → ((𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏) ↔ (𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ∧ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧))))
3518, 27, 34cbvexdw 2372 . . 3 ((𝑎 = 𝑥 ∧ 𝑏 = 𝑧) → (∃𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏) ↔ ∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ∧ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)))
368, 15, 16, 17, 35cbvopab 5180 . 2 {⟨𝑎, 𝑏⟩ ∣ ∃𝑐(𝑎{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑐 ∧ 𝑐{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑏)} = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ∧ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)}
37 bj-opelopabid 38299 . . . . 5 (𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ↔ 𝜑)
38 bj-opelopabid 38299 . . . . 5 (𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧 ↔ 𝜓)
3937, 38anbi12i 640 . . . 4 ((𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ∧ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧) ↔ (𝜑 ∧ 𝜓))
4039exbii 1881 . . 3 (∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ∧ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧) ↔ ∃𝑦(𝜑 ∧ 𝜓))
4140opabbii 5175 . 2 {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝑥{⟨𝑥, 𝑦⟩ ∣ 𝜑}𝑦 ∧ 𝑦{⟨𝑦, 𝑧⟩ ∣ 𝜓}𝑧)} = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝜑 ∧ 𝜓)}
421, 36, 413eqtri 2790 1 ({⟨𝑦, 𝑧⟩ ∣ 𝜓} ∘ {⟨𝑥, 𝑦⟩ ∣ 𝜑}) = {⟨𝑥, 𝑧⟩ ∣ ∃𝑦(𝜑 ∧ 𝜓)}
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ↔ wb 209   ∧ wa 401   = wceq 1570  ∃wex 1812  Ⅎwnf 1816   class class class wbr 5106  {copab 5170   ∘ ccom 5659
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5252  ax-pr 5395
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2102  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-rab 3417  df-v 3456  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-sn 4589  df-pr 4591  df-op 4839  df-br 5107  df-opab 5171  df-co 5664
This theorem is used by:  bj-imdirco  38302
  Copyright terms: Public domain W3C validator