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

Theorem lgsdir 13695
Description: The Legendre symbol is completely multiplicative in its left argument. Generalization of theorem 9.9(a) in [ApostolNT] p. 188 (which assumes that  A and  B are odd positive integers). (Contributed by Mario Carneiro, 4-Feb-2015.)
Assertion
Ref Expression
lgsdir  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  (
( A  x.  B
)  /L N )  =  ( ( A  /L N )  x.  ( B  /L N ) ) )

Proof of Theorem lgsdir
Dummy variables  k  n  v are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 1cnd 7929 . . . . . . . 8  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  ->  1  e.  CC )
2 0cnd 7906 . . . . . . . 8  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  ->  0  e.  CC )
3 zsqcl 10539 . . . . . . . . . 10  |-  ( B  e.  ZZ  ->  ( B ^ 2 )  e.  ZZ )
433ad2ant2 1014 . . . . . . . . 9  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  ->  ( B ^ 2 )  e.  ZZ )
5 1z 9231 . . . . . . . . 9  |-  1  e.  ZZ
6 zdceq 9280 . . . . . . . . 9  |-  ( ( ( B ^ 2 )  e.  ZZ  /\  1  e.  ZZ )  -> DECID  ( B ^ 2 )  =  1 )
74, 5, 6sylancl 411 . . . . . . . 8  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  -> DECID  ( B ^ 2 )  =  1 )
81, 2, 7ifcldcd 3560 . . . . . . 7  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  ->  if ( ( B ^
2 )  =  1 ,  1 ,  0 )  e.  CC )
98mulid2d 7931 . . . . . 6  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  ->  (
1  x.  if ( ( B ^ 2 )  =  1 ,  1 ,  0 ) )  =  if ( ( B ^ 2 )  =  1 ,  1 ,  0 ) )
109ad3antrrr 489 . . . . 5  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  ( A ^
2 )  =  1 )  ->  ( 1  x.  if ( ( B ^ 2 )  =  1 ,  1 ,  0 ) )  =  if ( ( B ^ 2 )  =  1 ,  1 ,  0 ) )
11 iftrue 3530 . . . . . . 7  |-  ( ( A ^ 2 )  =  1  ->  if ( ( A ^
2 )  =  1 ,  1 ,  0 )  =  1 )
1211adantl 275 . . . . . 6  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  ( A ^
2 )  =  1 )  ->  if (
( A ^ 2 )  =  1 ,  1 ,  0 )  =  1 )
1312oveq1d 5866 . . . . 5  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  ( A ^
2 )  =  1 )  ->  ( if ( ( A ^
2 )  =  1 ,  1 ,  0 )  x.  if ( ( B ^ 2 )  =  1 ,  1 ,  0 ) )  =  ( 1  x.  if ( ( B ^ 2 )  =  1 ,  1 ,  0 ) ) )
14 simpl1 995 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  A  e.  ZZ )
1514zcnd 9328 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  A  e.  CC )
1615ad2antrr 485 . . . . . . . . 9  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  ( A ^
2 )  =  1 )  ->  A  e.  CC )
17 simpl2 996 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  B  e.  ZZ )
1817zcnd 9328 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  B  e.  CC )
1918ad2antrr 485 . . . . . . . . 9  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  ( A ^
2 )  =  1 )  ->  B  e.  CC )
2016, 19sqmuld 10614 . . . . . . . 8  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  ( A ^
2 )  =  1 )  ->  ( ( A  x.  B ) ^ 2 )  =  ( ( A ^
2 )  x.  ( B ^ 2 ) ) )
21 simpr 109 . . . . . . . . 9  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  ( A ^
2 )  =  1 )  ->  ( A ^ 2 )  =  1 )
2221oveq1d 5866 . . . . . . . 8  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  ( A ^
2 )  =  1 )  ->  ( ( A ^ 2 )  x.  ( B ^ 2 ) )  =  ( 1  x.  ( B ^ 2 ) ) )
2318sqcld 10600 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  ( B ^ 2 )  e.  CC )
2423ad2antrr 485 . . . . . . . . 9  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  ( A ^
2 )  =  1 )  ->  ( B ^ 2 )  e.  CC )
2524mulid2d 7931 . . . . . . . 8  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  ( A ^
2 )  =  1 )  ->  ( 1  x.  ( B ^
2 ) )  =  ( B ^ 2 ) )
2620, 22, 253eqtrd 2207 . . . . . . 7  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  ( A ^
2 )  =  1 )  ->  ( ( A  x.  B ) ^ 2 )  =  ( B ^ 2 ) )
2726eqeq1d 2179 . . . . . 6  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  ( A ^
2 )  =  1 )  ->  ( (
( A  x.  B
) ^ 2 )  =  1  <->  ( B ^ 2 )  =  1 ) )
2827ifbid 3546 . . . . 5  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  ( A ^
2 )  =  1 )  ->  if (
( ( A  x.  B ) ^ 2 )  =  1 ,  1 ,  0 )  =  if ( ( B ^ 2 )  =  1 ,  1 ,  0 ) )
2910, 13, 283eqtr4d 2213 . . . 4  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  ( A ^
2 )  =  1 )  ->  ( if ( ( A ^
2 )  =  1 ,  1 ,  0 )  x.  if ( ( B ^ 2 )  =  1 ,  1 ,  0 ) )  =  if ( ( ( A  x.  B ) ^ 2 )  =  1 ,  1 ,  0 ) )
308mul02d 8304 . . . . . 6  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  ->  (
0  x.  if ( ( B ^ 2 )  =  1 ,  1 ,  0 ) )  =  0 )
3130ad3antrrr 489 . . . . 5  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  -.  ( A ^ 2 )  =  1 )  ->  (
0  x.  if ( ( B ^ 2 )  =  1 ,  1 ,  0 ) )  =  0 )
32 iffalse 3533 . . . . . . 7  |-  ( -.  ( A ^ 2 )  =  1  ->  if ( ( A ^
2 )  =  1 ,  1 ,  0 )  =  0 )
3332adantl 275 . . . . . 6  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  -.  ( A ^ 2 )  =  1 )  ->  if ( ( A ^
2 )  =  1 ,  1 ,  0 )  =  0 )
3433oveq1d 5866 . . . . 5  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  -.  ( A ^ 2 )  =  1 )  ->  ( if ( ( A ^
2 )  =  1 ,  1 ,  0 )  x.  if ( ( B ^ 2 )  =  1 ,  1 ,  0 ) )  =  ( 0  x.  if ( ( B ^ 2 )  =  1 ,  1 ,  0 ) ) )
35 dvdsmul1 11768 . . . . . . . . . . . 12  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  A  ||  ( A  x.  B ) )
3614, 17, 35syl2anc 409 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  A  ||  ( A  x.  B
) )
3714, 17zmulcld 9333 . . . . . . . . . . . 12  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  ( A  x.  B )  e.  ZZ )
38 dvdssq 11979 . . . . . . . . . . . 12  |-  ( ( A  e.  ZZ  /\  ( A  x.  B
)  e.  ZZ )  ->  ( A  ||  ( A  x.  B
)  <->  ( A ^
2 )  ||  (
( A  x.  B
) ^ 2 ) ) )
3914, 37, 38syl2anc 409 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  ( A  ||  ( A  x.  B )  <->  ( A ^ 2 )  ||  ( ( A  x.  B ) ^ 2 ) ) )
4036, 39mpbid 146 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  ( A ^ 2 )  ||  ( ( A  x.  B ) ^ 2 ) )
4140adantr 274 . . . . . . . . 9  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( A ^
2 )  ||  (
( A  x.  B
) ^ 2 ) )
42 breq2 3991 . . . . . . . . 9  |-  ( ( ( A  x.  B
) ^ 2 )  =  1  ->  (
( A ^ 2 )  ||  ( ( A  x.  B ) ^ 2 )  <->  ( A ^ 2 )  ||  1 ) )
4341, 42syl5ibcom 154 . . . . . . . 8  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( ( ( A  x.  B ) ^ 2 )  =  1  ->  ( A ^ 2 )  ||  1 ) )
44 simprl 526 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  A  =/=  0 )
4544neneqd 2361 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  -.  A  =  0 )
46 sqeq0 10532 . . . . . . . . . . . . . . . 16  |-  ( A  e.  CC  ->  (
( A ^ 2 )  =  0  <->  A  =  0 ) )
4715, 46syl 14 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  (
( A ^ 2 )  =  0  <->  A  =  0 ) )
4845, 47mtbird 668 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  -.  ( A ^ 2 )  =  0 )
49 zsqcl2 10546 . . . . . . . . . . . . . . . 16  |-  ( A  e.  ZZ  ->  ( A ^ 2 )  e. 
NN0 )
5014, 49syl 14 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  ( A ^ 2 )  e. 
NN0 )
51 elnn0 9130 . . . . . . . . . . . . . . 15  |-  ( ( A ^ 2 )  e.  NN0  <->  ( ( A ^ 2 )  e.  NN  \/  ( A ^ 2 )  =  0 ) )
5250, 51sylib 121 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  (
( A ^ 2 )  e.  NN  \/  ( A ^ 2 )  =  0 ) )
5348, 52ecased 1344 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  ( A ^ 2 )  e.  NN )
5453adantr 274 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( A ^
2 )  e.  NN )
5554nnzd 9326 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( A ^
2 )  e.  ZZ )
56 1nn 8882 . . . . . . . . . . 11  |-  1  e.  NN
57 dvdsle 11797 . . . . . . . . . . 11  |-  ( ( ( A ^ 2 )  e.  ZZ  /\  1  e.  NN )  ->  ( ( A ^
2 )  ||  1  ->  ( A ^ 2 )  <_  1 ) )
5855, 56, 57sylancl 411 . . . . . . . . . 10  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( ( A ^ 2 )  ||  1  ->  ( A ^
2 )  <_  1
) )
5954nnge1d 8914 . . . . . . . . . 10  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  1  <_  ( A ^ 2 ) )
6058, 59jctird 315 . . . . . . . . 9  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( ( A ^ 2 )  ||  1  ->  ( ( A ^ 2 )  <_ 
1  /\  1  <_  ( A ^ 2 ) ) ) )
6154nnred 8884 . . . . . . . . . 10  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( A ^
2 )  e.  RR )
62 1re 7912 . . . . . . . . . 10  |-  1  e.  RR
63 letri3 7993 . . . . . . . . . 10  |-  ( ( ( A ^ 2 )  e.  RR  /\  1  e.  RR )  ->  ( ( A ^
2 )  =  1  <-> 
( ( A ^
2 )  <_  1  /\  1  <_  ( A ^ 2 ) ) ) )
6461, 62, 63sylancl 411 . . . . . . . . 9  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( ( A ^ 2 )  =  1  <->  ( ( A ^ 2 )  <_ 
1  /\  1  <_  ( A ^ 2 ) ) ) )
6560, 64sylibrd 168 . . . . . . . 8  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( ( A ^ 2 )  ||  1  ->  ( A ^
2 )  =  1 ) )
6643, 65syld 45 . . . . . . 7  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( ( ( A  x.  B ) ^ 2 )  =  1  ->  ( A ^ 2 )  =  1 ) )
6766con3dimp 630 . . . . . 6  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  -.  ( A ^ 2 )  =  1 )  ->  -.  ( ( A  x.  B ) ^ 2 )  =  1 )
6867iffalsed 3535 . . . . 5  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  -.  ( A ^ 2 )  =  1 )  ->  if ( ( ( A  x.  B ) ^
2 )  =  1 ,  1 ,  0 )  =  0 )
6931, 34, 683eqtr4d 2213 . . . 4  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  /\  -.  ( A ^ 2 )  =  1 )  ->  ( if ( ( A ^
2 )  =  1 ,  1 ,  0 )  x.  if ( ( B ^ 2 )  =  1 ,  1 ,  0 ) )  =  if ( ( ( A  x.  B ) ^ 2 )  =  1 ,  1 ,  0 ) )
70 zdceq 9280 . . . . . 6  |-  ( ( ( A ^ 2 )  e.  ZZ  /\  1  e.  ZZ )  -> DECID  ( A ^ 2 )  =  1 )
7155, 5, 70sylancl 411 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  -> DECID 
( A ^ 2 )  =  1 )
72 exmiddc 831 . . . . 5  |-  (DECID  ( A ^ 2 )  =  1  ->  ( ( A ^ 2 )  =  1  \/  -.  ( A ^ 2 )  =  1 ) )
7371, 72syl 14 . . . 4  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( ( A ^ 2 )  =  1  \/  -.  ( A ^ 2 )  =  1 ) )
7429, 69, 73mpjaodan 793 . . 3  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( if ( ( A ^ 2 )  =  1 ,  1 ,  0 )  x.  if ( ( B ^ 2 )  =  1 ,  1 ,  0 ) )  =  if ( ( ( A  x.  B
) ^ 2 )  =  1 ,  1 ,  0 ) )
75 oveq2 5859 . . . . 5  |-  ( N  =  0  ->  ( A  /L N )  =  ( A  /L 0 ) )
76 lgs0 13673 . . . . . 6  |-  ( A  e.  ZZ  ->  ( A  /L 0 )  =  if ( ( A ^ 2 )  =  1 ,  1 ,  0 ) )
7714, 76syl 14 . . . . 5  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  ( A  /L 0 )  =  if ( ( A ^ 2 )  =  1 ,  1 ,  0 ) )
7875, 77sylan9eqr 2225 . . . 4  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( A  /L N )  =  if ( ( A ^ 2 )  =  1 ,  1 ,  0 ) )
79 oveq2 5859 . . . . 5  |-  ( N  =  0  ->  ( B  /L N )  =  ( B  /L 0 ) )
80 lgs0 13673 . . . . . 6  |-  ( B  e.  ZZ  ->  ( B  /L 0 )  =  if ( ( B ^ 2 )  =  1 ,  1 ,  0 ) )
8117, 80syl 14 . . . . 5  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  ( B  /L 0 )  =  if ( ( B ^ 2 )  =  1 ,  1 ,  0 ) )
8279, 81sylan9eqr 2225 . . . 4  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( B  /L N )  =  if ( ( B ^ 2 )  =  1 ,  1 ,  0 ) )
8378, 82oveq12d 5869 . . 3  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( ( A  /L N )  x.  ( B  /L N ) )  =  ( if ( ( A ^ 2 )  =  1 ,  1 ,  0 )  x.  if ( ( B ^ 2 )  =  1 ,  1 ,  0 ) ) )
84 oveq2 5859 . . . 4  |-  ( N  =  0  ->  (
( A  x.  B
)  /L N )  =  ( ( A  x.  B )  /L 0 ) )
85 lgs0 13673 . . . . 5  |-  ( ( A  x.  B )  e.  ZZ  ->  (
( A  x.  B
)  /L 0 )  =  if ( ( ( A  x.  B ) ^ 2 )  =  1 ,  1 ,  0 ) )
8637, 85syl 14 . . . 4  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  (
( A  x.  B
)  /L 0 )  =  if ( ( ( A  x.  B ) ^ 2 )  =  1 ,  1 ,  0 ) )
8784, 86sylan9eqr 2225 . . 3  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( ( A  x.  B )  /L N )  =  if ( ( ( A  x.  B ) ^ 2 )  =  1 ,  1 ,  0 ) )
8874, 83, 873eqtr4rd 2214 . 2  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( ( A  x.  B )  /L N )  =  ( ( A  /L N )  x.  ( B  /L
N ) ) )
89 lgsdilem 13687 . . . . 5  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  if ( ( N  <  0  /\  ( A  x.  B )  <  0 ) ,  -u
1 ,  1 )  =  ( if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  x.  if ( ( N  <  0  /\  B  <  0 ) ,  -u
1 ,  1 ) ) )
9089adantr 274 . . . 4  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  ->  if ( ( N  <  0  /\  ( A  x.  B )  <  0 ) ,  -u
1 ,  1 )  =  ( if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  x.  if ( ( N  <  0  /\  B  <  0 ) ,  -u
1 ,  1 ) ) )
91 simpl3 997 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  N  e.  ZZ )
92 nnabscl 11057 . . . . . . 7  |-  ( ( N  e.  ZZ  /\  N  =/=  0 )  -> 
( abs `  N
)  e.  NN )
9391, 92sylan 281 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
( abs `  N
)  e.  NN )
94 nnuz 9515 . . . . . 6  |-  NN  =  ( ZZ>= `  1 )
9593, 94eleqtrdi 2263 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
( abs `  N
)  e.  ( ZZ>= ` 
1 ) )
96 simpll1 1031 . . . . . . . 8  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  ->  A  e.  ZZ )
97 simpll3 1033 . . . . . . . 8  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  ->  N  e.  ZZ )
98 simpr 109 . . . . . . . 8  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  ->  N  =/=  0 )
99 eqid 2170 . . . . . . . . 9  |-  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  N )
) ,  1 ) )  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  N )
) ,  1 ) )
10099lgsfcl3 13681 . . . . . . . 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 )
10196, 97, 98, 100syl3anc 1233 . . . . . . 7  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) : NN --> ZZ )
102 elnnuz 9516 . . . . . . . 8  |-  ( k  e.  NN  <->  k  e.  ( ZZ>= `  1 )
)
103102biimpri 132 . . . . . . 7  |-  ( k  e.  ( ZZ>= `  1
)  ->  k  e.  NN )
104 ffvelrn 5627 . . . . . . 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 )
105101, 103, 104syl2an 287 . . . . . 6  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  -> 
( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) `  k )  e.  ZZ )
106105zcnd 9328 . . . . 5  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  -> 
( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) `  k )  e.  CC )
107 simpll2 1032 . . . . . . . 8  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  ->  B  e.  ZZ )
108 eqid 2170 . . . . . . . . 9  |-  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L
n ) ^ (
n  pCnt  N )
) ,  1 ) )  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L
n ) ^ (
n  pCnt  N )
) ,  1 ) )
109108lgsfcl3 13681 . . . . . . . 8  |-  ( ( B  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  (
n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) : NN --> ZZ )
110107, 97, 98, 109syl3anc 1233 . . . . . . 7  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) : NN --> ZZ )
111 ffvelrn 5627 . . . . . . 7  |-  ( ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) : NN --> ZZ  /\  k  e.  NN )  ->  ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L
n ) ^ (
n  pCnt  N )
) ,  1 ) ) `  k )  e.  ZZ )
112110, 103, 111syl2an 287 . . . . . 6  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  -> 
( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) `  k )  e.  ZZ )
113112zcnd 9328 . . . . 5  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  -> 
( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) `  k )  e.  CC )
11496adantr 274 . . . . . . . . . . . 12  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  Prime )  ->  A  e.  ZZ )
115107adantr 274 . . . . . . . . . . . 12  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  Prime )  ->  B  e.  ZZ )
116 simpr 109 . . . . . . . . . . . 12  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  Prime )  -> 
k  e.  Prime )
117 lgsdirprm 13694 . . . . . . . . . . . 12  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  k  e.  Prime )  ->  (
( A  x.  B
)  /L k )  =  ( ( A  /L k )  x.  ( B  /L k ) ) )
118114, 115, 116, 117syl3anc 1233 . . . . . . . . . . 11  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  Prime )  -> 
( ( A  x.  B )  /L
k )  =  ( ( A  /L
k )  x.  ( B  /L k ) ) )
119118oveq1d 5866 . . . . . . . . . 10  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  Prime )  -> 
( ( ( A  x.  B )  /L k ) ^
( k  pCnt  N
) )  =  ( ( ( A  /L k )  x.  ( B  /L
k ) ) ^
( k  pCnt  N
) ) )
120 prmz 12058 . . . . . . . . . . . . 13  |-  ( k  e.  Prime  ->  k  e.  ZZ )
121 lgscl 13674 . . . . . . . . . . . . 13  |-  ( ( A  e.  ZZ  /\  k  e.  ZZ )  ->  ( A  /L
k )  e.  ZZ )
12296, 120, 121syl2an 287 . . . . . . . . . . . 12  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  Prime )  -> 
( A  /L
k )  e.  ZZ )
123122zcnd 9328 . . . . . . . . . . 11  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  Prime )  -> 
( A  /L
k )  e.  CC )
124 lgscl 13674 . . . . . . . . . . . . 13  |-  ( ( B  e.  ZZ  /\  k  e.  ZZ )  ->  ( B  /L
k )  e.  ZZ )
125107, 120, 124syl2an 287 . . . . . . . . . . . 12  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  Prime )  -> 
( B  /L
k )  e.  ZZ )
126125zcnd 9328 . . . . . . . . . . 11  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  Prime )  -> 
( B  /L
k )  e.  CC )
12797adantr 274 . . . . . . . . . . . 12  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  Prime )  ->  N  e.  ZZ )
12898adantr 274 . . . . . . . . . . . 12  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  Prime )  ->  N  =/=  0 )
129 pczcl 12245 . . . . . . . . . . . 12  |-  ( ( k  e.  Prime  /\  ( N  e.  ZZ  /\  N  =/=  0 ) )  -> 
( k  pCnt  N
)  e.  NN0 )
130116, 127, 128, 129syl12anc 1231 . . . . . . . . . . 11  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  Prime )  -> 
( k  pCnt  N
)  e.  NN0 )
131123, 126, 130mulexpd 10617 . . . . . . . . . 10  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  Prime )  -> 
( ( ( A  /L k )  x.  ( B  /L k ) ) ^ ( k  pCnt  N ) )  =  ( ( ( A  /L k ) ^
( k  pCnt  N
) )  x.  (
( B  /L
k ) ^ (
k  pCnt  N )
) ) )
132119, 131eqtrd 2203 . . . . . . . . 9  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  Prime )  -> 
( ( ( A  x.  B )  /L k ) ^
( k  pCnt  N
) )  =  ( ( ( A  /L k ) ^
( k  pCnt  N
) )  x.  (
( B  /L
k ) ^ (
k  pCnt  N )
) ) )
133 iftrue 3530 . . . . . . . . . 10  |-  ( k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( ( A  x.  B )  /L
k ) ^ (
k  pCnt  N )
) ,  1 )  =  ( ( ( A  x.  B )  /L k ) ^ ( k  pCnt  N ) ) )
134133adantl 275 . . . . . . . . 9  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  Prime )  ->  if ( k  e.  Prime ,  ( ( ( A  x.  B )  /L k ) ^
( k  pCnt  N
) ) ,  1 )  =  ( ( ( A  x.  B
)  /L k ) ^ ( k 
pCnt  N ) ) )
135 iftrue 3530 . . . . . . . . . . 11  |-  ( k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  N )
) ,  1 )  =  ( ( A  /L k ) ^ ( k  pCnt  N ) ) )
136 iftrue 3530 . . . . . . . . . . 11  |-  ( k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( B  /L
k ) ^ (
k  pCnt  N )
) ,  1 )  =  ( ( B  /L k ) ^ ( k  pCnt  N ) ) )
137135, 136oveq12d 5869 . . . . . . . . . 10  |-  ( k  e.  Prime  ->  ( if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  N
) ) ,  1 )  x.  if ( k  e.  Prime ,  ( ( B  /L
k ) ^ (
k  pCnt  N )
) ,  1 ) )  =  ( ( ( A  /L
k ) ^ (
k  pCnt  N )
)  x.  ( ( B  /L k ) ^ ( k 
pCnt  N ) ) ) )
138137adantl 275 . . . . . . . . 9  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  Prime )  -> 
( if ( k  e.  Prime ,  ( ( A  /L k ) ^ ( k 
pCnt  N ) ) ,  1 )  x.  if ( k  e.  Prime ,  ( ( B  /L k ) ^
( k  pCnt  N
) ) ,  1 ) )  =  ( ( ( A  /L k ) ^
( k  pCnt  N
) )  x.  (
( B  /L
k ) ^ (
k  pCnt  N )
) ) )
139132, 134, 1383eqtr4d 2213 . . . . . . . 8  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  Prime )  ->  if ( k  e.  Prime ,  ( ( ( A  x.  B )  /L k ) ^
( k  pCnt  N
) ) ,  1 )  =  ( if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  N
) ) ,  1 )  x.  if ( k  e.  Prime ,  ( ( B  /L
k ) ^ (
k  pCnt  N )
) ,  1 ) ) )
140139adantlr 474 . . . . . . 7  |-  ( ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  /\  k  e.  Prime )  ->  if ( k  e.  Prime ,  ( ( ( A  x.  B )  /L k ) ^
( k  pCnt  N
) ) ,  1 )  =  ( if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  N
) ) ,  1 )  x.  if ( k  e.  Prime ,  ( ( B  /L
k ) ^ (
k  pCnt  N )
) ,  1 ) ) )
141 1t1e1 9023 . . . . . . . . . 10  |-  ( 1  x.  1 )  =  1
142141eqcomi 2174 . . . . . . . . 9  |-  1  =  ( 1  x.  1 )
143 iffalse 3533 . . . . . . . . 9  |-  ( -.  k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( ( A  x.  B )  /L k ) ^
( k  pCnt  N
) ) ,  1 )  =  1 )
144 iffalse 3533 . . . . . . . . . 10  |-  ( -.  k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  N
) ) ,  1 )  =  1 )
145 iffalse 3533 . . . . . . . . . 10  |-  ( -.  k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( B  /L k ) ^
( k  pCnt  N
) ) ,  1 )  =  1 )
146144, 145oveq12d 5869 . . . . . . . . 9  |-  ( -.  k  e.  Prime  ->  ( if ( k  e. 
Prime ,  ( ( A  /L k ) ^ ( k  pCnt  N ) ) ,  1 )  x.  if ( k  e.  Prime ,  ( ( B  /L
k ) ^ (
k  pCnt  N )
) ,  1 ) )  =  ( 1  x.  1 ) )
147142, 143, 1463eqtr4a 2229 . . . . . . . 8  |-  ( -.  k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( ( A  x.  B )  /L k ) ^
( k  pCnt  N
) ) ,  1 )  =  ( if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  N
) ) ,  1 )  x.  if ( k  e.  Prime ,  ( ( B  /L
k ) ^ (
k  pCnt  N )
) ,  1 ) ) )
148147adantl 275 . . . . . . 7  |-  ( ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  /\  -.  k  e.  Prime )  ->  if ( k  e.  Prime ,  ( ( ( A  x.  B
)  /L k ) ^ ( k 
pCnt  N ) ) ,  1 )  =  ( if ( k  e. 
Prime ,  ( ( A  /L k ) ^ ( k  pCnt  N ) ) ,  1 )  x.  if ( k  e.  Prime ,  ( ( B  /L
k ) ^ (
k  pCnt  N )
) ,  1 ) ) )
149103adantl 275 . . . . . . . . 9  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  -> 
k  e.  NN )
150 prmdc 12077 . . . . . . . . 9  |-  ( k  e.  NN  -> DECID  k  e.  Prime )
151149, 150syl 14 . . . . . . . 8  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  -> DECID  k  e.  Prime )
152 exmiddc 831 . . . . . . . 8  |-  (DECID  k  e. 
Prime  ->  ( k  e. 
Prime  \/  -.  k  e. 
Prime ) )
153151, 152syl 14 . . . . . . 7  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  -> 
( k  e.  Prime  \/ 
-.  k  e.  Prime ) )
154140, 148, 153mpjaodan 793 . . . . . 6  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  ->  if ( k  e.  Prime ,  ( ( ( A  x.  B )  /L k ) ^
( k  pCnt  N
) ) ,  1 )  =  ( if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  N
) ) ,  1 )  x.  if ( k  e.  Prime ,  ( ( B  /L
k ) ^ (
k  pCnt  N )
) ,  1 ) ) )
155 eqid 2170 . . . . . . 7  |-  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( ( A  x.  B )  /L
n ) ^ (
n  pCnt  N )
) ,  1 ) )  =  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( ( A  x.  B )  /L
n ) ^ (
n  pCnt  N )
) ,  1 ) )
156 eleq1w 2231 . . . . . . . 8  |-  ( n  =  k  ->  (
n  e.  Prime  <->  k  e.  Prime ) )
157 oveq2 5859 . . . . . . . . 9  |-  ( n  =  k  ->  (
( A  x.  B
)  /L n )  =  ( ( A  x.  B )  /L k ) )
158 oveq1 5858 . . . . . . . . 9  |-  ( n  =  k  ->  (
n  pCnt  N )  =  ( k  pCnt  N ) )
159157, 158oveq12d 5869 . . . . . . . 8  |-  ( n  =  k  ->  (
( ( A  x.  B )  /L
n ) ^ (
n  pCnt  N )
)  =  ( ( ( A  x.  B
)  /L k ) ^ ( k 
pCnt  N ) ) )
160156, 159ifbieq1d 3547 . . . . . . 7  |-  ( n  =  k  ->  if ( n  e.  Prime ,  ( ( ( A  x.  B )  /L n ) ^
( n  pCnt  N
) ) ,  1 )  =  if ( k  e.  Prime ,  ( ( ( A  x.  B )  /L
k ) ^ (
k  pCnt  N )
) ,  1 ) )
16137ad3antrrr 489 . . . . . . . . . 10  |-  ( ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  /\  k  e.  Prime )  -> 
( A  x.  B
)  e.  ZZ )
162120adantl 275 . . . . . . . . . 10  |-  ( ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  /\  k  e.  Prime )  -> 
k  e.  ZZ )
163 lgscl 13674 . . . . . . . . . 10  |-  ( ( ( A  x.  B
)  e.  ZZ  /\  k  e.  ZZ )  ->  ( ( A  x.  B )  /L
k )  e.  ZZ )
164161, 162, 163syl2anc 409 . . . . . . . . 9  |-  ( ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  /\  k  e.  Prime )  -> 
( ( A  x.  B )  /L
k )  e.  ZZ )
165130adantlr 474 . . . . . . . . 9  |-  ( ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  /\  k  e.  Prime )  -> 
( k  pCnt  N
)  e.  NN0 )
166 zexpcl 10484 . . . . . . . . 9  |-  ( ( ( ( A  x.  B )  /L
k )  e.  ZZ  /\  ( k  pCnt  N
)  e.  NN0 )  ->  ( ( ( A  x.  B )  /L k ) ^
( k  pCnt  N
) )  e.  ZZ )
167164, 165, 166syl2anc 409 . . . . . . . 8  |-  ( ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  /\  k  e.  Prime )  -> 
( ( ( A  x.  B )  /L k ) ^
( k  pCnt  N
) )  e.  ZZ )
168 1zzd 9232 . . . . . . . 8  |-  ( ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  /\  -.  k  e.  Prime )  ->  1  e.  ZZ )
169167, 168, 151ifcldadc 3554 . . . . . . 7  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  ->  if ( k  e.  Prime ,  ( ( ( A  x.  B )  /L k ) ^
( k  pCnt  N
) ) ,  1 )  e.  ZZ )
170155, 160, 149, 169fvmptd3 5587 . . . . . 6  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  -> 
( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( ( A  x.  B
)  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) `  k )  =  if ( k  e.  Prime ,  ( ( ( A  x.  B )  /L k ) ^
( k  pCnt  N
) ) ,  1 ) )
171 oveq2 5859 . . . . . . . . . 10  |-  ( n  =  k  ->  ( A  /L n )  =  ( A  /L k ) )
172171, 158oveq12d 5869 . . . . . . . . 9  |-  ( n  =  k  ->  (
( A  /L
n ) ^ (
n  pCnt  N )
)  =  ( ( A  /L k ) ^ ( k 
pCnt  N ) ) )
173156, 172ifbieq1d 3547 . . . . . . . 8  |-  ( n  =  k  ->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 )  =  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  N )
) ,  1 ) )
174122adantlr 474 . . . . . . . . . 10  |-  ( ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  /\  k  e.  Prime )  -> 
( A  /L
k )  e.  ZZ )
175 zexpcl 10484 . . . . . . . . . 10  |-  ( ( ( A  /L
k )  e.  ZZ  /\  ( k  pCnt  N
)  e.  NN0 )  ->  ( ( A  /L k ) ^
( k  pCnt  N
) )  e.  ZZ )
176174, 165, 175syl2anc 409 . . . . . . . . 9  |-  ( ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  /\  k  e.  Prime )  -> 
( ( A  /L k ) ^
( k  pCnt  N
) )  e.  ZZ )
177176, 168, 151ifcldadc 3554 . . . . . . . 8  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  ->  if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  N
) ) ,  1 )  e.  ZZ )
17899, 173, 149, 177fvmptd3 5587 . . . . . . 7  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  -> 
( ( 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 ) )
179 oveq2 5859 . . . . . . . . . 10  |-  ( n  =  k  ->  ( B  /L n )  =  ( B  /L k ) )
180179, 158oveq12d 5869 . . . . . . . . 9  |-  ( n  =  k  ->  (
( B  /L
n ) ^ (
n  pCnt  N )
)  =  ( ( B  /L k ) ^ ( k 
pCnt  N ) ) )
181156, 180ifbieq1d 3547 . . . . . . . 8  |-  ( n  =  k  ->  if ( n  e.  Prime ,  ( ( B  /L n ) ^
( n  pCnt  N
) ) ,  1 )  =  if ( k  e.  Prime ,  ( ( B  /L
k ) ^ (
k  pCnt  N )
) ,  1 ) )
182125adantlr 474 . . . . . . . . . 10  |-  ( ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  /\  k  e.  Prime )  -> 
( B  /L
k )  e.  ZZ )
183 zexpcl 10484 . . . . . . . . . 10  |-  ( ( ( B  /L
k )  e.  ZZ  /\  ( k  pCnt  N
)  e.  NN0 )  ->  ( ( B  /L k ) ^
( k  pCnt  N
) )  e.  ZZ )
184182, 165, 183syl2anc 409 . . . . . . . . 9  |-  ( ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  /\  k  e.  Prime )  -> 
( ( B  /L k ) ^
( k  pCnt  N
) )  e.  ZZ )
185184, 168, 151ifcldadc 3554 . . . . . . . 8  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  ->  if ( k  e.  Prime ,  ( ( B  /L k ) ^
( k  pCnt  N
) ) ,  1 )  e.  ZZ )
186108, 181, 149, 185fvmptd3 5587 . . . . . . 7  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  -> 
( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) `  k )  =  if ( k  e.  Prime ,  ( ( B  /L k ) ^
( k  pCnt  N
) ) ,  1 ) )
187178, 186oveq12d 5869 . . . . . 6  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  -> 
( ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L
n ) ^ (
n  pCnt  N )
) ,  1 ) ) `  k )  x.  ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L
n ) ^ (
n  pCnt  N )
) ,  1 ) ) `  k ) )  =  ( if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  N
) ) ,  1 )  x.  if ( k  e.  Prime ,  ( ( B  /L
k ) ^ (
k  pCnt  N )
) ,  1 ) ) )
188154, 170, 1873eqtr4d 2213 . . . . 5  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  ( ZZ>= ` 
1 ) )  -> 
( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( ( A  x.  B
)  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) `  k )  =  ( ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) `  k )  x.  (
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) `  k
) ) )
18995, 106, 113, 188prod3fmul 11497 . . . 4  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
(  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( ( A  x.  B
)  /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.  (  seq 1
(  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) ) )
19090, 189oveq12d 5869 . . 3  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
( if ( ( N  <  0  /\  ( A  x.  B
)  <  0 ) ,  -u 1 ,  1 )  x.  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( ( A  x.  B )  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) )  =  ( ( if ( ( N  <  0  /\  A  <  0 ) ,  -u 1 ,  1 )  x.  if ( ( N  <  0  /\  B  <  0
) ,  -u 1 ,  1 ) )  x.  ( (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) )  x.  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) ) ) )
19137adantr 274 . . . 4  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
( A  x.  B
)  e.  ZZ )
192155lgsval4 13680 . . . 4  |-  ( ( ( A  x.  B
)  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  (
( A  x.  B
)  /L N )  =  ( if ( ( N  <  0  /\  ( A  x.  B )  <  0 ) ,  -u
1 ,  1 )  x.  (  seq 1
(  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( ( A  x.  B )  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) ) )
193191, 97, 98, 192syl3anc 1233 . . 3  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
( ( A  x.  B )  /L
N )  =  ( if ( ( N  <  0  /\  ( A  x.  B )  <  0 ) ,  -u
1 ,  1 )  x.  (  seq 1
(  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( ( A  x.  B )  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) ) )
19499lgsval4 13680 . . . . . 6  |-  ( ( 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 ) ) ) )
19596, 97, 98, 194syl3anc 1233 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  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 ) ) ) )
196108lgsval4 13680 . . . . . 6  |-  ( ( B  e.  ZZ  /\  N  e.  ZZ  /\  N  =/=  0 )  ->  ( B  /L N )  =  ( if ( ( N  <  0  /\  B  <  0
) ,  -u 1 ,  1 )  x.  (  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L
n ) ^ (
n  pCnt  N )
) ,  1 ) ) ) `  ( abs `  N ) ) ) )
197107, 97, 98, 196syl3anc 1233 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
( B  /L
N )  =  ( if ( ( N  <  0  /\  B  <  0 ) ,  -u
1 ,  1 )  x.  (  seq 1
(  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) ) )
198195, 197oveq12d 5869 . . . 4  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
( ( A  /L N )  x.  ( B  /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 ) ) )  x.  ( if ( ( N  <  0  /\  B  <  0 ) ,  -u
1 ,  1 )  x.  (  seq 1
(  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) ) ) )
199 neg1cn 8976 . . . . . . 7  |-  -u 1  e.  CC
200199a1i 9 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  ->  -u 1  e.  CC )
201 1cnd 7929 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
1  e.  CC )
202 0z 9216 . . . . . . . 8  |-  0  e.  ZZ
203 zdclt 9282 . . . . . . . 8  |-  ( ( N  e.  ZZ  /\  0  e.  ZZ )  -> DECID  N  <  0 )
20497, 202, 203sylancl 411 . . . . . . 7  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> DECID  N  <  0 )
205 zdclt 9282 . . . . . . . 8  |-  ( ( A  e.  ZZ  /\  0  e.  ZZ )  -> DECID  A  <  0 )
20696, 202, 205sylancl 411 . . . . . . 7  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> DECID  A  <  0 )
207 dcan2 929 . . . . . . 7  |-  (DECID  N  <  0  ->  (DECID  A  <  0  -> DECID 
( N  <  0  /\  A  <  0
) ) )
208204, 206, 207sylc 62 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> DECID  ( N  <  0  /\  A  <  0 ) )
209200, 201, 208ifcldcd 3560 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  ->  if ( ( N  <  0  /\  A  <  0 ) ,  -u
1 ,  1 )  e.  CC )
210 1zzd 9232 . . . . . . . 8  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
1  e.  ZZ )
211101ffvelrnda 5629 . . . . . . . 8  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  NN )  ->  ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) `  k )  e.  ZZ )
212 zmulcl 9258 . . . . . . . . 9  |-  ( ( k  e.  ZZ  /\  v  e.  ZZ )  ->  ( k  x.  v
)  e.  ZZ )
213212adantl 275 . . . . . . . 8  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  ( k  e.  ZZ  /\  v  e.  ZZ ) )  ->  ( k  x.  v )  e.  ZZ )
21494, 210, 211, 213seqf 10410 . . . . . . 7  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  ->  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) : NN --> ZZ )
215214, 93ffvelrnd 5630 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
(  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) ) `
 ( abs `  N
) )  e.  ZZ )
216215zcnd 9328 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
(  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) ) `
 ( abs `  N
) )  e.  CC )
217 neg1z 9237 . . . . . . . 8  |-  -u 1  e.  ZZ
218217a1i 9 . . . . . . 7  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  ->  -u 1  e.  ZZ )
219 zdclt 9282 . . . . . . . . 9  |-  ( ( B  e.  ZZ  /\  0  e.  ZZ )  -> DECID  B  <  0 )
220107, 202, 219sylancl 411 . . . . . . . 8  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> DECID  B  <  0 )
221 dcan2 929 . . . . . . . 8  |-  (DECID  N  <  0  ->  (DECID  B  <  0  -> DECID 
( N  <  0  /\  B  <  0
) ) )
222204, 220, 221sylc 62 . . . . . . 7  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> DECID  ( N  <  0  /\  B  <  0 ) )
223218, 210, 222ifcldcd 3560 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  ->  if ( ( N  <  0  /\  B  <  0 ) ,  -u
1 ,  1 )  e.  ZZ )
224223zcnd 9328 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  ->  if ( ( N  <  0  /\  B  <  0 ) ,  -u
1 ,  1 )  e.  CC )
225110ffvelrnda 5629 . . . . . . . 8  |-  ( ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  /\  k  e.  NN )  ->  ( ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) `  k )  e.  ZZ )
22694, 210, 225, 213seqf 10410 . . . . . . 7  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  ->  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) : NN --> ZZ )
227226, 93ffvelrnd 5630 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
(  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) ) `
 ( abs `  N
) )  e.  ZZ )
228227zcnd 9328 . . . . 5  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
(  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) ) `
 ( abs `  N
) )  e.  CC )
229209, 216, 224, 228mul4d 8067 . . . 4  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
( ( 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 ) ) )  x.  ( if ( ( N  <  0  /\  B  <  0 ) ,  -u
1 ,  1 )  x.  (  seq 1
(  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) ) )  =  ( ( if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  x.  if ( ( N  <  0  /\  B  <  0 ) ,  -u
1 ,  1 ) )  x.  ( (  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) ) `
 ( abs `  N
) )  x.  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) ) ) )
230198, 229eqtrd 2203 . . 3  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
( ( A  /L N )  x.  ( B  /L
N ) )  =  ( ( if ( ( N  <  0  /\  A  <  0
) ,  -u 1 ,  1 )  x.  if ( ( N  <  0  /\  B  <  0 ) ,  -u
1 ,  1 ) )  x.  ( (  seq 1 (  x.  ,  ( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( A  /L n ) ^ ( n 
pCnt  N ) ) ,  1 ) ) ) `
 ( abs `  N
) )  x.  (  seq 1 (  x.  , 
( n  e.  NN  |->  if ( n  e.  Prime ,  ( ( B  /L n ) ^
( n  pCnt  N
) ) ,  1 ) ) ) `  ( abs `  N ) ) ) ) )
231190, 193, 2303eqtr4d 2213 . 2  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
( ( A  x.  B )  /L
N )  =  ( ( A  /L
N )  x.  ( B  /L N ) ) )
232 zdceq 9280 . . . 4  |-  ( ( N  e.  ZZ  /\  0  e.  ZZ )  -> DECID  N  =  0 )
23391, 202, 232sylancl 411 . . 3  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  -> DECID  N  =  0
)
234 dcne 2351 . . 3  |-  (DECID  N  =  0  <->  ( N  =  0  \/  N  =/=  0 ) )
235233, 234sylib 121 . 2  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  ( N  =  0  \/  N  =/=  0 ) )
23688, 231, 235mpjaodan 793 1  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  (
( A  x.  B
)  /L N )  =  ( ( A  /L N )  x.  ( B  /L N ) ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 103    <-> wb 104    \/ wo 703  DECID wdc 829    /\ w3a 973    = wceq 1348    e. wcel 2141    =/= wne 2340   ifcif 3525   class class class wbr 3987    |-> cmpt 4048   -->wf 5192   ` cfv 5196  (class class class)co 5851   CCcc 7765   RRcr 7766   0cc0 7767   1c1 7768    x. cmul 7772    < clt 7947    <_ cle 7948   -ucneg 8084   NNcn 8871   2c2 8922   NN0cn0 9128   ZZcz 9205   ZZ>=cuz 9480    seqcseq 10394   ^cexp 10468   abscabs 10954    || cdvds 11742   Primecprime 12054    pCnt cpc 12231    /Lclgs 13657
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 609  ax-in2 610  ax-io 704  ax-5 1440  ax-7 1441  ax-gen 1442  ax-ie1 1486  ax-ie2 1487  ax-8 1497  ax-10 1498  ax-11 1499  ax-i12 1500  ax-bndl 1502  ax-4 1503  ax-17 1519  ax-i9 1523  ax-ial 1527  ax-i5r 1528  ax-13 2143  ax-14 2144  ax-ext 2152  ax-coll 4102  ax-sep 4105  ax-nul 4113  ax-pow 4158  ax-pr 4192  ax-un 4416  ax-setind 4519  ax-iinf 4570  ax-cnex 7858  ax-resscn 7859  ax-1cn 7860  ax-1re 7861  ax-icn 7862  ax-addcl 7863  ax-addrcl 7864  ax-mulcl 7865  ax-mulrcl 7866  ax-addcom 7867  ax-mulcom 7868  ax-addass 7869  ax-mulass 7870  ax-distr 7871  ax-i2m1 7872  ax-0lt1 7873  ax-1rid 7874  ax-0id 7875  ax-rnegex 7876  ax-precex 7877  ax-cnre 7878  ax-pre-ltirr 7879  ax-pre-ltwlin 7880  ax-pre-lttrn 7881  ax-pre-apti 7882  ax-pre-ltadd 7883  ax-pre-mulgt0 7884  ax-pre-mulext 7885  ax-arch 7886  ax-caucvg 7887
This theorem depends on definitions:  df-bi 116  df-stab 826  df-dc 830  df-3or 974  df-3an 975  df-tru 1351  df-fal 1354  df-xor 1371  df-nf 1454  df-sb 1756  df-eu 2022  df-mo 2023  df-clab 2157  df-cleq 2163  df-clel 2166  df-nfc 2301  df-ne 2341  df-nel 2436  df-ral 2453  df-rex 2454  df-reu 2455  df-rmo 2456  df-rab 2457  df-v 2732  df-sbc 2956  df-csb 3050  df-dif 3123  df-un 3125  df-in 3127  df-ss 3134  df-nul 3415  df-if 3526  df-pw 3566  df-sn 3587  df-pr 3588  df-op 3590  df-uni 3795  df-int 3830  df-iun 3873  df-br 3988  df-opab 4049  df-mpt 4050  df-tr 4086  df-id 4276  df-po 4279  df-iso 4280  df-iord 4349  df-on 4351  df-ilim 4352  df-suc 4354  df-iom 4573  df-xp 4615  df-rel 4616  df-cnv 4617  df-co 4618  df-dm 4619  df-rn 4620  df-res 4621  df-ima 4622  df-iota 5158  df-fun 5198  df-fn 5199  df-f 5200  df-f1 5201  df-fo 5202  df-f1o 5203  df-fv 5204  df-isom 5205  df-riota 5807  df-ov 5854  df-oprab 5855  df-mpo 5856  df-1st 6117  df-2nd 6118  df-recs 6282  df-irdg 6347  df-frec 6368  df-1o 6393  df-2o 6394  df-oadd 6397  df-er 6511  df-en 6717  df-dom 6718  df-fin 6719  df-sup 6959  df-inf 6960  df-pnf 7949  df-mnf 7950  df-xr 7951  df-ltxr 7952  df-le 7953  df-sub 8085  df-neg 8086  df-reap 8487  df-ap 8494  df-div 8583  df-inn 8872  df-2 8930  df-3 8931  df-4 8932  df-5 8933  df-6 8934  df-7 8935  df-8 8936  df-9 8937  df-n0 9129  df-z 9206  df-uz 9481  df-q 9572  df-rp 9604  df-fz 9959  df-fzo 10092  df-fl 10219  df-mod 10272  df-seqfrec 10395  df-exp 10469  df-ihash 10703  df-cj 10799  df-re 10800  df-im 10801  df-rsqrt 10955  df-abs 10956  df-clim 11235  df-proddc 11507  df-dvds 11743  df-gcd 11891  df-prm 12055  df-phi 12158  df-pc 12232  df-lgs 13658
This theorem is referenced by:  lgssq  13700  lgsmulsqcoprm  13706  lgsdirnn0  13707
  Copyright terms: Public domain W3C validator