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

Theorem 2lgslem3d1 15858
Description: Lemma 4 for 2lgslem3 15859. (Contributed by AV, 15-Jul-2021.)
Hypothesis
Ref Expression
2lgslem2.n  |-  N  =  ( ( ( P  -  1 )  / 
2 )  -  ( |_ `  ( P  / 
4 ) ) )
Assertion
Ref Expression
2lgslem3d1  |-  ( ( P  e.  NN  /\  ( P  mod  8
)  =  7 )  ->  ( N  mod  2 )  =  0 )

Proof of Theorem 2lgslem3d1
Dummy variable  k is distinct from all other variables.
StepHypRef Expression
1 nnnn0 9414 . . . 4  |-  ( P  e.  NN  ->  P  e.  NN0 )
2 8nn 9316 . . . . 5  |-  8  e.  NN
3 nnq 9872 . . . . 5  |-  ( 8  e.  NN  ->  8  e.  QQ )
42, 3mp1i 10 . . . 4  |-  ( P  e.  NN  ->  8  e.  QQ )
52nngt0i 9178 . . . . 5  |-  0  <  8
65a1i 9 . . . 4  |-  ( P  e.  NN  ->  0  <  8 )
7 modqmuladdnn0 10636 . . . 4  |-  ( ( P  e.  NN0  /\  8  e.  QQ  /\  0  <  8 )  ->  (
( P  mod  8
)  =  7  ->  E. k  e.  NN0  P  =  ( ( k  x.  8 )  +  7 ) ) )
81, 4, 6, 7syl3anc 1273 . . 3  |-  ( P  e.  NN  ->  (
( P  mod  8
)  =  7  ->  E. k  e.  NN0  P  =  ( ( k  x.  8 )  +  7 ) ) )
9 simpr 110 . . . . 5  |-  ( ( P  e.  NN  /\  k  e.  NN0 )  -> 
k  e.  NN0 )
10 nn0cn 9417 . . . . . . . . . . 11  |-  ( k  e.  NN0  ->  k  e.  CC )
11 8cn 9234 . . . . . . . . . . . 12  |-  8  e.  CC
1211a1i 9 . . . . . . . . . . 11  |-  ( k  e.  NN0  ->  8  e.  CC )
1310, 12mulcomd 8206 . . . . . . . . . 10  |-  ( k  e.  NN0  ->  ( k  x.  8 )  =  ( 8  x.  k
) )
1413adantl 277 . . . . . . . . 9  |-  ( ( P  e.  NN  /\  k  e.  NN0 )  -> 
( k  x.  8 )  =  ( 8  x.  k ) )
1514oveq1d 6038 . . . . . . . 8  |-  ( ( P  e.  NN  /\  k  e.  NN0 )  -> 
( ( k  x.  8 )  +  7 )  =  ( ( 8  x.  k )  +  7 ) )
1615eqeq2d 2242 . . . . . . 7  |-  ( ( P  e.  NN  /\  k  e.  NN0 )  -> 
( P  =  ( ( k  x.  8 )  +  7 )  <-> 
P  =  ( ( 8  x.  k )  +  7 ) ) )
1716biimpa 296 . . . . . 6  |-  ( ( ( P  e.  NN  /\  k  e.  NN0 )  /\  P  =  (
( k  x.  8 )  +  7 ) )  ->  P  =  ( ( 8  x.  k )  +  7 ) )
18 2lgslem2.n . . . . . . 7  |-  N  =  ( ( ( P  -  1 )  / 
2 )  -  ( |_ `  ( P  / 
4 ) ) )
19182lgslem3d 15854 . . . . . 6  |-  ( ( k  e.  NN0  /\  P  =  ( (
8  x.  k )  +  7 ) )  ->  N  =  ( ( 2  x.  k
)  +  2 ) )
209, 17, 19syl2an2r 599 . . . . 5  |-  ( ( ( P  e.  NN  /\  k  e.  NN0 )  /\  P  =  (
( k  x.  8 )  +  7 ) )  ->  N  =  ( ( 2  x.  k )  +  2 ) )
21 oveq1 6030 . . . . . 6  |-  ( N  =  ( ( 2  x.  k )  +  2 )  ->  ( N  mod  2 )  =  ( ( ( 2  x.  k )  +  2 )  mod  2
) )
22 2t1e2 9302 . . . . . . . . . . . 12  |-  ( 2  x.  1 )  =  2
2322eqcomi 2234 . . . . . . . . . . 11  |-  2  =  ( 2  x.  1 )
2423a1i 9 . . . . . . . . . 10  |-  ( k  e.  NN0  ->  2  =  ( 2  x.  1 ) )
2524oveq2d 6039 . . . . . . . . 9  |-  ( k  e.  NN0  ->  ( ( 2  x.  k )  +  2 )  =  ( ( 2  x.  k )  +  ( 2  x.  1 ) ) )
26 2cnd 9221 . . . . . . . . . 10  |-  ( k  e.  NN0  ->  2  e.  CC )
27 1cnd 8200 . . . . . . . . . 10  |-  ( k  e.  NN0  ->  1  e.  CC )
28 adddi 8169 . . . . . . . . . . 11  |-  ( ( 2  e.  CC  /\  k  e.  CC  /\  1  e.  CC )  ->  (
2  x.  ( k  +  1 ) )  =  ( ( 2  x.  k )  +  ( 2  x.  1 ) ) )
2928eqcomd 2236 . . . . . . . . . 10  |-  ( ( 2  e.  CC  /\  k  e.  CC  /\  1  e.  CC )  ->  (
( 2  x.  k
)  +  ( 2  x.  1 ) )  =  ( 2  x.  ( k  +  1 ) ) )
3026, 10, 27, 29syl3anc 1273 . . . . . . . . 9  |-  ( k  e.  NN0  ->  ( ( 2  x.  k )  +  ( 2  x.  1 ) )  =  ( 2  x.  (
k  +  1 ) ) )
3110, 27addcld 8204 . . . . . . . . . 10  |-  ( k  e.  NN0  ->  ( k  +  1 )  e.  CC )
3226, 31mulcomd 8206 . . . . . . . . 9  |-  ( k  e.  NN0  ->  ( 2  x.  ( k  +  1 ) )  =  ( ( k  +  1 )  x.  2 ) )
3325, 30, 323eqtrd 2267 . . . . . . . 8  |-  ( k  e.  NN0  ->  ( ( 2  x.  k )  +  2 )  =  ( ( k  +  1 )  x.  2 ) )
3433oveq1d 6038 . . . . . . 7  |-  ( k  e.  NN0  ->  ( ( ( 2  x.  k
)  +  2 )  mod  2 )  =  ( ( ( k  +  1 )  x.  2 )  mod  2
) )
35 peano2nn0 9447 . . . . . . . . 9  |-  ( k  e.  NN0  ->  ( k  +  1 )  e. 
NN0 )
3635nn0zd 9605 . . . . . . . 8  |-  ( k  e.  NN0  ->  ( k  +  1 )  e.  ZZ )
37 2nn 9310 . . . . . . . . 9  |-  2  e.  NN
38 nnq 9872 . . . . . . . . 9  |-  ( 2  e.  NN  ->  2  e.  QQ )
3937, 38mp1i 10 . . . . . . . 8  |-  ( k  e.  NN0  ->  2  e.  QQ )
4037nngt0i 9178 . . . . . . . . 9  |-  0  <  2
4140a1i 9 . . . . . . . 8  |-  ( k  e.  NN0  ->  0  <  2 )
42 mulqmod0 10598 . . . . . . . 8  |-  ( ( ( k  +  1 )  e.  ZZ  /\  2  e.  QQ  /\  0  <  2 )  ->  (
( ( k  +  1 )  x.  2 )  mod  2 )  =  0 )
4336, 39, 41, 42syl3anc 1273 . . . . . . 7  |-  ( k  e.  NN0  ->  ( ( ( k  +  1 )  x.  2 )  mod  2 )  =  0 )
4434, 43eqtrd 2263 . . . . . 6  |-  ( k  e.  NN0  ->  ( ( ( 2  x.  k
)  +  2 )  mod  2 )  =  0 )
4521, 44sylan9eqr 2285 . . . . 5  |-  ( ( k  e.  NN0  /\  N  =  ( (
2  x.  k )  +  2 ) )  ->  ( N  mod  2 )  =  0 )
469, 20, 45syl2an2r 599 . . . 4  |-  ( ( ( P  e.  NN  /\  k  e.  NN0 )  /\  P  =  (
( k  x.  8 )  +  7 ) )  ->  ( N  mod  2 )  =  0 )
4746rexlimdva2 2652 . . 3  |-  ( P  e.  NN  ->  ( E. k  e.  NN0  P  =  ( ( k  x.  8 )  +  7 )  ->  ( N  mod  2 )  =  0 ) )
488, 47syld 45 . 2  |-  ( P  e.  NN  ->  (
( P  mod  8
)  =  7  -> 
( N  mod  2
)  =  0 ) )
4948imp 124 1  |-  ( ( P  e.  NN  /\  ( P  mod  8
)  =  7 )  ->  ( N  mod  2 )  =  0 )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 104    /\ w3a 1004    = wceq 1397    e. wcel 2201   E.wrex 2510   class class class wbr 4089   ` cfv 5328  (class class class)co 6023   CCcc 8035   0cc0 8037   1c1 8038    + caddc 8040    x. cmul 8042    < clt 8219    - cmin 8355    / cdiv 8857   NNcn 9148   2c2 9199   4c4 9201   7c7 9204   8c8 9205   NN0cn0 9407   ZZcz 9484   QQcq 9858   |_cfl 10534    mod cmo 10590
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 619  ax-in2 620  ax-io 716  ax-5 1495  ax-7 1496  ax-gen 1497  ax-ie1 1541  ax-ie2 1542  ax-8 1552  ax-10 1553  ax-11 1554  ax-i12 1555  ax-bndl 1557  ax-4 1558  ax-17 1574  ax-i9 1578  ax-ial 1582  ax-i5r 1583  ax-13 2203  ax-14 2204  ax-ext 2212  ax-sep 4208  ax-pow 4266  ax-pr 4301  ax-un 4532  ax-setind 4637  ax-cnex 8128  ax-resscn 8129  ax-1cn 8130  ax-1re 8131  ax-icn 8132  ax-addcl 8133  ax-addrcl 8134  ax-mulcl 8135  ax-mulrcl 8136  ax-addcom 8137  ax-mulcom 8138  ax-addass 8139  ax-mulass 8140  ax-distr 8141  ax-i2m1 8142  ax-0lt1 8143  ax-1rid 8144  ax-0id 8145  ax-rnegex 8146  ax-precex 8147  ax-cnre 8148  ax-pre-ltirr 8149  ax-pre-ltwlin 8150  ax-pre-lttrn 8151  ax-pre-apti 8152  ax-pre-ltadd 8153  ax-pre-mulgt0 8154  ax-pre-mulext 8155  ax-arch 8156
This theorem depends on definitions:  df-bi 117  df-3or 1005  df-3an 1006  df-tru 1400  df-fal 1403  df-nf 1509  df-sb 1810  df-eu 2081  df-mo 2082  df-clab 2217  df-cleq 2223  df-clel 2226  df-nfc 2362  df-ne 2402  df-nel 2497  df-ral 2514  df-rex 2515  df-reu 2516  df-rmo 2517  df-rab 2518  df-v 2803  df-sbc 3031  df-csb 3127  df-dif 3201  df-un 3203  df-in 3205  df-ss 3212  df-pw 3655  df-sn 3676  df-pr 3677  df-op 3679  df-uni 3895  df-int 3930  df-iun 3973  df-br 4090  df-opab 4152  df-mpt 4153  df-id 4392  df-po 4395  df-iso 4396  df-xp 4733  df-rel 4734  df-cnv 4735  df-co 4736  df-dm 4737  df-rn 4738  df-res 4739  df-ima 4740  df-iota 5288  df-fun 5330  df-fn 5331  df-f 5332  df-fv 5336  df-riota 5976  df-ov 6026  df-oprab 6027  df-mpo 6028  df-1st 6308  df-2nd 6309  df-pnf 8221  df-mnf 8222  df-xr 8223  df-ltxr 8224  df-le 8225  df-sub 8357  df-neg 8358  df-reap 8760  df-ap 8767  df-div 8858  df-inn 9149  df-2 9207  df-3 9208  df-4 9209  df-5 9210  df-6 9211  df-7 9212  df-8 9213  df-n0 9408  df-z 9485  df-q 9859  df-rp 9894  df-ico 10134  df-fl 10536  df-mod 10591
This theorem is referenced by:  2lgslem3  15859
  Copyright terms: Public domain W3C validator