HomeHome Metamath Proof Explorer < Previous   Next >
Related theorems
GIF version

Theorem coass 3498
Description: Associative law for class composition. Theorem 27 of [Suppes] p. 64. Also Exercise 21 of [Enderton] p. 53. Interestingly, this law holds for any classes whatsoever, not just functions or even relations.
Assertion
Ref Expression
coass ((AB) ∘ C) = (A ∘ (BC))

Proof of Theorem coass
StepHypRef Expression
1 relco 3470 . 2 Rel ((AB) ∘ C)
2 relco 3470 . 2 Rel (A ∘ (BC))
3 excom 1042 . . . 4 (∃zw(xCz ⋀ (zBwwAy)) ↔ ∃wz(xCz ⋀ (zBwwAy)))
4 anass 439 . . . . 5 (((xCzzBw) ⋀ wAy) ↔ (xCz ⋀ (zBwwAy)))
542exbii 1048 . . . 4 (∃wz((xCzzBw) ⋀ wAy) ↔ ∃wz(xCz ⋀ (zBwwAy)))
63, 5bitr4 176 . . 3 (∃zw(xCz ⋀ (zBwwAy)) ↔ ∃wz((xCzzBw) ⋀ wAy))
7 df-br 2610 . . . . . . 7 (z(AB)y ↔ ⟨z, y⟩ ∈ (AB))
8 visset 1804 . . . . . . . 8 zV
9 visset 1804 . . . . . . . 8 yV
108, 9opelco 3277 . . . . . . 7 (⟨z, y⟩ ∈ (AB) ↔ ∃w(zBwwAy))
117, 10bitr 173 . . . . . 6 (z(AB)y ↔ ∃w(zBwwAy))
1211anbi2i 479 . . . . 5 ((xCzz(AB)y) ↔ (xCz ⋀ ∃w(zBwwAy)))
1312exbii 1047 . . . 4 (∃z(xCzz(AB)y) ↔ ∃z(xCz ⋀ ∃w(zBwwAy)))
14 visset 1804 . . . . 5 xV
1514, 9opelco 3277 . . . 4 (⟨x, y⟩ ∈ ((AB) ∘ C) ↔ ∃z(xCzz(AB)y))
16 19.42v 1303 . . . . 5 (∃w(xCz ⋀ (zBwwAy)) ↔ (xCz ⋀ ∃w(zBwwAy)))
1716exbii 1047 . . . 4 (∃zw(xCz ⋀ (zBwwAy)) ↔ ∃z(xCz ⋀ ∃w(zBwwAy)))
1813, 15, 173bitr4 183 . . 3 (⟨x, y⟩ ∈ ((AB) ∘ C) ↔ ∃zw(xCz ⋀ (zBwwAy)))
19 df-br 2610 . . . . . . 7 (x(BC)w ↔ ⟨x, w⟩ ∈ (BC))
20 visset 1804 . . . . . . . 8 wV
2114, 20opelco 3277 . . . . . . 7 (⟨x, w⟩ ∈ (BC) ↔ ∃z(xCzzBw))
2219, 21bitr 173 . . . . . 6 (x(BC)w ↔ ∃z(xCzzBw))
2322anbi1i 480 . . . . 5 ((x(BC)wwAy) ↔ (∃z(xCzzBw) ⋀ wAy))
2423exbii 1047 . . . 4 (∃w(x(BC)wwAy) ↔ ∃w(∃z(xCzzBw) ⋀ wAy))
2514, 9opelco 3277 . . . 4 (⟨x, y⟩ ∈ (A ∘ (BC)) ↔ ∃w(x(BC)wwAy))
26 19.41v 1300 . . . . 5 (∃z((xCzzBw) ⋀ wAy) ↔ (∃z(xCzzBw) ⋀ wAy))
2726exbii 1047 . . . 4 (∃wz((xCzzBw) ⋀ wAy) ↔ ∃w(∃z(xCzzBw) ⋀ wAy))
2824, 25, 273bitr4 183 . . 3 (⟨x, y⟩ ∈ (A ∘ (BC)) ↔ ∃wz((xCzzBw) ⋀ wAy))
296, 18, 283bitr4 183 . 2 (⟨x, y⟩ ∈ ((AB) ∘ C) ↔ ⟨x, y⟩ ∈ (A ∘ (BC)))
301, 2, 29eqrelriv 3241 1 ((AB) ∘ C) = (A ∘ (BC))
Colors of variables: wff set class
Syntax hints:   ⋀ wa 223   = wceq 953   ∈ wcel 955  ∃wex 977  ⟨cop 2401   class class class wbr 2609   ∘ ccom 3164
This theorem is referenced by:  mapenlem1 4469  mapenlem2 4470  pjsdi2 9996  pjadj2co 10042  pj3lem1 10044  pj3 10046  symggrpiOLD 10311  symggrpi 10313  hmeogrp 10425
This theorem was proved from axioms:  ax-1 4  ax-2 5  ax-3 6  ax-mp 7  ax-7 959  ax-gen 960  ax-8 961  ax-10 963  ax-11 964  ax-12 965  ax-13 966  ax-14 967  ax-17 968  ax-4 970  ax-5o 972  ax-6o 975  ax-9o 1119  ax-10o 1136  ax-16 1206  ax-11o 1213  ax-ext 1452  ax-sep 2693  ax-pow 2732  ax-pr 2769
This theorem depends on definitions:  df-bi 147  df-or 224  df-an 225  df-ex 978  df-sb 1168  df-eu 1375  df-mo 1376  df-clab 1457  df-cleq 1462  df-clel 1465  df-ne 1579  df-v 1803  df-dif 2039  df-un 2040  df-in 2041  df-ss 2043  df-nul 2271  df-pw 2392  df-sn 2402  df-pr 2403  df-op 2406  df-br 2610  df-opab 2657  df-xp 3174  df-rel 3175  df-co 3177
Copyright terms: Public domain