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

Theorem ofpreima 25919
Description: Express the preimage of a function operation as a union of preimages. (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
ofpreima  |-  ( ph  ->  ( `' ( F  oF R G ) " D )  =  U_ p  e.  ( `' R " D ) ( ( `' 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 ofpreima
Dummy variables  q 
s  x  y are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 nfmpt1 4378 . . . . . . 7  |-  F/_ s
( s  e.  A  |-> 
<. ( F `  s
) ,  ( G `
 s ) >.
)
2 ofpreima.1 . . . . . . 7  |-  ( ph  ->  F : A --> B )
3 ofpreima.2 . . . . . . 7  |-  ( ph  ->  G : A --> C )
4 ofpreima.3 . . . . . . 7  |-  ( ph  ->  A  e.  V )
5 eqidd 2442 . . . . . . 7  |-  ( ph  ->  ( s  e.  A  |-> 
<. ( F `  s
) ,  ( G `
 s ) >.
)  =  ( s  e.  A  |->  <. ( F `  s ) ,  ( G `  s ) >. )
)
6 ofpreima.4 . . . . . . . 8  |-  ( ph  ->  R  Fn  ( B  X.  C ) )
7 fnov 6197 . . . . . . . 8  |-  ( R  Fn  ( B  X.  C )  <->  R  =  ( x  e.  B ,  y  e.  C  |->  ( x R y ) ) )
86, 7sylib 196 . . . . . . 7  |-  ( ph  ->  R  =  ( x  e.  B ,  y  e.  C  |->  ( x R y ) ) )
91, 2, 3, 4, 5, 8ofoprabco 25917 . . . . . 6  |-  ( ph  ->  ( F  oF R G )  =  ( R  o.  (
s  e.  A  |->  <.
( F `  s
) ,  ( G `
 s ) >.
) ) )
109cnveqd 5011 . . . . 5  |-  ( ph  ->  `' ( F  oF R G )  =  `' ( R  o.  ( s  e.  A  |->  <. ( F `  s ) ,  ( G `  s )
>. ) ) )
11 cnvco 5021 . . . . 5  |-  `' ( R  o.  ( s  e.  A  |->  <. ( F `  s ) ,  ( G `  s ) >. )
)  =  ( `' ( s  e.  A  |-> 
<. ( F `  s
) ,  ( G `
 s ) >.
)  o.  `' R
)
1210, 11syl6eq 2489 . . . 4  |-  ( ph  ->  `' ( F  oF R G )  =  ( `' ( s  e.  A  |->  <.
( F `  s
) ,  ( G `
 s ) >.
)  o.  `' R
) )
1312imaeq1d 5165 . . 3  |-  ( ph  ->  ( `' ( F  oF R G ) " D )  =  ( ( `' ( s  e.  A  |-> 
<. ( F `  s
) ,  ( G `
 s ) >.
)  o.  `' R
) " D ) )
14 imaco 5340 . . 3  |-  ( ( `' ( s  e.  A  |->  <. ( F `  s ) ,  ( G `  s )
>. )  o.  `' R ) " D
)  =  ( `' ( s  e.  A  |-> 
<. ( F `  s
) ,  ( G `
 s ) >.
) " ( `' R " D ) )
1513, 14syl6eq 2489 . 2  |-  ( ph  ->  ( `' ( F  oF R G ) " D )  =  ( `' ( s  e.  A  |->  <.
( F `  s
) ,  ( G `
 s ) >.
) " ( `' R " D ) ) )
16 dfima2 5168 . . 3  |-  ( `' ( s  e.  A  |-> 
<. ( F `  s
) ,  ( G `
 s ) >.
) " ( `' R " D ) )  =  { q  |  E. p  e.  ( `' R " D ) p `' ( s  e.  A  |-> 
<. ( F `  s
) ,  ( G `
 s ) >.
) q }
17 vex 2973 . . . . . . . 8  |-  p  e. 
_V
18 vex 2973 . . . . . . . 8  |-  q  e. 
_V
1917, 18brcnv 5018 . . . . . . 7  |-  ( p `' ( s  e.  A  |->  <. ( F `  s ) ,  ( G `  s )
>. ) q  <->  q (
s  e.  A  |->  <.
( F `  s
) ,  ( G `
 s ) >.
) p )
20 funmpt 5451 . . . . . . . . 9  |-  Fun  (
s  e.  A  |->  <.
( F `  s
) ,  ( G `
 s ) >.
)
21 funbrfv2b 5733 . . . . . . . . 9  |-  ( Fun  ( s  e.  A  |-> 
<. ( F `  s
) ,  ( G `
 s ) >.
)  ->  ( q
( s  e.  A  |-> 
<. ( F `  s
) ,  ( G `
 s ) >.
) p  <->  ( q  e.  dom  ( s  e.  A  |->  <. ( F `  s ) ,  ( G `  s )
>. )  /\  (
( s  e.  A  |-> 
<. ( F `  s
) ,  ( G `
 s ) >.
) `  q )  =  p ) ) )
2220, 21ax-mp 5 . . . . . . . 8  |-  ( q ( s  e.  A  |-> 
<. ( F `  s
) ,  ( G `
 s ) >.
) p  <->  ( q  e.  dom  ( s  e.  A  |->  <. ( F `  s ) ,  ( G `  s )
>. )  /\  (
( s  e.  A  |-> 
<. ( F `  s
) ,  ( G `
 s ) >.
) `  q )  =  p ) )
23 opex 4553 . . . . . . . . . . 11  |-  <. ( F `  s ) ,  ( G `  s ) >.  e.  _V
24 eqid 2441 . . . . . . . . . . 11  |-  ( s  e.  A  |->  <. ( F `  s ) ,  ( G `  s ) >. )  =  ( s  e.  A  |->  <. ( F `  s ) ,  ( G `  s )
>. )
2523, 24dmmpti 5537 . . . . . . . . . 10  |-  dom  (
s  e.  A  |->  <.
( F `  s
) ,  ( G `
 s ) >.
)  =  A
2625eleq2i 2505 . . . . . . . . 9  |-  ( q  e.  dom  ( s  e.  A  |->  <. ( F `  s ) ,  ( G `  s ) >. )  <->  q  e.  A )
2726anbi1i 690 . . . . . . . 8  |-  ( ( q  e.  dom  (
s  e.  A  |->  <.
( F `  s
) ,  ( G `
 s ) >.
)  /\  ( (
s  e.  A  |->  <.
( F `  s
) ,  ( G `
 s ) >.
) `  q )  =  p )  <->  ( q  e.  A  /\  (
( s  e.  A  |-> 
<. ( F `  s
) ,  ( G `
 s ) >.
) `  q )  =  p ) )
2822, 27bitri 249 . . . . . . 7  |-  ( q ( s  e.  A  |-> 
<. ( F `  s
) ,  ( G `
 s ) >.
) p  <->  ( q  e.  A  /\  (
( s  e.  A  |-> 
<. ( F `  s
) ,  ( G `
 s ) >.
) `  q )  =  p ) )
29 fveq2 5688 . . . . . . . . . . 11  |-  ( s  =  q  ->  ( F `  s )  =  ( F `  q ) )
30 fveq2 5688 . . . . . . . . . . 11  |-  ( s  =  q  ->  ( G `  s )  =  ( G `  q ) )
3129, 30opeq12d 4064 . . . . . . . . . 10  |-  ( s  =  q  ->  <. ( F `  s ) ,  ( G `  s ) >.  =  <. ( F `  q ) ,  ( G `  q ) >. )
32 opex 4553 . . . . . . . . . 10  |-  <. ( F `  q ) ,  ( G `  q ) >.  e.  _V
3331, 24, 32fvmpt 5771 . . . . . . . . 9  |-  ( q  e.  A  ->  (
( s  e.  A  |-> 
<. ( F `  s
) ,  ( G `
 s ) >.
) `  q )  =  <. ( F `  q ) ,  ( G `  q )
>. )
3433eqeq1d 2449 . . . . . . . 8  |-  ( q  e.  A  ->  (
( ( s  e.  A  |->  <. ( F `  s ) ,  ( G `  s )
>. ) `  q )  =  p  <->  <. ( F `
 q ) ,  ( G `  q
) >.  =  p ) )
3534pm5.32i 632 . . . . . . 7  |-  ( ( q  e.  A  /\  ( ( s  e.  A  |->  <. ( F `  s ) ,  ( G `  s )
>. ) `  q )  =  p )  <->  ( q  e.  A  /\  <. ( F `  q ) ,  ( G `  q ) >.  =  p ) )
3619, 28, 353bitri 271 . . . . . 6  |-  ( p `' ( s  e.  A  |->  <. ( F `  s ) ,  ( G `  s )
>. ) q  <->  ( q  e.  A  /\  <. ( F `  q ) ,  ( G `  q ) >.  =  p ) )
3736rexbii 2738 . . . . 5  |-  ( E. p  e.  ( `' R " D ) p `' ( s  e.  A  |->  <. ( F `  s ) ,  ( G `  s ) >. )
q  <->  E. p  e.  ( `' R " D ) ( q  e.  A  /\  <. ( F `  q ) ,  ( G `  q )
>.  =  p )
)
3837abbii 2553 . . . 4  |-  { q  |  E. p  e.  ( `' R " D ) p `' ( s  e.  A  |-> 
<. ( F `  s
) ,  ( G `
 s ) >.
) q }  =  { q  |  E. p  e.  ( `' R " D ) ( q  e.  A  /\  <.
( F `  q
) ,  ( G `
 q ) >.  =  p ) }
39 nfv 1678 . . . . 5  |-  F/ q
ph
40 nfab1 2579 . . . . 5  |-  F/_ q { q  |  E. p  e.  ( `' R " D ) ( q  e.  A  /\  <.
( F `  q
) ,  ( G `
 q ) >.  =  p ) }
41 nfcv 2577 . . . . 5  |-  F/_ q U_ p  e.  ( `' R " D ) ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) )
42 eliun 4172 . . . . . 6  |-  ( q  e.  U_ p  e.  ( `' R " D ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  <->  E. p  e.  ( `' R " D ) q  e.  ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) ) )
43 elin 3536 . . . . . . . . . . 11  |-  ( q  e.  ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) )  <->  ( q  e.  ( `' F " { ( 1st `  p
) } )  /\  q  e.  ( `' G " { ( 2nd `  p ) } ) ) )
44 ffn 5556 . . . . . . . . . . . . . 14  |-  ( F : A --> B  ->  F  Fn  A )
45 fniniseg 5821 . . . . . . . . . . . . . 14  |-  ( F  Fn  A  ->  (
q  e.  ( `' F " { ( 1st `  p ) } )  <->  ( q  e.  A  /\  ( F `  q )  =  ( 1st `  p
) ) ) )
462, 44, 453syl 20 . . . . . . . . . . . . 13  |-  ( ph  ->  ( q  e.  ( `' F " { ( 1st `  p ) } )  <->  ( q  e.  A  /\  ( F `  q )  =  ( 1st `  p
) ) ) )
47 ffn 5556 . . . . . . . . . . . . . 14  |-  ( G : A --> C  ->  G  Fn  A )
48 fniniseg 5821 . . . . . . . . . . . . . 14  |-  ( G  Fn  A  ->  (
q  e.  ( `' G " { ( 2nd `  p ) } )  <->  ( q  e.  A  /\  ( G `  q )  =  ( 2nd `  p
) ) ) )
493, 47, 483syl 20 . . . . . . . . . . . . 13  |-  ( ph  ->  ( q  e.  ( `' G " { ( 2nd `  p ) } )  <->  ( q  e.  A  /\  ( G `  q )  =  ( 2nd `  p
) ) ) )
5046, 49anbi12d 705 . . . . . . . . . . . 12  |-  ( ph  ->  ( ( q  e.  ( `' F " { ( 1st `  p
) } )  /\  q  e.  ( `' G " { ( 2nd `  p ) } ) )  <->  ( ( q  e.  A  /\  ( F `  q )  =  ( 1st `  p
) )  /\  (
q  e.  A  /\  ( G `  q )  =  ( 2nd `  p
) ) ) ) )
51 anandi 819 . . . . . . . . . . . 12  |-  ( ( q  e.  A  /\  ( ( F `  q )  =  ( 1st `  p )  /\  ( G `  q )  =  ( 2nd `  p ) ) )  <->  ( (
q  e.  A  /\  ( F `  q )  =  ( 1st `  p
) )  /\  (
q  e.  A  /\  ( G `  q )  =  ( 2nd `  p
) ) ) )
5250, 51syl6bbr 263 . . . . . . . . . . 11  |-  ( ph  ->  ( ( q  e.  ( `' F " { ( 1st `  p
) } )  /\  q  e.  ( `' G " { ( 2nd `  p ) } ) )  <->  ( q  e.  A  /\  ( ( F `  q )  =  ( 1st `  p
)  /\  ( G `  q )  =  ( 2nd `  p ) ) ) ) )
5343, 52syl5bb 257 . . . . . . . . . 10  |-  ( ph  ->  ( q  e.  ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) )  <-> 
( q  e.  A  /\  ( ( F `  q )  =  ( 1st `  p )  /\  ( G `  q )  =  ( 2nd `  p ) ) ) ) )
5453adantr 462 . . . . . . . . 9  |-  ( (
ph  /\  p  e.  ( `' R " D ) )  ->  ( q  e.  ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) )  <-> 
( q  e.  A  /\  ( ( F `  q )  =  ( 1st `  p )  /\  ( G `  q )  =  ( 2nd `  p ) ) ) ) )
55 cnvimass 5186 . . . . . . . . . . . . . 14  |-  ( `' R " D ) 
C_  dom  R
56 fndm 5507 . . . . . . . . . . . . . . 15  |-  ( R  Fn  ( B  X.  C )  ->  dom  R  =  ( B  X.  C ) )
576, 56syl 16 . . . . . . . . . . . . . 14  |-  ( ph  ->  dom  R  =  ( B  X.  C ) )
5855, 57syl5sseq 3401 . . . . . . . . . . . . 13  |-  ( ph  ->  ( `' R " D )  C_  ( B  X.  C ) )
5958sselda 3353 . . . . . . . . . . . 12  |-  ( (
ph  /\  p  e.  ( `' R " D ) )  ->  p  e.  ( B  X.  C
) )
60 1st2nd2 6612 . . . . . . . . . . . 12  |-  ( p  e.  ( B  X.  C )  ->  p  =  <. ( 1st `  p
) ,  ( 2nd `  p ) >. )
61 eqeq2 2450 . . . . . . . . . . . 12  |-  ( p  =  <. ( 1st `  p
) ,  ( 2nd `  p ) >.  ->  ( <. ( F `  q
) ,  ( G `
 q ) >.  =  p  <->  <. ( F `  q ) ,  ( G `  q )
>.  =  <. ( 1st `  p ) ,  ( 2nd `  p )
>. ) )
6259, 60, 613syl 20 . . . . . . . . . . 11  |-  ( (
ph  /\  p  e.  ( `' R " D ) )  ->  ( <. ( F `  q ) ,  ( G `  q ) >.  =  p  <->  <. ( F `  q
) ,  ( G `
 q ) >.  =  <. ( 1st `  p
) ,  ( 2nd `  p ) >. )
)
63 fvex 5698 . . . . . . . . . . . 12  |-  ( F `
 q )  e. 
_V
64 fvex 5698 . . . . . . . . . . . 12  |-  ( G `
 q )  e. 
_V
6563, 64opth 4563 . . . . . . . . . . 11  |-  ( <.
( F `  q
) ,  ( G `
 q ) >.  =  <. ( 1st `  p
) ,  ( 2nd `  p ) >.  <->  ( ( F `  q )  =  ( 1st `  p
)  /\  ( G `  q )  =  ( 2nd `  p ) ) )
6662, 65syl6bb 261 . . . . . . . . . 10  |-  ( (
ph  /\  p  e.  ( `' R " D ) )  ->  ( <. ( F `  q ) ,  ( G `  q ) >.  =  p  <-> 
( ( F `  q )  =  ( 1st `  p )  /\  ( G `  q )  =  ( 2nd `  p ) ) ) )
6766anbi2d 698 . . . . . . . . 9  |-  ( (
ph  /\  p  e.  ( `' R " D ) )  ->  ( (
q  e.  A  /\  <.
( F `  q
) ,  ( G `
 q ) >.  =  p )  <->  ( q  e.  A  /\  (
( F `  q
)  =  ( 1st `  p )  /\  ( G `  q )  =  ( 2nd `  p
) ) ) ) )
6854, 67bitr4d 256 . . . . . . . 8  |-  ( (
ph  /\  p  e.  ( `' R " D ) )  ->  ( q  e.  ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) )  <-> 
( q  e.  A  /\  <. ( F `  q ) ,  ( G `  q )
>.  =  p )
) )
6968rexbidva 2730 . . . . . . 7  |-  ( ph  ->  ( E. p  e.  ( `' R " D ) q  e.  ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) )  <->  E. p  e.  ( `' R " D ) ( q  e.  A  /\  <. ( F `  q ) ,  ( G `  q )
>.  =  p )
) )
70 abid 2429 . . . . . . 7  |-  ( q  e.  { q  |  E. p  e.  ( `' R " D ) ( q  e.  A  /\  <. ( F `  q ) ,  ( G `  q )
>.  =  p ) } 
<->  E. p  e.  ( `' R " D ) ( q  e.  A  /\  <. ( F `  q ) ,  ( G `  q )
>.  =  p )
)
7169, 70syl6bbr 263 . . . . . 6  |-  ( ph  ->  ( E. p  e.  ( `' R " D ) q  e.  ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) )  <-> 
q  e.  { q  |  E. p  e.  ( `' R " D ) ( q  e.  A  /\  <. ( F `  q ) ,  ( G `  q ) >.  =  p ) } ) )
7242, 71syl5rbb 258 . . . . 5  |-  ( ph  ->  ( q  e.  {
q  |  E. p  e.  ( `' R " D ) ( q  e.  A  /\  <. ( F `  q ) ,  ( G `  q ) >.  =  p ) }  <->  q  e.  U_ p  e.  ( `' R " D ) ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) ) ) )
7339, 40, 41, 72eqrd 3371 . . . 4  |-  ( ph  ->  { q  |  E. p  e.  ( `' R " D ) ( q  e.  A  /\  <.
( F `  q
) ,  ( G `
 q ) >.  =  p ) }  =  U_ p  e.  ( `' R " D ) ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) ) )
7438, 73syl5eq 2485 . . 3  |-  ( ph  ->  { q  |  E. p  e.  ( `' R " D ) p `' ( s  e.  A  |->  <. ( F `  s ) ,  ( G `  s )
>. ) q }  =  U_ p  e.  ( `' R " D ) ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) ) )
7516, 74syl5eq 2485 . 2  |-  ( ph  ->  ( `' ( s  e.  A  |->  <. ( F `  s ) ,  ( G `  s ) >. ) " ( `' R " D ) )  = 
U_ p  e.  ( `' R " D ) ( ( `' F " { ( 1st `  p
) } )  i^i  ( `' G " { ( 2nd `  p
) } ) ) )
7615, 75eqtrd 2473 1  |-  ( ph  ->  ( `' ( F  oF R G ) " D )  =  U_ p  e.  ( `' R " D ) ( ( `' F " { ( 1st `  p ) } )  i^i  ( `' G " { ( 2nd `  p ) } ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    /\ wa 369    = wceq 1364    e. wcel 1761   {cab 2427   E.wrex 2714    i^i cin 3324   {csn 3874   <.cop 3880   U_ciun 4168   class class class wbr 4289    e. cmpt 4347    X. cxp 4834   `'ccnv 4835   dom cdm 4836   "cima 4839    o. ccom 4840   Fun wfun 5409    Fn wfn 5410   -->wf 5411   ` cfv 5415  (class class class)co 6090    e. cmpt2 6092    oFcof 6317   1stc1st 6574   2ndc2nd 6575
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1596  ax-4 1607  ax-5 1675  ax-6 1713  ax-7 1733  ax-8 1763  ax-9 1765  ax-10 1780  ax-11 1785  ax-12 1797  ax-13 1948  ax-ext 2422  ax-rep 4400  ax-sep 4410  ax-nul 4418  ax-pow 4467  ax-pr 4528  ax-un 6371
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3an 962  df-tru 1367  df-ex 1592  df-nf 1595  df-sb 1706  df-eu 2261  df-mo 2262  df-clab 2428  df-cleq 2434  df-clel 2437  df-nfc 2566  df-ne 2606  df-ral 2718  df-rex 2719  df-reu 2720  df-rab 2722  df-v 2972  df-sbc 3184  df-csb 3286  df-dif 3328  df-un 3330  df-in 3332  df-ss 3339  df-nul 3635  df-if 3789  df-sn 3875  df-pr 3877  df-op 3881  df-uni 4089  df-iun 4170  df-br 4290  df-opab 4348  df-mpt 4349  df-id 4632  df-xp 4842  df-rel 4843  df-cnv 4844  df-co 4845  df-dm 4846  df-rn 4847  df-res 4848  df-ima 4849  df-iota 5378  df-fun 5417  df-fn 5418  df-f 5419  df-f1 5420  df-fo 5421  df-f1o 5422  df-fv 5423  df-ov 6093  df-oprab 6094  df-mpt2 6095  df-of 6319  df-1st 6576  df-2nd 6577
This theorem is referenced by:  ofpreima2  25920
  Copyright terms: Public domain W3C validator