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

Theorem lgsdilem 20561
Description: Lemma for lgsdi 20571 and lgsdir 20569: the sign part of the Legendre symbol is multiplicative. (Contributed by Mario Carneiro, 4-Feb-2015.)
Assertion
Ref Expression
lgsdilem  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  if ( ( N  <  0  /\  ( A  x.  B )  <  0 ) ,  -u
1 ,  1 )  =  ( if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  x.  if ( ( N  <  0  /\  B  <  0 ) ,  -u
1 ,  1 ) ) )

Proof of Theorem lgsdilem
StepHypRef Expression
1 simplrr 737 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  ->  B  =/=  0 )
21biantrud 493 . . . . . . . . . 10  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  -> 
( 0  <_  B  <->  ( 0  <_  B  /\  B  =/=  0 ) ) )
3 0re 8838 . . . . . . . . . . 11  |-  0  e.  RR
4 simpl2 959 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  B  e.  ZZ )
54zred 10117 . . . . . . . . . . . 12  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  B  e.  RR )
65adantr 451 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  ->  B  e.  RR )
7 ltlen 8922 . . . . . . . . . . 11  |-  ( ( 0  e.  RR  /\  B  e.  RR )  ->  ( 0  <  B  <->  ( 0  <_  B  /\  B  =/=  0 ) ) )
83, 6, 7sylancr 644 . . . . . . . . . 10  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  -> 
( 0  <  B  <->  ( 0  <_  B  /\  B  =/=  0 ) ) )
9 simpl1 958 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  A  e.  ZZ )
109zred 10117 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  A  e.  RR )
1110adantr 451 . . . . . . . . . . . . . . 15  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  ->  A  e.  RR )
1211renegcld 9210 . . . . . . . . . . . . . 14  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  ->  -u A  e.  RR )
1312recnd 8861 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  ->  -u A  e.  CC )
1413mul01d 9011 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  -> 
( -u A  x.  0 )  =  0 )
1511recnd 8861 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  ->  A  e.  CC )
166recnd 8861 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  ->  B  e.  CC )
1715, 16mulneg1d 9232 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  -> 
( -u A  x.  B
)  =  -u ( A  x.  B )
)
1814, 17breq12d 4036 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  -> 
( ( -u A  x.  0 )  <  ( -u A  x.  B )  <->  0  <  -u ( A  x.  B )
) )
193a1i 10 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  -> 
0  e.  RR )
2010lt0neg1d 9342 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  ( A  <  0  <->  0  <  -u A ) )
2120biimpa 470 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  -> 
0  <  -u A )
22 ltmul2 9607 . . . . . . . . . . . 12  |-  ( ( 0  e.  RR  /\  B  e.  RR  /\  ( -u A  e.  RR  /\  0  <  -u A ) )  ->  ( 0  < 
B  <->  ( -u A  x.  0 )  <  ( -u A  x.  B ) ) )
2319, 6, 12, 21, 22syl112anc 1186 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  -> 
( 0  <  B  <->  (
-u A  x.  0 )  <  ( -u A  x.  B )
) )
2410, 5remulcld 8863 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  ( A  x.  B )  e.  RR )
2524adantr 451 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  -> 
( A  x.  B
)  e.  RR )
2625lt0neg1d 9342 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  -> 
( ( A  x.  B )  <  0  <->  0  <  -u ( A  x.  B ) ) )
2718, 23, 263bitr4d 276 . . . . . . . . . 10  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  -> 
( 0  <  B  <->  ( A  x.  B )  <  0 ) )
282, 8, 273bitr2rd 273 . . . . . . . . 9  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  -> 
( ( A  x.  B )  <  0  <->  0  <_  B ) )
29 lenlt 8901 . . . . . . . . . 10  |-  ( ( 0  e.  RR  /\  B  e.  RR )  ->  ( 0  <_  B  <->  -.  B  <  0 ) )
303, 6, 29sylancr 644 . . . . . . . . 9  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  -> 
( 0  <_  B  <->  -.  B  <  0 ) )
3128, 30bitrd 244 . . . . . . . 8  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  -> 
( ( A  x.  B )  <  0  <->  -.  B  <  0 ) )
3231ifbid 3583 . . . . . . 7  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  ->  if ( ( A  x.  B )  <  0 ,  -u 1 ,  1 )  =  if ( -.  B  <  0 ,  -u 1 ,  1 ) )
33 oveq2 5866 . . . . . . . . . 10  |-  ( if ( B  <  0 ,  -u 1 ,  1 )  =  -u 1  ->  ( -u 1  x.  if ( B  <  0 ,  -u 1 ,  1 ) )  =  ( -u 1  x.  -u 1 ) )
34 neg1cn 9813 . . . . . . . . . . . 12  |-  -u 1  e.  CC
3534mulm1i 9224 . . . . . . . . . . 11  |-  ( -u
1  x.  -u 1
)  =  -u -u 1
36 ax-1cn 8795 . . . . . . . . . . . 12  |-  1  e.  CC
3736negnegi 9116 . . . . . . . . . . 11  |-  -u -u 1  =  1
3835, 37eqtri 2303 . . . . . . . . . 10  |-  ( -u
1  x.  -u 1
)  =  1
3933, 38syl6eq 2331 . . . . . . . . 9  |-  ( if ( B  <  0 ,  -u 1 ,  1 )  =  -u 1  ->  ( -u 1  x.  if ( B  <  0 ,  -u 1 ,  1 ) )  =  1 )
40 oveq2 5866 . . . . . . . . . 10  |-  ( if ( B  <  0 ,  -u 1 ,  1 )  =  1  -> 
( -u 1  x.  if ( B  <  0 ,  -u 1 ,  1 ) )  =  (
-u 1  x.  1 ) )
4136mulm1i 9224 . . . . . . . . . 10  |-  ( -u
1  x.  1 )  =  -u 1
4240, 41syl6eq 2331 . . . . . . . . 9  |-  ( if ( B  <  0 ,  -u 1 ,  1 )  =  1  -> 
( -u 1  x.  if ( B  <  0 ,  -u 1 ,  1 ) )  =  -u
1 )
4339, 42ifsb 3574 . . . . . . . 8  |-  ( -u
1  x.  if ( B  <  0 , 
-u 1 ,  1 ) )  =  if ( B  <  0 ,  1 ,  -u
1 )
44 ifnot 3603 . . . . . . . 8  |-  if ( -.  B  <  0 ,  -u 1 ,  1 )  =  if ( B  <  0 ,  1 ,  -u 1
)
4543, 44eqtr4i 2306 . . . . . . 7  |-  ( -u
1  x.  if ( B  <  0 , 
-u 1 ,  1 ) )  =  if ( -.  B  <  0 ,  -u 1 ,  1 )
4632, 45syl6eqr 2333 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  ->  if ( ( A  x.  B )  <  0 ,  -u 1 ,  1 )  =  ( -u
1  x.  if ( B  <  0 , 
-u 1 ,  1 ) ) )
47 iftrue 3571 . . . . . . . 8  |-  ( A  <  0  ->  if ( A  <  0 ,  -u 1 ,  1 )  =  -u 1
)
4847adantl 452 . . . . . . 7  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  ->  if ( A  <  0 ,  -u 1 ,  1 )  =  -u 1
)
4948oveq1d 5873 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  -> 
( if ( A  <  0 ,  -u
1 ,  1 )  x.  if ( B  <  0 ,  -u
1 ,  1 ) )  =  ( -u
1  x.  if ( B  <  0 , 
-u 1 ,  1 ) ) )
5046, 49eqtr4d 2318 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  A  <  0 )  ->  if ( ( A  x.  B )  <  0 ,  -u 1 ,  1 )  =  ( if ( A  <  0 ,  -u 1 ,  1 )  x.  if ( B  <  0 , 
-u 1 ,  1 ) ) )
51 iffalse 3572 . . . . . . . 8  |-  ( -.  A  <  0  ->  if ( A  <  0 ,  -u 1 ,  1 )  =  1 )
5251adantl 452 . . . . . . 7  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  A  <  0
)  ->  if ( A  <  0 ,  -u
1 ,  1 )  =  1 )
5352oveq1d 5873 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  A  <  0
)  ->  ( if ( A  <  0 ,  -u 1 ,  1 )  x.  if ( B  <  0 , 
-u 1 ,  1 ) )  =  ( 1  x.  if ( B  <  0 , 
-u 1 ,  1 ) ) )
5434, 36keepel 3622 . . . . . . . 8  |-  if ( B  <  0 , 
-u 1 ,  1 )  e.  CC
5554mulid2i 8840 . . . . . . 7  |-  ( 1  x.  if ( B  <  0 ,  -u
1 ,  1 ) )  =  if ( B  <  0 , 
-u 1 ,  1 )
565adantr 451 . . . . . . . . . 10  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  A  <  0
)  ->  B  e.  RR )
573a1i 10 . . . . . . . . . 10  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  A  <  0
)  ->  0  e.  RR )
5810adantr 451 . . . . . . . . . 10  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  A  <  0
)  ->  A  e.  RR )
59 lenlt 8901 . . . . . . . . . . . . 13  |-  ( ( 0  e.  RR  /\  A  e.  RR )  ->  ( 0  <_  A  <->  -.  A  <  0 ) )
603, 10, 59sylancr 644 . . . . . . . . . . . 12  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  (
0  <_  A  <->  -.  A  <  0 ) )
6160biimpar 471 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  A  <  0
)  ->  0  <_  A )
62 simplrl 736 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  A  <  0
)  ->  A  =/=  0 )
6358, 61, 62ne0gt0d 8956 . . . . . . . . . 10  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  A  <  0
)  ->  0  <  A )
64 ltmul2 9607 . . . . . . . . . 10  |-  ( ( B  e.  RR  /\  0  e.  RR  /\  ( A  e.  RR  /\  0  <  A ) )  -> 
( B  <  0  <->  ( A  x.  B )  <  ( A  x.  0 ) ) )
6556, 57, 58, 63, 64syl112anc 1186 . . . . . . . . 9  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  A  <  0
)  ->  ( B  <  0  <->  ( A  x.  B )  <  ( A  x.  0 ) ) )
6658recnd 8861 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  A  <  0
)  ->  A  e.  CC )
6766mul01d 9011 . . . . . . . . . 10  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  A  <  0
)  ->  ( A  x.  0 )  =  0 )
6867breq2d 4035 . . . . . . . . 9  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  A  <  0
)  ->  ( ( A  x.  B )  <  ( A  x.  0 )  <->  ( A  x.  B )  <  0
) )
6965, 68bitrd 244 . . . . . . . 8  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  A  <  0
)  ->  ( B  <  0  <->  ( A  x.  B )  <  0
) )
7069ifbid 3583 . . . . . . 7  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  A  <  0
)  ->  if ( B  <  0 ,  -u
1 ,  1 )  =  if ( ( A  x.  B )  <  0 ,  -u
1 ,  1 ) )
7155, 70syl5eq 2327 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  A  <  0
)  ->  ( 1  x.  if ( B  <  0 ,  -u
1 ,  1 ) )  =  if ( ( A  x.  B
)  <  0 ,  -u 1 ,  1 ) )
7253, 71eqtr2d 2316 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  A  <  0
)  ->  if (
( A  x.  B
)  <  0 ,  -u 1 ,  1 )  =  ( if ( A  <  0 , 
-u 1 ,  1 )  x.  if ( B  <  0 , 
-u 1 ,  1 ) ) )
7350, 72pm2.61dan 766 . . . 4  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  if ( ( A  x.  B )  <  0 ,  -u 1 ,  1 )  =  ( if ( A  <  0 ,  -u 1 ,  1 )  x.  if ( B  <  0 , 
-u 1 ,  1 ) ) )
7473adantr 451 . . 3  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  <  0 )  ->  if ( ( A  x.  B )  <  0 ,  -u 1 ,  1 )  =  ( if ( A  <  0 ,  -u 1 ,  1 )  x.  if ( B  <  0 , 
-u 1 ,  1 ) ) )
75 simpr 447 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  <  0 )  ->  N  <  0 )
7675biantrurd 494 . . . 4  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  <  0 )  -> 
( ( A  x.  B )  <  0  <->  ( N  <  0  /\  ( A  x.  B
)  <  0 ) ) )
7776ifbid 3583 . . 3  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  <  0 )  ->  if ( ( A  x.  B )  <  0 ,  -u 1 ,  1 )  =  if ( ( N  <  0  /\  ( A  x.  B
)  <  0 ) ,  -u 1 ,  1 ) )
7875biantrurd 494 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  <  0 )  -> 
( A  <  0  <->  ( N  <  0  /\  A  <  0 ) ) )
7978ifbid 3583 . . . 4  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  <  0 )  ->  if ( A  <  0 ,  -u 1 ,  1 )  =  if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 ) )
8075biantrurd 494 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  <  0 )  -> 
( B  <  0  <->  ( N  <  0  /\  B  <  0 ) ) )
8180ifbid 3583 . . . 4  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  <  0 )  ->  if ( B  <  0 ,  -u 1 ,  1 )  =  if ( ( N  <  0  /\  B  <  0
) ,  -u 1 ,  1 ) )
8279, 81oveq12d 5876 . . 3  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  <  0 )  -> 
( if ( A  <  0 ,  -u
1 ,  1 )  x.  if ( B  <  0 ,  -u
1 ,  1 ) )  =  ( if ( ( N  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  x.  if ( ( N  <  0  /\  B  <  0 ) ,  -u 1 ,  1 ) ) )
8374, 77, 823eqtr3d 2323 . 2  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  <  0 )  ->  if ( ( N  <  0  /\  ( A  x.  B )  <  0 ) ,  -u
1 ,  1 )  =  ( if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  x.  if ( ( N  <  0  /\  B  <  0 ) ,  -u
1 ,  1 ) ) )
84 simpr 447 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  N  <  0
)  ->  -.  N  <  0 )
8584intnanrd 883 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  N  <  0
)  ->  -.  ( N  <  0  /\  ( A  x.  B )  <  0 ) )
86 iffalse 3572 . . . . 5  |-  ( -.  ( N  <  0  /\  ( A  x.  B
)  <  0 )  ->  if ( ( N  <  0  /\  ( A  x.  B
)  <  0 ) ,  -u 1 ,  1 )  =  1 )
8785, 86syl 15 . . . 4  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  N  <  0
)  ->  if (
( N  <  0  /\  ( A  x.  B
)  <  0 ) ,  -u 1 ,  1 )  =  1 )
88 1t1e1 9870 . . . 4  |-  ( 1  x.  1 )  =  1
8987, 88syl6eqr 2333 . . 3  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  N  <  0
)  ->  if (
( N  <  0  /\  ( A  x.  B
)  <  0 ) ,  -u 1 ,  1 )  =  ( 1  x.  1 ) )
9084intnanrd 883 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  N  <  0
)  ->  -.  ( N  <  0  /\  A  <  0 ) )
91 iffalse 3572 . . . . 5  |-  ( -.  ( N  <  0  /\  A  <  0
)  ->  if (
( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  =  1 )
9290, 91syl 15 . . . 4  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  N  <  0
)  ->  if (
( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  =  1 )
9384intnanrd 883 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  N  <  0
)  ->  -.  ( N  <  0  /\  B  <  0 ) )
94 iffalse 3572 . . . . 5  |-  ( -.  ( N  <  0  /\  B  <  0
)  ->  if (
( N  <  0  /\  B  <  0
) ,  -u 1 ,  1 )  =  1 )
9593, 94syl 15 . . . 4  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  N  <  0
)  ->  if (
( N  <  0  /\  B  <  0
) ,  -u 1 ,  1 )  =  1 )
9692, 95oveq12d 5876 . . 3  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  N  <  0
)  ->  ( if ( ( N  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  x.  if ( ( N  <  0  /\  B  <  0 ) ,  -u 1 ,  1 ) )  =  ( 1  x.  1 ) )
9789, 96eqtr4d 2318 . 2  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  -.  N  <  0
)  ->  if (
( N  <  0  /\  ( A  x.  B
)  <  0 ) ,  -u 1 ,  1 )  =  ( if ( ( N  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  x.  if ( ( N  <  0  /\  B  <  0 ) ,  -u 1 ,  1 ) ) )
9883, 97pm2.61dan 766 1  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  if ( ( N  <  0  /\  ( A  x.  B )  <  0 ) ,  -u
1 ,  1 )  =  ( if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  x.  if ( ( N  <  0  /\  B  <  0 ) ,  -u
1 ,  1 ) ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 176    /\ wa 358    /\ w3a 934    = wceq 1623    e. wcel 1684    =/= wne 2446   ifcif 3565   class class class wbr 4023  (class class class)co 5858   CCcc 8735   RRcr 8736   0cc0 8737   1c1 8738    x. cmul 8742    < clt 8867    <_ cle 8868   -ucneg 9038   ZZcz 10024
This theorem is referenced by:  lgsdir  20569  lgsdi  20571
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-13 1686  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-sep 4141  ax-nul 4149  ax-pow 4188  ax-pr 4214  ax-un 4512  ax-resscn 8794  ax-1cn 8795  ax-icn 8796  ax-addcl 8797  ax-addrcl 8798  ax-mulcl 8799  ax-mulrcl 8800  ax-mulcom 8801  ax-addass 8802  ax-mulass 8803  ax-distr 8804  ax-i2m1 8805  ax-1ne0 8806  ax-1rid 8807  ax-rnegex 8808  ax-rrecex 8809  ax-cnre 8810  ax-pre-lttri 8811  ax-pre-lttrn 8812  ax-pre-ltadd 8813  ax-pre-mulgt0 8814
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 1529  df-nf 1532  df-sb 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-nel 2449  df-ral 2548  df-rex 2549  df-reu 2550  df-rab 2552  df-v 2790  df-sbc 2992  df-csb 3082  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-nul 3456  df-if 3566  df-pw 3627  df-sn 3646  df-pr 3647  df-op 3649  df-uni 3828  df-br 4024  df-opab 4078  df-mpt 4079  df-id 4309  df-po 4314  df-so 4315  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-res 4701  df-ima 4702  df-iota 5219  df-fun 5257  df-fn 5258  df-f 5259  df-f1 5260  df-fo 5261  df-f1o 5262  df-fv 5263  df-ov 5861  df-oprab 5862  df-mpt2 5863  df-riota 6304  df-er 6660  df-en 6864  df-dom 6865  df-sdom 6866  df-pnf 8869  df-mnf 8870  df-xr 8871  df-ltxr 8872  df-le 8873  df-sub 9039  df-neg 9040  df-z 10025
  Copyright terms: Public domain W3C validator