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

Theorem fvray 24836
Description: Calculate the value of the Ray function. (Contributed by Scott Fenton, 21-Oct-2013.) (Revised by Mario Carneiro, 19-Apr-2014.)
Assertion
Ref Expression
fvray  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  P  =/=  A ) )  -> 
( PRay A )  =  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. } )
Distinct variable groups:    x, A    x, N    x, P

Proof of Theorem fvray
Dummy variables  a  n  p  r are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-ov 5877 . 2  |-  ( PRay A )  =  (Ray
`  <. P ,  A >. )
2 eqid 2296 . . . . 5  |-  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. }  =  {
x  e.  ( EE
`  N )  |  POutsideOf <. A ,  x >. }
3 fveq2 5541 . . . . . . . . 9  |-  ( n  =  N  ->  ( EE `  n )  =  ( EE `  N
) )
43eleq2d 2363 . . . . . . . 8  |-  ( n  =  N  ->  ( P  e.  ( EE `  n )  <->  P  e.  ( EE `  N ) ) )
53eleq2d 2363 . . . . . . . 8  |-  ( n  =  N  ->  ( A  e.  ( EE `  n )  <->  A  e.  ( EE `  N ) ) )
64, 53anbi12d 1253 . . . . . . 7  |-  ( n  =  N  ->  (
( P  e.  ( EE `  n )  /\  A  e.  ( EE `  n )  /\  P  =/=  A
)  <->  ( P  e.  ( EE `  N
)  /\  A  e.  ( EE `  N )  /\  P  =/=  A
) ) )
7 rabeq 2795 . . . . . . . . 9  |-  ( ( EE `  n )  =  ( EE `  N )  ->  { x  e.  ( EE `  n
)  |  POutsideOf <. A ,  x >. }  =  {
x  e.  ( EE
`  N )  |  POutsideOf <. A ,  x >. } )
83, 7syl 15 . . . . . . . 8  |-  ( n  =  N  ->  { x  e.  ( EE `  n
)  |  POutsideOf <. A ,  x >. }  =  {
x  e.  ( EE
`  N )  |  POutsideOf <. A ,  x >. } )
98eqeq2d 2307 . . . . . . 7  |-  ( n  =  N  ->  ( { x  e.  ( EE `  N )  |  POutsideOf <. A ,  x >. }  =  { x  e.  ( EE `  n
)  |  POutsideOf <. A ,  x >. }  <->  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. }  =  {
x  e.  ( EE
`  N )  |  POutsideOf <. A ,  x >. } ) )
106, 9anbi12d 691 . . . . . 6  |-  ( n  =  N  ->  (
( ( P  e.  ( EE `  n
)  /\  A  e.  ( EE `  n )  /\  P  =/=  A
)  /\  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. }  =  {
x  e.  ( EE
`  n )  |  POutsideOf <. A ,  x >. } )  <->  ( ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N
)  /\  P  =/=  A )  /\  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. }  =  {
x  e.  ( EE
`  N )  |  POutsideOf <. A ,  x >. } ) ) )
1110rspcev 2897 . . . . 5  |-  ( ( N  e.  NN  /\  ( ( P  e.  ( EE `  N
)  /\  A  e.  ( EE `  N )  /\  P  =/=  A
)  /\  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. }  =  {
x  e.  ( EE
`  N )  |  POutsideOf <. A ,  x >. } ) )  ->  E. n  e.  NN  ( ( P  e.  ( EE `  n
)  /\  A  e.  ( EE `  n )  /\  P  =/=  A
)  /\  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. }  =  {
x  e.  ( EE
`  n )  |  POutsideOf <. A ,  x >. } ) )
122, 11mpanr2 665 . . . 4  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  P  =/=  A ) )  ->  E. n  e.  NN  ( ( P  e.  ( EE `  n
)  /\  A  e.  ( EE `  n )  /\  P  =/=  A
)  /\  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. }  =  {
x  e.  ( EE
`  n )  |  POutsideOf <. A ,  x >. } ) )
13 simpr1 961 . . . . 5  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  P  =/=  A ) )  ->  P  e.  ( EE `  N ) )
14 simpr2 962 . . . . 5  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  P  =/=  A ) )  ->  A  e.  ( EE `  N ) )
15 fvex 5555 . . . . . . 7  |-  ( EE
`  N )  e. 
_V
1615rabex 4181 . . . . . 6  |-  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. }  e.  _V
17 eleq1 2356 . . . . . . . . . 10  |-  ( p  =  P  ->  (
p  e.  ( EE
`  n )  <->  P  e.  ( EE `  n ) ) )
18 neeq1 2467 . . . . . . . . . 10  |-  ( p  =  P  ->  (
p  =/=  a  <->  P  =/=  a ) )
1917, 183anbi13d 1254 . . . . . . . . 9  |-  ( p  =  P  ->  (
( p  e.  ( EE `  n )  /\  a  e.  ( EE `  n )  /\  p  =/=  a
)  <->  ( P  e.  ( EE `  n
)  /\  a  e.  ( EE `  n )  /\  P  =/=  a
) ) )
20 breq1 4042 . . . . . . . . . . 11  |-  ( p  =  P  ->  (
pOutsideOf <. a ,  x >.  <-> 
POutsideOf <. a ,  x >. ) )
2120rabbidv 2793 . . . . . . . . . 10  |-  ( p  =  P  ->  { x  e.  ( EE `  n
)  |  pOutsideOf <. a ,  x >. }  =  {
x  e.  ( EE
`  n )  |  POutsideOf <. a ,  x >. } )
2221eqeq2d 2307 . . . . . . . . 9  |-  ( p  =  P  ->  (
r  =  { x  e.  ( EE `  n
)  |  pOutsideOf <. a ,  x >. }  <->  r  =  { x  e.  ( EE `  n )  |  POutsideOf <. a ,  x >. } ) )
2319, 22anbi12d 691 . . . . . . . 8  |-  ( p  =  P  ->  (
( ( p  e.  ( EE `  n
)  /\  a  e.  ( EE `  n )  /\  p  =/=  a
)  /\  r  =  { x  e.  ( EE `  n )  |  pOutsideOf <. a ,  x >. } )  <->  ( ( P  e.  ( EE `  n )  /\  a  e.  ( EE `  n
)  /\  P  =/=  a )  /\  r  =  { x  e.  ( EE `  n )  |  POutsideOf <. a ,  x >. } ) ) )
2423rexbidv 2577 . . . . . . 7  |-  ( p  =  P  ->  ( E. n  e.  NN  ( ( p  e.  ( EE `  n
)  /\  a  e.  ( EE `  n )  /\  p  =/=  a
)  /\  r  =  { x  e.  ( EE `  n )  |  pOutsideOf <. a ,  x >. } )  <->  E. n  e.  NN  ( ( P  e.  ( EE `  n )  /\  a  e.  ( EE `  n
)  /\  P  =/=  a )  /\  r  =  { x  e.  ( EE `  n )  |  POutsideOf <. a ,  x >. } ) ) )
25 eleq1 2356 . . . . . . . . . 10  |-  ( a  =  A  ->  (
a  e.  ( EE
`  n )  <->  A  e.  ( EE `  n ) ) )
26 neeq2 2468 . . . . . . . . . 10  |-  ( a  =  A  ->  ( P  =/=  a  <->  P  =/=  A ) )
2725, 263anbi23d 1255 . . . . . . . . 9  |-  ( a  =  A  ->  (
( P  e.  ( EE `  n )  /\  a  e.  ( EE `  n )  /\  P  =/=  a
)  <->  ( P  e.  ( EE `  n
)  /\  A  e.  ( EE `  n )  /\  P  =/=  A
) ) )
28 opeq1 3812 . . . . . . . . . . . 12  |-  ( a  =  A  ->  <. a ,  x >.  =  <. A ,  x >. )
2928breq2d 4051 . . . . . . . . . . 11  |-  ( a  =  A  ->  ( POutsideOf
<. a ,  x >.  <->  POutsideOf <. A ,  x >. ) )
3029rabbidv 2793 . . . . . . . . . 10  |-  ( a  =  A  ->  { x  e.  ( EE `  n
)  |  POutsideOf <. a ,  x >. }  =  {
x  e.  ( EE
`  n )  |  POutsideOf <. A ,  x >. } )
3130eqeq2d 2307 . . . . . . . . 9  |-  ( a  =  A  ->  (
r  =  { x  e.  ( EE `  n
)  |  POutsideOf <. a ,  x >. }  <->  r  =  { x  e.  ( EE `  n )  |  POutsideOf <. A ,  x >. } ) )
3227, 31anbi12d 691 . . . . . . . 8  |-  ( a  =  A  ->  (
( ( P  e.  ( EE `  n
)  /\  a  e.  ( EE `  n )  /\  P  =/=  a
)  /\  r  =  { x  e.  ( EE `  n )  |  POutsideOf <. a ,  x >. } )  <->  ( ( P  e.  ( EE `  n )  /\  A  e.  ( EE `  n
)  /\  P  =/=  A )  /\  r  =  { x  e.  ( EE `  n )  |  POutsideOf <. A ,  x >. } ) ) )
3332rexbidv 2577 . . . . . . 7  |-  ( a  =  A  ->  ( E. n  e.  NN  ( ( P  e.  ( EE `  n
)  /\  a  e.  ( EE `  n )  /\  P  =/=  a
)  /\  r  =  { x  e.  ( EE `  n )  |  POutsideOf <. a ,  x >. } )  <->  E. n  e.  NN  ( ( P  e.  ( EE `  n )  /\  A  e.  ( EE `  n
)  /\  P  =/=  A )  /\  r  =  { x  e.  ( EE `  n )  |  POutsideOf <. A ,  x >. } ) ) )
34 eqeq1 2302 . . . . . . . . 9  |-  ( r  =  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. }  ->  (
r  =  { x  e.  ( EE `  n
)  |  POutsideOf <. A ,  x >. }  <->  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. }  =  {
x  e.  ( EE
`  n )  |  POutsideOf <. A ,  x >. } ) )
3534anbi2d 684 . . . . . . . 8  |-  ( r  =  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. }  ->  (
( ( P  e.  ( EE `  n
)  /\  A  e.  ( EE `  n )  /\  P  =/=  A
)  /\  r  =  { x  e.  ( EE `  n )  |  POutsideOf <. A ,  x >. } )  <->  ( ( P  e.  ( EE `  n )  /\  A  e.  ( EE `  n
)  /\  P  =/=  A )  /\  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. }  =  {
x  e.  ( EE
`  n )  |  POutsideOf <. A ,  x >. } ) ) )
3635rexbidv 2577 . . . . . . 7  |-  ( r  =  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. }  ->  ( E. n  e.  NN  ( ( P  e.  ( EE `  n
)  /\  A  e.  ( EE `  n )  /\  P  =/=  A
)  /\  r  =  { x  e.  ( EE `  n )  |  POutsideOf <. A ,  x >. } )  <->  E. n  e.  NN  ( ( P  e.  ( EE `  n )  /\  A  e.  ( EE `  n
)  /\  P  =/=  A )  /\  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. }  =  {
x  e.  ( EE
`  n )  |  POutsideOf <. A ,  x >. } ) ) )
3724, 33, 36eloprabg 5951 . . . . . 6  |-  ( ( P  e.  ( EE
`  N )  /\  A  e.  ( EE `  N )  /\  {
x  e.  ( EE
`  N )  |  POutsideOf <. A ,  x >. }  e.  _V )  ->  ( <. <. P ,  A >. ,  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. } >.  e.  { <. <. p ,  a
>. ,  r >.  |  E. n  e.  NN  ( ( p  e.  ( EE `  n
)  /\  a  e.  ( EE `  n )  /\  p  =/=  a
)  /\  r  =  { x  e.  ( EE `  n )  |  pOutsideOf <. a ,  x >. } ) }  <->  E. n  e.  NN  ( ( P  e.  ( EE `  n )  /\  A  e.  ( EE `  n
)  /\  P  =/=  A )  /\  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. }  =  {
x  e.  ( EE
`  n )  |  POutsideOf <. A ,  x >. } ) ) )
3816, 37mp3an3 1266 . . . . 5  |-  ( ( P  e.  ( EE
`  N )  /\  A  e.  ( EE `  N ) )  -> 
( <. <. P ,  A >. ,  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. } >.  e.  { <. <. p ,  a
>. ,  r >.  |  E. n  e.  NN  ( ( p  e.  ( EE `  n
)  /\  a  e.  ( EE `  n )  /\  p  =/=  a
)  /\  r  =  { x  e.  ( EE `  n )  |  pOutsideOf <. a ,  x >. } ) }  <->  E. n  e.  NN  ( ( P  e.  ( EE `  n )  /\  A  e.  ( EE `  n
)  /\  P  =/=  A )  /\  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. }  =  {
x  e.  ( EE
`  n )  |  POutsideOf <. A ,  x >. } ) ) )
3913, 14, 38syl2anc 642 . . . 4  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  P  =/=  A ) )  -> 
( <. <. P ,  A >. ,  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. } >.  e.  { <. <. p ,  a
>. ,  r >.  |  E. n  e.  NN  ( ( p  e.  ( EE `  n
)  /\  a  e.  ( EE `  n )  /\  p  =/=  a
)  /\  r  =  { x  e.  ( EE `  n )  |  pOutsideOf <. a ,  x >. } ) }  <->  E. n  e.  NN  ( ( P  e.  ( EE `  n )  /\  A  e.  ( EE `  n
)  /\  P  =/=  A )  /\  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. }  =  {
x  e.  ( EE
`  n )  |  POutsideOf <. A ,  x >. } ) ) )
4012, 39mpbird 223 . . 3  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  P  =/=  A ) )  ->  <. <. P ,  A >. ,  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. } >.  e.  { <. <. p ,  a
>. ,  r >.  |  E. n  e.  NN  ( ( p  e.  ( EE `  n
)  /\  a  e.  ( EE `  n )  /\  p  =/=  a
)  /\  r  =  { x  e.  ( EE `  n )  |  pOutsideOf <. a ,  x >. } ) } )
41 df-br 4040 . . . . 5  |-  ( <. P ,  A >.Ray { x  e.  ( EE
`  N )  |  POutsideOf <. A ,  x >. }  <->  <. <. P ,  A >. ,  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. } >.  e. Ray )
42 df-ray 24833 . . . . . 6  |- Ray  =  { <. <. p ,  a
>. ,  r >.  |  E. n  e.  NN  ( ( p  e.  ( EE `  n
)  /\  a  e.  ( EE `  n )  /\  p  =/=  a
)  /\  r  =  { x  e.  ( EE `  n )  |  pOutsideOf <. a ,  x >. } ) }
4342eleq2i 2360 . . . . 5  |-  ( <. <. P ,  A >. ,  { x  e.  ( EE `  N )  |  POutsideOf <. A ,  x >. } >.  e. Ray  <->  <. <. P ,  A >. ,  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. } >.  e.  { <. <. p ,  a
>. ,  r >.  |  E. n  e.  NN  ( ( p  e.  ( EE `  n
)  /\  a  e.  ( EE `  n )  /\  p  =/=  a
)  /\  r  =  { x  e.  ( EE `  n )  |  pOutsideOf <. a ,  x >. } ) } )
4441, 43bitri 240 . . . 4  |-  ( <. P ,  A >.Ray { x  e.  ( EE
`  N )  |  POutsideOf <. A ,  x >. }  <->  <. <. P ,  A >. ,  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. } >.  e.  { <. <. p ,  a
>. ,  r >.  |  E. n  e.  NN  ( ( p  e.  ( EE `  n
)  /\  a  e.  ( EE `  n )  /\  p  =/=  a
)  /\  r  =  { x  e.  ( EE `  n )  |  pOutsideOf <. a ,  x >. } ) } )
45 funray 24835 . . . . 5  |-  Fun Ray
46 funbrfv 5577 . . . . 5  |-  ( Fun Ray  ->  ( <. P ,  A >.Ray { x  e.  ( EE `  N )  |  POutsideOf <. A ,  x >. }  ->  (Ray `  <. P ,  A >. )  =  { x  e.  ( EE `  N )  |  POutsideOf <. A ,  x >. } ) )
4745, 46ax-mp 8 . . . 4  |-  ( <. P ,  A >.Ray { x  e.  ( EE
`  N )  |  POutsideOf <. A ,  x >. }  ->  (Ray `  <. P ,  A >. )  =  { x  e.  ( EE `  N )  |  POutsideOf <. A ,  x >. } )
4844, 47sylbir 204 . . 3  |-  ( <. <. P ,  A >. ,  { x  e.  ( EE `  N )  |  POutsideOf <. A ,  x >. } >.  e.  { <. <.
p ,  a >. ,  r >.  |  E. n  e.  NN  (
( p  e.  ( EE `  n )  /\  a  e.  ( EE `  n )  /\  p  =/=  a
)  /\  r  =  { x  e.  ( EE `  n )  |  pOutsideOf <. a ,  x >. } ) }  ->  (Ray
`  <. P ,  A >. )  =  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. } )
4940, 48syl 15 . 2  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  P  =/=  A ) )  -> 
(Ray `  <. P ,  A >. )  =  {
x  e.  ( EE
`  N )  |  POutsideOf <. A ,  x >. } )
501, 49syl5eq 2340 1  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  P  =/=  A ) )  -> 
( PRay A )  =  { x  e.  ( EE `  N
)  |  POutsideOf <. A ,  x >. } )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 176    /\ wa 358    /\ w3a 934    = wceq 1632    e. wcel 1696    =/= wne 2459   E.wrex 2557   {crab 2560   _Vcvv 2801   <.cop 3656   class class class wbr 4039   Fun wfun 5265   ` cfv 5271  (class class class)co 5874   {coprab 5875   NNcn 9762   EEcee 24588  OutsideOfcoutsideof 24814  Raycray 24830
This theorem is referenced by:  lineunray  24842
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-13 1698  ax-14 1700  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277  ax-sep 4157  ax-nul 4165  ax-pow 4204  ax-pr 4230  ax-un 4528  ax-cnex 8809  ax-resscn 8810  ax-1cn 8811  ax-icn 8812  ax-addcl 8813  ax-addrcl 8814  ax-mulcl 8815  ax-mulrcl 8816  ax-mulcom 8817  ax-addass 8818  ax-mulass 8819  ax-distr 8820  ax-i2m1 8821  ax-1ne0 8822  ax-1rid 8823  ax-rnegex 8824  ax-rrecex 8825  ax-cnre 8826  ax-pre-lttri 8827  ax-pre-lttrn 8828  ax-pre-ltadd 8829  ax-pre-mulgt0 8830
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1532  df-nf 1535  df-sb 1639  df-eu 2160  df-mo 2161  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-ne 2461  df-nel 2462  df-ral 2561  df-rex 2562  df-reu 2563  df-rab 2565  df-v 2803  df-sbc 3005  df-csb 3095  df-dif 3168  df-un 3170  df-in 3172  df-ss 3179  df-pss 3181  df-nul 3469  df-if 3579  df-pw 3640  df-sn 3659  df-pr 3660  df-tp 3661  df-op 3662  df-uni 3844  df-iun 3923  df-br 4040  df-opab 4094  df-mpt 4095  df-tr 4130  df-eprel 4321  df-id 4325  df-po 4330  df-so 4331  df-fr 4368  df-we 4370  df-ord 4411  df-on 4412  df-lim 4413  df-suc 4414  df-om 4673  df-xp 4711  df-rel 4712  df-cnv 4713  df-co 4714  df-dm 4715  df-rn 4716  df-res 4717  df-ima 4718  df-iota 5235  df-fun 5273  df-fn 5274  df-f 5275  df-f1 5276  df-fo 5277  df-f1o 5278  df-fv 5279  df-ov 5877  df-oprab 5878  df-mpt2 5879  df-1st 6138  df-2nd 6139  df-riota 6320  df-recs 6404  df-rdg 6439  df-er 6676  df-map 6790  df-en 6880  df-dom 6881  df-sdom 6882  df-pnf 8885  df-mnf 8886  df-xr 8887  df-ltxr 8888  df-le 8889  df-sub 9055  df-neg 9056  df-nn 9763  df-z 10041  df-uz 10247  df-fz 10799  df-ee 24591  df-ray 24833
  Copyright terms: Public domain W3C validator