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

Theorem lgsdi 20571
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 939 . . . . 5  |-  ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  <->  ( M  e.  ZZ  /\  N  e.  ZZ  /\  A  e.  ZZ ) )
2 lgsdilem 20561 . . . . 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 458 . . . 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 437 . . . . 5  |-  ( ( ( M  x.  N
)  <  0  /\  A  <  0 )  <->  ( A  <  0  /\  ( M  x.  N )  <  0 ) )
5 ifbi 3582 . . . . 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 437 . . . . . 6  |-  ( ( M  <  0  /\  A  <  0 )  <-> 
( A  <  0  /\  M  <  0
) )
8 ifbi 3582 . . . . . 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 437 . . . . . 6  |-  ( ( N  <  0  /\  A  <  0 )  <-> 
( A  <  0  /\  N  <  0
) )
11 ifbi 3582 . . . . . 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 5870 . . . 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 2340 . . 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 8821 . . . . . 6  |-  ( ( x  e.  CC  /\  y  e.  CC )  ->  ( x  x.  y
)  e.  CC )
1615adantl 452 . . . . 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 8823 . . . . . 6  |-  ( ( x  e.  CC  /\  y  e.  CC )  ->  ( x  x.  y
)  =  ( y  x.  x ) )
1817adantl 452 . . . . 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 8825 . . . . . 6  |-  ( ( x  e.  CC  /\  y  e.  CC  /\  z  e.  CC )  ->  (
( x  x.  y
)  x.  z )  =  ( x  x.  ( y  x.  z
) ) )
2019adantl 452 . . . . 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 959 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  M  e.  ZZ )
22 simpl3 960 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  N  e.  ZZ )
2321, 22zmulcld 10123 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( M  x.  N )  e.  ZZ )
2421zcnd 10118 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  M  e.  CC )
2522zcnd 10118 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  N  e.  CC )
26 simprl 732 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  M  =/=  0 )
27 simprr 733 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  N  =/=  0 )
2824, 25, 26, 27mulne0d 9420 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( M  x.  N )  =/=  0 )
29 nnabscl 11809 . . . . . . 7  |-  ( ( ( M  x.  N
)  e.  ZZ  /\  ( M  x.  N
)  =/=  0 )  ->  ( abs `  ( M  x.  N )
)  e.  NN )
3023, 28, 29syl2anc 642 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  ( M  x.  N ) )  e.  NN )
31 nnuz 10263 . . . . . 6  |-  NN  =  ( ZZ>= `  1 )
3230, 31syl6eleq 2373 . . . . 5  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  ( M  x.  N ) )  e.  ( ZZ>= `  1 )
)
33 simpl1 958 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  A  e.  ZZ )
34 eqid 2283 . . . . . . . . 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 20556 . . . . . . . 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 1182 . . . . . . 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 10819 . . . . . . 7  |-  ( k  e.  ( 1 ... ( abs `  ( M  x.  N )
) )  ->  k  e.  NN )
38 ffvelrn 5663 . . . . . . 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 463 . . . . . 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 10118 . . . . 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 2283 . . . . . . . . 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 20556 . . . . . . . 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 1182 . . . . . . 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 5663 . . . . . . 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 463 . . . . . 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 10118 . . . . 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 447 . . . . . . . . . . 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 706 . . . . . . . . . . 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 706 . . . . . . . . . . 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 706 . . . . . . . . . . 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 706 . . . . . . . . . . 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 12904 . . . . . . . . . . 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 1191 . . . . . . . . . 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 5874 . . . . . . . . 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 706 . . . . . . . . . . . 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 12762 . . . . . . . . . . . . 13  |-  ( k  e.  Prime  ->  k  e.  ZZ )
5756adantl 452 . . . . . . . . . . . 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 20549 . . . . . . . . . . . 12  |-  ( ( A  e.  ZZ  /\  k  e.  ZZ )  ->  ( A  / L
k )  e.  ZZ )
5955, 57, 58syl2anc 642 . . . . . . . . . . 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 10118 . . . . . . . . . 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 12901 . . . . . . . . . . 11  |-  ( ( k  e.  Prime  /\  ( N  e.  ZZ  /\  N  =/=  0 ) )  -> 
( k  pCnt  N
)  e.  NN0 )
6247, 50, 51, 61syl12anc 1180 . . . . . . . . . 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 12901 . . . . . . . . . . 11  |-  ( ( k  e.  Prime  /\  ( M  e.  ZZ  /\  M  =/=  0 ) )  -> 
( k  pCnt  M
)  e.  NN0 )
6447, 48, 49, 63syl12anc 1180 . . . . . . . . . 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 11247 . . . . . . . . 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 2315 . . . . . . . 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 3571 . . . . . . . . 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 452 . . . . . . . 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 3571 . . . . . . . . . 10  |-  ( k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  / L
k ) ^ (
k  pCnt  M )
) ,  1 )  =  ( ( A  / L k ) ^ ( k  pCnt  M ) ) )
70 iftrue 3571 . . . . . . . . . 10  |-  ( k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  / L
k ) ^ (
k  pCnt  N )
) ,  1 )  =  ( ( A  / L k ) ^ ( k  pCnt  N ) ) )
7169, 70oveq12d 5876 . . . . . . . . 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 452 . . . . . . . 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 2326 . . . . . . 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 9870 . . . . . . . . 9  |-  ( 1  x.  1 )  =  1
75 iffalse 3572 . . . . . . . . . 10  |-  ( -.  k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  / L k ) ^
( k  pCnt  M
) ) ,  1 )  =  1 )
76 iffalse 3572 . . . . . . . . . 10  |-  ( -.  k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  / L k ) ^
( k  pCnt  N
) ) ,  1 )  =  1 )
7775, 76oveq12d 5876 . . . . . . . . 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 3572 . . . . . . . . 9  |-  ( -.  k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  / L k ) ^
( k  pCnt  ( M  x.  N )
) ) ,  1 )  =  1 )
7974, 77, 783eqtr4a 2341 . . . . . . . 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 452 . . . . . . 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 766 . . . . . 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 452 . . . . . . 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 2343 . . . . . . . . . 10  |-  ( n  =  k  ->  (
n  e.  Prime  <->  k  e.  Prime ) )
84 oveq2 5866 . . . . . . . . . . 11  |-  ( n  =  k  ->  ( A  / L n )  =  ( A  / L k ) )
85 oveq1 5865 . . . . . . . . . . 11  |-  ( n  =  k  ->  (
n  pCnt  M )  =  ( k  pCnt  M ) )
8684, 85oveq12d 5876 . . . . . . . . . 10  |-  ( n  =  k  ->  (
( A  / L
n ) ^ (
n  pCnt  M )
)  =  ( ( A  / L k ) ^ ( k 
pCnt  M ) ) )
87 eqidd 2284 . . . . . . . . . 10  |-  ( n  =  k  ->  1  =  1 )
8883, 86, 87ifbieq12d 3587 . . . . . . . . 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 5883 . . . . . . . . . 10  |-  ( ( A  / L k ) ^ ( k 
pCnt  M ) )  e. 
_V
90 1ex 8833 . . . . . . . . . 10  |-  1  e.  _V
9189, 90ifex 3623 . . . . . . . . 9  |-  if ( k  e.  Prime ,  ( ( A  / L
k ) ^ (
k  pCnt  M )
) ,  1 )  e.  _V
9288, 34, 91fvmpt 5602 . . . . . . . 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 5865 . . . . . . . . . . 11  |-  ( n  =  k  ->  (
n  pCnt  N )  =  ( k  pCnt  N ) )
9484, 93oveq12d 5876 . . . . . . . . . 10  |-  ( n  =  k  ->  (
( A  / L
n ) ^ (
n  pCnt  N )
)  =  ( ( A  / L k ) ^ ( k 
pCnt  N ) ) )
9583, 94, 87ifbieq12d 3587 . . . . . . . . 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 5883 . . . . . . . . . 10  |-  ( ( A  / L k ) ^ ( k 
pCnt  N ) )  e. 
_V
9796, 90ifex 3623 . . . . . . . . 9  |-  if ( k  e.  Prime ,  ( ( A  / L
k ) ^ (
k  pCnt  N )
) ,  1 )  e.  _V
9895, 41, 97fvmpt 5602 . . . . . . . 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 5876 . . . . . . 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 15 . . . . . 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 5865 . . . . . . . . . 10  |-  ( n  =  k  ->  (
n  pCnt  ( M  x.  N ) )  =  ( k  pCnt  ( M  x.  N )
) )
10284, 101oveq12d 5876 . . . . . . . . 9  |-  ( n  =  k  ->  (
( A  / L
n ) ^ (
n  pCnt  ( M  x.  N ) ) )  =  ( ( A  / L k ) ^ ( k  pCnt  ( M  x.  N ) ) ) )
10383, 102, 87ifbieq12d 3587 . . . . . . . 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 2283 . . . . . . . 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 5883 . . . . . . . . 9  |-  ( ( A  / L k ) ^ ( k 
pCnt  ( M  x.  N ) ) )  e.  _V
106105, 90ifex 3623 . . . . . . . 8  |-  if ( k  e.  Prime ,  ( ( A  / L
k ) ^ (
k  pCnt  ( M  x.  N ) ) ) ,  1 )  e. 
_V
107103, 104, 106fvmpt 5602 . . . . . . 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 15 . . . . . 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 2326 . . . . 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 11083 . . . 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 20570 . . . . 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 20570 . . . . . 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 8856 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( M  x.  N )  =  ( N  x.  M ) )
114113fveq2d 5529 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  ( M  x.  N ) )  =  ( abs `  ( N  x.  M )
) )
115114fveq2d 5529 . . . . . 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 2318 . . . . 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 5876 . . . 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 2318 . . 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 5876 . 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 20555 . . 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 1182 . 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 20555 . . . . 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 1182 . . . 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 20555 . . . . 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 1182 . . . 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 5876 . . 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 9813 . . . . . 6  |-  -u 1  e.  CC
128 ax-1cn 8795 . . . . . 6  |-  1  e.  CC
129127, 128keepel 3622 . . . . 5  |-  if ( ( M  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  e.  CC
130129a1i 10 . . . 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 11809 . . . . . . 7  |-  ( ( M  e.  ZZ  /\  M  =/=  0 )  -> 
( abs `  M
)  e.  NN )
13221, 26, 131syl2anc 642 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  M )  e.  NN )
133132, 31syl6eleq 2373 . . . . 5  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  M )  e.  ( ZZ>= `  1 )
)
134 elfznn 10819 . . . . . . 7  |-  ( k  e.  ( 1 ... ( abs `  M
) )  ->  k  e.  NN )
13536, 134, 38syl2an 463 . . . . . 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 10118 . . . . 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 8821 . . . . . 6  |-  ( ( k  e.  CC  /\  x  e.  CC )  ->  ( k  x.  x
)  e.  CC )
138137adantl 452 . . . . 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 11066 . . . 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 3622 . . . . 5  |-  if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  e.  CC
141140a1i 10 . . . 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 11809 . . . . . . 7  |-  ( ( N  e.  ZZ  /\  N  =/=  0 )  -> 
( abs `  N
)  e.  NN )
14322, 27, 142syl2anc 642 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  N )  e.  NN )
144143, 31syl6eleq 2373 . . . . 5  |-  ( ( ( A  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  /\  ( M  =/=  0  /\  N  =/=  0
) )  ->  ( abs `  N )  e.  ( ZZ>= `  1 )
)
145 elfznn 10819 . . . . . . 7  |-  ( k  e.  ( 1 ... ( abs `  N
) )  ->  k  e.  NN )
14643, 145, 44syl2an 463 . . . . . 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 10118 . . . . 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 11066 . . . 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 9024 . . 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 2315 . 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 2325 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 176    /\ wa 358    /\ w3a 934    = wceq 1623    e. wcel 1684    =/= wne 2446   ifcif 3565   class class class wbr 4023    e. cmpt 4077   -->wf 5251   ` cfv 5255  (class class class)co 5858   CCcc 8735   0cc0 8737   1c1 8738    + caddc 8740    x. cmul 8742    < clt 8867   -ucneg 9038   NNcn 9746   NN0cn0 9965   ZZcz 10024   ZZ>=cuz 10230   ...cfz 10782    seq cseq 11046   ^cexp 11104   abscabs 11719   Primecprime 12758    pCnt cpc 12889    / Lclgs 20533
This theorem is referenced by:  lgssq2  20575  lgsdinn0  20579  lgsquad2lem1  20597
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-13 1686  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-rep 4131  ax-sep 4141  ax-nul 4149  ax-pow 4188  ax-pr 4214  ax-un 4512  ax-cnex 8793  ax-resscn 8794  ax-1cn 8795  ax-icn 8796  ax-addcl 8797  ax-addrcl 8798  ax-mulcl 8799  ax-mulrcl 8800  ax-mulcom 8801  ax-addass 8802  ax-mulass 8803  ax-distr 8804  ax-i2m1 8805  ax-1ne0 8806  ax-1rid 8807  ax-rnegex 8808  ax-rrecex 8809  ax-cnre 8810  ax-pre-lttri 8811  ax-pre-lttrn 8812  ax-pre-ltadd 8813  ax-pre-mulgt0 8814  ax-pre-sup 8815
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1529  df-nf 1532  df-sb 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-nel 2449  df-ral 2548  df-rex 2549  df-reu 2550  df-rmo 2551  df-rab 2552  df-v 2790  df-sbc 2992  df-csb 3082  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-pss 3168  df-nul 3456  df-if 3566  df-pw 3627  df-sn 3646  df-pr 3647  df-tp 3648  df-op 3649  df-uni 3828  df-int 3863  df-iun 3907  df-br 4024  df-opab 4078  df-mpt 4079  df-tr 4114  df-eprel 4305  df-id 4309  df-po 4314  df-so 4315  df-fr 4352  df-we 4354  df-ord 4395  df-on 4396  df-lim 4397  df-suc 4398  df-om 4657  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-res 4701  df-ima 4702  df-iota 5219  df-fun 5257  df-fn 5258  df-f 5259  df-f1 5260  df-fo 5261  df-f1o 5262  df-fv 5263  df-ov 5861  df-oprab 5862  df-mpt2 5863  df-1st 6122  df-2nd 6123  df-riota 6304  df-recs 6388  df-rdg 6423  df-1o 6479  df-2o 6480  df-oadd 6483  df-er 6660  df-map 6774  df-en 6864  df-dom 6865  df-sdom 6866  df-fin 6867  df-sup 7194  df-card 7572  df-cda 7794  df-pnf 8869  df-mnf 8870  df-xr 8871  df-ltxr 8872  df-le 8873  df-sub 9039  df-neg 9040  df-div 9424  df-nn 9747  df-2 9804  df-3 9805  df-n0 9966  df-z 10025  df-uz 10231  df-q 10317  df-rp 10355  df-fz 10783  df-fzo 10871  df-fl 10925  df-mod 10974  df-seq 11047  df-exp 11105  df-hash 11338  df-cj 11584  df-re 11585  df-im 11586  df-sqr 11720  df-abs 11721  df-dvds 12532  df-gcd 12686  df-prm 12759  df-phi 12834  df-pc 12890  df-lgs 20534
  Copyright terms: Public domain W3C validator