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

Theorem broutsideof3 23923
Description: Characterization of outsideness in terms of relationship to a fourth point. Theorem 6.3 of [Schwabhauser] p. 43. (Contributed by Scott Fenton, 18-Oct-2013.) (Revised by Mario Carneiro, 19-Apr-2014.)
Assertion
Ref Expression
broutsideof3  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N
) ) )  -> 
( POutsideOf <. A ,  B >.  <-> 
( A  =/=  P  /\  B  =/=  P  /\  E. c  e.  ( EE `  N ) ( c  =/=  P  /\  P  Btwn  <. A , 
c >.  /\  P  Btwn  <. B ,  c >. ) ) ) )
Distinct variable groups:    N, c    A, c    B, c    P, c

Proof of Theorem broutsideof3
StepHypRef Expression
1 broutsideof2 23919 . 2  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N
) ) )  -> 
( POutsideOf <. A ,  B >.  <-> 
( A  =/=  P  /\  B  =/=  P  /\  ( A  Btwn  <. P ,  B >.  \/  B  Btwn  <. P ,  A >. ) ) ) )
2 simpl 445 . . . . . . . . . 10  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N
) ) )  ->  N  e.  NN )
3 simpr3 968 . . . . . . . . . 10  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N
) ) )  ->  B  e.  ( EE `  N ) )
4 simpr1 966 . . . . . . . . . 10  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N
) ) )  ->  P  e.  ( EE `  N ) )
5 btwndiff 23824 . . . . . . . . . 10  |-  ( ( N  e.  NN  /\  B  e.  ( EE `  N )  /\  P  e.  ( EE `  N
) )  ->  E. c  e.  ( EE `  N
) ( P  Btwn  <. B ,  c >.  /\  P  =/=  c ) )
62, 3, 4, 5syl3anc 1187 . . . . . . . . 9  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N
) ) )  ->  E. c  e.  ( EE `  N ) ( P  Btwn  <. B , 
c >.  /\  P  =/=  c ) )
76adantr 453 . . . . . . . 8  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) ) )  /\  (
( A  =/=  P  /\  B  =/=  P
)  /\  A  Btwn  <. P ,  B >. ) )  ->  E. c  e.  ( EE `  N
) ( P  Btwn  <. B ,  c >.  /\  P  =/=  c ) )
8 df-3an 941 . . . . . . . . . . . 12  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N
) )  /\  c  e.  ( EE `  N
) )  <->  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N
)  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) ) )
9 3anass 943 . . . . . . . . . . . 12  |-  ( ( ( ( A  =/= 
P  /\  B  =/=  P )  /\  A  Btwn  <. P ,  B >. )  /\  P  Btwn  <. B , 
c >.  /\  P  =/=  c )  <->  ( (
( A  =/=  P  /\  B  =/=  P
)  /\  A  Btwn  <. P ,  B >. )  /\  ( P  Btwn  <. B ,  c >.  /\  P  =/=  c ) ) )
10 simpr3 968 . . . . . . . . . . . . . 14  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) )  /\  c  e.  ( EE `  N
) )  /\  (
( ( A  =/= 
P  /\  B  =/=  P )  /\  A  Btwn  <. P ,  B >. )  /\  P  Btwn  <. B , 
c >.  /\  P  =/=  c ) )  ->  P  =/=  c )
1110necomd 2495 . . . . . . . . . . . . 13  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) )  /\  c  e.  ( EE `  N
) )  /\  (
( ( A  =/= 
P  /\  B  =/=  P )  /\  A  Btwn  <. P ,  B >. )  /\  P  Btwn  <. B , 
c >.  /\  P  =/=  c ) )  -> 
c  =/=  P )
12 simp1 960 . . . . . . . . . . . . . 14  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N
) )  /\  c  e.  ( EE `  N
) )  ->  N  e.  NN )
13 simp23 995 . . . . . . . . . . . . . 14  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N
) )  /\  c  e.  ( EE `  N
) )  ->  B  e.  ( EE `  N
) )
14 simp22 994 . . . . . . . . . . . . . 14  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N
) )  /\  c  e.  ( EE `  N
) )  ->  A  e.  ( EE `  N
) )
15 simp21 993 . . . . . . . . . . . . . 14  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N
) )  /\  c  e.  ( EE `  N
) )  ->  P  e.  ( EE `  N
) )
16 simp3 962 . . . . . . . . . . . . . 14  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N
) )  /\  c  e.  ( EE `  N
) )  ->  c  e.  ( EE `  N
) )
17 simpr1r 1018 . . . . . . . . . . . . . . 15  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) )  /\  c  e.  ( EE `  N
) )  /\  (
( ( A  =/= 
P  /\  B  =/=  P )  /\  A  Btwn  <. P ,  B >. )  /\  P  Btwn  <. B , 
c >.  /\  P  =/=  c ) )  ->  A  Btwn  <. P ,  B >. )
1812, 14, 15, 13, 17btwncomand 23812 . . . . . . . . . . . . . 14  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) )  /\  c  e.  ( EE `  N
) )  /\  (
( ( A  =/= 
P  /\  B  =/=  P )  /\  A  Btwn  <. P ,  B >. )  /\  P  Btwn  <. B , 
c >.  /\  P  =/=  c ) )  ->  A  Btwn  <. B ,  P >. )
19 simpr2 967 . . . . . . . . . . . . . 14  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) )  /\  c  e.  ( EE `  N
) )  /\  (
( ( A  =/= 
P  /\  B  =/=  P )  /\  A  Btwn  <. P ,  B >. )  /\  P  Btwn  <. B , 
c >.  /\  P  =/=  c ) )  ->  P  Btwn  <. B ,  c
>. )
2012, 13, 14, 15, 16, 18, 19btwnexch3and 23818 . . . . . . . . . . . . 13  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) )  /\  c  e.  ( EE `  N
) )  /\  (
( ( A  =/= 
P  /\  B  =/=  P )  /\  A  Btwn  <. P ,  B >. )  /\  P  Btwn  <. B , 
c >.  /\  P  =/=  c ) )  ->  P  Btwn  <. A ,  c
>. )
2111, 20, 193jca 1137 . . . . . . . . . . . 12  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) )  /\  c  e.  ( EE `  N
) )  /\  (
( ( A  =/= 
P  /\  B  =/=  P )  /\  A  Btwn  <. P ,  B >. )  /\  P  Btwn  <. B , 
c >.  /\  P  =/=  c ) )  -> 
( c  =/=  P  /\  P  Btwn  <. A , 
c >.  /\  P  Btwn  <. B ,  c >. ) )
228, 9, 21syl2anbr 468 . . . . . . . . . . 11  |-  ( ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N
)  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) )  /\  (
( ( A  =/= 
P  /\  B  =/=  P )  /\  A  Btwn  <. P ,  B >. )  /\  ( P  Btwn  <. B ,  c >.  /\  P  =/=  c ) ) )  ->  (
c  =/=  P  /\  P  Btwn  <. A ,  c
>.  /\  P  Btwn  <. B , 
c >. ) )
2322expr 601 . . . . . . . . . 10  |-  ( ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N
)  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) )  /\  (
( A  =/=  P  /\  B  =/=  P
)  /\  A  Btwn  <. P ,  B >. ) )  ->  ( ( P  Btwn  <. B ,  c
>.  /\  P  =/=  c
)  ->  ( c  =/=  P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. ) ) )
2423an32s 782 . . . . . . . . 9  |-  ( ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N
)  /\  B  e.  ( EE `  N ) ) )  /\  (
( A  =/=  P  /\  B  =/=  P
)  /\  A  Btwn  <. P ,  B >. ) )  /\  c  e.  ( EE `  N
) )  ->  (
( P  Btwn  <. B , 
c >.  /\  P  =/=  c )  ->  (
c  =/=  P  /\  P  Btwn  <. A ,  c
>.  /\  P  Btwn  <. B , 
c >. ) ) )
2524reximdva 2617 . . . . . . . 8  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) ) )  /\  (
( A  =/=  P  /\  B  =/=  P
)  /\  A  Btwn  <. P ,  B >. ) )  ->  ( E. c  e.  ( EE `  N ) ( P 
Btwn  <. B ,  c
>.  /\  P  =/=  c
)  ->  E. c  e.  ( EE `  N
) ( c  =/= 
P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. ) ) )
267, 25mpd 16 . . . . . . 7  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) ) )  /\  (
( A  =/=  P  /\  B  =/=  P
)  /\  A  Btwn  <. P ,  B >. ) )  ->  E. c  e.  ( EE `  N
) ( c  =/= 
P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. ) )
2726expr 601 . . . . . 6  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) ) )  /\  ( A  =/=  P  /\  B  =/=  P ) )  -> 
( A  Btwn  <. P ,  B >.  ->  E. c  e.  ( EE `  N
) ( c  =/= 
P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. ) ) )
28 simpr2 967 . . . . . . . . . 10  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N
) ) )  ->  A  e.  ( EE `  N ) )
29 btwndiff 23824 . . . . . . . . . 10  |-  ( ( N  e.  NN  /\  A  e.  ( EE `  N )  /\  P  e.  ( EE `  N
) )  ->  E. c  e.  ( EE `  N
) ( P  Btwn  <. A ,  c >.  /\  P  =/=  c ) )
302, 28, 4, 29syl3anc 1187 . . . . . . . . 9  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N
) ) )  ->  E. c  e.  ( EE `  N ) ( P  Btwn  <. A , 
c >.  /\  P  =/=  c ) )
3130adantr 453 . . . . . . . 8  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) ) )  /\  (
( A  =/=  P  /\  B  =/=  P
)  /\  B  Btwn  <. P ,  A >. ) )  ->  E. c  e.  ( EE `  N
) ( P  Btwn  <. A ,  c >.  /\  P  =/=  c ) )
32 3anass 943 . . . . . . . . . . . 12  |-  ( ( ( ( A  =/= 
P  /\  B  =/=  P )  /\  B  Btwn  <. P ,  A >. )  /\  P  Btwn  <. A , 
c >.  /\  P  =/=  c )  <->  ( (
( A  =/=  P  /\  B  =/=  P
)  /\  B  Btwn  <. P ,  A >. )  /\  ( P  Btwn  <. A ,  c >.  /\  P  =/=  c ) ) )
33 simpr3 968 . . . . . . . . . . . . . 14  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) )  /\  c  e.  ( EE `  N
) )  /\  (
( ( A  =/= 
P  /\  B  =/=  P )  /\  B  Btwn  <. P ,  A >. )  /\  P  Btwn  <. A , 
c >.  /\  P  =/=  c ) )  ->  P  =/=  c )
3433necomd 2495 . . . . . . . . . . . . 13  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) )  /\  c  e.  ( EE `  N
) )  /\  (
( ( A  =/= 
P  /\  B  =/=  P )  /\  B  Btwn  <. P ,  A >. )  /\  P  Btwn  <. A , 
c >.  /\  P  =/=  c ) )  -> 
c  =/=  P )
35 simpr2 967 . . . . . . . . . . . . 13  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) )  /\  c  e.  ( EE `  N
) )  /\  (
( ( A  =/= 
P  /\  B  =/=  P )  /\  B  Btwn  <. P ,  A >. )  /\  P  Btwn  <. A , 
c >.  /\  P  =/=  c ) )  ->  P  Btwn  <. A ,  c
>. )
36 simpr1r 1018 . . . . . . . . . . . . . . 15  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) )  /\  c  e.  ( EE `  N
) )  /\  (
( ( A  =/= 
P  /\  B  =/=  P )  /\  B  Btwn  <. P ,  A >. )  /\  P  Btwn  <. A , 
c >.  /\  P  =/=  c ) )  ->  B  Btwn  <. P ,  A >. )
3712, 13, 15, 14, 36btwncomand 23812 . . . . . . . . . . . . . 14  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) )  /\  c  e.  ( EE `  N
) )  /\  (
( ( A  =/= 
P  /\  B  =/=  P )  /\  B  Btwn  <. P ,  A >. )  /\  P  Btwn  <. A , 
c >.  /\  P  =/=  c ) )  ->  B  Btwn  <. A ,  P >. )
3812, 14, 13, 15, 16, 37, 35btwnexch3and 23818 . . . . . . . . . . . . 13  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) )  /\  c  e.  ( EE `  N
) )  /\  (
( ( A  =/= 
P  /\  B  =/=  P )  /\  B  Btwn  <. P ,  A >. )  /\  P  Btwn  <. A , 
c >.  /\  P  =/=  c ) )  ->  P  Btwn  <. B ,  c
>. )
3934, 35, 383jca 1137 . . . . . . . . . . . 12  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) )  /\  c  e.  ( EE `  N
) )  /\  (
( ( A  =/= 
P  /\  B  =/=  P )  /\  B  Btwn  <. P ,  A >. )  /\  P  Btwn  <. A , 
c >.  /\  P  =/=  c ) )  -> 
( c  =/=  P  /\  P  Btwn  <. A , 
c >.  /\  P  Btwn  <. B ,  c >. ) )
408, 32, 39syl2anbr 468 . . . . . . . . . . 11  |-  ( ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N
)  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) )  /\  (
( ( A  =/= 
P  /\  B  =/=  P )  /\  B  Btwn  <. P ,  A >. )  /\  ( P  Btwn  <. A ,  c >.  /\  P  =/=  c ) ) )  ->  (
c  =/=  P  /\  P  Btwn  <. A ,  c
>.  /\  P  Btwn  <. B , 
c >. ) )
4140expr 601 . . . . . . . . . 10  |-  ( ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N
)  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) )  /\  (
( A  =/=  P  /\  B  =/=  P
)  /\  B  Btwn  <. P ,  A >. ) )  ->  ( ( P  Btwn  <. A ,  c
>.  /\  P  =/=  c
)  ->  ( c  =/=  P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. ) ) )
4241an32s 782 . . . . . . . . 9  |-  ( ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N
)  /\  B  e.  ( EE `  N ) ) )  /\  (
( A  =/=  P  /\  B  =/=  P
)  /\  B  Btwn  <. P ,  A >. ) )  /\  c  e.  ( EE `  N
) )  ->  (
( P  Btwn  <. A , 
c >.  /\  P  =/=  c )  ->  (
c  =/=  P  /\  P  Btwn  <. A ,  c
>.  /\  P  Btwn  <. B , 
c >. ) ) )
4342reximdva 2617 . . . . . . . 8  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) ) )  /\  (
( A  =/=  P  /\  B  =/=  P
)  /\  B  Btwn  <. P ,  A >. ) )  ->  ( E. c  e.  ( EE `  N ) ( P 
Btwn  <. A ,  c
>.  /\  P  =/=  c
)  ->  E. c  e.  ( EE `  N
) ( c  =/= 
P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. ) ) )
4431, 43mpd 16 . . . . . . 7  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) ) )  /\  (
( A  =/=  P  /\  B  =/=  P
)  /\  B  Btwn  <. P ,  A >. ) )  ->  E. c  e.  ( EE `  N
) ( c  =/= 
P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. ) )
4544expr 601 . . . . . 6  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) ) )  /\  ( A  =/=  P  /\  B  =/=  P ) )  -> 
( B  Btwn  <. P ,  A >.  ->  E. c  e.  ( EE `  N
) ( c  =/= 
P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. ) ) )
4627, 45jaod 371 . . . . 5  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) ) )  /\  ( A  =/=  P  /\  B  =/=  P ) )  -> 
( ( A  Btwn  <. P ,  B >.  \/  B  Btwn  <. P ,  A >. )  ->  E. c  e.  ( EE `  N
) ( c  =/= 
P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. ) ) )
47 simprr1 1008 . . . . . . . . 9  |-  ( ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N
)  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) )  /\  (
( A  =/=  P  /\  B  =/=  P
)  /\  ( c  =/=  P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. ) ) )  ->  c  =/=  P
)
48 simpll 733 . . . . . . . . . 10  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) )  ->  N  e.  NN )
49 simplr1 1002 . . . . . . . . . 10  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) )  ->  P  e.  ( EE `  N
) )
50 simplr2 1003 . . . . . . . . . 10  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) )  ->  A  e.  ( EE `  N
) )
51 simpr 449 . . . . . . . . . 10  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) )  ->  c  e.  ( EE `  N
) )
52 simprr2 1009 . . . . . . . . . 10  |-  ( ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N
)  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) )  /\  (
( A  =/=  P  /\  B  =/=  P
)  /\  ( c  =/=  P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. ) ) )  ->  P  Btwn  <. A , 
c >. )
5348, 49, 50, 51, 52btwncomand 23812 . . . . . . . . 9  |-  ( ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N
)  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) )  /\  (
( A  =/=  P  /\  B  =/=  P
)  /\  ( c  =/=  P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. ) ) )  ->  P  Btwn  <. c ,  A >. )
54 simplr3 1004 . . . . . . . . . 10  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) )  ->  B  e.  ( EE `  N
) )
55 simprr3 1010 . . . . . . . . . 10  |-  ( ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N
)  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) )  /\  (
( A  =/=  P  /\  B  =/=  P
)  /\  ( c  =/=  P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. ) ) )  ->  P  Btwn  <. B , 
c >. )
5648, 49, 54, 51, 55btwncomand 23812 . . . . . . . . 9  |-  ( ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N
)  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) )  /\  (
( A  =/=  P  /\  B  =/=  P
)  /\  ( c  =/=  P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. ) ) )  ->  P  Btwn  <. c ,  B >. )
57 btwnconn2 23899 . . . . . . . . . . 11  |-  ( ( N  e.  NN  /\  ( c  e.  ( EE `  N )  /\  P  e.  ( EE `  N ) )  /\  ( A  e.  ( EE `  N )  /\  B  e.  ( EE `  N
) ) )  -> 
( ( c  =/= 
P  /\  P  Btwn  <.
c ,  A >.  /\  P  Btwn  <. c ,  B >. )  ->  ( A  Btwn  <. P ,  B >.  \/  B  Btwn  <. P ,  A >. ) ) )
5848, 51, 49, 50, 54, 57syl122anc 1196 . . . . . . . . . 10  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) )  ->  (
( c  =/=  P  /\  P  Btwn  <. c ,  A >.  /\  P  Btwn  <.
c ,  B >. )  ->  ( A  Btwn  <. P ,  B >.  \/  B  Btwn  <. P ,  A >. ) ) )
5958adantr 453 . . . . . . . . 9  |-  ( ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N
)  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) )  /\  (
( A  =/=  P  /\  B  =/=  P
)  /\  ( c  =/=  P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. ) ) )  ->  ( ( c  =/=  P  /\  P  Btwn  <. c ,  A >.  /\  P  Btwn  <. c ,  B >. )  ->  ( A  Btwn  <. P ,  B >.  \/  B  Btwn  <. P ,  A >. ) ) )
6047, 53, 56, 59mp3and 1285 . . . . . . . 8  |-  ( ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N
)  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) )  /\  (
( A  =/=  P  /\  B  =/=  P
)  /\  ( c  =/=  P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. ) ) )  ->  ( A  Btwn  <. P ,  B >.  \/  B  Btwn  <. P ,  A >. ) )
6160expr 601 . . . . . . 7  |-  ( ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N
)  /\  B  e.  ( EE `  N ) ) )  /\  c  e.  ( EE `  N
) )  /\  ( A  =/=  P  /\  B  =/=  P ) )  -> 
( ( c  =/= 
P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. )  ->  ( A  Btwn  <. P ,  B >.  \/  B  Btwn  <. P ,  A >. ) ) )
6261an32s 782 . . . . . 6  |-  ( ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N
)  /\  B  e.  ( EE `  N ) ) )  /\  ( A  =/=  P  /\  B  =/=  P ) )  /\  c  e.  ( EE `  N ) )  -> 
( ( c  =/= 
P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. )  ->  ( A  Btwn  <. P ,  B >.  \/  B  Btwn  <. P ,  A >. ) ) )
6362rexlimdva 2629 . . . . 5  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) ) )  /\  ( A  =/=  P  /\  B  =/=  P ) )  -> 
( E. c  e.  ( EE `  N
) ( c  =/= 
P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. )  ->  ( A  Btwn  <. P ,  B >.  \/  B  Btwn  <. P ,  A >. ) ) )
6446, 63impbid 185 . . . 4  |-  ( ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N ) ) )  /\  ( A  =/=  P  /\  B  =/=  P ) )  -> 
( ( A  Btwn  <. P ,  B >.  \/  B  Btwn  <. P ,  A >. )  <->  E. c  e.  ( EE `  N
) ( c  =/= 
P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. ) ) )
6564pm5.32da 625 . . 3  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N
) ) )  -> 
( ( ( A  =/=  P  /\  B  =/=  P )  /\  ( A  Btwn  <. P ,  B >.  \/  B  Btwn  <. P ,  A >. ) )  <->  ( ( A  =/=  P  /\  B  =/=  P )  /\  E. c  e.  ( EE `  N ) ( c  =/=  P  /\  P  Btwn  <. A ,  c
>.  /\  P  Btwn  <. B , 
c >. ) ) ) )
66 df-3an 941 . . 3  |-  ( ( A  =/=  P  /\  B  =/=  P  /\  ( A  Btwn  <. P ,  B >.  \/  B  Btwn  <. P ,  A >. ) )  <->  ( ( A  =/=  P  /\  B  =/=  P )  /\  ( A  Btwn  <. P ,  B >.  \/  B  Btwn  <. P ,  A >. ) ) )
67 df-3an 941 . . 3  |-  ( ( A  =/=  P  /\  B  =/=  P  /\  E. c  e.  ( EE `  N ) ( c  =/=  P  /\  P  Btwn  <. A ,  c
>.  /\  P  Btwn  <. B , 
c >. ) )  <->  ( ( A  =/=  P  /\  B  =/=  P )  /\  E. c  e.  ( EE `  N ) ( c  =/=  P  /\  P  Btwn  <. A ,  c
>.  /\  P  Btwn  <. B , 
c >. ) ) )
6865, 66, 673bitr4g 281 . 2  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N
) ) )  -> 
( ( A  =/= 
P  /\  B  =/=  P  /\  ( A  Btwn  <. P ,  B >.  \/  B  Btwn  <. P ,  A >. ) )  <->  ( A  =/=  P  /\  B  =/= 
P  /\  E. c  e.  ( EE `  N
) ( c  =/= 
P  /\  P  Btwn  <. A ,  c >.  /\  P  Btwn  <. B , 
c >. ) ) ) )
691, 68bitrd 246 1  |-  ( ( N  e.  NN  /\  ( P  e.  ( EE `  N )  /\  A  e.  ( EE `  N )  /\  B  e.  ( EE `  N
) ) )  -> 
( POutsideOf <. A ,  B >.  <-> 
( A  =/=  P  /\  B  =/=  P  /\  E. c  e.  ( EE `  N ) ( c  =/=  P  /\  P  Btwn  <. A , 
c >.  /\  P  Btwn  <. B ,  c >. ) ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 6    <-> wb 178    \/ wo 359    /\ wa 360    /\ w3a 939    e. wcel 1621    =/= wne 2412   E.wrex 2510   <.cop 3547   class class class wbr 3920   ` cfv 4592   NNcn 9626   EEcee 23690    Btwn cbtwn 23691  OutsideOfcoutsideof 23916
This theorem was proved from axioms:  ax-1 7  ax-2 8  ax-3 9  ax-mp 10  ax-5 1533  ax-6 1534  ax-7 1535  ax-gen 1536  ax-8 1623  ax-11 1624  ax-13 1625  ax-14 1626  ax-17 1628  ax-12o 1664  ax-10 1678  ax-9 1684  ax-4 1692  ax-16 1926  ax-ext 2234  ax-rep 4028  ax-sep 4038  ax-nul 4046  ax-pow 4082  ax-pr 4108  ax-un 4403  ax-inf2 7226  ax-cnex 8673  ax-resscn 8674  ax-1cn 8675  ax-icn 8676  ax-addcl 8677  ax-addrcl 8678  ax-mulcl 8679  ax-mulrcl 8680  ax-mulcom 8681  ax-addass 8682  ax-mulass 8683  ax-distr 8684  ax-i2m1 8685  ax-1ne0 8686  ax-1rid 8687  ax-rnegex 8688  ax-rrecex 8689  ax-cnre 8690  ax-pre-lttri 8691  ax-pre-lttrn 8692  ax-pre-ltadd 8693  ax-pre-mulgt0 8694  ax-pre-sup 8695
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 940  df-3an 941  df-tru 1315  df-ex 1538  df-nf 1540  df-sb 1883  df-eu 2118  df-mo 2119  df-clab 2240  df-cleq 2246  df-clel 2249  df-nfc 2374  df-ne 2414  df-nel 2415  df-ral 2513  df-rex 2514  df-reu 2515  df-rab 2516  df-v 2729  df-sbc 2922  df-csb 3010  df-dif 3081  df-un 3083  df-in 3085  df-ss 3089  df-pss 3091  df-nul 3363  df-if 3471  df-pw 3532  df-sn 3550  df-pr 3551  df-tp 3552  df-op 3553  df-uni 3728  df-int 3761  df-iun 3805  df-br 3921  df-opab 3975  df-mpt 3976  df-tr 4011  df-eprel 4198  df-id 4202  df-po 4207  df-so 4208  df-fr 4245  df-se 4246  df-we 4247  df-ord 4288  df-on 4289  df-lim 4290  df-suc 4291  df-om 4548  df-xp 4594  df-rel 4595  df-cnv 4596  df-co 4597  df-dm 4598  df-rn 4599  df-res 4600  df-ima 4601  df-fun 4602  df-fn 4603  df-f 4604  df-f1 4605  df-fo 4606  df-f1o 4607  df-fv 4608  df-isom 4609  df-ov 5713  df-oprab 5714  df-mpt2 5715  df-1st 5974  df-2nd 5975  df-iota 6143  df-riota 6190  df-recs 6274  df-rdg 6309  df-1o 6365  df-oadd 6369  df-er 6546  df-map 6660  df-en 6750  df-dom 6751  df-sdom 6752  df-fin 6753  df-sup 7078  df-oi 7109  df-card 7456  df-pnf 8749  df-mnf 8750  df-xr 8751  df-ltxr 8752  df-le 8753  df-sub 8919  df-neg 8920  df-div 9304  df-n 9627  df-2 9684  df-3 9685  df-n0 9845  df-z 9904  df-uz 10110  df-rp 10234  df-ico 10540  df-icc 10541  df-fz 10661  df-fzo 10749  df-seq 10925  df-exp 10983  df-hash 11216  df-cj 11461  df-re 11462  df-im 11463  df-sqr 11597  df-abs 11598  df-clim 11839  df-sum 12036  df-ee 23693  df-btwn 23694  df-cgr 23695  df-ofs 23780  df-ifs 23836  df-cgr3 23837  df-colinear 23838  df-fs 23839  df-outsideof 23917
  Copyright terms: Public domain W3C validator