ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  lgsneg Unicode version

Theorem lgsneg 13640
Description: The Legendre symbol is either even or odd under negation with respect to the second parameter according to the sign of the first. (Contributed by Mario Carneiro, 4-Feb-2015.)
Assertion
Ref Expression
lgsneg  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  ( A  /L -u N
)  =  ( if ( A  <  0 ,  -u 1 ,  1 )  x.  ( A  /L N ) ) )

Proof of Theorem lgsneg
Dummy variables  n  x  y are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 iftrue 3530 . . . . . . . . 9  |-  ( A  <  0  ->  if ( A  <  0 ,  -u 1 ,  1 )  =  -u 1
)
21adantl 275 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  ->  if ( A  <  0 ,  -u 1 ,  1 )  =  -u 1
)
32oveq1d 5865 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  -> 
( if ( A  <  0 ,  -u
1 ,  1 )  x.  if ( ( N  <  0  /\  A  <  0 ) ,  -u 1 ,  1 ) )  =  (
-u 1  x.  if ( ( N  <  0  /\  A  <  0 ) ,  -u
1 ,  1 ) ) )
4 simpl2 996 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  ->  N  e.  ZZ )
5 0z 9210 . . . . . . . . . . 11  |-  0  e.  ZZ
6 zdclt 9276 . . . . . . . . . . 11  |-  ( ( N  e.  ZZ  /\  0  e.  ZZ )  -> DECID  N  <  0 )
75, 6mpan2 423 . . . . . . . . . 10  |-  ( N  e.  ZZ  -> DECID  N  <  0
)
8 oveq2 5858 . . . . . . . . . . . 12  |-  ( if ( N  <  0 ,  -u 1 ,  1 )  =  -u 1  ->  ( -u 1  x.  if ( N  <  0 ,  -u 1 ,  1 ) )  =  ( -u 1  x.  -u 1 ) )
9 neg1mulneg1e1 9077 . . . . . . . . . . . 12  |-  ( -u
1  x.  -u 1
)  =  1
108, 9eqtrdi 2219 . . . . . . . . . . 11  |-  ( if ( N  <  0 ,  -u 1 ,  1 )  =  -u 1  ->  ( -u 1  x.  if ( N  <  0 ,  -u 1 ,  1 ) )  =  1 )
11 oveq2 5858 . . . . . . . . . . . 12  |-  ( if ( N  <  0 ,  -u 1 ,  1 )  =  1  -> 
( -u 1  x.  if ( N  <  0 ,  -u 1 ,  1 ) )  =  (
-u 1  x.  1 ) )
12 ax-1cn 7854 . . . . . . . . . . . . 13  |-  1  e.  CC
1312mulm1i 8309 . . . . . . . . . . . 12  |-  ( -u
1  x.  1 )  =  -u 1
1411, 13eqtrdi 2219 . . . . . . . . . . 11  |-  ( if ( N  <  0 ,  -u 1 ,  1 )  =  1  -> 
( -u 1  x.  if ( N  <  0 ,  -u 1 ,  1 ) )  =  -u
1 )
1510, 14ifsbdc 3537 . . . . . . . . . 10  |-  (DECID  N  <  0  ->  ( -u 1  x.  if ( N  <  0 ,  -u 1 ,  1 ) )  =  if ( N  <  0 ,  1 ,  -u 1 ) )
167, 15syl 14 . . . . . . . . 9  |-  ( N  e.  ZZ  ->  ( -u 1  x.  if ( N  <  0 , 
-u 1 ,  1 ) )  =  if ( N  <  0 ,  1 ,  -u
1 ) )
174, 16syl 14 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  -> 
( -u 1  x.  if ( N  <  0 ,  -u 1 ,  1 ) )  =  if ( N  <  0 ,  1 ,  -u
1 ) )
18 simpr 109 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  ->  A  <  0 )
1918biantrud 302 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  -> 
( N  <  0  <->  ( N  <  0  /\  A  <  0 ) ) )
2019ifbid 3546 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  ->  if ( N  <  0 ,  -u 1 ,  1 )  =  if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 ) )
2120oveq2d 5866 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  -> 
( -u 1  x.  if ( N  <  0 ,  -u 1 ,  1 ) )  =  (
-u 1  x.  if ( ( N  <  0  /\  A  <  0 ) ,  -u
1 ,  1 ) ) )
22 simpl3 997 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  ->  N  =/=  0 )
2322necomd 2426 . . . . . . . . . . . 12  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  -> 
0  =/=  N )
24 zltlen 9277 . . . . . . . . . . . . 13  |-  ( ( N  e.  ZZ  /\  0  e.  ZZ )  ->  ( N  <  0  <->  ( N  <_  0  /\  0  =/=  N ) ) )
254, 5, 24sylancl 411 . . . . . . . . . . . 12  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  -> 
( N  <  0  <->  ( N  <_  0  /\  0  =/=  N ) ) )
2623, 25mpbiran2d 440 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  -> 
( N  <  0  <->  N  <_  0 ) )
274zred 9321 . . . . . . . . . . . 12  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  ->  N  e.  RR )
2827le0neg1d 8423 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  -> 
( N  <_  0  <->  0  <_  -u N ) )
29 0re 7907 . . . . . . . . . . . 12  |-  0  e.  RR
3027renegcld 8286 . . . . . . . . . . . 12  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  ->  -u N  e.  RR )
31 lenlt 7982 . . . . . . . . . . . 12  |-  ( ( 0  e.  RR  /\  -u N  e.  RR )  ->  ( 0  <_  -u N  <->  -.  -u N  <  0 ) )
3229, 30, 31sylancr 412 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  -> 
( 0  <_  -u N  <->  -.  -u N  <  0
) )
3326, 28, 323bitrd 213 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  -> 
( N  <  0  <->  -.  -u N  <  0
) )
3433ifbid 3546 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  ->  if ( N  <  0 ,  1 ,  -u
1 )  =  if ( -.  -u N  <  0 ,  1 , 
-u 1 ) )
35 znegcl 9230 . . . . . . . . . . . 12  |-  ( N  e.  ZZ  ->  -u N  e.  ZZ )
36 zdclt 9276 . . . . . . . . . . . 12  |-  ( (
-u N  e.  ZZ  /\  0  e.  ZZ )  -> DECID  -u N  <  0
)
3735, 5, 36sylancl 411 . . . . . . . . . . 11  |-  ( N  e.  ZZ  -> DECID  -u N  <  0
)
38 ifnotdc 3561 . . . . . . . . . . 11  |-  (DECID  -u N  <  0  ->  if ( -.  -u N  <  0 ,  1 ,  -u
1 )  =  if ( -u N  <  0 ,  -u 1 ,  1 ) )
3937, 38syl 14 . . . . . . . . . 10  |-  ( N  e.  ZZ  ->  if ( -.  -u N  <  0 ,  1 , 
-u 1 )  =  if ( -u N  <  0 ,  -u 1 ,  1 ) )
404, 39syl 14 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  ->  if ( -.  -u N  <  0 ,  1 , 
-u 1 )  =  if ( -u N  <  0 ,  -u 1 ,  1 ) )
4134, 40eqtrd 2203 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  ->  if ( N  <  0 ,  1 ,  -u
1 )  =  if ( -u N  <  0 ,  -u 1 ,  1 ) )
4217, 21, 413eqtr3d 2211 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  -> 
( -u 1  x.  if ( ( N  <  0  /\  A  <  0 ) ,  -u
1 ,  1 ) )  =  if (
-u N  <  0 ,  -u 1 ,  1 ) )
4318biantrud 302 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  -> 
( -u N  <  0  <->  (
-u N  <  0  /\  A  <  0
) ) )
4443ifbid 3546 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  ->  if ( -u N  <  0 ,  -u 1 ,  1 )  =  if ( ( -u N  <  0  /\  A  <  0 ) ,  -u
1 ,  1 ) )
453, 42, 443eqtrd 2207 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  A  <  0 )  -> 
( if ( A  <  0 ,  -u
1 ,  1 )  x.  if ( ( N  <  0  /\  A  <  0 ) ,  -u 1 ,  1 ) )  =  if ( ( -u N  <  0  /\  A  <  0 ) ,  -u
1 ,  1 ) )
46 1t1e1 9017 . . . . . . 7  |-  ( 1  x.  1 )  =  1
47 iffalse 3533 . . . . . . . . 9  |-  ( -.  A  <  0  ->  if ( A  <  0 ,  -u 1 ,  1 )  =  1 )
4847adantl 275 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  -.  A  <  0
)  ->  if ( A  <  0 ,  -u
1 ,  1 )  =  1 )
49 simpr 109 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  -.  A  <  0
)  ->  -.  A  <  0 )
5049intnand 926 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  -.  A  <  0
)  ->  -.  ( N  <  0  /\  A  <  0 ) )
5150iffalsed 3535 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  -.  A  <  0
)  ->  if (
( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  =  1 )
5248, 51oveq12d 5868 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  -.  A  <  0
)  ->  ( if ( A  <  0 ,  -u 1 ,  1 )  x.  if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 ) )  =  ( 1  x.  1 ) )
5349intnand 926 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  -.  A  <  0
)  ->  -.  ( -u N  <  0  /\  A  <  0 ) )
5453iffalsed 3535 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  -.  A  <  0
)  ->  if (
( -u N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  =  1 )
5546, 52, 543eqtr4a 2229 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  -.  A  <  0
)  ->  ( if ( A  <  0 ,  -u 1 ,  1 )  x.  if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 ) )  =  if ( (
-u N  <  0  /\  A  <  0
) ,  -u 1 ,  1 ) )
56 simp1 992 . . . . . . . 8  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  A  e.  ZZ )
57 zdclt 9276 . . . . . . . 8  |-  ( ( A  e.  ZZ  /\  0  e.  ZZ )  -> DECID  A  <  0 )
5856, 5, 57sylancl 411 . . . . . . 7  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  -> DECID  A  <  0
)
59 exmiddc 831 . . . . . . 7  |-  (DECID  A  <  0  ->  ( A  <  0  \/  -.  A  <  0 ) )
6058, 59syl 14 . . . . . 6  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  ( A  <  0  \/  -.  A  <  0 ) )
6145, 55, 60mpjaodan 793 . . . . 5  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  ( if ( A  <  0 ,  -u 1 ,  1 )  x.  if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 ) )  =  if ( (
-u N  <  0  /\  A  <  0
) ,  -u 1 ,  1 ) )
6261eqcomd 2176 . . . 4  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  if ( ( -u N  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  =  ( if ( A  <  0 , 
-u 1 ,  1 )  x.  if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 ) ) )
63 simpr 109 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  n  e.  Prime )  ->  n  e.  Prime )
64 simpl2 996 . . . . . . . . . . . 12  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  n  e.  Prime )  ->  N  e.  ZZ )
65 zq 9572 . . . . . . . . . . . 12  |-  ( N  e.  ZZ  ->  N  e.  QQ )
6664, 65syl 14 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  n  e.  Prime )  ->  N  e.  QQ )
67 pcneg 12265 . . . . . . . . . . 11  |-  ( ( n  e.  Prime  /\  N  e.  QQ )  ->  (
n  pCnt  -u N )  =  ( n  pCnt  N ) )
6863, 66, 67syl2anc 409 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  n  e.  Prime )  -> 
( n  pCnt  -u N
)  =  ( n 
pCnt  N ) )
6968oveq2d 5866 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  n  e.  Prime )  -> 
( ( A  /L n ) ^
( n  pCnt  -u N
) )  =  ( ( A  /L
n ) ^ (
n  pCnt  N )
) )
7069adantlr 474 . . . . . . . 8  |-  ( ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  n  e.  NN )  /\  n  e.  Prime )  ->  (
( A  /L
n ) ^ (
n  pCnt  -u N ) )  =  ( ( A  /L n ) ^ ( n 
pCnt  N ) ) )
71 prmdc 12071 . . . . . . . . 9  |-  ( n  e.  NN  -> DECID  n  e.  Prime )
7271adantl 275 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  n  e.  NN )  -> DECID  n  e.  Prime )
7370, 72ifeq1dadc 3555 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  n  e.  NN )  ->  if ( n  e. 
Prime ,  ( ( A  /L n ) ^ ( n  pCnt  -u N ) ) ,  1 )  =  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) )
7473mpteq2dva 4077 . . . . . 6  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  (
n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  -u N
) ) ,  1 ) )  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) )
7574seqeq3d 10396 . . . . 5  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  -u N
) ) ,  1 ) ) )  =  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) ) )
76 zcn 9204 . . . . . . 7  |-  ( N  e.  ZZ  ->  N  e.  CC )
77763ad2ant2 1014 . . . . . 6  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  N  e.  CC )
7877absnegd 11140 . . . . 5  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  ( abs `  -u N )  =  ( abs `  N
) )
7975, 78fveq12d 5501 . . . 4  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  -u N
) ) ,  1 ) ) ) `  ( abs `  -u N
) )  =  (  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) ) `
 ( abs `  N
) ) )
8062, 79oveq12d 5868 . . 3  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  ( if ( ( -u N  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  x.  (  seq 1
(  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  -u N
) ) ,  1 ) ) ) `  ( abs `  -u N
) ) )  =  ( ( if ( A  <  0 , 
-u 1 ,  1 )  x.  if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 ) )  x.  (  seq 1
(  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) ) )
81 neg1cn 8970 . . . . . 6  |-  -u 1  e.  CC
8281a1i 9 . . . . 5  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  -u 1  e.  CC )
8312a1i 9 . . . . 5  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  1  e.  CC )
8482, 83, 58ifcldcd 3560 . . . 4  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  if ( A  <  0 ,  -u 1 ,  1 )  e.  CC )
8573ad2ant2 1014 . . . . . 6  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  -> DECID  N  <  0
)
86 dcan2 929 . . . . . 6  |-  (DECID  N  <  0  ->  (DECID  A  <  0  -> DECID 
( N  <  0  /\  A  <  0
) ) )
8785, 58, 86sylc 62 . . . . 5  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  -> DECID  ( N  <  0  /\  A  <  0
) )
8882, 83, 87ifcldcd 3560 . . . 4  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  if ( ( N  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  e.  CC )
89 nnuz 9509 . . . . . . 7  |-  NN  =  ( ZZ>= `  1 )
90 1zzd 9226 . . . . . . 7  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  1  e.  ZZ )
91 eqid 2170 . . . . . . . . 9  |-  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  N )
) ,  1 ) )  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  N )
) ,  1 ) )
9291lgsfcl3 13637 . . . . . . . 8  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  (
n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) : NN --> ZZ )
9392ffvelrnda 5628 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  x  e.  NN )  ->  ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) `  x )  e.  ZZ )
94 zmulcl 9252 . . . . . . . 8  |-  ( ( x  e.  ZZ  /\  y  e.  ZZ )  ->  ( x  x.  y
)  e.  ZZ )
9594adantl 275 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  /\  ( x  e.  ZZ  /\  y  e.  ZZ ) )  ->  ( x  x.  y )  e.  ZZ )
9689, 90, 93, 95seqf 10404 . . . . . 6  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) : NN --> ZZ )
97 nnabscl 11051 . . . . . . 7  |-  ( ( N  e.  ZZ  /\  N  =/=  0 )  -> 
( abs `  N
)  e.  NN )
98973adant1 1010 . . . . . 6  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  ( abs `  N )  e.  NN )
9996, 98ffvelrnd 5629 . . . . 5  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) )  e.  ZZ )
10099zcnd 9322 . . . 4  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) )  e.  CC )
10184, 88, 100mulassd 7930 . . 3  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  (
( if ( A  <  0 ,  -u
1 ,  1 )  x.  if ( ( N  <  0  /\  A  <  0 ) ,  -u 1 ,  1 ) )  x.  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) )  =  ( if ( A  <  0 ,  -u 1 ,  1 )  x.  ( if ( ( N  <  0  /\  A  <  0 ) ,  -u 1 ,  1 )  x.  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) ) ) )
10280, 101eqtrd 2203 . 2  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  ( if ( ( -u N  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  x.  (  seq 1
(  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  -u N
) ) ,  1 ) ) ) `  ( abs `  -u N
) ) )  =  ( if ( A  <  0 ,  -u
1 ,  1 )  x.  ( if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  x.  (  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  N )
) ,  1 ) ) ) `  ( abs `  N ) ) ) ) )
103353ad2ant2 1014 . . 3  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  -u N  e.  ZZ )
104 simp3 994 . . . 4  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  N  =/=  0 )
10577, 104negne0d 8215 . . 3  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  -u N  =/=  0 )
106 eqid 2170 . . . 4  |-  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  -u N ) ) ,  1 ) )  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  -u N ) ) ,  1 ) )
107106lgsval4 13636 . . 3  |-  ( ( A  e.  ZZ  /\  -u N  e.  ZZ  /\  -u N  =/=  0 )  ->  ( A  /L -u N )  =  ( if ( (
-u N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  x.  (  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  -u N ) ) ,  1 ) ) ) `  ( abs `  -u N ) ) ) )
10856, 103, 105, 107syl3anc 1233 . 2  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  ( A  /L -u N
)  =  ( if ( ( -u N  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  x.  (  seq 1
(  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  -u N
) ) ,  1 ) ) ) `  ( abs `  -u N
) ) ) )
10991lgsval4 13636 . . 3  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  ( A  /L N )  =  ( if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  x.  (  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  N )
) ,  1 ) ) ) `  ( abs `  N ) ) ) )
110109oveq2d 5866 . 2  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  ( if ( A  <  0 ,  -u 1 ,  1 )  x.  ( A  /L N ) )  =  ( if ( A  <  0 ,  -u 1 ,  1 )  x.  ( if ( ( N  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  x.  (  seq 1
(  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) ) ) )
111102, 108, 1103eqtr4d 2213 1  |-  ( ( A  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  ( A  /L -u N
)  =  ( if ( A  <  0 ,  -u 1 ,  1 )  x.  ( A  /L N ) ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 103    <-> wb 104    \/ wo 703  DECID wdc 829    /\ w3a 973    = wceq 1348    e. wcel 2141    =/= wne 2340   ifcif 3525   class class class wbr 3987    |-> cmpt 4048   ` cfv 5196  (class class class)co 5850   CCcc 7759   RRcr 7760   0cc0 7761   1c1 7762    x. cmul 7766    < clt 7941    <_ cle 7942   -ucneg 8078   NNcn 8865   ZZcz 9199   QQcq 9565    seqcseq 10388   ^cexp 10462   abscabs 10948   Primecprime 12048    pCnt cpc 12225    /Lclgs 13613
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 609  ax-in2 610  ax-io 704  ax-5 1440  ax-7 1441  ax-gen 1442  ax-ie1 1486  ax-ie2 1487  ax-8 1497  ax-10 1498  ax-11 1499  ax-i12 1500  ax-bndl 1502  ax-4 1503  ax-17 1519  ax-i9 1523  ax-ial 1527  ax-i5r 1528  ax-13 2143  ax-14 2144  ax-ext 2152  ax-coll 4102  ax-sep 4105  ax-nul 4113  ax-pow 4158  ax-pr 4192  ax-un 4416  ax-setind 4519  ax-iinf 4570  ax-cnex 7852  ax-resscn 7853  ax-1cn 7854  ax-1re 7855  ax-icn 7856  ax-addcl 7857  ax-addrcl 7858  ax-mulcl 7859  ax-mulrcl 7860  ax-addcom 7861  ax-mulcom 7862  ax-addass 7863  ax-mulass 7864  ax-distr 7865  ax-i2m1 7866  ax-0lt1 7867  ax-1rid 7868  ax-0id 7869  ax-rnegex 7870  ax-precex 7871  ax-cnre 7872  ax-pre-ltirr 7873  ax-pre-ltwlin 7874  ax-pre-lttrn 7875  ax-pre-apti 7876  ax-pre-ltadd 7877  ax-pre-mulgt0 7878  ax-pre-mulext 7879  ax-arch 7880  ax-caucvg 7881
This theorem depends on definitions:  df-bi 116  df-stab 826  df-dc 830  df-3or 974  df-3an 975  df-tru 1351  df-fal 1354  df-xor 1371  df-nf 1454  df-sb 1756  df-eu 2022  df-mo 2023  df-clab 2157  df-cleq 2163  df-clel 2166  df-nfc 2301  df-ne 2341  df-nel 2436  df-ral 2453  df-rex 2454  df-reu 2455  df-rmo 2456  df-rab 2457  df-v 2732  df-sbc 2956  df-csb 3050  df-dif 3123  df-un 3125  df-in 3127  df-ss 3134  df-nul 3415  df-if 3526  df-pw 3566  df-sn 3587  df-pr 3588  df-op 3590  df-uni 3795  df-int 3830  df-iun 3873  df-br 3988  df-opab 4049  df-mpt 4050  df-tr 4086  df-id 4276  df-po 4279  df-iso 4280  df-iord 4349  df-on 4351  df-ilim 4352  df-suc 4354  df-iom 4573  df-xp 4615  df-rel 4616  df-cnv 4617  df-co 4618  df-dm 4619  df-rn 4620  df-res 4621  df-ima 4622  df-iota 5158  df-fun 5198  df-fn 5199  df-f 5200  df-f1 5201  df-fo 5202  df-f1o 5203  df-fv 5204  df-isom 5205  df-riota 5806  df-ov 5853  df-oprab 5854  df-mpo 5855  df-1st 6116  df-2nd 6117  df-recs 6281  df-irdg 6346  df-frec 6367  df-1o 6392  df-2o 6393  df-oadd 6396  df-er 6509  df-en 6715  df-dom 6716  df-fin 6717  df-sup 6957  df-inf 6958  df-pnf 7943  df-mnf 7944  df-xr 7945  df-ltxr 7946  df-le 7947  df-sub 8079  df-neg 8080  df-reap 8481  df-ap 8488  df-div 8577  df-inn 8866  df-2 8924  df-3 8925  df-4 8926  df-5 8927  df-6 8928  df-7 8929  df-8 8930  df-n0 9123  df-z 9200  df-uz 9475  df-q 9566  df-rp 9598  df-fz 9953  df-fzo 10086  df-fl 10213  df-mod 10266  df-seqfrec 10389  df-exp 10463  df-ihash 10697  df-cj 10793  df-re 10794  df-im 10795  df-rsqrt 10949  df-abs 10950  df-clim 11229  df-proddc 11501  df-dvds 11737  df-gcd 11885  df-prm 12049  df-phi 12152  df-pc 12226  df-lgs 13614
This theorem is referenced by:  lgsneg1  13641
  Copyright terms: Public domain W3C validator