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

Theorem lgsdir2lem5 20582
Description: Lemma for lgsdir2 20583. (Contributed by Mario Carneiro, 4-Feb-2015.)
Assertion
Ref Expression
lgsdir2lem5  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  e. 
{ 3 ,  5 }  /\  ( B  mod  8 )  e. 
{ 3 ,  5 } ) )  -> 
( ( A  x.  B )  mod  8
)  e.  { 1 ,  7 } )

Proof of Theorem lgsdir2lem5
StepHypRef Expression
1 ovex 5899 . . . . . . 7  |-  ( A  mod  8 )  e. 
_V
21elpr 3671 . . . . . 6  |-  ( ( A  mod  8 )  e.  { 3 ,  5 }  <->  ( ( A  mod  8 )  =  3  \/  ( A  mod  8 )  =  5 ) )
3 ovex 5899 . . . . . . 7  |-  ( B  mod  8 )  e. 
_V
43elpr 3671 . . . . . 6  |-  ( ( B  mod  8 )  e.  { 3 ,  5 }  <->  ( ( B  mod  8 )  =  3  \/  ( B  mod  8 )  =  5 ) )
52, 4anbi12i 678 . . . . 5  |-  ( ( ( A  mod  8
)  e.  { 3 ,  5 }  /\  ( B  mod  8
)  e.  { 3 ,  5 } )  <-> 
( ( ( A  mod  8 )  =  3  \/  ( A  mod  8 )  =  5 )  /\  (
( B  mod  8
)  =  3  \/  ( B  mod  8
)  =  5 ) ) )
6 simpll 730 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  3 ) )  ->  A  e.  ZZ )
7 3nn 9894 . . . . . . . . . . 11  |-  3  e.  NN
87nnzi 10063 . . . . . . . . . 10  |-  3  e.  ZZ
98a1i 10 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  3 ) )  -> 
3  e.  ZZ )
10 simplr 731 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  3 ) )  ->  B  e.  ZZ )
11 8re 9840 . . . . . . . . . . 11  |-  8  e.  RR
12 8pos 9852 . . . . . . . . . . 11  |-  0  <  8
1311, 12elrpii 10373 . . . . . . . . . 10  |-  8  e.  RR+
1413a1i 10 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  3 ) )  -> 
8  e.  RR+ )
15 simprl 732 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  3 ) )  -> 
( A  mod  8
)  =  3 )
16 lgsdir2lem1 20578 . . . . . . . . . . . 12  |-  ( ( ( 1  mod  8
)  =  1  /\  ( -u 1  mod  8 )  =  7 )  /\  ( ( 3  mod  8 )  =  3  /\  ( -u 3  mod  8 )  =  5 ) )
1716simpri 448 . . . . . . . . . . 11  |-  ( ( 3  mod  8 )  =  3  /\  ( -u 3  mod  8 )  =  5 )
1817simpli 444 . . . . . . . . . 10  |-  ( 3  mod  8 )  =  3
1915, 18syl6eqr 2346 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  3 ) )  -> 
( A  mod  8
)  =  ( 3  mod  8 ) )
20 simprr 733 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  3 ) )  -> 
( B  mod  8
)  =  3 )
2120, 18syl6eqr 2346 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  3 ) )  -> 
( B  mod  8
)  =  ( 3  mod  8 ) )
226, 9, 10, 9, 14, 19, 21modmul12d 11019 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  3 ) )  -> 
( ( A  x.  B )  mod  8
)  =  ( ( 3  x.  3 )  mod  8 ) )
2322orcd 381 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  3 ) )  -> 
( ( ( A  x.  B )  mod  8 )  =  ( ( 3  x.  3 )  mod  8 )  \/  ( ( A  x.  B )  mod  8 )  =  (
-u ( 3  x.  3 )  mod  8
) ) )
2423ex 423 . . . . . 6  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  3 )  ->  (
( ( A  x.  B )  mod  8
)  =  ( ( 3  x.  3 )  mod  8 )  \/  ( ( A  x.  B )  mod  8
)  =  ( -u ( 3  x.  3 )  mod  8 ) ) ) )
25 simpll 730 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  ->  A  e.  ZZ )
26 znegcl 10071 . . . . . . . . . . 11  |-  ( 3  e.  ZZ  ->  -u 3  e.  ZZ )
278, 26mp1i 11 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  ->  -u 3  e.  ZZ )
28 simplr 731 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  ->  B  e.  ZZ )
298a1i 10 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  -> 
3  e.  ZZ )
3013a1i 10 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  -> 
8  e.  RR+ )
31 simprl 732 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  -> 
( A  mod  8
)  =  5 )
3217simpri 448 . . . . . . . . . . 11  |-  ( -u
3  mod  8 )  =  5
3331, 32syl6eqr 2346 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  -> 
( A  mod  8
)  =  ( -u
3  mod  8 ) )
34 simprr 733 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  -> 
( B  mod  8
)  =  3 )
3534, 18syl6eqr 2346 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  -> 
( B  mod  8
)  =  ( 3  mod  8 ) )
3625, 27, 28, 29, 30, 33, 35modmul12d 11019 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  -> 
( ( A  x.  B )  mod  8
)  =  ( (
-u 3  x.  3 )  mod  8 ) )
37 3cn 9834 . . . . . . . . . . 11  |-  3  e.  CC
3837, 37mulneg1i 9241 . . . . . . . . . 10  |-  ( -u
3  x.  3 )  =  -u ( 3  x.  3 )
3938oveq1i 5884 . . . . . . . . 9  |-  ( (
-u 3  x.  3 )  mod  8 )  =  ( -u (
3  x.  3 )  mod  8 )
4036, 39syl6eq 2344 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  -> 
( ( A  x.  B )  mod  8
)  =  ( -u ( 3  x.  3 )  mod  8 ) )
4140olcd 382 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  -> 
( ( ( A  x.  B )  mod  8 )  =  ( ( 3  x.  3 )  mod  8 )  \/  ( ( A  x.  B )  mod  8 )  =  (
-u ( 3  x.  3 )  mod  8
) ) )
4241ex 423 . . . . . 6  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 )  ->  (
( ( A  x.  B )  mod  8
)  =  ( ( 3  x.  3 )  mod  8 )  \/  ( ( A  x.  B )  mod  8
)  =  ( -u ( 3  x.  3 )  mod  8 ) ) ) )
43 simpll 730 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  ->  A  e.  ZZ )
448a1i 10 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  -> 
3  e.  ZZ )
45 simplr 731 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  ->  B  e.  ZZ )
468, 26mp1i 11 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  ->  -u 3  e.  ZZ )
4713a1i 10 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  -> 
8  e.  RR+ )
48 simprl 732 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  -> 
( A  mod  8
)  =  3 )
4948, 18syl6eqr 2346 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  -> 
( A  mod  8
)  =  ( 3  mod  8 ) )
50 simprr 733 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  -> 
( B  mod  8
)  =  5 )
5150, 32syl6eqr 2346 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  -> 
( B  mod  8
)  =  ( -u
3  mod  8 ) )
5243, 44, 45, 46, 47, 49, 51modmul12d 11019 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  -> 
( ( A  x.  B )  mod  8
)  =  ( ( 3  x.  -u 3
)  mod  8 ) )
5337, 37mulneg2i 9242 . . . . . . . . . 10  |-  ( 3  x.  -u 3 )  = 
-u ( 3  x.  3 )
5453oveq1i 5884 . . . . . . . . 9  |-  ( ( 3  x.  -u 3
)  mod  8 )  =  ( -u (
3  x.  3 )  mod  8 )
5552, 54syl6eq 2344 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  -> 
( ( A  x.  B )  mod  8
)  =  ( -u ( 3  x.  3 )  mod  8 ) )
5655olcd 382 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  -> 
( ( ( A  x.  B )  mod  8 )  =  ( ( 3  x.  3 )  mod  8 )  \/  ( ( A  x.  B )  mod  8 )  =  (
-u ( 3  x.  3 )  mod  8
) ) )
5756ex 423 . . . . . 6  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 )  ->  (
( ( A  x.  B )  mod  8
)  =  ( ( 3  x.  3 )  mod  8 )  \/  ( ( A  x.  B )  mod  8
)  =  ( -u ( 3  x.  3 )  mod  8 ) ) ) )
58 simpll 730 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 ) )  ->  A  e.  ZZ )
598, 26mp1i 11 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 ) )  ->  -u 3  e.  ZZ )
60 simplr 731 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 ) )  ->  B  e.  ZZ )
6113a1i 10 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 ) )  -> 
8  e.  RR+ )
62 simprl 732 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 ) )  -> 
( A  mod  8
)  =  5 )
6362, 32syl6eqr 2346 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 ) )  -> 
( A  mod  8
)  =  ( -u
3  mod  8 ) )
64 simprr 733 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 ) )  -> 
( B  mod  8
)  =  5 )
6564, 32syl6eqr 2346 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 ) )  -> 
( B  mod  8
)  =  ( -u
3  mod  8 ) )
6658, 59, 60, 59, 61, 63, 65modmul12d 11019 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 ) )  -> 
( ( A  x.  B )  mod  8
)  =  ( (
-u 3  x.  -u 3
)  mod  8 ) )
6737, 37mul2negi 9243 . . . . . . . . . 10  |-  ( -u
3  x.  -u 3
)  =  ( 3  x.  3 )
6867oveq1i 5884 . . . . . . . . 9  |-  ( (
-u 3  x.  -u 3
)  mod  8 )  =  ( ( 3  x.  3 )  mod  8 )
6966, 68syl6eq 2344 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 ) )  -> 
( ( A  x.  B )  mod  8
)  =  ( ( 3  x.  3 )  mod  8 ) )
7069orcd 381 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 ) )  -> 
( ( ( A  x.  B )  mod  8 )  =  ( ( 3  x.  3 )  mod  8 )  \/  ( ( A  x.  B )  mod  8 )  =  (
-u ( 3  x.  3 )  mod  8
) ) )
7170ex 423 . . . . . 6  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 )  ->  (
( ( A  x.  B )  mod  8
)  =  ( ( 3  x.  3 )  mod  8 )  \/  ( ( A  x.  B )  mod  8
)  =  ( -u ( 3  x.  3 )  mod  8 ) ) ) )
7224, 42, 57, 71ccased 913 . . . . 5  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( ( ( A  mod  8 )  =  3  \/  ( A  mod  8 )  =  5 )  /\  (
( B  mod  8
)  =  3  \/  ( B  mod  8
)  =  5 ) )  ->  ( (
( A  x.  B
)  mod  8 )  =  ( ( 3  x.  3 )  mod  8 )  \/  (
( A  x.  B
)  mod  8 )  =  ( -u (
3  x.  3 )  mod  8 ) ) ) )
735, 72syl5bi 208 . . . 4  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( ( A  mod  8 )  e. 
{ 3 ,  5 }  /\  ( B  mod  8 )  e. 
{ 3 ,  5 } )  ->  (
( ( A  x.  B )  mod  8
)  =  ( ( 3  x.  3 )  mod  8 )  \/  ( ( A  x.  B )  mod  8
)  =  ( -u ( 3  x.  3 )  mod  8 ) ) ) )
7473imp 418 . . 3  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  e. 
{ 3 ,  5 }  /\  ( B  mod  8 )  e. 
{ 3 ,  5 } ) )  -> 
( ( ( A  x.  B )  mod  8 )  =  ( ( 3  x.  3 )  mod  8 )  \/  ( ( A  x.  B )  mod  8 )  =  (
-u ( 3  x.  3 )  mod  8
) ) )
75 ovex 5899 . . . 4  |-  ( ( A  x.  B )  mod  8 )  e. 
_V
7675elpr 3671 . . 3  |-  ( ( ( A  x.  B
)  mod  8 )  e.  { ( ( 3  x.  3 )  mod  8 ) ,  ( -u ( 3  x.  3 )  mod  8 ) }  <->  ( (
( A  x.  B
)  mod  8 )  =  ( ( 3  x.  3 )  mod  8 )  \/  (
( A  x.  B
)  mod  8 )  =  ( -u (
3  x.  3 )  mod  8 ) ) )
7774, 76sylibr 203 . 2  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  e. 
{ 3 ,  5 }  /\  ( B  mod  8 )  e. 
{ 3 ,  5 } ) )  -> 
( ( A  x.  B )  mod  8
)  e.  { ( ( 3  x.  3 )  mod  8 ) ,  ( -u (
3  x.  3 )  mod  8 ) } )
78 df-9 9827 . . . . . . . 8  |-  9  =  ( 8  +  1 )
7911recni 8865 . . . . . . . . 9  |-  8  e.  CC
80 ax-1cn 8811 . . . . . . . . 9  |-  1  e.  CC
8179, 80addcomi 9019 . . . . . . . 8  |-  ( 8  +  1 )  =  ( 1  +  8 )
8278, 81eqtri 2316 . . . . . . 7  |-  9  =  ( 1  +  8 )
83 3t3e9 9889 . . . . . . 7  |-  ( 3  x.  3 )  =  9
8479mulid2i 8856 . . . . . . . 8  |-  ( 1  x.  8 )  =  8
8584oveq2i 5885 . . . . . . 7  |-  ( 1  +  ( 1  x.  8 ) )  =  ( 1  +  8 )
8682, 83, 853eqtr4i 2326 . . . . . 6  |-  ( 3  x.  3 )  =  ( 1  +  ( 1  x.  8 ) )
8786oveq1i 5884 . . . . 5  |-  ( ( 3  x.  3 )  mod  8 )  =  ( ( 1  +  ( 1  x.  8 ) )  mod  8
)
88 1re 8853 . . . . . 6  |-  1  e.  RR
89 1z 10069 . . . . . 6  |-  1  e.  ZZ
90 modcyc 11015 . . . . . 6  |-  ( ( 1  e.  RR  /\  8  e.  RR+  /\  1  e.  ZZ )  ->  (
( 1  +  ( 1  x.  8 ) )  mod  8 )  =  ( 1  mod  8 ) )
9188, 13, 89, 90mp3an 1277 . . . . 5  |-  ( ( 1  +  ( 1  x.  8 ) )  mod  8 )  =  ( 1  mod  8
)
9287, 91eqtri 2316 . . . 4  |-  ( ( 3  x.  3 )  mod  8 )  =  ( 1  mod  8
)
9316simpli 444 . . . . 5  |-  ( ( 1  mod  8 )  =  1  /\  ( -u 1  mod  8 )  =  7 )
9493simpli 444 . . . 4  |-  ( 1  mod  8 )  =  1
9592, 94eqtri 2316 . . 3  |-  ( ( 3  x.  3 )  mod  8 )  =  1
96 znegcl 10071 . . . . . . . 8  |-  ( 1  e.  ZZ  ->  -u 1  e.  ZZ )
9789, 96mp1i 11 . . . . . . 7  |-  (  T. 
->  -u 1  e.  ZZ )
987, 7nnmulcli 9786 . . . . . . . . 9  |-  ( 3  x.  3 )  e.  NN
9998nnzi 10063 . . . . . . . 8  |-  ( 3  x.  3 )  e.  ZZ
10099a1i 10 . . . . . . 7  |-  (  T. 
->  ( 3  x.  3 )  e.  ZZ )
10189a1i 10 . . . . . . 7  |-  (  T. 
->  1  e.  ZZ )
10213a1i 10 . . . . . . 7  |-  (  T. 
->  8  e.  RR+ )
103 eqidd 2297 . . . . . . 7  |-  (  T. 
->  ( -u 1  mod  8 )  =  (
-u 1  mod  8
) )
10492a1i 10 . . . . . . 7  |-  (  T. 
->  ( ( 3  x.  3 )  mod  8
)  =  ( 1  mod  8 ) )
10597, 97, 100, 101, 102, 103, 104modmul12d 11019 . . . . . 6  |-  (  T. 
->  ( ( -u 1  x.  ( 3  x.  3 ) )  mod  8
)  =  ( (
-u 1  x.  1 )  mod  8 ) )
106105trud 1314 . . . . 5  |-  ( (
-u 1  x.  (
3  x.  3 ) )  mod  8 )  =  ( ( -u
1  x.  1 )  mod  8 )
10737, 37mulcli 8858 . . . . . . 7  |-  ( 3  x.  3 )  e.  CC
108107mulm1i 9240 . . . . . 6  |-  ( -u
1  x.  ( 3  x.  3 ) )  =  -u ( 3  x.  3 )
109108oveq1i 5884 . . . . 5  |-  ( (
-u 1  x.  (
3  x.  3 ) )  mod  8 )  =  ( -u (
3  x.  3 )  mod  8 )
11080mulm1i 9240 . . . . . 6  |-  ( -u
1  x.  1 )  =  -u 1
111110oveq1i 5884 . . . . 5  |-  ( (
-u 1  x.  1 )  mod  8 )  =  ( -u 1  mod  8 )
112106, 109, 1113eqtr3i 2324 . . . 4  |-  ( -u ( 3  x.  3 )  mod  8 )  =  ( -u 1  mod  8 )
11393simpri 448 . . . 4  |-  ( -u
1  mod  8 )  =  7
114112, 113eqtri 2316 . . 3  |-  ( -u ( 3  x.  3 )  mod  8 )  =  7
11595, 114preq12i 3724 . 2  |-  { ( ( 3  x.  3 )  mod  8 ) ,  ( -u (
3  x.  3 )  mod  8 ) }  =  { 1 ,  7 }
11677, 115syl6eleq 2386 1  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  e. 
{ 3 ,  5 }  /\  ( B  mod  8 )  e. 
{ 3 ,  5 } ) )  -> 
( ( A  x.  B )  mod  8
)  e.  { 1 ,  7 } )
Colors of variables: wff set class
Syntax hints:    -> wi 4    \/ wo 357    /\ wa 358    T. wtru 1307    = wceq 1632    e. wcel 1696   {cpr 3654  (class class class)co 5874   RRcr 8752   1c1 8754    + caddc 8756    x. cmul 8758   -ucneg 9054   3c3 9812   5c5 9814   7c7 9816   8c8 9817   9c9 9818   ZZcz 10040   RR+crp 10370    mod cmo 10989
This theorem is referenced by:  lgsdir2  20583
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-13 1698  ax-14 1700  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277  ax-sep 4157  ax-nul 4165  ax-pow 4204  ax-pr 4230  ax-un 4528  ax-cnex 8809  ax-resscn 8810  ax-1cn 8811  ax-icn 8812  ax-addcl 8813  ax-addrcl 8814  ax-mulcl 8815  ax-mulrcl 8816  ax-mulcom 8817  ax-addass 8818  ax-mulass 8819  ax-distr 8820  ax-i2m1 8821  ax-1ne0 8822  ax-1rid 8823  ax-rnegex 8824  ax-rrecex 8825  ax-cnre 8826  ax-pre-lttri 8827  ax-pre-lttrn 8828  ax-pre-ltadd 8829  ax-pre-mulgt0 8830  ax-pre-sup 8831
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1532  df-nf 1535  df-sb 1639  df-eu 2160  df-mo 2161  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-ne 2461  df-nel 2462  df-ral 2561  df-rex 2562  df-reu 2563  df-rmo 2564  df-rab 2565  df-v 2803  df-sbc 3005  df-csb 3095  df-dif 3168  df-un 3170  df-in 3172  df-ss 3179  df-pss 3181  df-nul 3469  df-if 3579  df-pw 3640  df-sn 3659  df-pr 3660  df-tp 3661  df-op 3662  df-uni 3844  df-iun 3923  df-br 4040  df-opab 4094  df-mpt 4095  df-tr 4130  df-eprel 4321  df-id 4325  df-po 4330  df-so 4331  df-fr 4368  df-we 4370  df-ord 4411  df-on 4412  df-lim 4413  df-suc 4414  df-om 4673  df-xp 4711  df-rel 4712  df-cnv 4713  df-co 4714  df-dm 4715  df-rn 4716  df-res 4717  df-ima 4718  df-iota 5235  df-fun 5273  df-fn 5274  df-f 5275  df-f1 5276  df-fo 5277  df-f1o 5278  df-fv 5279  df-ov 5877  df-oprab 5878  df-mpt2 5879  df-riota 6320  df-recs 6404  df-rdg 6439  df-er 6676  df-en 6880  df-dom 6881  df-sdom 6882  df-sup 7210  df-pnf 8885  df-mnf 8886  df-xr 8887  df-ltxr 8888  df-le 8889  df-sub 9055  df-neg 9056  df-div 9440  df-nn 9763  df-2 9820  df-3 9821  df-4 9822  df-5 9823  df-6 9824  df-7 9825  df-8 9826  df-9 9827  df-n0 9982  df-z 10041  df-uz 10247  df-rp 10371  df-fl 10941  df-mod 10990
  Copyright terms: Public domain W3C validator