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

Theorem lgsdi 22814
Description: The Legendre symbol is completely multiplicative in its right argument. (Contributed by Mario Carneiro, 5-Feb-2015.)
Assertion
Ref Expression
lgsdi  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( A  /L ( M  x.  N ) )  =  ( ( A  /L M )  x.  ( A  /L N ) ) )

Proof of Theorem lgsdi
Dummy variables  k  n  x  y  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 3anrot 970 . . . . 5  |-  ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  <->  ( M  e.  ZZ  /\  N  e.  ZZ  /\  A  e.  ZZ ) )
2 lgsdilem 22804 . . . . 5  |-  ( ( ( M  e.  ZZ  /\  N  e.  ZZ  /\  A  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  if ( ( A  <  0  /\  ( M  x.  N )  <  0 ) ,  -u
1 ,  1 )  =  ( if ( ( A  <  0  /\  M  <  0
) ,  -u 1 ,  1 )  x.  if ( ( A  <  0  /\  N  <  0 ) ,  -u
1 ,  1 ) ) )
31, 2sylanb 472 . . . 4  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  if ( ( A  <  0  /\  ( M  x.  N )  <  0 ) ,  -u
1 ,  1 )  =  ( if ( ( A  <  0  /\  M  <  0
) ,  -u 1 ,  1 )  x.  if ( ( A  <  0  /\  N  <  0 ) ,  -u
1 ,  1 ) ) )
4 ancom 450 . . . . 5  |-  ( ( ( M  x.  N
)  <  0  /\  A  <  0 )  <->  ( A  <  0  /\  ( M  x.  N )  <  0 ) )
5 ifbi 3921 . . . . 5  |-  ( ( ( ( M  x.  N )  <  0  /\  A  <  0
)  <->  ( A  <  0  /\  ( M  x.  N )  <  0 ) )  ->  if ( ( ( M  x.  N )  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  =  if ( ( A  <  0  /\  ( M  x.  N
)  <  0 ) ,  -u 1 ,  1 ) )
64, 5ax-mp 5 . . . 4  |-  if ( ( ( M  x.  N )  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  =  if ( ( A  <  0  /\  ( M  x.  N )  <  0 ) ,  -u
1 ,  1 )
7 ancom 450 . . . . . 6  |-  ( ( M  <  0  /\  A  <  0 )  <-> 
( A  <  0  /\  M  <  0
) )
8 ifbi 3921 . . . . . 6  |-  ( ( ( M  <  0  /\  A  <  0
)  <->  ( A  <  0  /\  M  <  0 ) )  ->  if ( ( M  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  =  if ( ( A  <  0  /\  M  <  0 ) ,  -u 1 ,  1 ) )
97, 8ax-mp 5 . . . . 5  |-  if ( ( M  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  =  if ( ( A  <  0  /\  M  <  0 ) ,  -u
1 ,  1 )
10 ancom 450 . . . . . 6  |-  ( ( N  <  0  /\  A  <  0 )  <-> 
( A  <  0  /\  N  <  0
) )
11 ifbi 3921 . . . . . 6  |-  ( ( ( N  <  0  /\  A  <  0
)  <->  ( A  <  0  /\  N  <  0 ) )  ->  if ( ( N  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  =  if ( ( A  <  0  /\  N  <  0 ) ,  -u 1 ,  1 ) )
1210, 11ax-mp 5 . . . . 5  |-  if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  =  if ( ( A  <  0  /\  N  <  0 ) ,  -u
1 ,  1 )
139, 12oveq12i 6215 . . . 4  |-  ( if ( ( M  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  x.  if ( ( N  <  0  /\  A  <  0 ) ,  -u 1 ,  1 ) )  =  ( if ( ( A  <  0  /\  M  <  0 ) ,  -u
1 ,  1 )  x.  if ( ( A  <  0  /\  N  <  0 ) ,  -u 1 ,  1 ) )
143, 6, 133eqtr4g 2520 . . 3  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  if ( ( ( M  x.  N )  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  =  ( if ( ( M  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  x.  if ( ( N  <  0  /\  A  <  0 ) ,  -u
1 ,  1 ) ) )
15 mulcl 9481 . . . . . 6  |-  ( ( x  e.  CC  /\  y  e.  CC )  ->  ( x  x.  y
)  e.  CC )
1615adantl 466 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  ( x  e.  CC  /\  y  e.  CC ) )  ->  ( x  x.  y )  e.  CC )
17 mulcom 9483 . . . . . 6  |-  ( ( x  e.  CC  /\  y  e.  CC )  ->  ( x  x.  y
)  =  ( y  x.  x ) )
1817adantl 466 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  ( x  e.  CC  /\  y  e.  CC ) )  ->  ( x  x.  y )  =  ( y  x.  x ) )
19 mulass 9485 . . . . . 6  |-  ( ( x  e.  CC  /\  y  e.  CC  /\  z  e.  CC )  ->  (
( x  x.  y
)  x.  z )  =  ( x  x.  ( y  x.  z
) ) )
2019adantl 466 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  ( x  e.  CC  /\  y  e.  CC  /\  z  e.  CC )
)  ->  ( (
x  x.  y )  x.  z )  =  ( x  x.  (
y  x.  z ) ) )
21 simpl2 992 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  M  e.  ZZ )
22 simpl3 993 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  N  e.  ZZ )
2321, 22zmulcld 10868 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( M  x.  N )  e.  ZZ )
2421zcnd 10863 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  M  e.  CC )
2522zcnd 10863 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  N  e.  CC )
26 simprl 755 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  M  =/=  0 )
27 simprr 756 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  N  =/=  0 )
2824, 25, 26, 27mulne0d 10103 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( M  x.  N )  =/=  0 )
29 nnabscl 12935 . . . . . . 7  |-  ( ( ( M  x.  N
)  e.  ZZ  /\  ( M  x.  N
)  =/=  0 )  ->  ( abs `  ( M  x.  N )
)  e.  NN )
3023, 28, 29syl2anc 661 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  ( M  x.  N ) )  e.  NN )
31 nnuz 11011 . . . . . 6  |-  NN  =  ( ZZ>= `  1 )
3230, 31syl6eleq 2552 . . . . 5  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  ( M  x.  N ) )  e.  ( ZZ>= `  1 )
)
33 simpl1 991 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  A  e.  ZZ )
34 eqid 2454 . . . . . . . . 9  |-  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  M )
) ,  1 ) )  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  M )
) ,  1 ) )
3534lgsfcl3 22799 . . . . . . . 8  |-  ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  M  =/=  0 )  ->  (
n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  M
) ) ,  1 ) ) : NN --> ZZ )
3633, 21, 26, 35syl3anc 1219 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  (
n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  M
) ) ,  1 ) ) : NN --> ZZ )
37 elfznn 11599 . . . . . . 7  |-  ( k  e.  ( 1 ... ( abs `  ( M  x.  N )
) )  ->  k  e.  NN )
38 ffvelrn 5953 . . . . . . 7  |-  ( ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  M
) ) ,  1 ) ) : NN --> ZZ  /\  k  e.  NN )  ->  ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  M )
) ,  1 ) ) `  k )  e.  ZZ )
3936, 37, 38syl2an 477 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  -> 
( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  M ) ) ,  1 ) ) `  k )  e.  ZZ )
4039zcnd 10863 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  -> 
( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  M ) ) ,  1 ) ) `  k )  e.  CC )
41 eqid 2454 . . . . . . . . 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 ) )
4241lgsfcl3 22799 . . . . . . . 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 )
4333, 22, 27, 42syl3anc 1219 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  (
n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) : NN --> ZZ )
44 ffvelrn 5953 . . . . . . 7  |-  ( ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) : NN --> ZZ  /\  k  e.  NN )  ->  ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  N )
) ,  1 ) ) `  k )  e.  ZZ )
4543, 37, 44syl2an 477 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  -> 
( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) `  k )  e.  ZZ )
4645zcnd 10863 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  -> 
( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) `  k )  e.  CC )
47 simpr 461 . . . . . . . . . . 11  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  k  e.  Prime )  -> 
k  e.  Prime )
4821ad2antrr 725 . . . . . . . . . . 11  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  k  e.  Prime )  ->  M  e.  ZZ )
4926ad2antrr 725 . . . . . . . . . . 11  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  k  e.  Prime )  ->  M  =/=  0 )
5022ad2antrr 725 . . . . . . . . . . 11  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  k  e.  Prime )  ->  N  e.  ZZ )
5127ad2antrr 725 . . . . . . . . . . 11  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  k  e.  Prime )  ->  N  =/=  0 )
52 pcmul 14040 . . . . . . . . . . 11  |-  ( ( k  e.  Prime  /\  ( M  e.  ZZ  /\  M  =/=  0 )  /\  ( N  e.  ZZ  /\  N  =/=  0 ) )  -> 
( k  pCnt  ( M  x.  N )
)  =  ( ( k  pCnt  M )  +  ( k  pCnt  N ) ) )
5347, 48, 49, 50, 51, 52syl122anc 1228 . . . . . . . . . 10  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  k  e.  Prime )  -> 
( k  pCnt  ( M  x.  N )
)  =  ( ( k  pCnt  M )  +  ( k  pCnt  N ) ) )
5453oveq2d 6219 . . . . . . . . 9  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  k  e.  Prime )  -> 
( ( A  /L k ) ^
( k  pCnt  ( M  x.  N )
) )  =  ( ( A  /L
k ) ^ (
( k  pCnt  M
)  +  ( k 
pCnt  N ) ) ) )
5533ad2antrr 725 . . . . . . . . . . . 12  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  k  e.  Prime )  ->  A  e.  ZZ )
56 prmz 13889 . . . . . . . . . . . . 13  |-  ( k  e.  Prime  ->  k  e.  ZZ )
5756adantl 466 . . . . . . . . . . . 12  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  k  e.  Prime )  -> 
k  e.  ZZ )
58 lgscl 22792 . . . . . . . . . . . 12  |-  ( ( A  e.  ZZ  /\  k  e.  ZZ )  ->  ( A  /L
k )  e.  ZZ )
5955, 57, 58syl2anc 661 . . . . . . . . . . 11  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  k  e.  Prime )  -> 
( A  /L
k )  e.  ZZ )
6059zcnd 10863 . . . . . . . . . 10  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  k  e.  Prime )  -> 
( A  /L
k )  e.  CC )
61 pczcl 14037 . . . . . . . . . . 11  |-  ( ( k  e.  Prime  /\  ( N  e.  ZZ  /\  N  =/=  0 ) )  -> 
( k  pCnt  N
)  e.  NN0 )
6247, 50, 51, 61syl12anc 1217 . . . . . . . . . 10  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  k  e.  Prime )  -> 
( k  pCnt  N
)  e.  NN0 )
63 pczcl 14037 . . . . . . . . . . 11  |-  ( ( k  e.  Prime  /\  ( M  e.  ZZ  /\  M  =/=  0 ) )  -> 
( k  pCnt  M
)  e.  NN0 )
6447, 48, 49, 63syl12anc 1217 . . . . . . . . . 10  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  k  e.  Prime )  -> 
( k  pCnt  M
)  e.  NN0 )
6560, 62, 64expaddd 12131 . . . . . . . . 9  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  k  e.  Prime )  -> 
( ( A  /L k ) ^
( ( k  pCnt  M )  +  ( k 
pCnt  N ) ) )  =  ( ( ( A  /L k ) ^ ( k 
pCnt  M ) )  x.  ( ( A  /L k ) ^
( k  pCnt  N
) ) ) )
6654, 65eqtrd 2495 . . . . . . . 8  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  k  e.  Prime )  -> 
( ( A  /L k ) ^
( k  pCnt  ( M  x.  N )
) )  =  ( ( ( A  /L k ) ^
( k  pCnt  M
) )  x.  (
( A  /L
k ) ^ (
k  pCnt  N )
) ) )
67 iftrue 3908 . . . . . . . . 9  |-  ( k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  ( M  x.  N ) ) ) ,  1 )  =  ( ( A  /L k ) ^
( k  pCnt  ( M  x.  N )
) ) )
6867adantl 466 . . . . . . . 8  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  k  e.  Prime )  ->  if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  ( M  x.  N )
) ) ,  1 )  =  ( ( A  /L k ) ^ ( k 
pCnt  ( M  x.  N ) ) ) )
69 iftrue 3908 . . . . . . . . . 10  |-  ( k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  M )
) ,  1 )  =  ( ( A  /L k ) ^ ( k  pCnt  M ) ) )
70 iftrue 3908 . . . . . . . . . 10  |-  ( k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  N )
) ,  1 )  =  ( ( A  /L k ) ^ ( k  pCnt  N ) ) )
7169, 70oveq12d 6221 . . . . . . . . 9  |-  ( k  e.  Prime  ->  ( if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  M
) ) ,  1 )  x.  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  N )
) ,  1 ) )  =  ( ( ( A  /L
k ) ^ (
k  pCnt  M )
)  x.  ( ( A  /L k ) ^ ( k 
pCnt  N ) ) ) )
7271adantl 466 . . . . . . . 8  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  k  e.  Prime )  -> 
( if ( k  e.  Prime ,  ( ( A  /L k ) ^ ( k 
pCnt  M ) ) ,  1 )  x.  if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  N
) ) ,  1 ) )  =  ( ( ( A  /L k ) ^
( k  pCnt  M
) )  x.  (
( A  /L
k ) ^ (
k  pCnt  N )
) ) )
7366, 68, 723eqtr4rd 2506 . . . . . . 7  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  k  e.  Prime )  -> 
( if ( k  e.  Prime ,  ( ( A  /L k ) ^ ( k 
pCnt  M ) ) ,  1 )  x.  if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  N
) ) ,  1 ) )  =  if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  ( M  x.  N )
) ) ,  1 ) )
74 1t1e1 10584 . . . . . . . . 9  |-  ( 1  x.  1 )  =  1
75 iffalse 3910 . . . . . . . . . 10  |-  ( -.  k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  M
) ) ,  1 )  =  1 )
76 iffalse 3910 . . . . . . . . . 10  |-  ( -.  k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  N
) ) ,  1 )  =  1 )
7775, 76oveq12d 6221 . . . . . . . . 9  |-  ( -.  k  e.  Prime  ->  ( if ( k  e. 
Prime ,  ( ( A  /L k ) ^ ( k  pCnt  M ) ) ,  1 )  x.  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  N )
) ,  1 ) )  =  ( 1  x.  1 ) )
78 iffalse 3910 . . . . . . . . 9  |-  ( -.  k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  ( M  x.  N )
) ) ,  1 )  =  1 )
7974, 77, 783eqtr4a 2521 . . . . . . . 8  |-  ( -.  k  e.  Prime  ->  ( if ( k  e. 
Prime ,  ( ( A  /L k ) ^ ( k  pCnt  M ) ) ,  1 )  x.  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  N )
) ,  1 ) )  =  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  ( M  x.  N ) ) ) ,  1 ) )
8079adantl 466 . . . . . . 7  |-  ( ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  /\  -.  k  e.  Prime )  ->  ( if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  M )
) ,  1 )  x.  if ( k  e.  Prime ,  ( ( A  /L k ) ^ ( k 
pCnt  N ) ) ,  1 ) )  =  if ( k  e. 
Prime ,  ( ( A  /L k ) ^ ( k  pCnt  ( M  x.  N ) ) ) ,  1 ) )
8173, 80pm2.61dan 789 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  -> 
( if ( k  e.  Prime ,  ( ( A  /L k ) ^ ( k 
pCnt  M ) ) ,  1 )  x.  if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  N
) ) ,  1 ) )  =  if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  ( M  x.  N )
) ) ,  1 ) )
8237adantl 466 . . . . . . 7  |-  ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  -> 
k  e.  NN )
83 eleq1 2526 . . . . . . . . . 10  |-  ( n  =  k  ->  (
n  e.  Prime  <->  k  e.  Prime ) )
84 oveq2 6211 . . . . . . . . . . 11  |-  ( n  =  k  ->  ( A  /L n )  =  ( A  /L k ) )
85 oveq1 6210 . . . . . . . . . . 11  |-  ( n  =  k  ->  (
n  pCnt  M )  =  ( k  pCnt  M ) )
8684, 85oveq12d 6221 . . . . . . . . . 10  |-  ( n  =  k  ->  (
( A  /L
n ) ^ (
n  pCnt  M )
)  =  ( ( A  /L k ) ^ ( k 
pCnt  M ) ) )
8783, 86ifbieq1d 3923 . . . . . . . . 9  |-  ( n  =  k  ->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  M
) ) ,  1 )  =  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  M )
) ,  1 ) )
88 ovex 6228 . . . . . . . . . 10  |-  ( ( A  /L k ) ^ ( k 
pCnt  M ) )  e. 
_V
89 1ex 9496 . . . . . . . . . 10  |-  1  e.  _V
9088, 89ifex 3969 . . . . . . . . 9  |-  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  M )
) ,  1 )  e.  _V
9187, 34, 90fvmpt 5886 . . . . . . . 8  |-  ( k  e.  NN  ->  (
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  M
) ) ,  1 ) ) `  k
)  =  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  M )
) ,  1 ) )
92 oveq1 6210 . . . . . . . . . . 11  |-  ( n  =  k  ->  (
n  pCnt  N )  =  ( k  pCnt  N ) )
9384, 92oveq12d 6221 . . . . . . . . . 10  |-  ( n  =  k  ->  (
( A  /L
n ) ^ (
n  pCnt  N )
)  =  ( ( A  /L k ) ^ ( k 
pCnt  N ) ) )
9483, 93ifbieq1d 3923 . . . . . . . . 9  |-  ( n  =  k  ->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 )  =  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  N )
) ,  1 ) )
95 ovex 6228 . . . . . . . . . 10  |-  ( ( A  /L k ) ^ ( k 
pCnt  N ) )  e. 
_V
9695, 89ifex 3969 . . . . . . . . 9  |-  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  N )
) ,  1 )  e.  _V
9794, 41, 96fvmpt 5886 . . . . . . . 8  |-  ( k  e.  NN  ->  (
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) `  k
)  =  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  N )
) ,  1 ) )
9891, 97oveq12d 6221 . . . . . . 7  |-  ( k  e.  NN  ->  (
( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  M ) ) ,  1 ) ) `  k )  x.  (
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) `  k
) )  =  ( if ( k  e. 
Prime ,  ( ( A  /L k ) ^ ( k  pCnt  M ) ) ,  1 )  x.  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  N )
) ,  1 ) ) )
9982, 98syl 16 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  -> 
( ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  M )
) ,  1 ) ) `  k )  x.  ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  N )
) ,  1 ) ) `  k ) )  =  ( if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  M
) ) ,  1 )  x.  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  N )
) ,  1 ) ) )
100 oveq1 6210 . . . . . . . . . 10  |-  ( n  =  k  ->  (
n  pCnt  ( M  x.  N ) )  =  ( k  pCnt  ( M  x.  N )
) )
10184, 100oveq12d 6221 . . . . . . . . 9  |-  ( n  =  k  ->  (
( A  /L
n ) ^ (
n  pCnt  ( M  x.  N ) ) )  =  ( ( A  /L k ) ^ ( k  pCnt  ( M  x.  N ) ) ) )
10283, 101ifbieq1d 3923 . . . . . . . 8  |-  ( n  =  k  ->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  ( M  x.  N )
) ) ,  1 )  =  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  ( M  x.  N ) ) ) ,  1 ) )
103 eqid 2454 . . . . . . . 8  |-  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  ( M  x.  N ) ) ) ,  1 ) )  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  ( M  x.  N ) ) ) ,  1 ) )
104 ovex 6228 . . . . . . . . 9  |-  ( ( A  /L k ) ^ ( k 
pCnt  ( M  x.  N ) ) )  e.  _V
105104, 89ifex 3969 . . . . . . . 8  |-  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  ( M  x.  N ) ) ) ,  1 )  e. 
_V
106102, 103, 105fvmpt 5886 . . . . . . 7  |-  ( k  e.  NN  ->  (
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  ( M  x.  N )
) ) ,  1 ) ) `  k
)  =  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  ( M  x.  N ) ) ) ,  1 ) )
10782, 106syl 16 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  -> 
( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  ( M  x.  N ) ) ) ,  1 ) ) `
 k )  =  if ( k  e. 
Prime ,  ( ( A  /L k ) ^ ( k  pCnt  ( M  x.  N ) ) ) ,  1 ) )
10881, 99, 1073eqtr4rd 2506 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  ( M  x.  N )
) ) )  -> 
( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  ( M  x.  N ) ) ) ,  1 ) ) `
 k )  =  ( ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  M )
) ,  1 ) ) `  k )  x.  ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  N )
) ,  1 ) ) `  k ) ) )
10916, 18, 20, 32, 40, 46, 108seqcaopr 11964 . . . 4  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  ( M  x.  N )
) ) ,  1 ) ) ) `  ( abs `  ( M  x.  N ) ) )  =  ( (  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  M ) ) ,  1 ) ) ) `
 ( abs `  ( M  x.  N )
) )  x.  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  ( M  x.  N ) ) ) ) )
11033, 21, 22, 26, 27, 34lgsdilem2 22813 . . . . 5  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  M
) ) ,  1 ) ) ) `  ( abs `  M ) )  =  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  M
) ) ,  1 ) ) ) `  ( abs `  ( M  x.  N ) ) ) )
11133, 22, 21, 27, 26, 41lgsdilem2 22813 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) )  =  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  ( N  x.  M ) ) ) )
11224, 25mulcomd 9522 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( M  x.  N )  =  ( N  x.  M ) )
113112fveq2d 5806 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  ( M  x.  N ) )  =  ( abs `  ( N  x.  M )
) )
114113fveq2d 5806 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  ( M  x.  N ) ) )  =  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  ( N  x.  M ) ) ) )
115111, 114eqtr4d 2498 . . . . 5  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) )  =  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  ( M  x.  N ) ) ) )
116110, 115oveq12d 6221 . . . 4  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  (
(  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  M ) ) ,  1 ) ) ) `
 ( abs `  M
) )  x.  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) )  =  ( (  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  M )
) ,  1 ) ) ) `  ( abs `  ( M  x.  N ) ) )  x.  (  seq 1
(  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  ( M  x.  N ) ) ) ) )
117109, 116eqtr4d 2498 . . 3  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  ( M  x.  N )
) ) ,  1 ) ) ) `  ( abs `  ( M  x.  N ) ) )  =  ( (  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  M ) ) ,  1 ) ) ) `
 ( abs `  M
) )  x.  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) ) )
11814, 117oveq12d 6221 . 2  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( if ( ( ( M  x.  N )  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  x.  (  seq 1
(  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  ( M  x.  N )
) ) ,  1 ) ) ) `  ( abs `  ( M  x.  N ) ) ) )  =  ( ( if ( ( M  <  0  /\  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  M
) ) ,  1 ) ) ) `  ( abs `  M ) )  x.  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) ) ) )
119103lgsval4 22798 . . 3  |-  ( ( A  e.  ZZ  /\  ( M  x.  N
)  e.  ZZ  /\  ( M  x.  N
)  =/=  0 )  ->  ( A  /L ( M  x.  N ) )  =  ( if ( ( ( M  x.  N
)  <  0  /\  A  <  0 ) , 
-u 1 ,  1 )  x.  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  ( M  x.  N )
) ) ,  1 ) ) ) `  ( abs `  ( M  x.  N ) ) ) ) )
12033, 23, 28, 119syl3anc 1219 . 2  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( A  /L ( M  x.  N ) )  =  ( if ( ( ( M  x.  N )  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  x.  (  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  ( M  x.  N ) ) ) ,  1 ) ) ) `  ( abs `  ( M  x.  N
) ) ) ) )
12134lgsval4 22798 . . . . 5  |-  ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  M  =/=  0 )  ->  ( A  /L M )  =  ( if ( ( M  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  x.  (  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  M )
) ,  1 ) ) ) `  ( abs `  M ) ) ) )
12233, 21, 26, 121syl3anc 1219 . . . 4  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( A  /L M )  =  ( if ( ( M  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  x.  (  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  M )
) ,  1 ) ) ) `  ( abs `  M ) ) ) )
12341lgsval4 22798 . . . . 5  |-  ( ( 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 ) ) ) )
12433, 22, 27, 123syl3anc 1219 . . . 4  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  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 ) ) ) )
125122, 124oveq12d 6221 . . 3  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  (
( A  /L
M )  x.  ( A  /L N ) )  =  ( ( if ( ( M  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  x.  (  seq 1
(  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  M
) ) ,  1 ) ) ) `  ( abs `  M ) ) )  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 ) ) ) ) )
126 neg1cn 10540 . . . . . 6  |-  -u 1  e.  CC
127 ax-1cn 9455 . . . . . 6  |-  1  e.  CC
128126, 127keepel 3968 . . . . 5  |-  if ( ( M  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  e.  CC
129128a1i 11 . . . 4  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  if ( ( M  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  e.  CC )
130 nnabscl 12935 . . . . . . 7  |-  ( ( M  e.  ZZ  /\  M  =/=  0 )  -> 
( abs `  M
)  e.  NN )
13121, 26, 130syl2anc 661 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  M )  e.  NN )
132131, 31syl6eleq 2552 . . . . 5  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  M )  e.  ( ZZ>= `  1 )
)
133 elfznn 11599 . . . . . . 7  |-  ( k  e.  ( 1 ... ( abs `  M
) )  ->  k  e.  NN )
13436, 133, 38syl2an 477 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  M
) ) )  -> 
( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  M ) ) ,  1 ) ) `  k )  e.  ZZ )
135134zcnd 10863 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  M
) ) )  -> 
( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  M ) ) ,  1 ) ) `  k )  e.  CC )
136 mulcl 9481 . . . . . 6  |-  ( ( k  e.  CC  /\  x  e.  CC )  ->  ( k  x.  x
)  e.  CC )
137136adantl 466 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  ( k  e.  CC  /\  x  e.  CC ) )  ->  ( k  x.  x )  e.  CC )
138132, 135, 137seqcl 11947 . . . 4  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  M
) ) ,  1 ) ) ) `  ( abs `  M ) )  e.  CC )
139126, 127keepel 3968 . . . . 5  |-  if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  e.  CC
140139a1i 11 . . . 4  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  if ( ( N  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  e.  CC )
141 nnabscl 12935 . . . . . . 7  |-  ( ( N  e.  ZZ  /\  N  =/=  0 )  -> 
( abs `  N
)  e.  NN )
14222, 27, 141syl2anc 661 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  N )  e.  NN )
143142, 31syl6eleq 2552 . . . . 5  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  N )  e.  ( ZZ>= `  1 )
)
144 elfznn 11599 . . . . . . 7  |-  ( k  e.  ( 1 ... ( abs `  N
) )  ->  k  e.  NN )
14543, 144, 44syl2an 477 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  N
) ) )  -> 
( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) `  k )  e.  ZZ )
146145zcnd 10863 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0 ) )  /\  k  e.  ( 1 ... ( abs `  N
) ) )  -> 
( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) `  k )  e.  CC )
147143, 146, 137seqcl 11947 . . . 4  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) )  e.  CC )
148129, 138, 140, 147mul4d 9696 . . 3  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  (
( if ( ( M  <  0  /\  A  <  0 ) ,  -u 1 ,  1 )  x.  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  M
) ) ,  1 ) ) ) `  ( abs `  M ) ) )  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 ( ( M  <  0  /\  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  M ) ) ,  1 ) ) ) `
 ( abs `  M
) )  x.  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) ) ) )
149125, 148eqtrd 2495 . 2  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  (
( A  /L
M )  x.  ( A  /L N ) )  =  ( ( if ( ( M  <  0  /\  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  M ) ) ,  1 ) ) ) `
 ( abs `  M
) )  x.  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) ) ) )
150118, 120, 1493eqtr4d 2505 1  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( A  /L ( M  x.  N ) )  =  ( ( A  /L M )  x.  ( A  /L N ) ) )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 184    /\ wa 369    /\ w3a 965    = wceq 1370    e. wcel 1758    =/= wne 2648   ifcif 3902   class class class wbr 4403    |-> cmpt 4461   -->wf 5525   ` cfv 5529  (class class class)co 6203   CCcc 9395   0cc0 9397   1c1 9398    + caddc 9400    x. cmul 9402    < clt 9533   -ucneg 9711   NNcn 10437   NN0cn0 10694   ZZcz 10761   ZZ>=cuz 10976   ...cfz 11558    seqcseq 11927   ^cexp 11986   abscabs 12845   Primecprime 13885    pCnt cpc 14025    /Lclgs 22776
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1592  ax-4 1603  ax-5 1671  ax-6 1710  ax-7 1730  ax-8 1760  ax-9 1762  ax-10 1777  ax-11 1782  ax-12 1794  ax-13 1955  ax-ext 2432  ax-rep 4514  ax-sep 4524  ax-nul 4532  ax-pow 4581  ax-pr 4642  ax-un 6485  ax-cnex 9453  ax-resscn 9454  ax-1cn 9455  ax-icn 9456  ax-addcl 9457  ax-addrcl 9458  ax-mulcl 9459  ax-mulrcl 9460  ax-mulcom 9461  ax-addass 9462  ax-mulass 9463  ax-distr 9464  ax-i2m1 9465  ax-1ne0 9466  ax-1rid 9467  ax-rnegex 9468  ax-rrecex 9469  ax-cnre 9470  ax-pre-lttri 9471  ax-pre-lttrn 9472  ax-pre-ltadd 9473  ax-pre-mulgt0 9474  ax-pre-sup 9475
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 966  df-3an 967  df-tru 1373  df-ex 1588  df-nf 1591  df-sb 1703  df-eu 2266  df-mo 2267  df-clab 2440  df-cleq 2446  df-clel 2449  df-nfc 2604  df-ne 2650  df-nel 2651  df-ral 2804  df-rex 2805  df-reu 2806  df-rmo 2807  df-rab 2808  df-v 3080  df-sbc 3295  df-csb 3399  df-dif 3442  df-un 3444  df-in 3446  df-ss 3453  df-pss 3455  df-nul 3749  df-if 3903  df-pw 3973  df-sn 3989  df-pr 3991  df-tp 3993  df-op 3995  df-uni 4203  df-int 4240  df-iun 4284  df-br 4404  df-opab 4462  df-mpt 4463  df-tr 4497  df-eprel 4743  df-id 4747  df-po 4752  df-so 4753  df-fr 4790  df-we 4792  df-ord 4833  df-on 4834  df-lim 4835  df-suc 4836  df-xp 4957  df-rel 4958  df-cnv 4959  df-co 4960  df-dm 4961  df-rn 4962  df-res 4963  df-ima 4964  df-iota 5492  df-fun 5531  df-fn 5532  df-f 5533  df-f1 5534  df-fo 5535  df-f1o 5536  df-fv 5537  df-riota 6164  df-ov 6206  df-oprab 6207  df-mpt2 6208  df-om 6590  df-1st 6690  df-2nd 6691  df-recs 6945  df-rdg 6979  df-1o 7033  df-2o 7034  df-oadd 7037  df-er 7214  df-map 7329  df-en 7424  df-dom 7425  df-sdom 7426  df-fin 7427  df-sup 7806  df-card 8224  df-cda 8452  df-pnf 9535  df-mnf 9536  df-xr 9537  df-ltxr 9538  df-le 9539  df-sub 9712  df-neg 9713  df-div 10109  df-nn 10438  df-2 10495  df-3 10496  df-n0 10695  df-z 10762  df-uz 10977  df-q 11069  df-rp 11107  df-fz 11559  df-fzo 11670  df-fl 11763  df-mod 11830  df-seq 11928  df-exp 11987  df-hash 12225  df-cj 12710  df-re 12711  df-im 12712  df-sqr 12846  df-abs 12847  df-dvds 13658  df-gcd 13813  df-prm 13886  df-phi 13963  df-pc 14026  df-lgs 22777
This theorem is referenced by:  lgssq2  22818  lgsdinn0  22822  lgsquad2lem1  22840
  Copyright terms: Public domain W3C validator