Users' Mathboxes Mathbox for Scott Fenton < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  brrestrict Structured version   Unicode version

Theorem brrestrict 30721
Description: The binary relationship form of the Restrict function. (Contributed by Scott Fenton, 17-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
Hypotheses
Ref Expression
brrestrict.1  |-  A  e. 
_V
brrestrict.2  |-  B  e. 
_V
brrestrict.3  |-  C  e. 
_V
Assertion
Ref Expression
brrestrict  |-  ( <. A ,  B >.Restrict C  <->  C  =  ( A  |`  B ) )

Proof of Theorem brrestrict
Dummy variables  a 
b  x are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 opex 4685 . . . . 5  |-  <. A ,  B >.  e.  _V
2 brrestrict.3 . . . . 5  |-  C  e. 
_V
31, 2brco 5024 . . . 4  |-  ( <. A ,  B >. (Cap 
o.  ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) ) C  <->  E. x ( <. A ,  B >. ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) x  /\  xCap C ) )
41brtxp2 30653 . . . . . . 7  |-  ( <. A ,  B >. ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) x  <->  E. a E. b
( x  =  <. a ,  b >.  /\  <. A ,  B >. 1st a  /\  <. A ,  B >. (Cart  o.  ( 2nd  (x)  (Range  o.  1st )
) ) b ) )
5 3anrot 987 . . . . . . . . 9  |-  ( ( x  =  <. a ,  b >.  /\  <. A ,  B >. 1st a  /\  <. A ,  B >. (Cart  o.  ( 2nd  (x)  (Range  o.  1st )
) ) b )  <-> 
( <. A ,  B >. 1st a  /\  <. A ,  B >. (Cart  o.  ( 2nd  (x)  (Range  o. 
1st ) ) ) b  /\  x  = 
<. a ,  b >.
) )
6 brrestrict.1 . . . . . . . . . . 11  |-  A  e. 
_V
7 brrestrict.2 . . . . . . . . . . 11  |-  B  e. 
_V
8 vex 3083 . . . . . . . . . . 11  |-  a  e. 
_V
96, 7, 8br1steq 30421 . . . . . . . . . 10  |-  ( <. A ,  B >. 1st a  <->  a  =  A )
10 vex 3083 . . . . . . . . . . . 12  |-  b  e. 
_V
111, 10brco 5024 . . . . . . . . . . 11  |-  ( <. A ,  B >. (Cart 
o.  ( 2nd  (x)  (Range  o.  1st ) ) ) b  <->  E. x
( <. A ,  B >. ( 2nd  (x)  (Range  o. 
1st ) ) x  /\  xCart b ) )
121brtxp2 30653 . . . . . . . . . . . . . . 15  |-  ( <. A ,  B >. ( 2nd  (x)  (Range  o.  1st ) ) x  <->  E. a E. b ( x  = 
<. a ,  b >.  /\  <. A ,  B >. 2nd a  /\  <. A ,  B >. (Range  o. 
1st ) b ) )
13 3anrot 987 . . . . . . . . . . . . . . . . 17  |-  ( ( x  =  <. a ,  b >.  /\  <. A ,  B >. 2nd a  /\  <. A ,  B >. (Range  o.  1st )
b )  <->  ( <. A ,  B >. 2nd a  /\  <. A ,  B >. (Range  o.  1st )
b  /\  x  =  <. a ,  b >.
) )
146, 7, 8br2ndeq 30422 . . . . . . . . . . . . . . . . . 18  |-  ( <. A ,  B >. 2nd a  <->  a  =  B )
151, 10brco 5024 . . . . . . . . . . . . . . . . . . 19  |-  ( <. A ,  B >. (Range 
o.  1st ) b  <->  E. x
( <. A ,  B >. 1st x  /\  xRange b ) )
16 vex 3083 . . . . . . . . . . . . . . . . . . . . . . 23  |-  x  e. 
_V
176, 7, 16br1steq 30421 . . . . . . . . . . . . . . . . . . . . . 22  |-  ( <. A ,  B >. 1st x  <->  x  =  A
)
1817anbi1i 699 . . . . . . . . . . . . . . . . . . . . 21  |-  ( (
<. A ,  B >. 1st x  /\  xRange b
)  <->  ( x  =  A  /\  xRange b
) )
1918exbii 1712 . . . . . . . . . . . . . . . . . . . 20  |-  ( E. x ( <. A ,  B >. 1st x  /\  xRange b )  <->  E. x
( x  =  A  /\  xRange b ) )
20 breq1 4426 . . . . . . . . . . . . . . . . . . . . 21  |-  ( x  =  A  ->  (
xRange b  <->  ARange b
) )
216, 20ceqsexv 3118 . . . . . . . . . . . . . . . . . . . 20  |-  ( E. x ( x  =  A  /\  xRange b
)  <->  ARange b )
2219, 21bitri 252 . . . . . . . . . . . . . . . . . . 19  |-  ( E. x ( <. A ,  B >. 1st x  /\  xRange b )  <->  ARange b
)
236, 10brrange 30706 . . . . . . . . . . . . . . . . . . 19  |-  ( ARange b  <->  b  =  ran  A )
2415, 22, 233bitri 274 . . . . . . . . . . . . . . . . . 18  |-  ( <. A ,  B >. (Range 
o.  1st ) b  <->  b  =  ran  A )
25 biid 239 . . . . . . . . . . . . . . . . . 18  |-  ( x  =  <. a ,  b
>. 
<->  x  =  <. a ,  b >. )
2614, 24, 253anbi123i 1194 . . . . . . . . . . . . . . . . 17  |-  ( (
<. A ,  B >. 2nd a  /\  <. A ,  B >. (Range  o.  1st ) b  /\  x  =  <. a ,  b
>. )  <->  ( a  =  B  /\  b  =  ran  A  /\  x  =  <. a ,  b
>. ) )
2713, 26bitri 252 . . . . . . . . . . . . . . . 16  |-  ( ( x  =  <. a ,  b >.  /\  <. A ,  B >. 2nd a  /\  <. A ,  B >. (Range  o.  1st )
b )  <->  ( a  =  B  /\  b  =  ran  A  /\  x  =  <. a ,  b
>. ) )
28272exbii 1713 . . . . . . . . . . . . . . 15  |-  ( E. a E. b ( x  =  <. a ,  b >.  /\  <. A ,  B >. 2nd a  /\  <. A ,  B >. (Range  o.  1st )
b )  <->  E. a E. b ( a  =  B  /\  b  =  ran  A  /\  x  =  <. a ,  b
>. ) )
296rnex 6741 . . . . . . . . . . . . . . . 16  |-  ran  A  e.  _V
30 opeq1 4187 . . . . . . . . . . . . . . . . 17  |-  ( a  =  B  ->  <. a ,  b >.  =  <. B ,  b >. )
3130eqeq2d 2436 . . . . . . . . . . . . . . . 16  |-  ( a  =  B  ->  (
x  =  <. a ,  b >.  <->  x  =  <. B ,  b >.
) )
32 opeq2 4188 . . . . . . . . . . . . . . . . 17  |-  ( b  =  ran  A  ->  <. B ,  b >.  =  <. B ,  ran  A
>. )
3332eqeq2d 2436 . . . . . . . . . . . . . . . 16  |-  ( b  =  ran  A  -> 
( x  =  <. B ,  b >.  <->  x  =  <. B ,  ran  A >. ) )
347, 29, 31, 33ceqsex2v 3120 . . . . . . . . . . . . . . 15  |-  ( E. a E. b ( a  =  B  /\  b  =  ran  A  /\  x  =  <. a ,  b >. )  <->  x  =  <. B ,  ran  A >. )
3512, 28, 343bitri 274 . . . . . . . . . . . . . 14  |-  ( <. A ,  B >. ( 2nd  (x)  (Range  o.  1st ) ) x  <->  x  =  <. B ,  ran  A >. )
3635anbi1i 699 . . . . . . . . . . . . 13  |-  ( (
<. A ,  B >. ( 2nd  (x)  (Range  o.  1st ) ) x  /\  xCart b )  <->  ( x  =  <. B ,  ran  A
>.  /\  xCart b ) )
3736exbii 1712 . . . . . . . . . . . 12  |-  ( E. x ( <. A ,  B >. ( 2nd  (x)  (Range  o.  1st ) ) x  /\  xCart b
)  <->  E. x ( x  =  <. B ,  ran  A
>.  /\  xCart b ) )
38 opex 4685 . . . . . . . . . . . . 13  |-  <. B ,  ran  A >.  e.  _V
39 breq1 4426 . . . . . . . . . . . . 13  |-  ( x  =  <. B ,  ran  A
>.  ->  ( xCart b  <->  <. B ,  ran  A >.Cart b ) )
4038, 39ceqsexv 3118 . . . . . . . . . . . 12  |-  ( E. x ( x  = 
<. B ,  ran  A >.  /\  xCart b )  <->  <. B ,  ran  A >.Cart b )
4137, 40bitri 252 . . . . . . . . . . 11  |-  ( E. x ( <. A ,  B >. ( 2nd  (x)  (Range  o.  1st ) ) x  /\  xCart b
)  <->  <. B ,  ran  A
>.Cart b )
427, 29, 10brcart 30704 . . . . . . . . . . 11  |-  ( <. B ,  ran  A >.Cart b  <-> 
b  =  ( B  X.  ran  A ) )
4311, 41, 423bitri 274 . . . . . . . . . 10  |-  ( <. A ,  B >. (Cart 
o.  ( 2nd  (x)  (Range  o.  1st ) ) ) b  <->  b  =  ( B  X.  ran  A
) )
449, 43, 253anbi123i 1194 . . . . . . . . 9  |-  ( (
<. A ,  B >. 1st a  /\  <. A ,  B >. (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) b  /\  x  =  <. a ,  b >. )  <->  ( a  =  A  /\  b  =  ( B  X.  ran  A )  /\  x  =  <. a ,  b >. ) )
455, 44bitri 252 . . . . . . . 8  |-  ( ( x  =  <. a ,  b >.  /\  <. A ,  B >. 1st a  /\  <. A ,  B >. (Cart  o.  ( 2nd  (x)  (Range  o.  1st )
) ) b )  <-> 
( a  =  A  /\  b  =  ( B  X.  ran  A
)  /\  x  =  <. a ,  b >.
) )
46452exbii 1713 . . . . . . 7  |-  ( E. a E. b ( x  =  <. a ,  b >.  /\  <. A ,  B >. 1st a  /\  <. A ,  B >. (Cart  o.  ( 2nd  (x)  (Range  o.  1st )
) ) b )  <->  E. a E. b ( a  =  A  /\  b  =  ( B  X.  ran  A )  /\  x  =  <. a ,  b >. ) )
477, 29xpex 6609 . . . . . . . 8  |-  ( B  X.  ran  A )  e.  _V
48 opeq1 4187 . . . . . . . . 9  |-  ( a  =  A  ->  <. a ,  b >.  =  <. A ,  b >. )
4948eqeq2d 2436 . . . . . . . 8  |-  ( a  =  A  ->  (
x  =  <. a ,  b >.  <->  x  =  <. A ,  b >.
) )
50 opeq2 4188 . . . . . . . . 9  |-  ( b  =  ( B  X.  ran  A )  ->  <. A , 
b >.  =  <. A , 
( B  X.  ran  A ) >. )
5150eqeq2d 2436 . . . . . . . 8  |-  ( b  =  ( B  X.  ran  A )  ->  (
x  =  <. A , 
b >. 
<->  x  =  <. A , 
( B  X.  ran  A ) >. ) )
526, 47, 49, 51ceqsex2v 3120 . . . . . . 7  |-  ( E. a E. b ( a  =  A  /\  b  =  ( B  X.  ran  A )  /\  x  =  <. a ,  b >. )  <->  x  =  <. A ,  ( B  X.  ran  A )
>. )
534, 46, 523bitri 274 . . . . . 6  |-  ( <. A ,  B >. ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) x  <->  x  =  <. A ,  ( B  X.  ran  A ) >. )
5453anbi1i 699 . . . . 5  |-  ( (
<. A ,  B >. ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) x  /\  xCap C
)  <->  ( x  = 
<. A ,  ( B  X.  ran  A )
>.  /\  xCap C ) )
5554exbii 1712 . . . 4  |-  ( E. x ( <. A ,  B >. ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) x  /\  xCap C )  <->  E. x
( x  =  <. A ,  ( B  X.  ran  A ) >.  /\  xCap C ) )
563, 55bitri 252 . . 3  |-  ( <. A ,  B >. (Cap 
o.  ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) ) C  <->  E. x ( x  = 
<. A ,  ( B  X.  ran  A )
>.  /\  xCap C ) )
57 opex 4685 . . . 4  |-  <. A , 
( B  X.  ran  A ) >.  e.  _V
58 breq1 4426 . . . 4  |-  ( x  =  <. A ,  ( B  X.  ran  A
) >.  ->  ( xCap C 
<-> 
<. A ,  ( B  X.  ran  A )
>.Cap C ) )
5957, 58ceqsexv 3118 . . 3  |-  ( E. x ( x  = 
<. A ,  ( B  X.  ran  A )
>.  /\  xCap C )  <->  <. A ,  ( B  X.  ran  A )
>.Cap C )
606, 47, 2brcap 30712 . . 3  |-  ( <. A ,  ( B  X.  ran  A ) >.Cap C 
<->  C  =  ( A  i^i  ( B  X.  ran  A ) ) )
6156, 59, 603bitri 274 . 2  |-  ( <. A ,  B >. (Cap 
o.  ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) ) C  <-> 
C  =  ( A  i^i  ( B  X.  ran  A ) ) )
62 df-restrict 30642 . . 3  |- Restrict  =  (Cap 
o.  ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) )
6362breqi 4429 . 2  |-  ( <. A ,  B >.Restrict C  <->  <. A ,  B >. (Cap 
o.  ( 1st  (x)  (Cart  o.  ( 2nd  (x)  (Range  o.  1st ) ) ) ) ) C )
64 dfres3 30406 . . 3  |-  ( A  |`  B )  =  ( A  i^i  ( B  X.  ran  A ) )
6564eqeq2i 2440 . 2  |-  ( C  =  ( A  |`  B )  <->  C  =  ( A  i^i  ( B  X.  ran  A ) ) )
6661, 63, 653bitr4i 280 1  |-  ( <. A ,  B >.Restrict C  <->  C  =  ( A  |`  B ) )
Colors of variables: wff setvar class
Syntax hints:    <-> wb 187    /\ wa 370    /\ w3a 982    = wceq 1437   E.wex 1657    e. wcel 1872   _Vcvv 3080    i^i cin 3435   <.cop 4004   class class class wbr 4423    X. cxp 4851   ran crn 4854    |` cres 4855    o. ccom 4857   1stc1st 6805   2ndc2nd 6806    (x) ctxp 30601  Cartccart 30612  Rangecrange 30615  Capccap 30618  Restrictcrestrict 30622
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1663  ax-4 1676  ax-5 1752  ax-6 1798  ax-7 1843  ax-8 1874  ax-9 1876  ax-10 1891  ax-11 1896  ax-12 1909  ax-13 2057  ax-ext 2401  ax-sep 4546  ax-nul 4555  ax-pow 4602  ax-pr 4660  ax-un 6597
This theorem depends on definitions:  df-bi 188  df-or 371  df-an 372  df-3an 984  df-tru 1440  df-ex 1658  df-nf 1662  df-sb 1791  df-eu 2273  df-mo 2274  df-clab 2408  df-cleq 2414  df-clel 2417  df-nfc 2568  df-ne 2616  df-ral 2776  df-rex 2777  df-rab 2780  df-v 3082  df-sbc 3300  df-dif 3439  df-un 3441  df-in 3443  df-ss 3450  df-symdif 3693  df-nul 3762  df-if 3912  df-pw 3983  df-sn 3999  df-pr 4001  df-op 4005  df-uni 4220  df-br 4424  df-opab 4483  df-mpt 4484  df-eprel 4764  df-id 4768  df-xp 4859  df-rel 4860  df-cnv 4861  df-co 4862  df-dm 4863  df-rn 4864  df-res 4865  df-ima 4866  df-iota 5565  df-fun 5603  df-fn 5604  df-f 5605  df-fo 5607  df-fv 5609  df-1st 6807  df-2nd 6808  df-txp 30625  df-pprod 30626  df-image 30635  df-cart 30636  df-range 30639  df-cap 30641  df-restrict 30642
This theorem is referenced by:  dfrecs2  30722
  Copyright terms: Public domain W3C validator