MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  caoftrn Structured version   Unicode version

Theorem caoftrn 6376
Description: Transfer a transitivity law to the function relation. (Contributed by Mario Carneiro, 28-Jul-2014.)
Hypotheses
Ref Expression
caofref.1  |-  ( ph  ->  A  e.  V )
caofref.2  |-  ( ph  ->  F : A --> S )
caofcom.3  |-  ( ph  ->  G : A --> S )
caofass.4  |-  ( ph  ->  H : A --> S )
caoftrn.5  |-  ( (
ph  /\  ( x  e.  S  /\  y  e.  S  /\  z  e.  S ) )  -> 
( ( x R y  /\  y T z )  ->  x U z ) )
Assertion
Ref Expression
caoftrn  |-  ( ph  ->  ( ( F  oR R G  /\  G  oR T H )  ->  F  oR U H ) )
Distinct variable groups:    x, y,
z, F    x, G, y, z    x, H, y, z    ph, x, y, z   
x, R, y, z   
x, S, y, z   
x, T, y, z   
x, U, y, z
Allowed substitution hints:    A( x, y, z)    V( x, y, z)

Proof of Theorem caoftrn
Dummy variable  w is distinct from all other variables.
StepHypRef Expression
1 caoftrn.5 . . . . . 6  |-  ( (
ph  /\  ( x  e.  S  /\  y  e.  S  /\  z  e.  S ) )  -> 
( ( x R y  /\  y T z )  ->  x U z ) )
21ralrimivvva 2830 . . . . 5  |-  ( ph  ->  A. x  e.  S  A. y  e.  S  A. z  e.  S  ( ( x R y  /\  y T z )  ->  x U z ) )
32adantr 465 . . . 4  |-  ( (
ph  /\  w  e.  A )  ->  A. x  e.  S  A. y  e.  S  A. z  e.  S  ( (
x R y  /\  y T z )  ->  x U z ) )
4 caofref.2 . . . . . 6  |-  ( ph  ->  F : A --> S )
54ffvelrnda 5864 . . . . 5  |-  ( (
ph  /\  w  e.  A )  ->  ( F `  w )  e.  S )
6 caofcom.3 . . . . . 6  |-  ( ph  ->  G : A --> S )
76ffvelrnda 5864 . . . . 5  |-  ( (
ph  /\  w  e.  A )  ->  ( G `  w )  e.  S )
8 caofass.4 . . . . . 6  |-  ( ph  ->  H : A --> S )
98ffvelrnda 5864 . . . . 5  |-  ( (
ph  /\  w  e.  A )  ->  ( H `  w )  e.  S )
10 breq1 4316 . . . . . . . 8  |-  ( x  =  ( F `  w )  ->  (
x R y  <->  ( F `  w ) R y ) )
1110anbi1d 704 . . . . . . 7  |-  ( x  =  ( F `  w )  ->  (
( x R y  /\  y T z )  <->  ( ( F `
 w ) R y  /\  y T z ) ) )
12 breq1 4316 . . . . . . 7  |-  ( x  =  ( F `  w )  ->  (
x U z  <->  ( F `  w ) U z ) )
1311, 12imbi12d 320 . . . . . 6  |-  ( x  =  ( F `  w )  ->  (
( ( x R y  /\  y T z )  ->  x U z )  <->  ( (
( F `  w
) R y  /\  y T z )  -> 
( F `  w
) U z ) ) )
14 breq2 4317 . . . . . . . 8  |-  ( y  =  ( G `  w )  ->  (
( F `  w
) R y  <->  ( F `  w ) R ( G `  w ) ) )
15 breq1 4316 . . . . . . . 8  |-  ( y  =  ( G `  w )  ->  (
y T z  <->  ( G `  w ) T z ) )
1614, 15anbi12d 710 . . . . . . 7  |-  ( y  =  ( G `  w )  ->  (
( ( F `  w ) R y  /\  y T z )  <->  ( ( F `
 w ) R ( G `  w
)  /\  ( G `  w ) T z ) ) )
1716imbi1d 317 . . . . . 6  |-  ( y  =  ( G `  w )  ->  (
( ( ( F `
 w ) R y  /\  y T z )  ->  ( F `  w ) U z )  <->  ( (
( F `  w
) R ( G `
 w )  /\  ( G `  w ) T z )  -> 
( F `  w
) U z ) ) )
18 breq2 4317 . . . . . . . 8  |-  ( z  =  ( H `  w )  ->  (
( G `  w
) T z  <->  ( G `  w ) T ( H `  w ) ) )
1918anbi2d 703 . . . . . . 7  |-  ( z  =  ( H `  w )  ->  (
( ( F `  w ) R ( G `  w )  /\  ( G `  w ) T z )  <->  ( ( F `
 w ) R ( G `  w
)  /\  ( G `  w ) T ( H `  w ) ) ) )
20 breq2 4317 . . . . . . 7  |-  ( z  =  ( H `  w )  ->  (
( F `  w
) U z  <->  ( F `  w ) U ( H `  w ) ) )
2119, 20imbi12d 320 . . . . . 6  |-  ( z  =  ( H `  w )  ->  (
( ( ( F `
 w ) R ( G `  w
)  /\  ( G `  w ) T z )  ->  ( F `  w ) U z )  <->  ( ( ( F `  w ) R ( G `  w )  /\  ( G `  w ) T ( H `  w ) )  -> 
( F `  w
) U ( H `
 w ) ) ) )
2213, 17, 21rspc3v 3103 . . . . 5  |-  ( ( ( F `  w
)  e.  S  /\  ( G `  w )  e.  S  /\  ( H `  w )  e.  S )  ->  ( A. x  e.  S  A. y  e.  S  A. z  e.  S  ( ( x R y  /\  y T z )  ->  x U z )  -> 
( ( ( F `
 w ) R ( G `  w
)  /\  ( G `  w ) T ( H `  w ) )  ->  ( F `  w ) U ( H `  w ) ) ) )
235, 7, 9, 22syl3anc 1218 . . . 4  |-  ( (
ph  /\  w  e.  A )  ->  ( A. x  e.  S  A. y  e.  S  A. z  e.  S  ( ( x R y  /\  y T z )  ->  x U z )  -> 
( ( ( F `
 w ) R ( G `  w
)  /\  ( G `  w ) T ( H `  w ) )  ->  ( F `  w ) U ( H `  w ) ) ) )
243, 23mpd 15 . . 3  |-  ( (
ph  /\  w  e.  A )  ->  (
( ( F `  w ) R ( G `  w )  /\  ( G `  w ) T ( H `  w ) )  ->  ( F `  w ) U ( H `  w ) ) )
2524ralimdva 2815 . 2  |-  ( ph  ->  ( A. w  e.  A  ( ( F `
 w ) R ( G `  w
)  /\  ( G `  w ) T ( H `  w ) )  ->  A. w  e.  A  ( F `  w ) U ( H `  w ) ) )
26 ffn 5580 . . . . . 6  |-  ( F : A --> S  ->  F  Fn  A )
274, 26syl 16 . . . . 5  |-  ( ph  ->  F  Fn  A )
28 ffn 5580 . . . . . 6  |-  ( G : A --> S  ->  G  Fn  A )
296, 28syl 16 . . . . 5  |-  ( ph  ->  G  Fn  A )
30 caofref.1 . . . . 5  |-  ( ph  ->  A  e.  V )
31 inidm 3580 . . . . 5  |-  ( A  i^i  A )  =  A
32 eqidd 2444 . . . . 5  |-  ( (
ph  /\  w  e.  A )  ->  ( F `  w )  =  ( F `  w ) )
33 eqidd 2444 . . . . 5  |-  ( (
ph  /\  w  e.  A )  ->  ( G `  w )  =  ( G `  w ) )
3427, 29, 30, 30, 31, 32, 33ofrfval 6349 . . . 4  |-  ( ph  ->  ( F  oR R G  <->  A. w  e.  A  ( F `  w ) R ( G `  w ) ) )
35 ffn 5580 . . . . . 6  |-  ( H : A --> S  ->  H  Fn  A )
368, 35syl 16 . . . . 5  |-  ( ph  ->  H  Fn  A )
37 eqidd 2444 . . . . 5  |-  ( (
ph  /\  w  e.  A )  ->  ( H `  w )  =  ( H `  w ) )
3829, 36, 30, 30, 31, 33, 37ofrfval 6349 . . . 4  |-  ( ph  ->  ( G  oR T H  <->  A. w  e.  A  ( G `  w ) T ( H `  w ) ) )
3934, 38anbi12d 710 . . 3  |-  ( ph  ->  ( ( F  oR R G  /\  G  oR T H )  <->  ( A. w  e.  A  ( F `  w ) R ( G `  w )  /\  A. w  e.  A  ( G `  w ) T ( H `  w ) ) ) )
40 r19.26 2870 . . 3  |-  ( A. w  e.  A  (
( F `  w
) R ( G `
 w )  /\  ( G `  w ) T ( H `  w ) )  <->  ( A. w  e.  A  ( F `  w ) R ( G `  w )  /\  A. w  e.  A  ( G `  w ) T ( H `  w ) ) )
