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

Theorem lgsdir 13730
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 7936 . . . . . . . 8  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  ->  1  e.  CC )
2 0cnd 7913 . . . . . . . 8  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  ->  0  e.  CC )
3 zsqcl 10546 . . . . . . . . . 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 9238 . . . . . . . . 9  |-  1  e.  ZZ
6 zdceq 9287 . . . . . . . . 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 3561 . . . . . . 7  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  ->  if ( ( B ^
2 )  =  1 ,  1 ,  0 )  e.  CC )
98mulid2d 7938 . . . . . 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 3531 . . . . . . 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 5868 . . . . 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 9335 . . . . . . . . . 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 9335 . . . . . . . . . 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 10621 . . . . . . . 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 5868 . . . . . . . 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 10607 . . . . . . . . . 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 7938 . . . . . . . 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 3547 . . . . 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 8311 . . . . . 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 3534 . . . . . . 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 5868 . . . . 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 11775 . . . . . . . . . . . 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 9340 . . . . . . . . . . . 12  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0
) )  ->  ( A  x.  B )  e.  ZZ )
38 dvdssq 11986 . . . . . . . . . . . 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 3993 . . . . . . . . 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 10539 . . . . . . . . . . . . . . . 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 10553 . . . . . . . . . . . . . . . 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 9137 . . . . . . . . . . . . . . 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 9333 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( A ^
2 )  e.  ZZ )
56 1nn 8889 . . . . . . . . . . 11  |-  1  e.  NN
57 dvdsle 11804 . . . . . . . . . . 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 8921 . . . . . . . . . 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 8891 . . . . . . . . . 10  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =  0 )  ->  ( A ^
2 )  e.  RR )
62 1re 7919 . . . . . . . . . 10  |-  1  e.  RR
63 letri3 8000 . . . . . . . . . 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 3536 . . . . 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 9287 . . . . . 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 5861 . . . . 5  |-  ( N  =  0  ->  ( A  /L N )  =  ( A  /L 0 ) )
76 lgs0 13708 . . . . . 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 5861 . . . . 5  |-  ( N  =  0  ->  ( B  /L N )  =  ( B  /L 0 ) )
80 lgs0 13708 . . . . . 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 5871 . . 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 5861 . . . 4  |-  ( N  =  0  ->  (
( A  x.  B
)  /L N )  =  ( ( A  x.  B )  /L 0 ) )
85 lgs0 13708 . . . . 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 13722 . . . . 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 11064 . . . . . . 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 9522 . . . . . 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 13716 . . . . . . . 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 9523 . . . . . . . 8  |-  ( k  e.  NN  <->  k  e.  ( ZZ>= `  1 )
)
103102biimpri 132 . . . . . . 7  |-  ( k  e.  ( ZZ>= `  1
)  ->  k  e.  NN )
104 ffvelrn 5629 . . . . . . 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 9335 . . . . 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 13716 . . . . . . . 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 5629 . . . . . . 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 9335 . . . . 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 13729 . . . . . . . . . . . 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 5868 . . . . . . . . . 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 12065 . . . . . . . . . . . . 13  |-  ( k  e.  Prime  ->  k  e.  ZZ )
121 lgscl 13709 . . . . . . . . . . . . 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 9335 . . . . . . . . . . 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 13709 . . . . . . . . . . . . 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 9335 . . . . . . . . . . 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 12252 . . . . . . . . . . . 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 10624 . . . . . . . . . 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 3531 . . . . . . . . . 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 3531 . . . . . . . . . . 11  |-  ( k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  /L
k ) ^ (
k  pCnt  N )
) ,  1 )  =  ( ( A  /L k ) ^ ( k  pCnt  N ) ) )
136 iftrue 3531 . . . . . . . . . . 11  |-  ( k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( B  /L
k ) ^ (
k  pCnt  N )
) ,  1 )  =  ( ( B  /L k ) ^ ( k  pCnt  N ) ) )
137135, 136oveq12d 5871 . . . . . . . . . 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 9030 . . . . . . . . . 10  |-  ( 1  x.  1 )  =  1
142141eqcomi 2174 . . . . . . . . 9  |-  1  =  ( 1  x.  1 )
143 iffalse 3534 . . . . . . . . 9  |-  ( -.  k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( ( A  x.  B )  /L k ) ^
( k  pCnt  N
) ) ,  1 )  =  1 )
144 iffalse 3534 . . . . . . . . . 10  |-  ( -.  k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( A  /L k ) ^
( k  pCnt  N
) ) ,  1 )  =  1 )
145 iffalse 3534 . . . . . . . . . 10  |-  ( -.  k  e.  Prime  ->  if ( k  e.  Prime ,  ( ( B  /L k ) ^
( k  pCnt  N
) ) ,  1 )  =  1 )
146144, 145oveq12d 5871 . . . . . . . . 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 12084 . . . . . . . . 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 5861 . . . . . . . . 9  |-  ( n  =  k  ->  (
( A  x.  B
)  /L n )  =  ( ( A  x.  B )  /L k ) )
158 oveq1 5860 . . . . . . . . 9  |-  ( n  =  k  ->  (
n  pCnt  N )  =  ( k  pCnt  N ) )
159157, 158oveq12d 5871 . . . . . . . 8  |-  ( n  =  k  ->  (
( ( A  x.  B )  /L
n ) ^ (
n  pCnt  N )
)  =  ( ( ( A  x.  B
)  /L k ) ^ ( k 
pCnt  N ) ) )
160156, 159ifbieq1d 3548 . . . . . . 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 13709 . . . . . . . . . 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 10491 . . . . . . . . 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 9239 . . . . . . . 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 3555 . . . . . . 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 5589 . . . . . 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 5861 . . . . . . . . . 10  |-  ( n  =  k  ->  ( A  /L n )  =  ( A  /L k ) )
172171, 158oveq12d 5871 . . . . . . . . 9  |-  ( n  =  k  ->  (
( A  /L
n ) ^ (
n  pCnt  N )
)  =  ( ( A  /L k ) ^ ( k 
pCnt  N ) ) )
173156, 172ifbieq1d 3548 . . . . . . . 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 10491 . . . . . . . . . 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 3555 . . . . . . . 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 5589 . . . . . . 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 5861 . . . . . . . . . 10  |-  ( n  =  k  ->  ( B  /L n )  =  ( B  /L k ) )
180179, 158oveq12d 5871 . . . . . . . . 9  |-  ( n  =  k  ->  (
( B  /L
n ) ^ (
n  pCnt  N )
)  =  ( ( B  /L k ) ^ ( k 
pCnt  N ) ) )
181156, 180ifbieq1d 3548 . . . . . . . 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 10491 . . . . . . . . . 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 3555 . . . . . . . 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 5589 . . . . . . 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 5871 . . . . . 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 11504 . . . 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 5871 . . 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 13715 . . . 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 13715 . . . . . 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 13715 . . . . . 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 5871 . . . 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 8983 . . . . . . 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 7936 . . . . . 6  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
1  e.  CC )
202 0z 9223 . . . . . . . 8  |-  0  e.  ZZ
203 zdclt 9289 . . . . . . . 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 9289 . . . . . . . 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 3561 . . . . 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 9239 . . . . . . . 8  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  ZZ )  /\  ( A  =/=  0  /\  B  =/=  0 ) )  /\  N  =/=  0 )  -> 
1  e.  ZZ )
211101ffvelrnda 5631 . . . . . . . 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 9265 . . . . . . . . 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 10417 . . . . . . 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 5632 . . . . . 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 9335 . . . . 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 9244 . . . . . . . 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 9289 . . . . . . . . 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 3561 . . . . . 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 9335 . . . . 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 5631 . . . . . . . 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 10417 . . . . . . 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 5632 . . . . . 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 9335 . . . . 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 8074 . . . 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 9287 . . . 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 3526   class class class wbr 3989    |-> cmpt 4050   -->wf 5194   ` cfv 5198  (class class class)co 5853   CCcc 7772   RRcr 7773   0cc0 7774   1c1 7775    x. cmul 7779    < clt 7954    <_ cle 7955   -ucneg 8091   NNcn 8878   2c2 8929   NN0cn0 9135   ZZcz 9212   ZZ>=cuz 9487    seqcseq 10401   ^cexp 10475   abscabs 10961    || cdvds 11749   Primecprime 12061    pCnt cpc 12238    /Lclgs 13692
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 4104  ax-sep 4107  ax-nul 4115  ax-pow 4160  ax-pr 4194  ax-un 4418  ax-setind 4521  ax-iinf 4572  ax-cnex 7865  ax-resscn 7866  ax-1cn 7867  ax-1re 7868  ax-icn 7869  ax-addcl 7870  ax-addrcl 7871  ax-mulcl 7872  ax-mulrcl 7873  ax-addcom 7874  ax-mulcom 7875  ax-addass 7876  ax-mulass 7877  ax-distr 7878  ax-i2m1 7879  ax-0lt1 7880  ax-1rid 7881  ax-0id 7882  ax-rnegex 7883  ax-precex 7884  ax-cnre 7885  ax-pre-ltirr 7886  ax-pre-ltwlin 7887  ax-pre-lttrn 7888  ax-pre-apti 7889  ax-pre-ltadd 7890  ax-pre-mulgt0 7891  ax-pre-mulext 7892  ax-arch 7893  ax-caucvg 7894
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 3527  df-pw 3568  df-sn 3589  df-pr 3590  df-op 3592  df-uni 3797  df-int 3832  df-iun 3875  df-br 3990  df-opab 4051  df-mpt 4052  df-tr 4088  df-id 4278  df-po 4281  df-iso 4282  df-iord 4351  df-on 4353  df-ilim 4354  df-suc 4356  df-iom 4575  df-xp 4617  df-rel 4618  df-cnv 4619  df-co 4620  df-dm 4621  df-rn 4622  df-res 4623  df-ima 4624  df-iota 5160  df-fun 5200  df-fn 5201  df-f 5202  df-f1 5203  df-fo 5204  df-f1o 5205  df-fv 5206  df-isom 5207  df-riota 5809  df-ov 5856  df-oprab 5857  df-mpo 5858  df-1st 6119  df-2nd 6120  df-recs 6284  df-irdg 6349  df-frec 6370  df-1o 6395  df-2o 6396  df-oadd 6399  df-er 6513  df-en 6719  df-dom 6720  df-fin 6721  df-sup 6961  df-inf 6962  df-pnf 7956  df-mnf 7957  df-xr 7958  df-ltxr 7959  df-le 7960  df-sub 8092  df-neg 8093  df-reap 8494  df-ap 8501  df-div 8590  df-inn 8879  df-2 8937  df-3 8938  df-4 8939  df-5 8940  df-6 8941  df-7 8942  df-8 8943  df-9 8944  df-n0 9136  df-z 9213  df-uz 9488  df-q 9579  df-rp 9611  df-fz 9966  df-fzo 10099  df-fl 10226  df-mod 10279  df-seqfrec 10402  df-exp 10476  df-ihash 10710  df-cj 10806  df-re 10807  df-im 10808  df-rsqrt 10962  df-abs 10963  df-clim 11242  df-proddc 11514  df-dvds 11750  df-gcd 11898  df-prm 12062  df-phi 12165  df-pc 12239  df-lgs 13693
This theorem is referenced by:  lgssq  13735  lgsmulsqcoprm  13741  lgsdirnn0  13742
  Copyright terms: Public domain W3C validator