Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  ofpreima2 Structured version   Unicode version

Theorem ofpreima2 27180
Description: Express the preimage of a function operation as a union of preimages. This version of ofpreima 27179 iterates the union over a smaller set. (Contributed by Thierry Arnoux, 8-Mar-2018.)
Hypotheses
Ref Expression
ofpreima.1  |-  ( ph  ->  F : A --> B )
ofpreima.2  |-  ( ph  ->  G : A --> C )
ofpreima.3  |-  ( ph  ->  A  e.  V )
ofpreima.4  |-  ( ph  ->  R  Fn  ( B  X.  C ) )
Assertion
Ref Expression
ofpreima2  |-  ( ph  ->  ( `' ( F  oF R G ) " D )  =  U_ p  e.  ( ( `' R " D )  i^i  ( ran  F  X.  ran  G
) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) ) )
Distinct variable groups:    A, p    D, p    F, p    G, p    R, p    ph, p
Allowed substitution hints:    B( p)    C( p)    V( p)

Proof of Theorem ofpreima2
StepHypRef Expression
1 ofpreima.1 . . . 4  |-  ( ph  ->  F : A --> B )
2 ofpreima.2 . . . 4  |-  ( ph  ->  G : A --> C )
3 ofpreima.3 . . . 4  |-  ( ph  ->  A  e.  V )
4 ofpreima.4 . . . 4  |-  ( ph  ->  R  Fn  ( B  X.  C ) )
51, 2, 3, 4ofpreima 27179 . . 3  |-  ( ph  ->  ( `' ( F  oF R G ) " D )  =  U_ p  e.  ( `' R " D ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) ) )
6 inundif 3905 . . . . 5  |-  ( ( ( `' R " D )  i^i  ( ran  F  X.  ran  G
) )  u.  (
( `' R " D )  \  ( ran  F  X.  ran  G
) ) )  =  ( `' R " D )
7 iuneq1 4339 . . . . 5  |-  ( ( ( ( `' R " D )  i^i  ( ran  F  X.  ran  G
) )  u.  (
( `' R " D )  \  ( ran  F  X.  ran  G
) ) )  =  ( `' R " D )  ->  U_ p  e.  ( ( ( `' R " D )  i^i  ( ran  F  X.  ran  G ) )  u.  ( ( `' R " D ) 
\  ( ran  F  X.  ran  G ) ) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  = 
U_ p  e.  ( `' R " D ) ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) ) )
86, 7ax-mp 5 . . . 4  |-  U_ p  e.  ( ( ( `' R " D )  i^i  ( ran  F  X.  ran  G ) )  u.  ( ( `' R " D ) 
\  ( ran  F  X.  ran  G ) ) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  = 
U_ p  e.  ( `' R " D ) ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) )
9 iunxun 4407 . . . 4  |-  U_ p  e.  ( ( ( `' R " D )  i^i  ( ran  F  X.  ran  G ) )  u.  ( ( `' R " D ) 
\  ( ran  F  X.  ran  G ) ) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  =  ( U_ p  e.  ( ( `' R " D )  i^i  ( ran  F  X.  ran  G
) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  u. 
U_ p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) ) )
108, 9eqtr3i 2498 . . 3  |-  U_ p  e.  ( `' R " D ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  =  ( U_ p  e.  ( ( `' R " D )  i^i  ( ran  F  X.  ran  G
) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  u. 
U_ p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) ) )
115, 10syl6eq 2524 . 2  |-  ( ph  ->  ( `' ( F  oF R G ) " D )  =  ( U_ p  e.  ( ( `' R " D )  i^i  ( ran  F  X.  ran  G
) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  u. 
U_ p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) ) ) )
12 simpr 461 . . . . . . . . . . . 12  |-  ( (
ph  /\  p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) )  ->  p  e.  ( ( `' R " D ) 
\  ( ran  F  X.  ran  G ) ) )
1312eldifbd 3489 . . . . . . . . . . 11  |-  ( (
ph  /\  p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) )  ->  -.  p  e.  ( ran  F  X.  ran  G
) )
14 difssd 3632 . . . . . . . . . . . . . . 15  |-  ( ph  ->  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) )  C_  ( `' R " D ) )
15 cnvimass 5355 . . . . . . . . . . . . . . . 16  |-  ( `' R " D ) 
C_  dom  R
16 fndm 5678 . . . . . . . . . . . . . . . . 17  |-  ( R  Fn  ( B  X.  C )  ->  dom  R  =  ( B  X.  C ) )
174, 16syl 16 . . . . . . . . . . . . . . . 16  |-  ( ph  ->  dom  R  =  ( B  X.  C ) )
1815, 17syl5sseq 3552 . . . . . . . . . . . . . . 15  |-  ( ph  ->  ( `' R " D )  C_  ( B  X.  C ) )
1914, 18sstrd 3514 . . . . . . . . . . . . . 14  |-  ( ph  ->  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) )  C_  ( B  X.  C ) )
2019sselda 3504 . . . . . . . . . . . . 13  |-  ( (
ph  /\  p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) )  ->  p  e.  ( B  X.  C ) )
21 1st2nd2 6818 . . . . . . . . . . . . 13  |-  ( p  e.  ( B  X.  C )  ->  p  =  <. ( 1st `  p
) ,  ( 2nd `  p ) >. )
22 elxp6 6813 . . . . . . . . . . . . . . 15  |-  ( p  e.  ( ran  F  X.  ran  G )  <->  ( p  =  <. ( 1st `  p
) ,  ( 2nd `  p ) >.  /\  (
( 1st `  p
)  e.  ran  F  /\  ( 2nd `  p
)  e.  ran  G
) ) )
2322biimpri 206 . . . . . . . . . . . . . 14  |-  ( ( p  =  <. ( 1st `  p ) ,  ( 2nd `  p
) >.  /\  ( ( 1st `  p )  e. 
ran  F  /\  ( 2nd `  p )  e. 
ran  G ) )  ->  p  e.  ( ran  F  X.  ran  G ) )
2423ex 434 . . . . . . . . . . . . 13  |-  ( p  =  <. ( 1st `  p
) ,  ( 2nd `  p ) >.  ->  (
( ( 1st `  p
)  e.  ran  F  /\  ( 2nd `  p
)  e.  ran  G
)  ->  p  e.  ( ran  F  X.  ran  G ) ) )
2520, 21, 243syl 20 . . . . . . . . . . . 12  |-  ( (
ph  /\  p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) )  -> 
( ( ( 1st `  p )  e.  ran  F  /\  ( 2nd `  p
)  e.  ran  G
)  ->  p  e.  ( ran  F  X.  ran  G ) ) )
2625con3d 133 . . . . . . . . . . 11  |-  ( (
ph  /\  p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) )  -> 
( -.  p  e.  ( ran  F  X.  ran  G )  ->  -.  ( ( 1st `  p
)  e.  ran  F  /\  ( 2nd `  p
)  e.  ran  G
) ) )
2713, 26mpd 15 . . . . . . . . . 10  |-  ( (
ph  /\  p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) )  ->  -.  ( ( 1st `  p
)  e.  ran  F  /\  ( 2nd `  p
)  e.  ran  G
) )
28 ianor 488 . . . . . . . . . 10  |-  ( -.  ( ( 1st `  p
)  e.  ran  F  /\  ( 2nd `  p
)  e.  ran  G
)  <->  ( -.  ( 1st `  p )  e. 
ran  F  \/  -.  ( 2nd `  p )  e.  ran  G ) )
2927, 28sylib 196 . . . . . . . . 9  |-  ( (
ph  /\  p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) )  -> 
( -.  ( 1st `  p )  e.  ran  F  \/  -.  ( 2nd `  p )  e.  ran  G ) )
30 disjsn 4088 . . . . . . . . . 10  |-  ( ( ran  F  i^i  {
( 1st `  p
) } )  =  (/) 
<->  -.  ( 1st `  p
)  e.  ran  F
)
31 disjsn 4088 . . . . . . . . . 10  |-  ( ( ran  G  i^i  {
( 2nd `  p
) } )  =  (/) 
<->  -.  ( 2nd `  p
)  e.  ran  G
)
3230, 31orbi12i 521 . . . . . . . . 9  |-  ( ( ( ran  F  i^i  { ( 1st `  p
) } )  =  (/)  \/  ( ran  G  i^i  { ( 2nd `  p
) } )  =  (/) )  <->  ( -.  ( 1st `  p )  e. 
ran  F  \/  -.  ( 2nd `  p )  e.  ran  G ) )
3329, 32sylibr 212 . . . . . . . 8  |-  ( (
ph  /\  p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) )  -> 
( ( ran  F  i^i  { ( 1st `  p
) } )  =  (/)  \/  ( ran  G  i^i  { ( 2nd `  p
) } )  =  (/) ) )
34 ffn 5729 . . . . . . . . . . . 12  |-  ( F : A --> B  ->  F  Fn  A )
351, 34syl 16 . . . . . . . . . . 11  |-  ( ph  ->  F  Fn  A )
36 dffn3 5736 . . . . . . . . . . 11  |-  ( F  Fn  A  <->  F : A
--> ran  F )
3735, 36sylib 196 . . . . . . . . . 10  |-  ( ph  ->  F : A --> ran  F
)
3837adantr 465 . . . . . . . . 9  |-  ( (
ph  /\  p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) )  ->  F : A --> ran  F
)
39 ffn 5729 . . . . . . . . . . . 12  |-  ( G : A --> C  ->  G  Fn  A )
402, 39syl 16 . . . . . . . . . . 11  |-  ( ph  ->  G  Fn  A )
41 dffn3 5736 . . . . . . . . . . 11  |-  ( G  Fn  A  <->  G : A
--> ran  G )
4240, 41sylib 196 . . . . . . . . . 10  |-  ( ph  ->  G : A --> ran  G
)
4342adantr 465 . . . . . . . . 9  |-  ( (
ph  /\  p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) )  ->  G : A --> ran  G
)
44 fimacnvdisj 5761 . . . . . . . . . . . 12  |-  ( ( F : A --> ran  F  /\  ( ran  F  i^i  { ( 1st `  p
) } )  =  (/) )  ->  ( `' F " { ( 1st `  p ) } )  =  (/) )
45 ineq1 3693 . . . . . . . . . . . . 13  |-  ( ( `' F " { ( 1st `  p ) } )  =  (/)  ->  ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) )  =  ( (/)  i^i  ( `' G " { ( 2nd `  p ) } ) ) )
46 incom 3691 . . . . . . . . . . . . . 14  |-  ( (/)  i^i  ( `' G " { ( 2nd `  p
) } ) )  =  ( ( `' G " { ( 2nd `  p ) } )  i^i  (/) )
47 in0 3811 . . . . . . . . . . . . . 14  |-  ( ( `' G " { ( 2nd `  p ) } )  i^i  (/) )  =  (/)
4846, 47eqtri 2496 . . . . . . . . . . . . 13  |-  ( (/)  i^i  ( `' G " { ( 2nd `  p
) } ) )  =  (/)
4945, 48syl6eq 2524 . . . . . . . . . . . 12  |-  ( ( `' F " { ( 1st `  p ) } )  =  (/)  ->  ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) )  =  (/) )
5044, 49syl 16 . . . . . . . . . . 11  |-  ( ( F : A --> ran  F  /\  ( ran  F  i^i  { ( 1st `  p
) } )  =  (/) )  ->  ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  =  (/) )
5150ex 434 . . . . . . . . . 10  |-  ( F : A --> ran  F  ->  ( ( ran  F  i^i  { ( 1st `  p
) } )  =  (/)  ->  ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  =  (/) ) )
52 fimacnvdisj 5761 . . . . . . . . . . . 12  |-  ( ( G : A --> ran  G  /\  ( ran  G  i^i  { ( 2nd `  p
) } )  =  (/) )  ->  ( `' G " { ( 2nd `  p ) } )  =  (/) )
53 ineq2 3694 . . . . . . . . . . . . 13  |-  ( ( `' G " { ( 2nd `  p ) } )  =  (/)  ->  ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) )  =  ( ( `' F " { ( 1st `  p ) } )  i^i  (/) ) )
54 in0 3811 . . . . . . . . . . . . 13  |-  ( ( `' F " { ( 1st `  p ) } )  i^i  (/) )  =  (/)
5553, 54syl6eq 2524 . . . . . . . . . . . 12  |-  ( ( `' G " { ( 2nd `  p ) } )  =  (/)  ->  ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) )  =  (/) )
5652, 55syl 16 . . . . . . . . . . 11  |-  ( ( G : A --> ran  G  /\  ( ran  G  i^i  { ( 2nd `  p
) } )  =  (/) )  ->  ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  =  (/) )
5756ex 434 . . . . . . . . . 10  |-  ( G : A --> ran  G  ->  ( ( ran  G  i^i  { ( 2nd `  p
) } )  =  (/)  ->  ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  =  (/) ) )
5851, 57jaao 509 . . . . . . . . 9  |-  ( ( F : A --> ran  F  /\  G : A --> ran  G
)  ->  ( (
( ran  F  i^i  { ( 1st `  p
) } )  =  (/)  \/  ( ran  G  i^i  { ( 2nd `  p
) } )  =  (/) )  ->  ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  =  (/) ) )
5938, 43, 58syl2anc 661 . . . . . . . 8  |-  ( (
ph  /\  p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) )  -> 
( ( ( ran 
F  i^i  { ( 1st `  p ) } )  =  (/)  \/  ( ran  G  i^i  { ( 2nd `  p ) } )  =  (/) )  ->  ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  =  (/) ) )
6033, 59mpd 15 . . . . . . 7  |-  ( (
ph  /\  p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) )  -> 
( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) )  =  (/) )
6160ralrimiva 2878 . . . . . 6  |-  ( ph  ->  A. p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  =  (/) )
62 iuneq2 4342 . . . . . 6  |-  ( A. p  e.  ( ( `' R " D ) 
\  ( ran  F  X.  ran  G ) ) ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) )  =  (/)  ->  U_ p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  = 
U_ p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) (/) )
6361, 62syl 16 . . . . 5  |-  ( ph  ->  U_ p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  = 
U_ p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) (/) )
64 iun0 4381 . . . . 5  |-  U_ p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) (/)  =  (/)
6563, 64syl6eq 2524 . . . 4  |-  ( ph  ->  U_ p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  =  (/) )
6665uneq2d 3658 . . 3  |-  ( ph  ->  ( U_ p  e.  ( ( `' R " D )  i^i  ( ran  F  X.  ran  G
) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  u. 
U_ p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) ) )  =  ( U_ p  e.  ( ( `' R " D )  i^i  ( ran  F  X.  ran  G
) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  u.  (/) ) )
67 un0 3810 . . 3  |-  ( U_ p  e.  ( ( `' R " D )  i^i  ( ran  F  X.  ran  G ) ) ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) )  u.  (/) )  =  U_ p  e.  ( ( `' R " D )  i^i  ( ran  F  X.  ran  G ) ) ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) )
6866, 67syl6eq 2524 . 2  |-  ( ph  ->  ( U_ p  e.  ( ( `' R " D )  i^i  ( ran  F  X.  ran  G
) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  u. 
U_ p  e.  ( ( `' R " D )  \  ( ran  F  X.  ran  G
) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) ) )  =  U_ p  e.  ( ( `' R " D )  i^i  ( ran  F  X.  ran  G
) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) ) )
6911, 68eqtrd 2508 1  |-  ( ph  ->  ( `' ( F  oF R G ) " D )  =  U_ p  e.  ( ( `' R " D )  i^i  ( ran  F  X.  ran  G
) ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) ) )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    \/ wo 368    /\ wa 369    = wceq 1379    e. wcel 1767   A.wral 2814    \ cdif 3473    u. cun 3474    i^i cin 3475   (/)c0 3785   {csn 4027   <.cop 4033   U_ciun 4325    X. cxp 4997   `'ccnv 4998   dom cdm 4999   ran crn 5000   "cima 5002    Fn wfn 5581   -->wf 5582   ` cfv 5586  (class class class)co 6282    oFcof 6520   1stc1st 6779   2ndc2nd 6780
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1601  ax-4 1612  ax-5 1680  ax-6 1719  ax-7 1739  ax-8 1769  ax-9 1771  ax-10 1786  ax-11 1791  ax-12 1803  ax-13 1968  ax-ext 2445  ax-rep 4558  ax-sep 4568  ax-nul 4576  ax-pow 4625  ax-pr 4686  ax-un 6574
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 975  df-tru 1382  df-ex 1597  df-nf 1600  df-sb 1712  df-eu 2279  df-mo 2280  df-clab 2453  df-cleq 2459  df-clel 2462  df-nfc 2617  df-ne 2664  df-ral 2819  df-rex 2820  df-reu 2821  df-rab 2823  df-v 3115  df-sbc 3332  df-csb 3436  df-dif 3479  df-un 3481  df-in 3483  df-ss 3490  df-nul 3786  df-if 3940  df-sn 4028  df-pr 4030  df-op 4034  df-uni 4246  df-iun 4327  df-br 4448  df-opab 4506  df-mpt 4507  df-id 4795  df-xp 5005  df-rel 5006  df-cnv 5007  df-co 5008  df-dm 5009  df-rn 5010  df-res 5011  df-ima 5012  df-iota 5549  df-fun 5588  df-fn 5589  df-f 5590  df-f1 5591  df-fo 5592  df-f1o 5593  df-fv 5594  df-ov 6285  df-oprab 6286  df-mpt2 6287  df-of 6522  df-1st 6781  df-2nd 6782
This theorem is referenced by:  sibfof  27922
  Copyright terms: Public domain W3C validator