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

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

Proof of Theorem lgsdir2lem4
Dummy variable  x is distinct from all other variables.
StepHypRef Expression
1 ovex 5883 . . 3  |-  ( A  mod  8 )  e. 
_V
21elpr 3658 . 2  |-  ( ( A  mod  8 )  e.  { 1 ,  7 }  <->  ( ( A  mod  8 )  =  1  \/  ( A  mod  8 )  =  7 ) )
3 zre 10028 . . . . . . 7  |-  ( A  e.  ZZ  ->  A  e.  RR )
43ad2antrr 706 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  1 )  ->  A  e.  RR )
5 1re 8837 . . . . . . 7  |-  1  e.  RR
65a1i 10 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  1 )  ->  1  e.  RR )
7 simplr 731 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  1 )  ->  B  e.  ZZ )
8 8re 9824 . . . . . . . 8  |-  8  e.  RR
9 8pos 9836 . . . . . . . 8  |-  0  <  8
108, 9elrpii 10357 . . . . . . 7  |-  8  e.  RR+
1110a1i 10 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  1 )  ->  8  e.  RR+ )
12 simpr 447 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  1 )  ->  ( A  mod  8 )  =  1 )
13 lgsdir2lem1 20562 . . . . . . . . 9  |-  ( ( ( 1  mod  8
)  =  1  /\  ( -u 1  mod  8 )  =  7 )  /\  ( ( 3  mod  8 )  =  3  /\  ( -u 3  mod  8 )  =  5 ) )
1413simpli 444 . . . . . . . 8  |-  ( ( 1  mod  8 )  =  1  /\  ( -u 1  mod  8 )  =  7 )
1514simpli 444 . . . . . . 7  |-  ( 1  mod  8 )  =  1
1612, 15syl6eqr 2333 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  1 )  ->  ( A  mod  8 )  =  ( 1  mod  8 ) )
17 modmul1 11002 . . . . . 6  |-  ( ( ( A  e.  RR  /\  1  e.  RR )  /\  ( B  e.  ZZ  /\  8  e.  RR+ )  /\  ( A  mod  8 )  =  ( 1  mod  8
) )  ->  (
( A  x.  B
)  mod  8 )  =  ( ( 1  x.  B )  mod  8 ) )
184, 6, 7, 11, 16, 17syl221anc 1193 . . . . 5  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  1 )  ->  ( ( A  x.  B )  mod  8 )  =  ( ( 1  x.  B
)  mod  8 ) )
19 zcn 10029 . . . . . . . 8  |-  ( B  e.  ZZ  ->  B  e.  CC )
2019ad2antlr 707 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  1 )  ->  B  e.  CC )
2120mulid2d 8853 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  1 )  ->  ( 1  x.  B )  =  B )
2221oveq1d 5873 . . . . 5  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  1 )  ->  ( (
1  x.  B )  mod  8 )  =  ( B  mod  8
) )
2318, 22eqtrd 2315 . . . 4  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  1 )  ->  ( ( A  x.  B )  mod  8 )  =  ( B  mod  8 ) )
2423eleq1d 2349 . . 3  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  1 )  ->  ( (
( A  x.  B
)  mod  8 )  e.  { 1 ,  7 }  <->  ( B  mod  8 )  e.  {
1 ,  7 } ) )
253ad2antrr 706 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  7 )  ->  A  e.  RR )
265renegcli 9108 . . . . . . . 8  |-  -u 1  e.  RR
2726a1i 10 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  7 )  ->  -u 1  e.  RR )
28 simplr 731 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  7 )  ->  B  e.  ZZ )
2910a1i 10 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  7 )  ->  8  e.  RR+ )
30 simpr 447 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  7 )  ->  ( A  mod  8 )  =  7 )
3114simpri 448 . . . . . . . 8  |-  ( -u
1  mod  8 )  =  7
3230, 31syl6eqr 2333 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  7 )  ->  ( A  mod  8 )  =  (
-u 1  mod  8
) )
33 modmul1 11002 . . . . . . 7  |-  ( ( ( A  e.  RR  /\  -u 1  e.  RR )  /\  ( B  e.  ZZ  /\  8  e.  RR+ )  /\  ( A  mod  8 )  =  ( -u 1  mod  8 ) )  -> 
( ( A  x.  B )  mod  8
)  =  ( (
-u 1  x.  B
)  mod  8 ) )
3425, 27, 28, 29, 32, 33syl221anc 1193 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  7 )  ->  ( ( A  x.  B )  mod  8 )  =  ( ( -u 1  x.  B )  mod  8
) )
3519ad2antlr 707 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  7 )  ->  B  e.  CC )
3635mulm1d 9231 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  7 )  ->  ( -u 1  x.  B )  =  -u B )
3736oveq1d 5873 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  7 )  ->  ( ( -u 1  x.  B )  mod  8 )  =  ( -u B  mod  8 ) )
3834, 37eqtrd 2315 . . . . 5  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  7 )  ->  ( ( A  x.  B )  mod  8 )  =  (
-u B  mod  8
) )
3938eleq1d 2349 . . . 4  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  7 )  ->  ( (
( A  x.  B
)  mod  8 )  e.  { 1 ,  7 }  <->  ( -u B  mod  8 )  e.  {
1 ,  7 } ) )
40 znegcl 10055 . . . . . . . 8  |-  ( B  e.  ZZ  ->  -u B  e.  ZZ )
41 oveq1 5865 . . . . . . . . . . 11  |-  ( x  =  -u B  ->  (
x  mod  8 )  =  ( -u B  mod  8 ) )
4241eleq1d 2349 . . . . . . . . . 10  |-  ( x  =  -u B  ->  (
( x  mod  8
)  e.  { 1 ,  7 }  <->  ( -u B  mod  8 )  e.  {
1 ,  7 } ) )
43 negeq 9044 . . . . . . . . . . . 12  |-  ( x  =  -u B  ->  -u x  =  -u -u B )
4443oveq1d 5873 . . . . . . . . . . 11  |-  ( x  =  -u B  ->  ( -u x  mod  8 )  =  ( -u -u B  mod  8 ) )
4544eleq1d 2349 . . . . . . . . . 10  |-  ( x  =  -u B  ->  (
( -u x  mod  8
)  e.  { 1 ,  7 }  <->  ( -u -u B  mod  8 )  e.  {
1 ,  7 } ) )
4642, 45imbi12d 311 . . . . . . . . 9  |-  ( x  =  -u B  ->  (
( ( x  mod  8 )  e.  {
1 ,  7 }  ->  ( -u x  mod  8 )  e.  {
1 ,  7 } )  <->  ( ( -u B  mod  8 )  e. 
{ 1 ,  7 }  ->  ( -u -u B  mod  8 )  e.  {
1 ,  7 } ) ) )
47 zcn 10029 . . . . . . . . . . . . . . . . 17  |-  ( x  e.  ZZ  ->  x  e.  CC )
48 neg1cn 9813 . . . . . . . . . . . . . . . . . . 19  |-  -u 1  e.  CC
49 mulcom 8823 . . . . . . . . . . . . . . . . . . 19  |-  ( ( x  e.  CC  /\  -u 1  e.  CC )  ->  ( x  x.  -u 1 )  =  ( -u 1  x.  x ) )
5048, 49mpan2 652 . . . . . . . . . . . . . . . . . 18  |-  ( x  e.  CC  ->  (
x  x.  -u 1
)  =  ( -u
1  x.  x ) )
51 mulm1 9221 . . . . . . . . . . . . . . . . . 18  |-  ( x  e.  CC  ->  ( -u 1  x.  x )  =  -u x )
5250, 51eqtrd 2315 . . . . . . . . . . . . . . . . 17  |-  ( x  e.  CC  ->  (
x  x.  -u 1
)  =  -u x
)
5347, 52syl 15 . . . . . . . . . . . . . . . 16  |-  ( x  e.  ZZ  ->  (
x  x.  -u 1
)  =  -u x
)
5453adantr 451 . . . . . . . . . . . . . . 15  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  1 )  ->  ( x  x.  -u 1 )  = 
-u x )
5554oveq1d 5873 . . . . . . . . . . . . . 14  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  1 )  ->  ( ( x  x.  -u 1 )  mod  8 )  =  (
-u x  mod  8
) )
56 zre 10028 . . . . . . . . . . . . . . . 16  |-  ( x  e.  ZZ  ->  x  e.  RR )
5756adantr 451 . . . . . . . . . . . . . . 15  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  1 )  ->  x  e.  RR )
585a1i 10 . . . . . . . . . . . . . . 15  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  1 )  ->  1  e.  RR )
59 1z 10053 . . . . . . . . . . . . . . . . 17  |-  1  e.  ZZ
60 znegcl 10055 . . . . . . . . . . . . . . . . 17  |-  ( 1  e.  ZZ  ->  -u 1  e.  ZZ )
6159, 60ax-mp 8 . . . . . . . . . . . . . . . 16  |-  -u 1  e.  ZZ
6261a1i 10 . . . . . . . . . . . . . . 15  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  1 )  ->  -u 1  e.  ZZ )
6310a1i 10 . . . . . . . . . . . . . . 15  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  1 )  ->  8  e.  RR+ )
64 simpr 447 . . . . . . . . . . . . . . . 16  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  1 )  ->  ( x  mod  8 )  =  1 )
6564, 15syl6eqr 2333 . . . . . . . . . . . . . . 15  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  1 )  ->  ( x  mod  8 )  =  ( 1  mod  8 ) )
66 modmul1 11002 . . . . . . . . . . . . . . 15  |-  ( ( ( x  e.  RR  /\  1  e.  RR )  /\  ( -u 1  e.  ZZ  /\  8  e.  RR+ )  /\  (
x  mod  8 )  =  ( 1  mod  8 ) )  -> 
( ( x  x.  -u 1 )  mod  8 )  =  ( ( 1  x.  -u 1
)  mod  8 ) )
6757, 58, 62, 63, 65, 66syl221anc 1193 . . . . . . . . . . . . . 14  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  1 )  ->  ( ( x  x.  -u 1 )  mod  8 )  =  ( ( 1  x.  -u 1
)  mod  8 ) )
6855, 67eqtr3d 2317 . . . . . . . . . . . . 13  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  1 )  ->  ( -u x  mod  8 )  =  ( ( 1  x.  -u 1
)  mod  8 ) )
6948mulid2i 8840 . . . . . . . . . . . . . . 15  |-  ( 1  x.  -u 1 )  = 
-u 1
7069oveq1i 5868 . . . . . . . . . . . . . 14  |-  ( ( 1  x.  -u 1
)  mod  8 )  =  ( -u 1  mod  8 )
7170, 31eqtri 2303 . . . . . . . . . . . . 13  |-  ( ( 1  x.  -u 1
)  mod  8 )  =  7
7268, 71syl6eq 2331 . . . . . . . . . . . 12  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  1 )  ->  ( -u x  mod  8 )  =  7 )
7372ex 423 . . . . . . . . . . 11  |-  ( x  e.  ZZ  ->  (
( x  mod  8
)  =  1  -> 
( -u x  mod  8
)  =  7 ) )
7453adantr 451 . . . . . . . . . . . . . . 15  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  7 )  ->  ( x  x.  -u 1 )  = 
-u x )
7574oveq1d 5873 . . . . . . . . . . . . . 14  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  7 )  ->  ( ( x  x.  -u 1 )  mod  8 )  =  (
-u x  mod  8
) )
7656adantr 451 . . . . . . . . . . . . . . 15  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  7 )  ->  x  e.  RR )
7726a1i 10 . . . . . . . . . . . . . . 15  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  7 )  ->  -u 1  e.  RR )
7861a1i 10 . . . . . . . . . . . . . . 15  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  7 )  ->  -u 1  e.  ZZ )
7910a1i 10 . . . . . . . . . . . . . . 15  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  7 )  ->  8  e.  RR+ )
80 simpr 447 . . . . . . . . . . . . . . . 16  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  7 )  ->  ( x  mod  8 )  =  7 )
8180, 31syl6eqr 2333 . . . . . . . . . . . . . . 15  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  7 )  ->  ( x  mod  8 )  =  (
-u 1  mod  8
) )
82 modmul1 11002 . . . . . . . . . . . . . . 15  |-  ( ( ( x  e.  RR  /\  -u 1  e.  RR )  /\  ( -u 1  e.  ZZ  /\  8  e.  RR+ )  /\  (
x  mod  8 )  =  ( -u 1  mod  8 ) )  -> 
( ( x  x.  -u 1 )  mod  8 )  =  ( ( -u 1  x.  -u 1 )  mod  8 ) )
8376, 77, 78, 79, 81, 82syl221anc 1193 . . . . . . . . . . . . . 14  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  7 )  ->  ( ( x  x.  -u 1 )  mod  8 )  =  ( ( -u 1  x.  -u 1 )  mod  8 ) )
8475, 83eqtr3d 2317 . . . . . . . . . . . . 13  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  7 )  ->  ( -u x  mod  8 )  =  ( ( -u 1  x.  -u 1 )  mod  8 ) )
8548mulm1i 9224 . . . . . . . . . . . . . . . 16  |-  ( -u
1  x.  -u 1
)  =  -u -u 1
86 ax-1cn 8795 . . . . . . . . . . . . . . . . 17  |-  1  e.  CC
8786negnegi 9116 . . . . . . . . . . . . . . . 16  |-  -u -u 1  =  1
8885, 87eqtri 2303 . . . . . . . . . . . . . . 15  |-  ( -u
1  x.  -u 1
)  =  1
8988oveq1i 5868 . . . . . . . . . . . . . 14  |-  ( (
-u 1  x.  -u 1
)  mod  8 )  =  ( 1  mod  8 )
9089, 15eqtri 2303 . . . . . . . . . . . . 13  |-  ( (
-u 1  x.  -u 1
)  mod  8 )  =  1
9184, 90syl6eq 2331 . . . . . . . . . . . 12  |-  ( ( x  e.  ZZ  /\  ( x  mod  8
)  =  7 )  ->  ( -u x  mod  8 )  =  1 )
9291ex 423 . . . . . . . . . . 11  |-  ( x  e.  ZZ  ->  (
( x  mod  8
)  =  7  -> 
( -u x  mod  8
)  =  1 ) )
9373, 92orim12d 811 . . . . . . . . . 10  |-  ( x  e.  ZZ  ->  (
( ( x  mod  8 )  =  1  \/  ( x  mod  8 )  =  7 )  ->  ( ( -u x  mod  8 )  =  7  \/  ( -u x  mod  8 )  =  1 ) ) )
94 ovex 5883 . . . . . . . . . . 11  |-  ( x  mod  8 )  e. 
_V
9594elpr 3658 . . . . . . . . . 10  |-  ( ( x  mod  8 )  e.  { 1 ,  7 }  <->  ( (
x  mod  8 )  =  1  \/  (
x  mod  8 )  =  7 ) )
96 ovex 5883 . . . . . . . . . . . 12  |-  ( -u x  mod  8 )  e. 
_V
9796elpr 3658 . . . . . . . . . . 11  |-  ( (
-u x  mod  8
)  e.  { 1 ,  7 }  <->  ( ( -u x  mod  8 )  =  1  \/  ( -u x  mod  8 )  =  7 ) )
98 orcom 376 . . . . . . . . . . 11  |-  ( ( ( -u x  mod  8 )  =  1  \/  ( -u x  mod  8 )  =  7 )  <->  ( ( -u x  mod  8 )  =  7  \/  ( -u x  mod  8 )  =  1 ) )
9997, 98bitri 240 . . . . . . . . . 10  |-  ( (
-u x  mod  8
)  e.  { 1 ,  7 }  <->  ( ( -u x  mod  8 )  =  7  \/  ( -u x  mod  8 )  =  1 ) )
10093, 95, 993imtr4g 261 . . . . . . . . 9  |-  ( x  e.  ZZ  ->  (
( x  mod  8
)  e.  { 1 ,  7 }  ->  (
-u x  mod  8
)  e.  { 1 ,  7 } ) )
10146, 100vtoclga 2849 . . . . . . . 8  |-  ( -u B  e.  ZZ  ->  ( ( -u B  mod  8 )  e.  {
1 ,  7 }  ->  ( -u -u B  mod  8 )  e.  {
1 ,  7 } ) )
10240, 101syl 15 . . . . . . 7  |-  ( B  e.  ZZ  ->  (
( -u B  mod  8
)  e.  { 1 ,  7 }  ->  (
-u -u B  mod  8
)  e.  { 1 ,  7 } ) )
10319negnegd 9148 . . . . . . . . 9  |-  ( B  e.  ZZ  ->  -u -u B  =  B )
104103oveq1d 5873 . . . . . . . 8  |-  ( B  e.  ZZ  ->  ( -u -u B  mod  8
)  =  ( B  mod  8 ) )
105104eleq1d 2349 . . . . . . 7  |-  ( B  e.  ZZ  ->  (
( -u -u B  mod  8
)  e.  { 1 ,  7 }  <->  ( B  mod  8 )  e.  {
1 ,  7 } ) )
106102, 105sylibd 205 . . . . . 6  |-  ( B  e.  ZZ  ->  (
( -u B  mod  8
)  e.  { 1 ,  7 }  ->  ( B  mod  8 )  e.  { 1 ,  7 } ) )
107 oveq1 5865 . . . . . . . . 9  |-  ( x  =  B  ->  (
x  mod  8 )  =  ( B  mod  8 ) )
108107eleq1d 2349 . . . . . . . 8  |-  ( x  =  B  ->  (
( x  mod  8
)  e.  { 1 ,  7 }  <->  ( B  mod  8 )  e.  {
1 ,  7 } ) )
109 negeq 9044 . . . . . . . . . 10  |-  ( x  =  B  ->  -u x  =  -u B )
110109oveq1d 5873 . . . . . . . . 9  |-  ( x  =  B  ->  ( -u x  mod  8 )  =  ( -u B  mod  8 ) )
111110eleq1d 2349 . . . . . . . 8  |-  ( x  =  B  ->  (
( -u x  mod  8
)  e.  { 1 ,  7 }  <->  ( -u B  mod  8 )  e.  {
1 ,  7 } ) )
112108, 111imbi12d 311 . . . . . . 7  |-  ( x  =  B  ->  (
( ( x  mod  8 )  e.  {
1 ,  7 }  ->  ( -u x  mod  8 )  e.  {
1 ,  7 } )  <->  ( ( B  mod  8 )  e. 
{ 1 ,  7 }  ->  ( -u B  mod  8 )  e.  {
1 ,  7 } ) ) )
113112, 100vtoclga 2849 . . . . . 6  |-  ( B  e.  ZZ  ->  (
( B  mod  8
)  e.  { 1 ,  7 }  ->  (
-u B  mod  8
)  e.  { 1 ,  7 } ) )
114106, 113impbid 183 . . . . 5  |-  ( B  e.  ZZ  ->  (
( -u B  mod  8
)  e.  { 1 ,  7 }  <->  ( B  mod  8 )  e.  {
1 ,  7 } ) )
115114ad2antlr 707 . . . 4  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  7 )  ->  ( ( -u B  mod  8 )  e.  { 1 ,  7 }  <->  ( B  mod  8 )  e.  {
1 ,  7 } ) )
11639, 115bitrd 244 . . 3  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  =  7 )  ->  ( (
( A  x.  B
)  mod  8 )  e.  { 1 ,  7 }  <->  ( B  mod  8 )  e.  {
1 ,  7 } ) )
11724, 116jaodan 760 . 2  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( ( A  mod  8 )  =  1  \/  ( A  mod  8 )  =  7 ) )  -> 
( ( ( A  x.  B )  mod  8 )  e.  {
1 ,  7 }  <-> 
( B  mod  8
)  e.  { 1 ,  7 } ) )
1182, 117sylan2b 461 1  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( A  mod  8 )  e.  {
1 ,  7 } )  ->  ( (
( A  x.  B
)  mod  8 )  e.  { 1 ,  7 }  <->  ( B  mod  8 )  e.  {
1 ,  7 } ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 176    \/ wo 357    /\ wa 358    = wceq 1623    e. wcel 1684   {cpr 3641  (class class class)co 5858   CCcc 8735   RRcr 8736   1c1 8738    x. cmul 8742   -ucneg 9038   3c3 9796   5c5 9798   7c7 9800   8c8 9801   ZZcz 10024   RR+crp 10354    mod cmo 10973
This theorem is referenced by:  lgsdir2  20567
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1533  ax-5 1544  ax-17 1603  ax-9 1635  ax-8 1643  ax-13 1686  ax-14 1688  ax-6 1703  ax-7 1708  ax-11 1715  ax-12 1866  ax-ext 2264  ax-sep 4141  ax-nul 4149  ax-pow 4188  ax-pr 4214  ax-un 4512  ax-cnex 8793  ax-resscn 8794  ax-1cn 8795  ax-icn 8796  ax-addcl 8797  ax-addrcl 8798  ax-mulcl 8799  ax-mulrcl 8800  ax-mulcom 8801  ax-addass 8802  ax-mulass 8803  ax-distr 8804  ax-i2m1 8805  ax-1ne0 8806  ax-1rid 8807  ax-rnegex 8808  ax-rrecex 8809  ax-cnre 8810  ax-pre-lttri 8811  ax-pre-lttrn 8812  ax-pre-ltadd 8813  ax-pre-mulgt0 8814  ax-pre-sup 8815
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1529  df-nf 1532  df-sb 1630  df-eu 2147  df-mo 2148  df-clab 2270  df-cleq 2276  df-clel 2279  df-nfc 2408  df-ne 2448  df-nel 2449  df-ral 2548  df-rex 2549  df-reu 2550  df-rmo 2551  df-rab 2552  df-v 2790  df-sbc 2992  df-csb 3082  df-dif 3155  df-un 3157  df-in 3159  df-ss 3166  df-pss 3168  df-nul 3456  df-if 3566  df-pw 3627  df-sn 3646  df-pr 3647  df-tp 3648  df-op 3649  df-uni 3828  df-iun 3907  df-br 4024  df-opab 4078  df-mpt 4079  df-tr 4114  df-eprel 4305  df-id 4309  df-po 4314  df-so 4315  df-fr 4352  df-we 4354  df-ord 4395  df-on 4396  df-lim 4397  df-suc 4398  df-om 4657  df-xp 4695  df-rel 4696  df-cnv 4697  df-co 4698  df-dm 4699  df-rn 4700  df-res 4701  df-ima 4702  df-iota 5219  df-fun 5257  df-fn 5258  df-f 5259  df-f1 5260  df-fo 5261  df-f1o 5262  df-fv 5263  df-ov 5861  df-oprab 5862  df-mpt2 5863  df-riota 6304  df-recs 6388  df-rdg 6423  df-er 6660  df-en 6864  df-dom 6865  df-sdom 6866  df-sup 7194  df-pnf 8869  df-mnf 8870  df-xr 8871  df-ltxr 8872  df-le 8873  df-sub 9039  df-neg 9040  df-div 9424  df-nn 9747  df-2 9804  df-3 9805  df-4 9806  df-5 9807  df-6 9808  df-7 9809  df-8 9810  df-n0 9966  df-z 10025  df-uz 10231  df-rp 10355  df-fl 10925  df-mod 10974
  Copyright terms: Public domain W3C validator