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

Theorem lgsdir2lem2 22548
Description: Lemma for lgsdir2 22552. (Contributed by Mario Carneiro, 4-Feb-2015.)
Hypotheses
Ref Expression
lgsdir2lem2.1  |-  ( K  e.  ZZ  /\  2  ||  ( K  +  1 )  /\  ( ( A  e.  ZZ  /\  -.  2  ||  A )  ->  ( ( A  mod  8 )  e.  ( 0 ... K
)  ->  ( A  mod  8 )  e.  S
) ) )
lgsdir2lem2.2  |-  M  =  ( K  +  1 )
lgsdir2lem2.3  |-  N  =  ( M  +  1 )
lgsdir2lem2.4  |-  N  e.  S
Assertion
Ref Expression
lgsdir2lem2  |-  ( N  e.  ZZ  /\  2  ||  ( N  +  1 )  /\  ( ( A  e.  ZZ  /\  -.  2  ||  A )  ->  ( ( A  mod  8 )  e.  ( 0 ... N
)  ->  ( A  mod  8 )  e.  S
) ) )

Proof of Theorem lgsdir2lem2
StepHypRef Expression
1 lgsdir2lem2.3 . . 3  |-  N  =  ( M  +  1 )
2 lgsdir2lem2.2 . . . . 5  |-  M  =  ( K  +  1 )
3 lgsdir2lem2.1 . . . . . . 7  |-  ( K  e.  ZZ  /\  2  ||  ( K  +  1 )  /\  ( ( A  e.  ZZ  /\  -.  2  ||  A )  ->  ( ( A  mod  8 )  e.  ( 0 ... K
)  ->  ( A  mod  8 )  e.  S
) ) )
43simp1i 990 . . . . . 6  |-  K  e.  ZZ
5 peano2z 10674 . . . . . 6  |-  ( K  e.  ZZ  ->  ( K  +  1 )  e.  ZZ )
64, 5ax-mp 5 . . . . 5  |-  ( K  +  1 )  e.  ZZ
72, 6eqeltri 2503 . . . 4  |-  M  e.  ZZ
8 peano2z 10674 . . . 4  |-  ( M  e.  ZZ  ->  ( M  +  1 )  e.  ZZ )
97, 8ax-mp 5 . . 3  |-  ( M  +  1 )  e.  ZZ
101, 9eqeltri 2503 . 2  |-  N  e.  ZZ
113simp2i 991 . . . 4  |-  2  ||  ( K  +  1 )
12 2z 10666 . . . . 5  |-  2  e.  ZZ
13 dvdsadd 13554 . . . . 5  |-  ( ( 2  e.  ZZ  /\  ( K  +  1
)  e.  ZZ )  ->  ( 2  ||  ( K  +  1
)  <->  2  ||  (
2  +  ( K  +  1 ) ) ) )
1412, 6, 13mp2an 665 . . . 4  |-  ( 2 
||  ( K  + 
1 )  <->  2  ||  ( 2  +  ( K  +  1 ) ) )
1511, 14mpbi 208 . . 3  |-  2  ||  ( 2  +  ( K  +  1 ) )
16 zcn 10639 . . . . . . . . . . 11  |-  ( K  e.  ZZ  ->  K  e.  CC )
174, 16ax-mp 5 . . . . . . . . . 10  |-  K  e.  CC
18 ax-1cn 9328 . . . . . . . . . 10  |-  1  e.  CC
1917, 18addcomi 9548 . . . . . . . . 9  |-  ( K  +  1 )  =  ( 1  +  K
)
202, 19eqtri 2453 . . . . . . . 8  |-  M  =  ( 1  +  K
)
2120oveq1i 6090 . . . . . . 7  |-  ( M  +  1 )  =  ( ( 1  +  K )  +  1 )
221, 21eqtri 2453 . . . . . 6  |-  N  =  ( ( 1  +  K )  +  1 )
23 df-2 10368 . . . . . . . 8  |-  2  =  ( 1  +  1 )
2423oveq1i 6090 . . . . . . 7  |-  ( 2  +  K )  =  ( ( 1  +  1 )  +  K
)
2518, 17, 18add32i 9576 . . . . . . 7  |-  ( ( 1  +  K )  +  1 )  =  ( ( 1  +  1 )  +  K
)
2624, 25eqtr4i 2456 . . . . . 6  |-  ( 2  +  K )  =  ( ( 1  +  K )  +  1 )
2722, 26eqtr4i 2456 . . . . 5  |-  N  =  ( 2  +  K
)
2827oveq1i 6090 . . . 4  |-  ( N  +  1 )  =  ( ( 2  +  K )  +  1 )
29 2cn 10380 . . . . 5  |-  2  e.  CC
3029, 17, 18addassi 9382 . . . 4  |-  ( ( 2  +  K )  +  1 )  =  ( 2  +  ( K  +  1 ) )
3128, 30eqtri 2453 . . 3  |-  ( N  +  1 )  =  ( 2  +  ( K  +  1 ) )
3215, 31breqtrri 4305 . 2  |-  2  ||  ( N  +  1 )
33 elfzuz2 11443 . . . . 5  |-  ( ( A  mod  8 )  e.  ( 0 ... N )  ->  N  e.  ( ZZ>= `  0 )
)
34 fzm1 11524 . . . . 5  |-  ( N  e.  ( ZZ>= `  0
)  ->  ( ( A  mod  8 )  e.  ( 0 ... N
)  <->  ( ( A  mod  8 )  e.  ( 0 ... ( N  -  1 ) )  \/  ( A  mod  8 )  =  N ) ) )
3533, 34syl 16 . . . 4  |-  ( ( A  mod  8 )  e.  ( 0 ... N )  ->  (
( A  mod  8
)  e.  ( 0 ... N )  <->  ( ( A  mod  8 )  e.  ( 0 ... ( N  -  1 ) )  \/  ( A  mod  8 )  =  N ) ) )
3635ibi 241 . . 3  |-  ( ( A  mod  8 )  e.  ( 0 ... N )  ->  (
( A  mod  8
)  e.  ( 0 ... ( N  - 
1 ) )  \/  ( A  mod  8
)  =  N ) )
37 elfzuz2 11443 . . . . . . . 8  |-  ( ( A  mod  8 )  e.  ( 0 ... M )  ->  M  e.  ( ZZ>= `  0 )
)
38 fzm1 11524 . . . . . . . 8  |-  ( M  e.  ( ZZ>= `  0
)  ->  ( ( A  mod  8 )  e.  ( 0 ... M
)  <->  ( ( A  mod  8 )  e.  ( 0 ... ( M  -  1 ) )  \/  ( A  mod  8 )  =  M ) ) )
3937, 38syl 16 . . . . . . 7  |-  ( ( A  mod  8 )  e.  ( 0 ... M )  ->  (
( A  mod  8
)  e.  ( 0 ... M )  <->  ( ( A  mod  8 )  e.  ( 0 ... ( M  -  1 ) )  \/  ( A  mod  8 )  =  M ) ) )
4039ibi 241 . . . . . 6  |-  ( ( A  mod  8 )  e.  ( 0 ... M )  ->  (
( A  mod  8
)  e.  ( 0 ... ( M  - 
1 ) )  \/  ( A  mod  8
)  =  M ) )
41 zcn 10639 . . . . . . . . 9  |-  ( N  e.  ZZ  ->  N  e.  CC )
4210, 41ax-mp 5 . . . . . . . 8  |-  N  e.  CC
43 zcn 10639 . . . . . . . . 9  |-  ( M  e.  ZZ  ->  M  e.  CC )
447, 43ax-mp 5 . . . . . . . 8  |-  M  e.  CC
4518, 44addcomi 9548 . . . . . . . . 9  |-  ( 1  +  M )  =  ( M  +  1 )
4645, 1eqtr4i 2456 . . . . . . . 8  |-  ( 1  +  M )  =  N
4742, 18, 44, 46subaddrii 9685 . . . . . . 7  |-  ( N  -  1 )  =  M
4847oveq2i 6091 . . . . . 6  |-  ( 0 ... ( N  - 
1 ) )  =  ( 0 ... M
)
4940, 48eleq2s 2525 . . . . 5  |-  ( ( A  mod  8 )  e.  ( 0 ... ( N  -  1 ) )  ->  (
( A  mod  8
)  e.  ( 0 ... ( M  - 
1 ) )  \/  ( A  mod  8
)  =  M ) )
5020eqcomi 2437 . . . . . . . . . 10  |-  ( 1  +  K )  =  M
5144, 18, 17, 50subaddrii 9685 . . . . . . . . 9  |-  ( M  -  1 )  =  K
5251oveq2i 6091 . . . . . . . 8  |-  ( 0 ... ( M  - 
1 ) )  =  ( 0 ... K
)
5352eleq2i 2497 . . . . . . 7  |-  ( ( A  mod  8 )  e.  ( 0 ... ( M  -  1 ) )  <->  ( A  mod  8 )  e.  ( 0 ... K ) )
543simp3i 992 . . . . . . 7  |-  ( ( A  e.  ZZ  /\  -.  2  ||  A )  ->  ( ( A  mod  8 )  e.  ( 0 ... K
)  ->  ( A  mod  8 )  e.  S
) )
5553, 54syl5bi 217 . . . . . 6  |-  ( ( A  e.  ZZ  /\  -.  2  ||  A )  ->  ( ( A  mod  8 )  e.  ( 0 ... ( M  -  1 ) )  ->  ( A  mod  8 )  e.  S
) )
56 2nn 10467 . . . . . . . . . . 11  |-  2  e.  NN
57 8nn 10473 . . . . . . . . . . 11  |-  8  e.  NN
58 4nn 10469 . . . . . . . . . . . . . . 15  |-  4  e.  NN
5958nnzi 10658 . . . . . . . . . . . . . 14  |-  4  e.  ZZ
60 dvdsmul2 13538 . . . . . . . . . . . . . 14  |-  ( ( 4  e.  ZZ  /\  2  e.  ZZ )  ->  2  ||  ( 4  x.  2 ) )
6159, 12, 60mp2an 665 . . . . . . . . . . . . 13  |-  2  ||  ( 4  x.  2 )
62 4t2e8 10463 . . . . . . . . . . . . 13  |-  ( 4  x.  2 )  =  8
6361, 62breqtri 4303 . . . . . . . . . . . 12  |-  2  ||  8
64 dvdsmod 13573 . . . . . . . . . . . 12  |-  ( ( ( 2  e.  NN  /\  8  e.  NN  /\  A  e.  ZZ )  /\  2  ||  8 )  ->  ( 2  ||  ( A  mod  8
)  <->  2  ||  A
) )
6563, 64mpan2 664 . . . . . . . . . . 11  |-  ( ( 2  e.  NN  /\  8  e.  NN  /\  A  e.  ZZ )  ->  (
2  ||  ( A  mod  8 )  <->  2  ||  A ) )
6656, 57, 65mp3an12 1297 . . . . . . . . . 10  |-  ( A  e.  ZZ  ->  (
2  ||  ( A  mod  8 )  <->  2  ||  A ) )
6766notbid 294 . . . . . . . . 9  |-  ( A  e.  ZZ  ->  ( -.  2  ||  ( A  mod  8 )  <->  -.  2  ||  A ) )
6867biimpar 482 . . . . . . . 8  |-  ( ( A  e.  ZZ  /\  -.  2  ||  A )  ->  -.  2  ||  ( A  mod  8
) )
6911, 2breqtrri 4305 . . . . . . . . 9  |-  2  ||  M
70 id 22 . . . . . . . . 9  |-  ( ( A  mod  8 )  =  M  ->  ( A  mod  8 )  =  M )
7169, 70syl5breqr 4316 . . . . . . . 8  |-  ( ( A  mod  8 )  =  M  ->  2  ||  ( A  mod  8
) )
7268, 71nsyl 121 . . . . . . 7  |-  ( ( A  e.  ZZ  /\  -.  2  ||  A )  ->  -.  ( A  mod  8 )  =  M )
7372pm2.21d 106 . . . . . 6  |-  ( ( A  e.  ZZ  /\  -.  2  ||  A )  ->  ( ( A  mod  8 )  =  M  ->  ( A  mod  8 )  e.  S
) )
7455, 73jaod 380 . . . . 5  |-  ( ( A  e.  ZZ  /\  -.  2  ||  A )  ->  ( ( ( A  mod  8 )  e.  ( 0 ... ( M  -  1 ) )  \/  ( A  mod  8 )  =  M )  ->  ( A  mod  8 )  e.  S ) )
7549, 74syl5 32 . . . 4  |-  ( ( A  e.  ZZ  /\  -.  2  ||  A )  ->  ( ( A  mod  8 )  e.  ( 0 ... ( N  -  1 ) )  ->  ( A  mod  8 )  e.  S
) )
76 lgsdir2lem2.4 . . . . . 6  |-  N  e.  S
77 eleq1 2493 . . . . . 6  |-  ( ( A  mod  8 )  =  N  ->  (
( A  mod  8
)  e.  S  <->  N  e.  S ) )
7876, 77mpbiri 233 . . . . 5  |-  ( ( A  mod  8 )  =  N  ->  ( A  mod  8 )  e.  S )
7978a1i 11 . . . 4  |-  ( ( A  e.  ZZ  /\  -.  2  ||  A )  ->  ( ( A  mod  8 )  =  N  ->  ( A  mod  8 )  e.  S
) )
8075, 79jaod 380 . . 3  |-  ( ( A  e.  ZZ  /\  -.  2  ||  A )  ->  ( ( ( A  mod  8 )  e.  ( 0 ... ( N  -  1 ) )  \/  ( A  mod  8 )  =  N )  ->  ( A  mod  8 )  e.  S ) )
8136, 80syl5 32 . 2  |-  ( ( A  e.  ZZ  /\  -.  2  ||  A )  ->  ( ( A  mod  8 )  e.  ( 0 ... N
)  ->  ( A  mod  8 )  e.  S
) )
8210, 32, 813pm3.2i 1159 1  |-  ( N  e.  ZZ  /\  2  ||  ( N  +  1 )  /\  ( ( A  e.  ZZ  /\  -.  2  ||  A )  ->  ( ( A  mod  8 )  e.  ( 0 ... N
)  ->  ( A  mod  8 )  e.  S
) ) )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 184    \/ wo 368    /\ wa 369    /\ w3a 958    = wceq 1362    e. wcel 1755   class class class wbr 4280   ` cfv 5406  (class class class)co 6080   CCcc 9268   0cc0 9270   1c1 9271    + caddc 9273    x. cmul 9275    - cmin 9583   NNcn 10310   2c2 10359   4c4 10361   8c8 10365   ZZcz 10634   ZZ>=cuz 10849   ...cfz 11424    mod cmo 11692    || cdivides 13518
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1594  ax-4 1605  ax-5 1669  ax-6 1707  ax-7 1727  ax-8 1757  ax-9 1759  ax-10 1774  ax-11 1779  ax-12 1791  ax-13 1942  ax-ext 2414  ax-sep 4401  ax-nul 4409  ax-pow 4458  ax-pr 4519  ax-un 6361  ax-cnex 9326  ax-resscn 9327  ax-1cn 9328  ax-icn 9329  ax-addcl 9330  ax-addrcl 9331  ax-mulcl 9332  ax-mulrcl 9333  ax-mulcom 9334  ax-addass 9335  ax-mulass 9336  ax-distr 9337  ax-i2m1 9338  ax-1ne0 9339  ax-1rid 9340  ax-rnegex 9341  ax-rrecex 9342  ax-cnre 9343  ax-pre-lttri 9344  ax-pre-lttrn 9345  ax-pre-ltadd 9346  ax-pre-mulgt0 9347  ax-pre-sup 9348
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 959  df-3an 960  df-tru 1365  df-ex 1590  df-nf 1593  df-sb 1700  df-eu 2258  df-mo 2259  df-clab 2420  df-cleq 2426  df-clel 2429  df-nfc 2558  df-ne 2598  df-nel 2599  df-ral 2710  df-rex 2711  df-reu 2712  df-rmo 2713  df-rab 2714  df-v 2964  df-sbc 3176  df-csb 3277  df-dif 3319  df-un 3321  df-in 3323  df-ss 3330  df-pss 3332  df-nul 3626  df-if 3780  df-pw 3850  df-sn 3866  df-pr 3868  df-tp 3870  df-op 3872  df-uni 4080  df-iun 4161  df-br 4281  df-opab 4339  df-mpt 4340  df-tr 4374  df-eprel 4619  df-id 4623  df-po 4628  df-so 4629  df-fr 4666  df-we 4668  df-ord 4709  df-on 4710  df-lim 4711  df-suc 4712  df-xp 4833  df-rel 4834  df-cnv 4835  df-co 4836  df-dm 4837  df-rn 4838  df-res 4839  df-ima 4840  df-iota 5369  df-fun 5408  df-fn 5409  df-f 5410  df-f1 5411  df-fo 5412  df-f1o 5413  df-fv 5414  df-riota 6039  df-ov 6083  df-oprab 6084  df-mpt2 6085  df-om 6466  df-1st 6566  df-2nd 6567  df-recs 6818  df-rdg 6852  df-er 7089  df-en 7299  df-dom 7300  df-sdom 7301  df-sup 7679  df-pnf 9408  df-mnf 9409  df-xr 9410  df-ltxr 9411  df-le 9412  df-sub 9585  df-neg 9586  df-div 9982  df-nn 10311  df-2 10368  df-3 10369  df-4 10370  df-5 10371  df-6 10372  df-7 10373  df-8 10374  df-n0 10568  df-z 10635  df-uz 10850  df-rp 10980  df-fz 11425  df-fl 11626  df-mod 11693  df-dvds 13519
This theorem is referenced by:  lgsdir2lem3  22549
  Copyright terms: Public domain W3C validator