MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  ltexnq Unicode version

Theorem ltexnq 8601
Description: Ordering on positive fractions in terms of existence of sum. Definition in Proposition 9-2.6 of [Gleason] p. 119. (Contributed by NM, 24-Apr-1996.) (Revised by Mario Carneiro, 10-May-2013.) (New usage is discouraged.)
Assertion
Ref Expression
ltexnq  |-  ( B  e.  Q.  ->  ( A  <Q  B  <->  E. x
( A  +Q  x
)  =  B ) )
Distinct variable groups:    x, A    x, B

Proof of Theorem ltexnq
Dummy variables  y 
z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ltrelnq 8552 . . . 4  |-  <Q  C_  ( Q.  X.  Q. )
21brel 4739 . . 3  |-  ( A 
<Q  B  ->  ( A  e.  Q.  /\  B  e.  Q. ) )
3 ordpinq 8569 . . . 4  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( A  <Q  B  <->  ( ( 1st `  A )  .N  ( 2nd `  B
) )  <N  (
( 1st `  B
)  .N  ( 2nd `  A ) ) ) )
4 elpqn 8551 . . . . . . . . 9  |-  ( A  e.  Q.  ->  A  e.  ( N.  X.  N. ) )
54adantr 451 . . . . . . . 8  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  A  e.  ( N. 
X.  N. ) )
6 xp1st 6151 . . . . . . . 8  |-  ( A  e.  ( N.  X.  N. )  ->  ( 1st `  A )  e.  N. )
75, 6syl 15 . . . . . . 7  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( 1st `  A
)  e.  N. )
8 elpqn 8551 . . . . . . . . 9  |-  ( B  e.  Q.  ->  B  e.  ( N.  X.  N. ) )
98adantl 452 . . . . . . . 8  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  B  e.  ( N. 
X.  N. ) )
10 xp2nd 6152 . . . . . . . 8  |-  ( B  e.  ( N.  X.  N. )  ->  ( 2nd `  B )  e.  N. )
119, 10syl 15 . . . . . . 7  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( 2nd `  B
)  e.  N. )
12 mulclpi 8519 . . . . . . 7  |-  ( ( ( 1st `  A
)  e.  N.  /\  ( 2nd `  B )  e.  N. )  -> 
( ( 1st `  A
)  .N  ( 2nd `  B ) )  e. 
N. )
137, 11, 12syl2anc 642 . . . . . 6  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( ( 1st `  A
)  .N  ( 2nd `  B ) )  e. 
N. )
14 xp1st 6151 . . . . . . . 8  |-  ( B  e.  ( N.  X.  N. )  ->  ( 1st `  B )  e.  N. )
159, 14syl 15 . . . . . . 7  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( 1st `  B
)  e.  N. )
16 xp2nd 6152 . . . . . . . 8  |-  ( A  e.  ( N.  X.  N. )  ->  ( 2nd `  A )  e.  N. )
175, 16syl 15 . . . . . . 7  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( 2nd `  A
)  e.  N. )
18 mulclpi 8519 . . . . . . 7  |-  ( ( ( 1st `  B
)  e.  N.  /\  ( 2nd `  A )  e.  N. )  -> 
( ( 1st `  B
)  .N  ( 2nd `  A ) )  e. 
N. )
1915, 17, 18syl2anc 642 . . . . . 6  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( ( 1st `  B
)  .N  ( 2nd `  A ) )  e. 
N. )
20 ltexpi 8528 . . . . . 6  |-  ( ( ( ( 1st `  A
)  .N  ( 2nd `  B ) )  e. 
N.  /\  ( ( 1st `  B )  .N  ( 2nd `  A
) )  e.  N. )  ->  ( ( ( 1st `  A )  .N  ( 2nd `  B
) )  <N  (
( 1st `  B
)  .N  ( 2nd `  A ) )  <->  E. y  e.  N.  ( ( ( 1st `  A )  .N  ( 2nd `  B
) )  +N  y
)  =  ( ( 1st `  B )  .N  ( 2nd `  A
) ) ) )
2113, 19, 20syl2anc 642 . . . . 5  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( ( ( 1st `  A )  .N  ( 2nd `  B ) ) 
<N  ( ( 1st `  B
)  .N  ( 2nd `  A ) )  <->  E. y  e.  N.  ( ( ( 1st `  A )  .N  ( 2nd `  B
) )  +N  y
)  =  ( ( 1st `  B )  .N  ( 2nd `  A
) ) ) )
22 relxp 4796 . . . . . . . . . . . 12  |-  Rel  ( N.  X.  N. )
234ad2antrr 706 . . . . . . . . . . . 12  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  A  e.  ( N.  X.  N. )
)
24 1st2nd 6168 . . . . . . . . . . . 12  |-  ( ( Rel  ( N.  X.  N. )  /\  A  e.  ( N.  X.  N. ) )  ->  A  =  <. ( 1st `  A
) ,  ( 2nd `  A ) >. )
2522, 23, 24sylancr 644 . . . . . . . . . . 11  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  A  =  <. ( 1st `  A ) ,  ( 2nd `  A
) >. )
2625oveq1d 5875 . . . . . . . . . 10  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( A  +pQ  <.
y ,  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) >. )  =  ( <. ( 1st `  A ) ,  ( 2nd `  A
) >.  +pQ  <. y ,  ( ( 2nd `  A
)  .N  ( 2nd `  B ) ) >.
) )
277adantr 451 . . . . . . . . . . 11  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( 1st `  A
)  e.  N. )
2817adantr 451 . . . . . . . . . . 11  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( 2nd `  A
)  e.  N. )
29 simpr 447 . . . . . . . . . . 11  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  y  e.  N. )
30 mulclpi 8519 . . . . . . . . . . . . 13  |-  ( ( ( 2nd `  A
)  e.  N.  /\  ( 2nd `  B )  e.  N. )  -> 
( ( 2nd `  A
)  .N  ( 2nd `  B ) )  e. 
N. )
3117, 11, 30syl2anc 642 . . . . . . . . . . . 12  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( ( 2nd `  A
)  .N  ( 2nd `  B ) )  e. 
N. )
3231adantr 451 . . . . . . . . . . 11  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( ( 2nd `  A )  .N  ( 2nd `  B ) )  e.  N. )
33 addpipq 8563 . . . . . . . . . . 11  |-  ( ( ( ( 1st `  A
)  e.  N.  /\  ( 2nd `  A )  e.  N. )  /\  ( y  e.  N.  /\  ( ( 2nd `  A
)  .N  ( 2nd `  B ) )  e. 
N. ) )  -> 
( <. ( 1st `  A
) ,  ( 2nd `  A ) >.  +pQ  <. y ,  ( ( 2nd `  A )  .N  ( 2nd `  B ) )
>. )  =  <. ( ( ( 1st `  A
)  .N  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) )  +N  ( y  .N  ( 2nd `  A ) ) ) ,  ( ( 2nd `  A )  .N  ( ( 2nd `  A )  .N  ( 2nd `  B ) ) ) >. )
3427, 28, 29, 32, 33syl22anc 1183 . . . . . . . . . 10  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( <. ( 1st `  A ) ,  ( 2nd `  A
) >.  +pQ  <. y ,  ( ( 2nd `  A
)  .N  ( 2nd `  B ) ) >.
)  =  <. (
( ( 1st `  A
)  .N  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) )  +N  ( y  .N  ( 2nd `  A ) ) ) ,  ( ( 2nd `  A )  .N  ( ( 2nd `  A )  .N  ( 2nd `  B ) ) ) >. )
3526, 34eqtrd 2317 . . . . . . . . 9  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( A  +pQ  <.
y ,  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) >. )  =  <. ( ( ( 1st `  A )  .N  ( ( 2nd `  A )  .N  ( 2nd `  B ) ) )  +N  ( y  .N  ( 2nd `  A
) ) ) ,  ( ( 2nd `  A
)  .N  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) ) >.
)
36 oveq2 5868 . . . . . . . . . . . 12  |-  ( ( ( ( 1st `  A
)  .N  ( 2nd `  B ) )  +N  y )  =  ( ( 1st `  B
)  .N  ( 2nd `  A ) )  -> 
( ( 2nd `  A
)  .N  ( ( ( 1st `  A
)  .N  ( 2nd `  B ) )  +N  y ) )  =  ( ( 2nd `  A
)  .N  ( ( 1st `  B )  .N  ( 2nd `  A
) ) ) )
37 distrpi 8524 . . . . . . . . . . . . 13  |-  ( ( 2nd `  A )  .N  ( ( ( 1st `  A )  .N  ( 2nd `  B
) )  +N  y
) )  =  ( ( ( 2nd `  A
)  .N  ( ( 1st `  A )  .N  ( 2nd `  B
) ) )  +N  ( ( 2nd `  A
)  .N  y ) )
38 fvex 5541 . . . . . . . . . . . . . . 15  |-  ( 2nd `  A )  e.  _V
39 fvex 5541 . . . . . . . . . . . . . . 15  |-  ( 1st `  A )  e.  _V
40 fvex 5541 . . . . . . . . . . . . . . 15  |-  ( 2nd `  B )  e.  _V
41 mulcompi 8522 . . . . . . . . . . . . . . 15  |-  ( x  .N  y )  =  ( y  .N  x
)
42 mulasspi 8523 . . . . . . . . . . . . . . 15  |-  ( ( x  .N  y )  .N  z )  =  ( x  .N  (
y  .N  z ) )
4338, 39, 40, 41, 42caov12 6050 . . . . . . . . . . . . . 14  |-  ( ( 2nd `  A )  .N  ( ( 1st `  A )  .N  ( 2nd `  B ) ) )  =  ( ( 1st `  A )  .N  ( ( 2nd `  A )  .N  ( 2nd `  B ) ) )
44 mulcompi 8522 . . . . . . . . . . . . . 14  |-  ( ( 2nd `  A )  .N  y )  =  ( y  .N  ( 2nd `  A ) )
4543, 44oveq12i 5872 . . . . . . . . . . . . 13  |-  ( ( ( 2nd `  A
)  .N  ( ( 1st `  A )  .N  ( 2nd `  B
) ) )  +N  ( ( 2nd `  A
)  .N  y ) )  =  ( ( ( 1st `  A
)  .N  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) )  +N  ( y  .N  ( 2nd `  A ) ) )
4637, 45eqtr2i 2306 . . . . . . . . . . . 12  |-  ( ( ( 1st `  A
)  .N  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) )  +N  ( y  .N  ( 2nd `  A ) ) )  =  ( ( 2nd `  A )  .N  ( ( ( 1st `  A )  .N  ( 2nd `  B
) )  +N  y
) )
47 mulasspi 8523 . . . . . . . . . . . . 13  |-  ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 1st `  B
) )  =  ( ( 2nd `  A
)  .N  ( ( 2nd `  A )  .N  ( 1st `  B
) ) )
48 mulcompi 8522 . . . . . . . . . . . . . 14  |-  ( ( 2nd `  A )  .N  ( 1st `  B
) )  =  ( ( 1st `  B
)  .N  ( 2nd `  A ) )
4948oveq2i 5871 . . . . . . . . . . . . 13  |-  ( ( 2nd `  A )  .N  ( ( 2nd `  A )  .N  ( 1st `  B ) ) )  =  ( ( 2nd `  A )  .N  ( ( 1st `  B )  .N  ( 2nd `  A ) ) )
5047, 49eqtri 2305 . . . . . . . . . . . 12  |-  ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 1st `  B
) )  =  ( ( 2nd `  A
)  .N  ( ( 1st `  B )  .N  ( 2nd `  A
) ) )
5136, 46, 503eqtr4g 2342 . . . . . . . . . . 11  |-  ( ( ( ( 1st `  A
)  .N  ( 2nd `  B ) )  +N  y )  =  ( ( 1st `  B
)  .N  ( 2nd `  A ) )  -> 
( ( ( 1st `  A )  .N  (
( 2nd `  A
)  .N  ( 2nd `  B ) ) )  +N  ( y  .N  ( 2nd `  A
) ) )  =  ( ( ( 2nd `  A )  .N  ( 2nd `  A ) )  .N  ( 1st `  B
) ) )
52 mulasspi 8523 . . . . . . . . . . . . 13  |-  ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 2nd `  B
) )  =  ( ( 2nd `  A
)  .N  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) )
5352eqcomi 2289 . . . . . . . . . . . 12  |-  ( ( 2nd `  A )  .N  ( ( 2nd `  A )  .N  ( 2nd `  B ) ) )  =  ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 2nd `  B
) )
5453a1i 10 . . . . . . . . . . 11  |-  ( ( ( ( 1st `  A
)  .N  ( 2nd `  B ) )  +N  y )  =  ( ( 1st `  B
)  .N  ( 2nd `  A ) )  -> 
( ( 2nd `  A
)  .N  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) )  =  ( ( ( 2nd `  A )  .N  ( 2nd `  A ) )  .N  ( 2nd `  B
) ) )
5551, 54opeq12d 3806 . . . . . . . . . 10  |-  ( ( ( ( 1st `  A
)  .N  ( 2nd `  B ) )  +N  y )  =  ( ( 1st `  B
)  .N  ( 2nd `  A ) )  ->  <. ( ( ( 1st `  A )  .N  (
( 2nd `  A
)  .N  ( 2nd `  B ) ) )  +N  ( y  .N  ( 2nd `  A
) ) ) ,  ( ( 2nd `  A
)  .N  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) ) >.  =  <. ( ( ( 2nd `  A )  .N  ( 2nd `  A
) )  .N  ( 1st `  B ) ) ,  ( ( ( 2nd `  A )  .N  ( 2nd `  A
) )  .N  ( 2nd `  B ) )
>. )
5655eqeq2d 2296 . . . . . . . . 9  |-  ( ( ( ( 1st `  A
)  .N  ( 2nd `  B ) )  +N  y )  =  ( ( 1st `  B
)  .N  ( 2nd `  A ) )  -> 
( ( A  +pQ  <.
y ,  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) >. )  =  <. ( ( ( 1st `  A )  .N  ( ( 2nd `  A )  .N  ( 2nd `  B ) ) )  +N  ( y  .N  ( 2nd `  A
) ) ) ,  ( ( 2nd `  A
)  .N  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) ) >.  <->  ( A  +pQ  <. y ,  ( ( 2nd `  A )  .N  ( 2nd `  B ) )
>. )  =  <. ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 1st `  B
) ) ,  ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 2nd `  B
) ) >. )
)
5735, 56syl5ibcom 211 . . . . . . . 8  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( ( ( ( 1st `  A
)  .N  ( 2nd `  B ) )  +N  y )  =  ( ( 1st `  B
)  .N  ( 2nd `  A ) )  -> 
( A  +pQ  <. y ,  ( ( 2nd `  A )  .N  ( 2nd `  B ) )
>. )  =  <. ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 1st `  B
) ) ,  ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 2nd `  B
) ) >. )
)
58 fveq2 5527 . . . . . . . . 9  |-  ( ( A  +pQ  <. y ,  ( ( 2nd `  A )  .N  ( 2nd `  B ) )
>. )  =  <. ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 1st `  B
) ) ,  ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 2nd `  B
) ) >.  ->  ( /Q `  ( A  +pQ  <.
y ,  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) >. )
)  =  ( /Q
`  <. ( ( ( 2nd `  A )  .N  ( 2nd `  A
) )  .N  ( 1st `  B ) ) ,  ( ( ( 2nd `  A )  .N  ( 2nd `  A
) )  .N  ( 2nd `  B ) )
>. ) )
59 adderpq 8582 . . . . . . . . . . 11  |-  ( ( /Q `  A )  +Q  ( /Q `  <. y ,  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) >. )
)  =  ( /Q
`  ( A  +pQ  <.
y ,  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) >. )
)
60 nqerid 8559 . . . . . . . . . . . . 13  |-  ( A  e.  Q.  ->  ( /Q `  A )  =  A )
6160ad2antrr 706 . . . . . . . . . . . 12  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( /Q `  A )  =  A )
6261oveq1d 5875 . . . . . . . . . . 11  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( ( /Q
`  A )  +Q  ( /Q `  <. y ,  ( ( 2nd `  A )  .N  ( 2nd `  B ) )
>. ) )  =  ( A  +Q  ( /Q
`  <. y ,  ( ( 2nd `  A
)  .N  ( 2nd `  B ) ) >.
) ) )
6359, 62syl5eqr 2331 . . . . . . . . . 10  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( /Q `  ( A  +pQ  <. y ,  ( ( 2nd `  A )  .N  ( 2nd `  B ) )
>. ) )  =  ( A  +Q  ( /Q
`  <. y ,  ( ( 2nd `  A
)  .N  ( 2nd `  B ) ) >.
) ) )
64 mulclpi 8519 . . . . . . . . . . . . . . . 16  |-  ( ( ( 2nd `  A
)  e.  N.  /\  ( 2nd `  A )  e.  N. )  -> 
( ( 2nd `  A
)  .N  ( 2nd `  A ) )  e. 
N. )
6517, 17, 64syl2anc 642 . . . . . . . . . . . . . . 15  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  e. 
N. )
6665adantr 451 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( ( 2nd `  A )  .N  ( 2nd `  A ) )  e.  N. )
6715adantr 451 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( 1st `  B
)  e.  N. )
6811adantr 451 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( 2nd `  B
)  e.  N. )
69 mulcanenq 8586 . . . . . . . . . . . . . 14  |-  ( ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  e. 
N.  /\  ( 1st `  B )  e.  N.  /\  ( 2nd `  B
)  e.  N. )  -> 
<. ( ( ( 2nd `  A )  .N  ( 2nd `  A ) )  .N  ( 1st `  B
) ) ,  ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 2nd `  B
) ) >.  ~Q  <. ( 1st `  B ) ,  ( 2nd `  B
) >. )
7066, 67, 68, 69syl3anc 1182 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  <. ( ( ( 2nd `  A )  .N  ( 2nd `  A
) )  .N  ( 1st `  B ) ) ,  ( ( ( 2nd `  A )  .N  ( 2nd `  A
) )  .N  ( 2nd `  B ) )
>.  ~Q  <. ( 1st `  B
) ,  ( 2nd `  B ) >. )
718ad2antlr 707 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  B  e.  ( N.  X.  N. )
)
72 1st2nd 6168 . . . . . . . . . . . . . 14  |-  ( ( Rel  ( N.  X.  N. )  /\  B  e.  ( N.  X.  N. ) )  ->  B  =  <. ( 1st `  B
) ,  ( 2nd `  B ) >. )
7322, 71, 72sylancr 644 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  B  =  <. ( 1st `  B ) ,  ( 2nd `  B
) >. )
7470, 73breqtrrd 4051 . . . . . . . . . . . 12  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  <. ( ( ( 2nd `  A )  .N  ( 2nd `  A
) )  .N  ( 1st `  B ) ) ,  ( ( ( 2nd `  A )  .N  ( 2nd `  A
) )  .N  ( 2nd `  B ) )
>.  ~Q  B )
75 mulclpi 8519 . . . . . . . . . . . . . . 15  |-  ( ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  e. 
N.  /\  ( 1st `  B )  e.  N. )  ->  ( ( ( 2nd `  A )  .N  ( 2nd `  A
) )  .N  ( 1st `  B ) )  e.  N. )
7666, 67, 75syl2anc 642 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( ( ( 2nd `  A )  .N  ( 2nd `  A
) )  .N  ( 1st `  B ) )  e.  N. )
77 mulclpi 8519 . . . . . . . . . . . . . . 15  |-  ( ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  e. 
N.  /\  ( 2nd `  B )  e.  N. )  ->  ( ( ( 2nd `  A )  .N  ( 2nd `  A
) )  .N  ( 2nd `  B ) )  e.  N. )
7866, 68, 77syl2anc 642 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( ( ( 2nd `  A )  .N  ( 2nd `  A
) )  .N  ( 2nd `  B ) )  e.  N. )
79 opelxpi 4723 . . . . . . . . . . . . . 14  |-  ( ( ( ( ( 2nd `  A )  .N  ( 2nd `  A ) )  .N  ( 1st `  B
) )  e.  N.  /\  ( ( ( 2nd `  A )  .N  ( 2nd `  A ) )  .N  ( 2nd `  B
) )  e.  N. )  ->  <. ( ( ( 2nd `  A )  .N  ( 2nd `  A
) )  .N  ( 1st `  B ) ) ,  ( ( ( 2nd `  A )  .N  ( 2nd `  A
) )  .N  ( 2nd `  B ) )
>.  e.  ( N.  X.  N. ) )
8076, 78, 79syl2anc 642 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  <. ( ( ( 2nd `  A )  .N  ( 2nd `  A
) )  .N  ( 1st `  B ) ) ,  ( ( ( 2nd `  A )  .N  ( 2nd `  A
) )  .N  ( 2nd `  B ) )
>.  e.  ( N.  X.  N. ) )
81 nqereq 8561 . . . . . . . . . . . . 13  |-  ( (
<. ( ( ( 2nd `  A )  .N  ( 2nd `  A ) )  .N  ( 1st `  B
) ) ,  ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 2nd `  B
) ) >.  e.  ( N.  X.  N. )  /\  B  e.  ( N.  X.  N. ) )  ->  ( <. (
( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 1st `  B
) ) ,  ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 2nd `  B
) ) >.  ~Q  B  <->  ( /Q `  <. (
( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 1st `  B
) ) ,  ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 2nd `  B
) ) >. )  =  ( /Q `  B ) ) )
8280, 71, 81syl2anc 642 . . . . . . . . . . . 12  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( <. (
( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 1st `  B
) ) ,  ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 2nd `  B
) ) >.  ~Q  B  <->  ( /Q `  <. (
( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 1st `  B
) ) ,  ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 2nd `  B
) ) >. )  =  ( /Q `  B ) ) )
8374, 82mpbid 201 . . . . . . . . . . 11  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( /Q `  <. ( ( ( 2nd `  A )  .N  ( 2nd `  A ) )  .N  ( 1st `  B
) ) ,  ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 2nd `  B
) ) >. )  =  ( /Q `  B ) )
84 nqerid 8559 . . . . . . . . . . . 12  |-  ( B  e.  Q.  ->  ( /Q `  B )  =  B )
8584ad2antlr 707 . . . . . . . . . . 11  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( /Q `  B )  =  B )
8683, 85eqtrd 2317 . . . . . . . . . 10  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( /Q `  <. ( ( ( 2nd `  A )  .N  ( 2nd `  A ) )  .N  ( 1st `  B
) ) ,  ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 2nd `  B
) ) >. )  =  B )
8763, 86eqeq12d 2299 . . . . . . . . 9  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( ( /Q
`  ( A  +pQ  <.
y ,  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) >. )
)  =  ( /Q
`  <. ( ( ( 2nd `  A )  .N  ( 2nd `  A
) )  .N  ( 1st `  B ) ) ,  ( ( ( 2nd `  A )  .N  ( 2nd `  A
) )  .N  ( 2nd `  B ) )
>. )  <->  ( A  +Q  ( /Q `  <. y ,  ( ( 2nd `  A )  .N  ( 2nd `  B ) )
>. ) )  =  B ) )
8858, 87syl5ib 210 . . . . . . . 8  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( ( A 
+pQ  <. y ,  ( ( 2nd `  A
)  .N  ( 2nd `  B ) ) >.
)  =  <. (
( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 1st `  B
) ) ,  ( ( ( 2nd `  A
)  .N  ( 2nd `  A ) )  .N  ( 2nd `  B
) ) >.  ->  ( A  +Q  ( /Q `  <. y ,  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) >. )
)  =  B ) )
8957, 88syld 40 . . . . . . 7  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( ( ( ( 1st `  A
)  .N  ( 2nd `  B ) )  +N  y )  =  ( ( 1st `  B
)  .N  ( 2nd `  A ) )  -> 
( A  +Q  ( /Q `  <. y ,  ( ( 2nd `  A
)  .N  ( 2nd `  B ) ) >.
) )  =  B ) )
90 fvex 5541 . . . . . . . 8  |-  ( /Q
`  <. y ,  ( ( 2nd `  A
)  .N  ( 2nd `  B ) ) >.
)  e.  _V
91 oveq2 5868 . . . . . . . . 9  |-  ( x  =  ( /Q `  <. y ,  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) >. )  ->  ( A  +Q  x
)  =  ( A  +Q  ( /Q `  <. y ,  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) >. )
) )
9291eqeq1d 2293 . . . . . . . 8  |-  ( x  =  ( /Q `  <. y ,  ( ( 2nd `  A )  .N  ( 2nd `  B
) ) >. )  ->  ( ( A  +Q  x )  =  B  <-> 
( A  +Q  ( /Q `  <. y ,  ( ( 2nd `  A
)  .N  ( 2nd `  B ) ) >.
) )  =  B ) )
9390, 92spcev 2877 . . . . . . 7  |-  ( ( A  +Q  ( /Q
`  <. y ,  ( ( 2nd `  A
)  .N  ( 2nd `  B ) ) >.
) )  =  B  ->  E. x ( A  +Q  x )  =  B )
9489, 93syl6 29 . . . . . 6  |-  ( ( ( A  e.  Q.  /\  B  e.  Q. )  /\  y  e.  N. )  ->  ( ( ( ( 1st `  A
)  .N  ( 2nd `  B ) )  +N  y )  =  ( ( 1st `  B
)  .N  ( 2nd `  A ) )  ->  E. x ( A  +Q  x )  =  B ) )
9594rexlimdva 2669 . . . . 5  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( E. y  e. 
N.  ( ( ( 1st `  A )  .N  ( 2nd `  B
) )  +N  y
)  =  ( ( 1st `  B )  .N  ( 2nd `  A
) )  ->  E. x
( A  +Q  x
)  =  B ) )
9621, 95sylbid 206 . . . 4  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( ( ( 1st `  A )  .N  ( 2nd `  B ) ) 
<N  ( ( 1st `  B
)  .N  ( 2nd `  A ) )  ->  E. x ( A  +Q  x )  =  B ) )
973, 96sylbid 206 . . 3  |-  ( ( A  e.  Q.  /\  B  e.  Q. )  ->  ( A  <Q  B  ->  E. x ( A  +Q  x )  =  B ) )
982, 97mpcom 32 . 2  |-  ( A 
<Q  B  ->  E. x
( A  +Q  x
)  =  B )
99 eleq1 2345 . . . . . . 7  |-  ( ( A  +Q  x )  =  B  ->  (
( A  +Q  x
)  e.  Q.  <->  B  e.  Q. ) )
10099biimparc 473 . . . . . 6  |-  ( ( B  e.  Q.  /\  ( A  +Q  x
)  =  B )  ->  ( A  +Q  x )  e.  Q. )
101 addnqf 8574 . . . . . . . 8  |-  +Q  :
( Q.  X.  Q. )
--> Q.
102101fdmi 5396 . . . . . . 7  |-  dom  +Q  =  ( Q.  X.  Q. )
103 0nnq 8550 . . . . . . 7  |-  -.  (/)  e.  Q.
104102, 103ndmovrcl 6008 . . . . . 6  |-  ( ( A  +Q  x )  e.  Q.  ->  ( A  e.  Q.  /\  x  e.  Q. ) )
105 ltaddnq 8600 . . . . . 6  |-  ( ( A  e.  Q.  /\  x  e.  Q. )  ->  A  <Q  ( A  +Q  x ) )
106100, 104, 1053syl 18 . . . . 5  |-  ( ( B  e.  Q.  /\  ( A  +Q  x
)  =  B )  ->  A  <Q  ( A  +Q  x ) )
107 simpr 447 . . . . 5  |-  ( ( B  e.  Q.  /\  ( A  +Q  x
)  =  B )  ->  ( A  +Q  x )  =  B )
108106, 107breqtrd 4049 . . . 4  |-  ( ( B  e.  Q.  /\  ( A  +Q  x
)  =  B )  ->  A  <Q  B )
109108ex 423 . . 3  |-  ( B  e.  Q.  ->  (
( A  +Q  x
)  =  B  ->  A  <Q  B ) )
110109exlimdv 1666 . 2  |-  ( B  e.  Q.  ->  ( E. x ( A  +Q  x )  =  B  ->  A  <Q  B ) )
11198, 110impbid2 195 1  |-  ( B  e.  Q.  ->  ( A  <Q  B  <->  E. x
( A  +Q  x
)  =  B ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 176    /\ wa 358   E.wex 1530    = wceq 1625    e. wcel 1686   E.wrex 2546   <.cop 3645   class class class wbr 4025    X. cxp 4689   Rel wrel 4696   ` cfv 5257  (class class class)co 5860   1stc1st 6122   2ndc2nd 6123   N.cnpi 8468    +N cpli 8469    .N cmi 8470    <N clti 8471    +pQ cplpq 8472    ~Q ceq 8475   Q.cnq 8476   /Qcerq 8478    +Q cplq 8479    <Q cltq 8482
This theorem is referenced by:  ltbtwnnq  8604  prnmadd  8623  ltexprlem4  8665  ltexprlem7  8668  prlem936  8673
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1535  ax-5 1546  ax-17 1605  ax-9 1637  ax-8 1645  ax-13 1688  ax-14 1690  ax-6 1705  ax-7 1710  ax-11 1717  ax-12 1868  ax-ext 2266  ax-sep 4143  ax-nul 4151  ax-pow 4190  ax-pr 4216  ax-un 4514
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 1531  df-nf 1534  df-sb 1632  df-eu 2149  df-mo 2150  df-clab 2272  df-cleq 2278  df-clel 2281  df-nfc 2410  df-ne 2450  df-ral 2550  df-rex 2551  df-reu 2552  df-rmo 2553  df-rab 2554  df-v 2792  df-sbc 2994  df-csb 3084  df-dif 3157  df-un 3159  df-in 3161  df-ss 3168  df-pss 3170  df-nul 3458  df-if 3568  df-pw 3629  df-sn 3648  df-pr 3649  df-tp 3650  df-op 3651  df-uni 3830  df-int 3865  df-iun 3909  df-br 4026  df-opab 4080  df-mpt 4081  df-tr 4116  df-eprel 4307  df-id 4311  df-po 4316  df-so 4317  df-fr 4354  df-we 4356  df-ord 4397  df-on 4398  df-lim 4399  df-suc 4400  df-om 4659  df-xp 4697  df-rel 4698  df-cnv 4699  df-co 4700  df-dm 4701  df-rn 4702  df-res 4703  df-ima 4704  df-iota 5221  df-fun 5259  df-fn 5260  df-f 5261  df-f1 5262  df-fo 5263  df-f1o 5264  df-fv 5265  df-ov 5863  df-oprab 5864  df-mpt2 5865  df-1st 6124  df-2nd 6125  df-recs 6390  df-rdg 6425  df-1o 6481  df-oadd 6485  df-omul 6486  df-er 6662  df-ni 8498  df-pli 8499  df-mi 8500  df-lti 8501  df-plpq 8534  df-mpq 8535  df-ltpq 8536  df-enq 8537  df-nq 8538  df-erq 8539  df-plq 8540  df-mq 8541  df-1nq 8542  df-ltnq 8544
  Copyright terms: Public domain W3C validator