4139, 40syl6bbr 263 . 2  |-  ( ph  ->  ( ( F  oR R G  /\  G  oR T H )  <->  A. w  e.  A  ( ( F `  w ) R ( G `  w )  /\  ( G `  w ) T ( H `  w ) ) ) )
4227, 36, 30, 30, 31, 32, 37ofrfval 6349 . 2  |-  ( ph  ->  ( F  oR U H  <->  A. w  e.  A  ( F `  w ) U ( H `  w ) ) )
4325, 41, 423imtr4d 268 1  |-  ( ph  ->  ( ( F  oR R G  /\  G  oR T H )  ->  F  oR U H ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    /\ wa 369    /\ w3a 965    = wceq 1369    e. wcel 1756   A.wral 2736   class class class wbr 4313    Fn wfn 5434   -->wf 5435   ` cfv 5439    oRcofr 6340
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1591  ax-4 1602  ax-5 1670  ax-6 1708  ax-7 1728  ax-9 1760  ax-10 1775  ax-11 1780  ax-12 1792  ax-13 1943  ax-ext 2423  ax-rep 4424  ax-sep 4434  ax-nul 4442  ax-pr 4552
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 967  df-tru 1372  df-ex 1587  df-nf 1590  df-sb 1701  df-eu 2257  df-mo 2258  df-clab 2430  df-cleq 2436  df-clel 2439  df-nfc 2577  df-ne 2622  df-ral 2741  df-rex 2742  df-reu 2743  df-rab 2745  df-v 2995  df-sbc 3208  df-csb 3310  df-dif 3352  df-un 3354  df-in 3356  df-ss 3363  df-nul 3659  df-if 3813  df-sn 3899  df-pr 3901  df-op 3905  df-uni 4113  df-iun 4194  df-br 4314  df-opab 4372  df-mpt 4373  df-id 4657  df-xp 4867  df-rel 4868  df-cnv 4869  df-co 4870  df-dm 4871  df-rn 4872  df-res 4873  df-ima 4874  df-iota 5402  df-fun 5441  df-fn 5442  df-f 5443  df-f1 5444  df-fo 5445  df-f1o 5446  df-fv 5447  df-ofr 6342
This theorem is referenced by:  gsumbagdiaglem  17467  itg2le  21239
  Copyright terms: Public domain W3C validator