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

Theorem lgsdi 20984
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 941 . . . . 5  |-  ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  <->  ( M  e.  ZZ  /\  N  e.  ZZ  /\  A  e.  ZZ ) )
2 lgsdilem 20974 . . . . 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 459 . . . 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 438 . . . . 5  |-  ( ( ( M  x.  N
)  <  0  /\  A  <  0 )  <->  ( A  <  0  /\  ( M  x.  N )  <  0 ) )
5 ifbi 3700 . . . . 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 8 . . . 4  |-  if ( ( ( M  x.  N )  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  =  if ( ( A  <  0  /\  ( M  x.  N )  <  0 ) ,  -u
1 ,  1 )
7 ancom 438 . . . . . 6  |-  ( ( M  <  0  /\  A  <  0 )  <-> 
( A  <  0  /\  M  <  0
) )
8 ifbi 3700 . . . . . 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 8 . . . . 5  |-  if ( ( M  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  =  if ( ( A  <  0  /\  M  <  0 ) ,  -u
1 ,  1 )
10 ancom 438 . . . . . 6  |-  ( ( N  <  0  /\  A  <  0 )  <-> 
( A  <  0  /\  N  <  0
) )
11 ifbi 3700 . . . . . 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 8 . . . . 5  |-  if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  =  if ( ( A  <  0  /\  N  <  0 ) ,  -u
1 ,  1 )
139, 12oveq12i 6033 . . . 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 2445 . . 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 9008 . . . . . 6  |-  ( ( x  e.  CC  /\  y  e.  CC )  ->  ( x  x.  y
)  e.  CC )
1615adantl 453 . . . . 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 9010 . . . . . 6  |-  ( ( x  e.  CC  /\  y  e.  CC )  ->  ( x  x.  y
)  =  ( y  x.  x ) )
1817adantl 453 . . . . 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 9012 . . . . . 6  |-  ( ( x  e.  CC  /\  y  e.  CC  /\  z  e.  CC )  ->  (
( x  x.  y
)  x.  z )  =  ( x  x.  ( y  x.  z
) ) )
2019adantl 453 . . . . 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 961 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  M  e.  ZZ )
22 simpl3 962 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  N  e.  ZZ )
2321, 22zmulcld 10314 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( M  x.  N )  e.  ZZ )
2421zcnd 10309 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  M  e.  CC )
2522zcnd 10309 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  N  e.  CC )
26 simprl 733 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  M  =/=  0 )
27 simprr 734 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  N  =/=  0 )
2824, 25, 26, 27mulne0d 9607 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( M  x.  N )  =/=  0 )
29 nnabscl 12057 . . . . . . 7  |-  ( ( ( M  x.  N
)  e.  ZZ  /\  ( M  x.  N
)  =/=  0 )  ->  ( abs `  ( M  x.  N )
)  e.  NN )
3023, 28, 29syl2anc 643 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  ( M  x.  N ) )  e.  NN )
31 nnuz 10454 . . . . . 6  |-  NN  =  ( ZZ>= `  1 )
3230, 31syl6eleq 2478 . . . . 5  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  ( M  x.  N ) )  e.  ( ZZ>= `  1 )
)
33 simpl1 960 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  A  e.  ZZ )
34 eqid 2388 . . . . . . . . 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 20969 . . . . . . . 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 1184 . . . . . . 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 11013 . . . . . . 7  |-  ( k  e.  ( 1 ... ( abs `  ( M  x.  N )
) )  ->  k  e.  NN )
38 ffvelrn 5808 . . . . . . 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 464 . . . . . 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 10309 . . . . 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 2388 . . . . . . . . 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 20969 . . . . . . . 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 1184 . . . . . . 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 5808 . . . . . . 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 464 . . . . . 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 10309 . . . . 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 448 . . . . . . . . . . 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 707 . . . . . . . . . . 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 707 . . . . . . . . . . 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 707 . . . . . . . . . . 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 707 . . . . . . . . . . 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 13153 . . . . . . . . . . 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 1193 . . . . . . . . . 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 6037 . . . . . . . . 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 707 . . . . . . . . . . . 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 13011 . . . . . . . . . . . . 13  |-  ( k  e.  Prime  ->  k  e.  ZZ )
5756adantl 453 . . . . . . . . . . . 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 20962 . . . . . . . . . . . 12  |-  ( ( A  e.  ZZ  /\  k  e.  ZZ )  ->  ( A  / L
k )  e.  ZZ )
5955, 57, 58syl2anc 643 . . . . . . . . . . 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 10309 . . . . . . . . . 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 13150 . . . . . . . . . . 11  |-  ( ( k  e.  Prime  /\  ( N  e.  ZZ  /\  N  =/=  0 ) )  -> 
( k  pCnt  N
)  e.  NN0 )
6247, 50, 51, 61syl12anc 1182 . . . . . . . . . 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 13150 . . . . . . . . . . 11  |-  ( ( k  e.  Prime  /\  ( M  e.  ZZ  /\  M  =/=  0 ) )  -> 
( k  pCnt  M
)  e.  NN0 )
6447, 48, 49, 63syl12anc 1182 . . . . . . . . . 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 11453 . . . . . . . . 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 2420 . . . . . . . 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 3689 . . . . . . . . 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 453 . . . . . . . 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 3689 . . . . . . . . . 10  |-  ( k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  / L
k ) ^ (
k  pCnt  M )
) ,  1 )  =  ( ( A  / L k ) ^ ( k  pCnt  M ) ) )
70 iftrue 3689 . . . . . . . . . 10  |-  ( k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  / L
k ) ^ (
k  pCnt  N )
) ,  1 )  =  ( ( A  / L k ) ^ ( k  pCnt  N ) ) )
7169, 70oveq12d 6039 . . . . . . . . 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 453 . . . . . . . 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 2431 . . . . . . 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 10059 . . . . . . . . 9  |-  ( 1  x.  1 )  =  1
75 iffalse 3690 . . . . . . . . . 10  |-  ( -.  k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  / L k ) ^
( k  pCnt  M
) ) ,  1 )  =  1 )
76 iffalse 3690 . . . . . . . . . 10  |-  ( -.  k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  / L k ) ^
( k  pCnt  N
) ) ,  1 )  =  1 )
7775, 76oveq12d 6039 . . . . . . . . 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 3690 . . . . . . . . 9  |-  ( -.  k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  / L k ) ^
( k  pCnt  ( M  x.  N )
) ) ,  1 )  =  1 )
7974, 77, 783eqtr4a 2446 . . . . . . . 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 453 . . . . . . 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 767 . . . . . 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 453 . . . . . . 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 2448 . . . . . . . . . 10  |-  ( n  =  k  ->  (
n  e.  Prime  <->  k  e.  Prime ) )
84 oveq2 6029 . . . . . . . . . . 11  |-  ( n  =  k  ->  ( A  / L n )  =  ( A  / L k ) )
85 oveq1 6028 . . . . . . . . . . 11  |-  ( n  =  k  ->  (
n  pCnt  M )  =  ( k  pCnt  M ) )
8684, 85oveq12d 6039 . . . . . . . . . 10  |-  ( n  =  k  ->  (
( A  / L
n ) ^ (
n  pCnt  M )
)  =  ( ( A  / L k ) ^ ( k 
pCnt  M ) ) )
87 eqidd 2389 . . . . . . . . . 10  |-  ( n  =  k  ->  1  =  1 )
8883, 86, 87ifbieq12d 3705 . . . . . . . . 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 ) )
89 ovex 6046 . . . . . . . . . 10  |-  ( ( A  / L k ) ^ ( k 
pCnt  M ) )  e. 
_V
90 1ex 9020 . . . . . . . . . 10  |-  1  e.  _V
9189, 90ifex 3741 . . . . . . . . 9  |-  if ( k  e.  Prime ,  ( ( A  / L
k ) ^ (
k  pCnt  M )
) ,  1 )  e.  _V
9288, 34, 91fvmpt 5746 . . . . . . . 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 ) )
93 oveq1 6028 . . . . . . . . . . 11  |-  ( n  =  k  ->  (
n  pCnt  N )  =  ( k  pCnt  N ) )
9484, 93oveq12d 6039 . . . . . . . . . 10  |-  ( n  =  k  ->  (
( A  / L
n ) ^ (
n  pCnt  N )
)  =  ( ( A  / L k ) ^ ( k 
pCnt  N ) ) )
9583, 94, 87ifbieq12d 3705 . . . . . . . . 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 ) )
96 ovex 6046 . . . . . . . . . 10  |-  ( ( A  / L k ) ^ ( k 
pCnt  N ) )  e. 
_V
9796, 90ifex 3741 . . . . . . . . 9  |-  if ( k  e.  Prime ,  ( ( A  / L
k ) ^ (
k  pCnt  N )
) ,  1 )  e.  _V
9895, 41, 97fvmpt 5746 . . . . . . . 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 ) )
9992, 98oveq12d 6039 . . . . . . 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 ) ) )
10082, 99syl 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 ) ) )
101 oveq1 6028 . . . . . . . . . 10  |-  ( n  =  k  ->  (
n  pCnt  ( M  x.  N ) )  =  ( k  pCnt  ( M  x.  N )
) )
10284, 101oveq12d 6039 . . . . . . . . 9  |-  ( n  =  k  ->  (
( A  / L
n ) ^ (
n  pCnt  ( M  x.  N ) ) )  =  ( ( A  / L k ) ^ ( k  pCnt  ( M  x.  N ) ) ) )
10383, 102, 87ifbieq12d 3705 . . . . . . . 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 ) )
104 eqid 2388 . . . . . . . 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 ) )
105 ovex 6046 . . . . . . . . 9  |-  ( ( A  / L k ) ^ ( k 
pCnt  ( M  x.  N ) ) )  e.  _V
106105, 90ifex 3741 . . . . . . . 8  |-  if ( k  e.  Prime ,  ( ( A  / L
k ) ^ (
k  pCnt  ( M  x.  N ) ) ) ,  1 )  e. 
_V
107103, 104, 106fvmpt 5746 . . . . . . 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 ) )
10882, 107syl 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 ) )
10981, 100, 1083eqtr4rd 2431 . . . . 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 ) ) )
11016, 18, 20, 32, 40, 46, 109seqcaopr 11288 . . . 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 ) ) ) ) )
11133, 21, 22, 26, 27, 34lgsdilem2 20983 . . . . 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 ) ) ) )
11233, 22, 21, 27, 26, 41lgsdilem2 20983 . . . . . 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 ) ) ) )
11324, 25mulcomd 9043 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( M  x.  N )  =  ( N  x.  M ) )
114113fveq2d 5673 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  ( M  x.  N ) )  =  ( abs `  ( N  x.  M )
) )
115114fveq2d 5673 . . . . . 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 ) ) ) )
116112, 115eqtr4d 2423 . . . . 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 ) ) ) )
117111, 116oveq12d 6039 . . . 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 ) ) ) ) )
118110, 117eqtr4d 2423 . . 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 ) ) ) )
11914, 118oveq12d 6039 . 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 ) ) ) ) )
120104lgsval4 20968 . . 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 ) ) ) ) )
12133, 23, 28, 120syl3anc 1184 . 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
) ) ) ) )
12234lgsval4 20968 . . . . 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 ) ) ) )
12333, 21, 26, 122syl3anc 1184 . . . 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 ) ) ) )
12441lgsval4 20968 . . . . 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 ) ) ) )
12533, 22, 27, 124syl3anc 1184 . . . 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 ) ) ) )
126123, 125oveq12d 6039 . . 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 ) ) ) ) )
127 neg1cn 10000 . . . . . 6  |-  -u 1  e.  CC
128 ax-1cn 8982 . . . . . 6  |-  1  e.  CC
129127, 128keepel 3740 . . . . 5  |-  if ( ( M  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  e.  CC
130129a1i 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 )
131 nnabscl 12057 . . . . . . 7  |-  ( ( M  e.  ZZ  /\  M  =/=  0 )  -> 
( abs `  M
)  e.  NN )
13221, 26, 131syl2anc 643 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  M )  e.  NN )
133132, 31syl6eleq 2478 . . . . 5  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  M )  e.  ( ZZ>= `  1 )
)
134 elfznn 11013 . . . . . . 7  |-  ( k  e.  ( 1 ... ( abs `  M
) )  ->  k  e.  NN )
13536, 134, 38syl2an 464 . . . . . 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 )
136135zcnd 10309 . . . . 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 )
137 mulcl 9008 . . . . . 6  |-  ( ( k  e.  CC  /\  x  e.  CC )  ->  ( k  x.  x
)  e.  CC )
138137adantl 453 . . . . 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 )
139133, 136, 138seqcl 11271 . . . 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 )
140127, 128keepel 3740 . . . . 5  |-  if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  e.  CC
141140a1i 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 )
142 nnabscl 12057 . . . . . . 7  |-  ( ( N  e.  ZZ  /\  N  =/=  0 )  -> 
( abs `  N
)  e.  NN )
14322, 27, 142syl2anc 643 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  N )  e.  NN )
144143, 31syl6eleq 2478 . . . . 5  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  N )  e.  ( ZZ>= `  1 )
)
145 elfznn 11013 . . . . . . 7  |-  ( k  e.  ( 1 ... ( abs `  N
) )  ->  k  e.  NN )
14643, 145, 44syl2an 464 . . . . . 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 )
147146zcnd 10309 . . . . 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 )
148144, 147, 138seqcl 11271 . . . 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 )
149130, 139, 141, 148mul4d 9211 . . 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 ) ) ) ) )
150126, 149eqtrd 2420 . 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 ) ) ) ) )
151119, 121, 1503eqtr4d 2430 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 set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 177    /\ wa 359    /\ w3a 936    = wceq 1649    e. wcel 1717    =/= wne 2551   ifcif 3683   class class class wbr 4154    e. cmpt 4208   -->wf 5391   ` cfv 5395  (class class class)co 6021   CCcc 8922   0cc0 8924   1c1 8925    + caddc 8927    x. cmul 8929    < clt 9054   -ucneg 9225   NNcn 9933   NN0cn0 10154   ZZcz 10215   ZZ>=cuz 10421   ...cfz 10976    seq cseq 11251   ^cexp 11310   abscabs 11967   Primecprime 13007    pCnt cpc 13138    / Lclgs 20946
This theorem is referenced by:  lgssq2  20988  lgsdinn0  20992  lgsquad2lem1  21010
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1552  ax-5 1563  ax-17 1623  ax-9 1661  ax-8 1682  ax-13 1719  ax-14 1721  ax-6 1736  ax-7 1741  ax-11 1753  ax-12 1939  ax-ext 2369  ax-rep 4262  ax-sep 4272  ax-nul 4280  ax-pow 4319  ax-pr 4345  ax-un 4642  ax-cnex 8980  ax-resscn 8981  ax-1cn 8982  ax-icn 8983  ax-addcl 8984  ax-addrcl 8985  ax-mulcl 8986  ax-mulrcl 8987  ax-mulcom 8988  ax-addass 8989  ax-mulass 8990  ax-distr 8991  ax-i2m1 8992  ax-1ne0 8993  ax-1rid 8994  ax-rnegex 8995  ax-rrecex 8996  ax-cnre 8997  ax-pre-lttri 8998  ax-pre-lttrn 8999  ax-pre-ltadd 9000  ax-pre-mulgt0 9001  ax-pre-sup 9002
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3or 937  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-eu 2243  df-mo 2244  df-clab 2375  df-cleq 2381  df-clel 2384  df-nfc 2513  df-ne 2553  df-nel 2554  df-ral 2655  df-rex 2656  df-reu 2657  df-rmo 2658  df-rab 2659  df-v 2902  df-sbc 3106  df-csb 3196  df-dif 3267  df-un 3269  df-in 3271  df-ss 3278  df-pss 3280  df-nul 3573  df-if 3684  df-pw 3745  df-sn 3764  df-pr 3765  df-tp 3766  df-op 3767  df-uni 3959  df-int 3994  df-iun 4038  df-br 4155  df-opab 4209  df-mpt 4210  df-tr 4245  df-eprel 4436  df-id 4440  df-po 4445  df-so 4446  df-fr 4483  df-we 4485  df-ord 4526  df-on 4527  df-lim 4528  df-suc 4529  df-om 4787  df-xp 4825  df-rel 4826  df-cnv 4827  df-co 4828  df-dm 4829  df-rn 4830  df-res 4831  df-ima 4832  df-iota 5359  df-fun 5397  df-fn 5398  df-f 5399  df-f1 5400  df-fo 5401  df-f1o 5402  df-fv 5403  df-ov 6024  df-oprab 6025  df-mpt2 6026  df-1st 6289  df-2nd 6290  df-riota 6486  df-recs 6570  df-rdg 6605  df-1o 6661  df-2o 6662  df-oadd 6665  df-er 6842  df-map 6957  df-en 7047  df-dom 7048  df-sdom 7049  df-fin 7050  df-sup 7382  df-card 7760  df-cda 7982  df-pnf 9056  df-mnf 9057  df-xr 9058  df-ltxr 9059  df-le 9060  df-sub 9226  df-neg 9227  df-div 9611  df-nn 9934  df-2 9991  df-3 9992  df-n0 10155  df-z 10216  df-uz 10422  df-q 10508  df-rp 10546  df-fz 10977  df-fzo 11067  df-fl 11130  df-mod 11179  df-seq 11252  df-exp 11311  df-hash 11547  df-cj 11832  df-re 11833  df-im 11834  df-sqr 11968  df-abs 11969  df-dvds 12781  df-gcd 12935  df-prm 13008  df-phi 13083  df-pc 13139  df-lgs 20947
  Copyright terms: Public domain W3C validator