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

Theorem lgsdir2lem5 21142
Description: Lemma for lgsdir2 21143. (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 6135 . . . . . . 7  |-  ( A  mod  8 )  e. 
_V
21elpr 3856 . . . . . 6  |-  ( ( A  mod  8 )  e.  { 3 ,  5 }  <->  ( ( A  mod  8 )  =  3  \/  ( A  mod  8 )  =  5 ) )
3 ovex 6135 . . . . . . 7  |-  ( B  mod  8 )  e. 
_V
43elpr 3856 . . . . . 6  |-  ( ( B  mod  8 )  e.  { 3 ,  5 }  <->  ( ( B  mod  8 )  =  3  \/  ( B  mod  8 )  =  5 ) )
52, 4anbi12i 680 . . . . 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 732 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  3 ) )  ->  A  e.  ZZ )
7 3nn 10165 . . . . . . . . . . 11  |-  3  e.  NN
87nnzi 10336 . . . . . . . . . 10  |-  3  e.  ZZ
98a1i 11 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  3 ) )  -> 
3  e.  ZZ )
10 simplr 733 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  3 ) )  ->  B  e.  ZZ )
11 8re 10109 . . . . . . . . . . 11  |-  8  e.  RR
12 8pos 10121 . . . . . . . . . . 11  |-  0  <  8
1311, 12elrpii 10646 . . . . . . . . . 10  |-  8  e.  RR+
1413a1i 11 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  3 ) )  -> 
8  e.  RR+ )
15 simprl 734 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  3 ) )  -> 
( A  mod  8
)  =  3 )
16 lgsdir2lem1 21138 . . . . . . . . . . . 12  |-  ( ( ( 1  mod  8
)  =  1  /\  ( -u 1  mod  8 )  =  7 )  /\  ( ( 3  mod  8 )  =  3  /\  ( -u 3  mod  8 )  =  5 ) )
1716simpri 450 . . . . . . . . . . 11  |-  ( ( 3  mod  8 )  =  3  /\  ( -u 3  mod  8 )  =  5 )
1817simpli 446 . . . . . . . . . 10  |-  ( 3  mod  8 )  =  3
1915, 18syl6eqr 2492 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  3 ) )  -> 
( A  mod  8
)  =  ( 3  mod  8 ) )
20 simprr 735 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  3 ) )  -> 
( B  mod  8
)  =  3 )
2120, 18syl6eqr 2492 . . . . . . . . 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 11311 . . . . . . . 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 383 . . . . . . 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 425 . . . . . 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 732 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  ->  A  e.  ZZ )
26 znegcl 10344 . . . . . . . . . . 11  |-  ( 3  e.  ZZ  ->  -u 3  e.  ZZ )
278, 26mp1i 12 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  ->  -u 3  e.  ZZ )
28 simplr 733 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  ->  B  e.  ZZ )
298a1i 11 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  -> 
3  e.  ZZ )
3013a1i 11 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  -> 
8  e.  RR+ )
31 simprl 734 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  -> 
( A  mod  8
)  =  5 )
3217simpri 450 . . . . . . . . . . 11  |-  ( -u
3  mod  8 )  =  5
3331, 32syl6eqr 2492 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  -> 
( A  mod  8
)  =  ( -u
3  mod  8 ) )
34 simprr 735 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  3 ) )  -> 
( B  mod  8
)  =  3 )
3534, 18syl6eqr 2492 . . . . . . . . . 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 11311 . . . . . . . . 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 10103 . . . . . . . . . . 11  |-  3  e.  CC
3837, 37mulneg1i 9510 . . . . . . . . . 10  |-  ( -u
3  x.  3 )  =  -u ( 3  x.  3 )
3938oveq1i 6120 . . . . . . . . 9  |-  ( (
-u 3  x.  3 )  mod  8 )  =  ( -u (
3  x.  3 )  mod  8 )
4036, 39syl6eq 2490 . . . . . . . 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 384 . . . . . . 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 425 . . . . . 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 732 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  ->  A  e.  ZZ )
448a1i 11 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  -> 
3  e.  ZZ )
45 simplr 733 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  ->  B  e.  ZZ )
468, 26mp1i 12 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  ->  -u 3  e.  ZZ )
4713a1i 11 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  -> 
8  e.  RR+ )
48 simprl 734 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  -> 
( A  mod  8
)  =  3 )
4948, 18syl6eqr 2492 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  -> 
( A  mod  8
)  =  ( 3  mod  8 ) )
50 simprr 735 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  3  /\  ( B  mod  8 )  =  5 ) )  -> 
( B  mod  8
)  =  5 )
5150, 32syl6eqr 2492 . . . . . . . . . 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 11311 . . . . . . . . 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 9511 . . . . . . . . . 10  |-  ( 3  x.  -u 3 )  = 
-u ( 3  x.  3 )
5453oveq1i 6120 . . . . . . . . 9  |-  ( ( 3  x.  -u 3
)  mod  8 )  =  ( -u (
3  x.  3 )  mod  8 )
5552, 54syl6eq 2490 . . . . . . . 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 384 . . . . . . 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 425 . . . . . 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 732 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 ) )  ->  A  e.  ZZ )
598, 26mp1i 12 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 ) )  ->  -u 3  e.  ZZ )
60 simplr 733 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 ) )  ->  B  e.  ZZ )
6113a1i 11 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 ) )  -> 
8  e.  RR+ )
62 simprl 734 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 ) )  -> 
( A  mod  8
)  =  5 )
6362, 32syl6eqr 2492 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 ) )  -> 
( A  mod  8
)  =  ( -u
3  mod  8 ) )
64 simprr 735 . . . . . . . . . . 11  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  5  /\  ( B  mod  8 )  =  5 ) )  -> 
( B  mod  8
)  =  5 )
6564, 32syl6eqr 2492 . . . . . . . . . 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 11311 . . . . . . . . 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 9512 . . . . . . . . . 10  |-  ( -u
3  x.  -u 3
)  =  ( 3  x.  3 )
6867oveq1i 6120 . . . . . . . . 9  |-  ( (
-u 3  x.  -u 3
)  mod  8 )  =  ( ( 3  x.  3 )  mod  8 )
6966, 68syl6eq 2490 . . . . . . . 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 383 . . . . . . 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 425 . . . . . 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 915 . . . . 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 210 . . . 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 420 . . 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 6135 . . . 4  |-  ( ( A  x.  B )  mod  8 )  e. 
_V
7675elpr 3856 . . 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 205 . 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 10096 . . . . . . . 8  |-  9  =  ( 8  +  1 )
7911recni 9133 . . . . . . . . 9  |-  8  e.  CC
80 ax-1cn 9079 . . . . . . . . 9  |-  1  e.  CC
8179, 80addcomi 9288 . . . . . . . 8  |-  ( 8  +  1 )  =  ( 1  +  8 )
8278, 81eqtri 2462 . . . . . . 7  |-  9  =  ( 1  +  8 )
83 3t3e9 10160 . . . . . . 7  |-  ( 3  x.  3 )  =  9
8479mulid2i 9124 . . . . . . . 8  |-  ( 1  x.  8 )  =  8
8584oveq2i 6121 . . . . . . 7  |-  ( 1  +  ( 1  x.  8 ) )  =  ( 1  +  8 )
8682, 83, 853eqtr4i 2472 . . . . . 6  |-  ( 3  x.  3 )  =  ( 1  +  ( 1  x.  8 ) )
8786oveq1i 6120 . . . . 5  |-  ( ( 3  x.  3 )  mod  8 )  =  ( ( 1  +  ( 1  x.  8 ) )  mod  8
)
88 1re 9121 . . . . . 6  |-  1  e.  RR
89 1z 10342 . . . . . 6  |-  1  e.  ZZ
90 modcyc 11307 . . . . . 6  |-  ( ( 1  e.  RR  /\  8  e.  RR+  /\  1  e.  ZZ )  ->  (
( 1  +  ( 1  x.  8 ) )  mod  8 )  =  ( 1  mod  8 ) )
9188, 13, 89, 90mp3an 1280 . . . . 5  |-  ( ( 1  +  ( 1  x.  8 ) )  mod  8 )  =  ( 1  mod  8
)
9287, 91eqtri 2462 . . . 4  |-  ( ( 3  x.  3 )  mod  8 )  =  ( 1  mod  8
)
9316simpli 446 . . . . 5  |-  ( ( 1  mod  8 )  =  1  /\  ( -u 1  mod  8 )  =  7 )
9493simpli 446 . . . 4  |-  ( 1  mod  8 )  =  1
9592, 94eqtri 2462 . . 3  |-  ( ( 3  x.  3 )  mod  8 )  =  1
96 znegcl 10344 . . . . . . . 8  |-  ( 1  e.  ZZ  ->  -u 1  e.  ZZ )
9789, 96mp1i 12 . . . . . . 7  |-  (  T. 
->  -u 1  e.  ZZ )
987, 7nnmulcli 10055 . . . . . . . . 9  |-  ( 3  x.  3 )  e.  NN
9998nnzi 10336 . . . . . . . 8  |-  ( 3  x.  3 )  e.  ZZ
10099a1i 11 . . . . . . 7  |-  (  T. 
->  ( 3  x.  3 )  e.  ZZ )
10189a1i 11 . . . . . . 7  |-  (  T. 
->  1  e.  ZZ )
10213a1i 11 . . . . . . 7  |-  (  T. 
->  8  e.  RR+ )
103 eqidd 2443 . . . . . . 7  |-  (  T. 
->  ( -u 1  mod  8 )  =  (
-u 1  mod  8
) )
10492a1i 11 . . . . . . 7  |-  (  T. 
->  ( ( 3  x.  3 )  mod  8
)  =  ( 1  mod  8 ) )
10597, 97, 100, 101, 102, 103, 104modmul12d 11311 . . . . . 6  |-  (  T. 
->  ( ( -u 1  x.  ( 3  x.  3 ) )  mod  8
)  =  ( (
-u 1  x.  1 )  mod  8 ) )
106105trud 1333 . . . . 5  |-  ( (
-u 1  x.  (
3  x.  3 ) )  mod  8 )  =  ( ( -u
1  x.  1 )  mod  8 )
10737, 37mulcli 9126 . . . . . . 7  |-  ( 3  x.  3 )  e.  CC
108107mulm1i 9509 . . . . . 6  |-  ( -u
1  x.  ( 3  x.  3 ) )  =  -u ( 3  x.  3 )
109108oveq1i 6120 . . . . 5  |-  ( (
-u 1  x.  (
3  x.  3 ) )  mod  8 )  =  ( -u (
3  x.  3 )  mod  8 )
11080mulm1i 9509 . . . . . 6  |-  ( -u
1  x.  1 )  =  -u 1
111110oveq1i 6120 . . . . 5  |-  ( (
-u 1  x.  1 )  mod  8 )  =  ( -u 1  mod  8 )
112106, 109, 1113eqtr3i 2470 . . . 4  |-  ( -u ( 3  x.  3 )  mod  8 )  =  ( -u 1  mod  8 )
11393simpri 450 . . . 4  |-  ( -u
1  mod  8 )  =  7
114112, 113eqtri 2462 . . 3  |-  ( -u ( 3  x.  3 )  mod  8 )  =  7
11595, 114preq12i 3912 . 2  |-  { ( ( 3  x.  3 )  mod  8 ) ,  ( -u (
3  x.  3 )  mod  8 ) }  =  { 1 ,  7 }
11677, 115syl6eleq 2532 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 359    /\ wa 360    T. wtru 1326    = wceq 1653    e. wcel 1727   {cpr 3839  (class class class)co 6110   RRcr 9020   1c1 9022    + caddc 9024    x. cmul 9026   -ucneg 9323   3c3 10081   5c5 10083   7c7 10085   8c8 10086   9c9 10087   ZZcz 10313   RR+crp 10643    mod cmo 11281
This theorem is referenced by:  lgsdir2  21143
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1556  ax-5 1567  ax-17 1627  ax-9 1668  ax-8 1689  ax-13 1729  ax-14 1731  ax-6 1746  ax-7 1751  ax-11 1763  ax-12 1953  ax-ext 2423  ax-sep 4355  ax-nul 4363  ax-pow 4406  ax-pr 4432  ax-un 4730  ax-cnex 9077  ax-resscn 9078  ax-1cn 9079  ax-icn 9080  ax-addcl 9081  ax-addrcl 9082  ax-mulcl 9083  ax-mulrcl 9084  ax-mulcom 9085  ax-addass 9086  ax-mulass 9087  ax-distr 9088  ax-i2m1 9089  ax-1ne0 9090  ax-1rid 9091  ax-rnegex 9092  ax-rrecex 9093  ax-cnre 9094  ax-pre-lttri 9095  ax-pre-lttrn 9096  ax-pre-ltadd 9097  ax-pre-mulgt0 9098  ax-pre-sup 9099
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 938  df-3an 939  df-tru 1329  df-ex 1552  df-nf 1555  df-sb 1660  df-eu 2291  df-mo 2292  df-clab 2429  df-cleq 2435  df-clel 2438  df-nfc 2567  df-ne 2607  df-nel 2608  df-ral 2716  df-rex 2717  df-reu 2718  df-rmo 2719  df-rab 2720  df-v 2964  df-sbc 3168  df-csb 3268  df-dif 3309  df-un 3311  df-in 3313  df-ss 3320  df-pss 3322  df-nul 3614  df-if 3764  df-pw 3825  df-sn 3844  df-pr 3845  df-tp 3846  df-op 3847  df-uni 4040  df-iun 4119  df-br 4238  df-opab 4292  df-mpt 4293  df-tr 4328  df-eprel 4523  df-id 4527  df-po 4532  df-so 4533  df-fr 4570  df-we 4572  df-ord 4613  df-on 4614  df-lim 4615  df-suc 4616  df-om 4875  df-xp 4913  df-rel 4914  df-cnv 4915  df-co 4916  df-dm 4917  df-rn 4918  df-res 4919  df-ima 4920  df-iota 5447  df-fun 5485  df-fn 5486  df-f 5487  df-f1 5488  df-fo 5489  df-f1o 5490  df-fv 5491  df-ov 6113  df-oprab 6114  df-mpt2 6115  df-riota 6578  df-recs 6662  df-rdg 6697  df-er 6934  df-en 7139  df-dom 7140  df-sdom 7141  df-sup 7475  df-pnf 9153  df-mnf 9154  df-xr 9155  df-ltxr 9156  df-le 9157  df-sub 9324  df-neg 9325  df-div 9709  df-nn 10032  df-2 10089  df-3 10090  df-4 10091  df-5 10092  df-6 10093  df-7 10094  df-8 10095  df-9 10096  df-n0 10253  df-z 10314  df-uz 10520  df-rp 10644  df-fl 11233  df-mod 11282
  Copyright terms: Public domain W3C validator