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

Theorem 2lgslem3c 15966
Description: Lemma for 2lgslem3c1 15970. (Contributed by AV, 16-Jul-2021.)
Hypothesis
Ref Expression
2lgslem2.n  |-  N  =  ( ( ( P  -  1 )  / 
2 )  -  ( |_ `  ( P  / 
4 ) ) )
Assertion
Ref Expression
2lgslem3c  |-  ( ( K  e.  NN0  /\  P  =  ( (
8  x.  K )  +  5 ) )  ->  N  =  ( ( 2  x.  K
)  +  1 ) )

Proof of Theorem 2lgslem3c
StepHypRef Expression
1 2lgslem2.n . . 3  |-  N  =  ( ( ( P  -  1 )  / 
2 )  -  ( |_ `  ( P  / 
4 ) ) )
2 oveq1 6057 . . . . 5  |-  ( P  =  ( ( 8  x.  K )  +  5 )  ->  ( P  -  1 )  =  ( ( ( 8  x.  K )  +  5 )  - 
1 ) )
32oveq1d 6065 . . . 4  |-  ( P  =  ( ( 8  x.  K )  +  5 )  ->  (
( P  -  1 )  /  2 )  =  ( ( ( ( 8  x.  K
)  +  5 )  -  1 )  / 
2 ) )
4 fvoveq1 6073 . . . 4  |-  ( P  =  ( ( 8  x.  K )  +  5 )  ->  ( |_ `  ( P  / 
4 ) )  =  ( |_ `  (
( ( 8  x.  K )  +  5 )  /  4 ) ) )
53, 4oveq12d 6068 . . 3  |-  ( P  =  ( ( 8  x.  K )  +  5 )  ->  (
( ( P  - 
1 )  /  2
)  -  ( |_
`  ( P  / 
4 ) ) )  =  ( ( ( ( ( 8  x.  K )  +  5 )  -  1 )  /  2 )  -  ( |_ `  ( ( ( 8  x.  K
)  +  5 )  /  4 ) ) ) )
61, 5eqtrid 2277 . 2  |-  ( P  =  ( ( 8  x.  K )  +  5 )  ->  N  =  ( ( ( ( ( 8  x.  K )  +  5 )  -  1 )  /  2 )  -  ( |_ `  ( ( ( 8  x.  K
)  +  5 )  /  4 ) ) ) )
7 8nn0 9519 . . . . . . . . . . 11  |-  8  e.  NN0
87a1i 9 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  8  e. 
NN0 )
9 id 19 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  K  e. 
NN0 )
108, 9nn0mulcld 9558 . . . . . . . . 9  |-  ( K  e.  NN0  ->  ( 8  x.  K )  e. 
NN0 )
1110nn0cnd 9555 . . . . . . . 8  |-  ( K  e.  NN0  ->  ( 8  x.  K )  e.  CC )
12 5cn 9317 . . . . . . . . 9  |-  5  e.  CC
1312a1i 9 . . . . . . . 8  |-  ( K  e.  NN0  ->  5  e.  CC )
14 1cnd 8290 . . . . . . . 8  |-  ( K  e.  NN0  ->  1  e.  CC )
1511, 13, 14addsubassd 8604 . . . . . . 7  |-  ( K  e.  NN0  ->  ( ( ( 8  x.  K
)  +  5 )  -  1 )  =  ( ( 8  x.  K )  +  ( 5  -  1 ) ) )
16 4t2e8 9396 . . . . . . . . . . . 12  |-  ( 4  x.  2 )  =  8
1716eqcomi 2236 . . . . . . . . . . 11  |-  8  =  ( 4  x.  2 )
1817a1i 9 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  8  =  ( 4  x.  2 ) )
1918oveq1d 6065 . . . . . . . . 9  |-  ( K  e.  NN0  ->  ( 8  x.  K )  =  ( ( 4  x.  2 )  x.  K
) )
20 4cn 9315 . . . . . . . . . . 11  |-  4  e.  CC
2120a1i 9 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  4  e.  CC )
22 2cn 9308 . . . . . . . . . . 11  |-  2  e.  CC
2322a1i 9 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  2  e.  CC )
24 nn0cn 9506 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  K  e.  CC )
2521, 23, 24mul32d 8426 . . . . . . . . 9  |-  ( K  e.  NN0  ->  ( ( 4  x.  2 )  x.  K )  =  ( ( 4  x.  K )  x.  2 ) )
2619, 25eqtrd 2265 . . . . . . . 8  |-  ( K  e.  NN0  ->  ( 8  x.  K )  =  ( ( 4  x.  K )  x.  2 ) )
27 5m1e4 9359 . . . . . . . . 9  |-  ( 5  -  1 )  =  4
2827a1i 9 . . . . . . . 8  |-  ( K  e.  NN0  ->  ( 5  -  1 )  =  4 )
2926, 28oveq12d 6068 . . . . . . 7  |-  ( K  e.  NN0  ->  ( ( 8  x.  K )  +  ( 5  -  1 ) )  =  ( ( ( 4  x.  K )  x.  2 )  +  4 ) )
3015, 29eqtrd 2265 . . . . . 6  |-  ( K  e.  NN0  ->  ( ( ( 8  x.  K
)  +  5 )  -  1 )  =  ( ( ( 4  x.  K )  x.  2 )  +  4 ) )
3130oveq1d 6065 . . . . 5  |-  ( K  e.  NN0  ->  ( ( ( ( 8  x.  K )  +  5 )  -  1 )  /  2 )  =  ( ( ( ( 4  x.  K )  x.  2 )  +  4 )  /  2
) )
32 4nn0 9515 . . . . . . . . . 10  |-  4  e.  NN0
3332a1i 9 . . . . . . . . 9  |-  ( K  e.  NN0  ->  4  e. 
NN0 )
3433, 9nn0mulcld 9558 . . . . . . . 8  |-  ( K  e.  NN0  ->  ( 4  x.  K )  e. 
NN0 )
3534nn0cnd 9555 . . . . . . 7  |-  ( K  e.  NN0  ->  ( 4  x.  K )  e.  CC )
3635, 23mulcld 8294 . . . . . 6  |-  ( K  e.  NN0  ->  ( ( 4  x.  K )  x.  2 )  e.  CC )
37 2rp 9991 . . . . . . . 8  |-  2  e.  RR+
3837a1i 9 . . . . . . 7  |-  ( K  e.  NN0  ->  2  e.  RR+ )
3938rpap0d 10035 . . . . . 6  |-  ( K  e.  NN0  ->  2 #  0 )
4036, 21, 23, 39divdirapd 9103 . . . . 5  |-  ( K  e.  NN0  ->  ( ( ( ( 4  x.  K )  x.  2 )  +  4 )  /  2 )  =  ( ( ( ( 4  x.  K )  x.  2 )  / 
2 )  +  ( 4  /  2 ) ) )
4135, 23, 39divcanap4d 9070 . . . . . 6  |-  ( K  e.  NN0  ->  ( ( ( 4  x.  K
)  x.  2 )  /  2 )  =  ( 4  x.  K
) )
42 4d2e2 9398 . . . . . . 7  |-  ( 4  /  2 )  =  2
4342a1i 9 . . . . . 6  |-  ( K  e.  NN0  ->  ( 4  /  2 )  =  2 )
4441, 43oveq12d 6068 . . . . 5  |-  ( K  e.  NN0  ->  ( ( ( ( 4  x.  K )  x.  2 )  /  2 )  +  ( 4  / 
2 ) )  =  ( ( 4  x.  K )  +  2 ) )
4531, 40, 443eqtrd 2269 . . . 4  |-  ( K  e.  NN0  ->  ( ( ( ( 8  x.  K )  +  5 )  -  1 )  /  2 )  =  ( ( 4  x.  K )  +  2 ) )
46 4ap0 9336 . . . . . . . . 9  |-  4 #  0
4746a1i 9 . . . . . . . 8  |-  ( K  e.  NN0  ->  4 #  0 )
4811, 13, 21, 47divdirapd 9103 . . . . . . 7  |-  ( K  e.  NN0  ->  ( ( ( 8  x.  K
)  +  5 )  /  4 )  =  ( ( ( 8  x.  K )  / 
4 )  +  ( 5  /  4 ) ) )
49 8cn 9323 . . . . . . . . . . 11  |-  8  e.  CC
5049a1i 9 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  8  e.  CC )
5150, 24, 21, 47div23apd 9102 . . . . . . . . 9  |-  ( K  e.  NN0  ->  ( ( 8  x.  K )  /  4 )  =  ( ( 8  / 
4 )  x.  K
) )
5217oveq1i 6060 . . . . . . . . . . . 12  |-  ( 8  /  4 )  =  ( ( 4  x.  2 )  /  4
)
5322, 20, 46divcanap3i 9032 . . . . . . . . . . . 12  |-  ( ( 4  x.  2 )  /  4 )  =  2
5452, 53eqtri 2253 . . . . . . . . . . 11  |-  ( 8  /  4 )  =  2
5554a1i 9 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  ( 8  /  4 )  =  2 )
5655oveq1d 6065 . . . . . . . . 9  |-  ( K  e.  NN0  ->  ( ( 8  /  4 )  x.  K )  =  ( 2  x.  K
) )
5751, 56eqtrd 2265 . . . . . . . 8  |-  ( K  e.  NN0  ->  ( ( 8  x.  K )  /  4 )  =  ( 2  x.  K
) )
5857oveq1d 6065 . . . . . . 7  |-  ( K  e.  NN0  ->  ( ( ( 8  x.  K
)  /  4 )  +  ( 5  / 
4 ) )  =  ( ( 2  x.  K )  +  ( 5  /  4 ) ) )
5948, 58eqtrd 2265 . . . . . 6  |-  ( K  e.  NN0  ->  ( ( ( 8  x.  K
)  +  5 )  /  4 )  =  ( ( 2  x.  K )  +  ( 5  /  4 ) ) )
6059fveq2d 5674 . . . . 5  |-  ( K  e.  NN0  ->  ( |_
`  ( ( ( 8  x.  K )  +  5 )  / 
4 ) )  =  ( |_ `  (
( 2  x.  K
)  +  ( 5  /  4 ) ) ) )
61 1lt4 9412 . . . . . 6  |-  1  <  4
62 2nn0 9513 . . . . . . . . . . . 12  |-  2  e.  NN0
6362a1i 9 . . . . . . . . . . 11  |-  ( K  e.  NN0  ->  2  e. 
NN0 )
6463, 9nn0mulcld 9558 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  ( 2  x.  K )  e. 
NN0 )
6564nn0zd 9698 . . . . . . . . 9  |-  ( K  e.  NN0  ->  ( 2  x.  K )  e.  ZZ )
6665peano2zd 9703 . . . . . . . 8  |-  ( K  e.  NN0  ->  ( ( 2  x.  K )  +  1 )  e.  ZZ )
67 1nn0 9512 . . . . . . . . 9  |-  1  e.  NN0
6867a1i 9 . . . . . . . 8  |-  ( K  e.  NN0  ->  1  e. 
NN0 )
69 4nn 9401 . . . . . . . . 9  |-  4  e.  NN
7069a1i 9 . . . . . . . 8  |-  ( K  e.  NN0  ->  4  e.  NN )
71 adddivflid 10652 . . . . . . . 8  |-  ( ( ( ( 2  x.  K )  +  1 )  e.  ZZ  /\  1  e.  NN0  /\  4  e.  NN )  ->  (
1  <  4  <->  ( |_ `  ( ( ( 2  x.  K )  +  1 )  +  ( 1  /  4 ) ) )  =  ( ( 2  x.  K
)  +  1 ) ) )
7266, 68, 70, 71syl3anc 1274 . . . . . . 7  |-  ( K  e.  NN0  ->  ( 1  <  4  <->  ( |_ `  ( ( ( 2  x.  K )  +  1 )  +  ( 1  /  4 ) ) )  =  ( ( 2  x.  K
)  +  1 ) ) )
7323, 24mulcld 8294 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  ( 2  x.  K )  e.  CC )
7421, 47recclapd 9055 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  ( 1  /  4 )  e.  CC )
7573, 14, 74addassd 8296 . . . . . . . . 9  |-  ( K  e.  NN0  ->  ( ( ( 2  x.  K
)  +  1 )  +  ( 1  / 
4 ) )  =  ( ( 2  x.  K )  +  ( 1  +  ( 1  /  4 ) ) ) )
76 df-5 9299 . . . . . . . . . . . . . 14  |-  5  =  ( 4  +  1 )
7776oveq1i 6060 . . . . . . . . . . . . 13  |-  ( 5  /  4 )  =  ( ( 4  +  1 )  /  4
)
78 ax-1cn 8220 . . . . . . . . . . . . . 14  |-  1  e.  CC
7920, 78, 20, 46divdirapi 9043 . . . . . . . . . . . . 13  |-  ( ( 4  +  1 )  /  4 )  =  ( ( 4  / 
4 )  +  ( 1  /  4 ) )
8020, 46dividapi 9019 . . . . . . . . . . . . . 14  |-  ( 4  /  4 )  =  1
8180oveq1i 6060 . . . . . . . . . . . . 13  |-  ( ( 4  /  4 )  +  ( 1  / 
4 ) )  =  ( 1  +  ( 1  /  4 ) )
8277, 79, 813eqtri 2257 . . . . . . . . . . . 12  |-  ( 5  /  4 )  =  ( 1  +  ( 1  /  4 ) )
8382a1i 9 . . . . . . . . . . 11  |-  ( K  e.  NN0  ->  ( 5  /  4 )  =  ( 1  +  ( 1  /  4 ) ) )
8483eqcomd 2238 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  ( 1  +  ( 1  / 
4 ) )  =  ( 5  /  4
) )
8584oveq2d 6066 . . . . . . . . 9  |-  ( K  e.  NN0  ->  ( ( 2  x.  K )  +  ( 1  +  ( 1  /  4
) ) )  =  ( ( 2  x.  K )  +  ( 5  /  4 ) ) )
8675, 85eqtrd 2265 . . . . . . . 8  |-  ( K  e.  NN0  ->  ( ( ( 2  x.  K
)  +  1 )  +  ( 1  / 
4 ) )  =  ( ( 2  x.  K )  +  ( 5  /  4 ) ) )
8786fveqeq2d 5678 . . . . . . 7  |-  ( K  e.  NN0  ->  ( ( |_ `  ( ( ( 2  x.  K
)  +  1 )  +  ( 1  / 
4 ) ) )  =  ( ( 2  x.  K )  +  1 )  <->  ( |_ `  ( ( 2  x.  K )  +  ( 5  /  4 ) ) )  =  ( ( 2  x.  K
)  +  1 ) ) )
8872, 87bitrd 188 . . . . . 6  |-  ( K  e.  NN0  ->  ( 1  <  4  <->  ( |_ `  ( ( 2  x.  K )  +  ( 5  /  4 ) ) )  =  ( ( 2  x.  K
)  +  1 ) ) )
8961, 88mpbii 148 . . . . 5  |-  ( K  e.  NN0  ->  ( |_
`  ( ( 2  x.  K )  +  ( 5  /  4
) ) )  =  ( ( 2  x.  K )  +  1 ) )
9060, 89eqtrd 2265 . . . 4  |-  ( K  e.  NN0  ->  ( |_
`  ( ( ( 8  x.  K )  +  5 )  / 
4 ) )  =  ( ( 2  x.  K )  +  1 ) )
9145, 90oveq12d 6068 . . 3  |-  ( K  e.  NN0  ->  ( ( ( ( ( 8  x.  K )  +  5 )  -  1 )  /  2 )  -  ( |_ `  ( ( ( 8  x.  K )  +  5 )  /  4
) ) )  =  ( ( ( 4  x.  K )  +  2 )  -  (
( 2  x.  K
)  +  1 ) ) )
9264nn0cnd 9555 . . . 4  |-  ( K  e.  NN0  ->  ( 2  x.  K )  e.  CC )
9335, 23, 92, 14addsub4d 8631 . . 3  |-  ( K  e.  NN0  ->  ( ( ( 4  x.  K
)  +  2 )  -  ( ( 2  x.  K )  +  1 ) )  =  ( ( ( 4  x.  K )  -  ( 2  x.  K
) )  +  ( 2  -  1 ) ) )
94 2t2e4 9392 . . . . . . . . . 10  |-  ( 2  x.  2 )  =  4
9594eqcomi 2236 . . . . . . . . 9  |-  4  =  ( 2  x.  2 )
9695a1i 9 . . . . . . . 8  |-  ( K  e.  NN0  ->  4  =  ( 2  x.  2 ) )
9796oveq1d 6065 . . . . . . 7  |-  ( K  e.  NN0  ->  ( 4  x.  K )  =  ( ( 2  x.  2 )  x.  K
) )
9823, 23, 24mulassd 8297 . . . . . . 7  |-  ( K  e.  NN0  ->  ( ( 2  x.  2 )  x.  K )  =  ( 2  x.  (
2  x.  K ) ) )
9997, 98eqtrd 2265 . . . . . 6  |-  ( K  e.  NN0  ->  ( 4  x.  K )  =  ( 2  x.  (
2  x.  K ) ) )
10099oveq1d 6065 . . . . 5  |-  ( K  e.  NN0  ->  ( ( 4  x.  K )  -  ( 2  x.  K ) )  =  ( ( 2  x.  ( 2  x.  K
) )  -  (
2  x.  K ) ) )
101 2txmxeqx 9369 . . . . . 6  |-  ( ( 2  x.  K )  e.  CC  ->  (
( 2  x.  (
2  x.  K ) )  -  ( 2  x.  K ) )  =  ( 2  x.  K ) )
10292, 101syl 14 . . . . 5  |-  ( K  e.  NN0  ->  ( ( 2  x.  ( 2  x.  K ) )  -  ( 2  x.  K ) )  =  ( 2  x.  K
) )
103100, 102eqtrd 2265 . . . 4  |-  ( K  e.  NN0  ->  ( ( 4  x.  K )  -  ( 2  x.  K ) )  =  ( 2  x.  K
) )
104 2m1e1 9355 . . . . 5  |-  ( 2  -  1 )  =  1
105104a1i 9 . . . 4  |-  ( K  e.  NN0  ->  ( 2  -  1 )  =  1 )
106103, 105oveq12d 6068 . . 3  |-  ( K  e.  NN0  ->  ( ( ( 4  x.  K
)  -  ( 2  x.  K ) )  +  ( 2  -  1 ) )  =  ( ( 2  x.  K )  +  1 ) )
10791, 93, 1063eqtrd 2269 . 2  |-  ( K  e.  NN0  ->  ( ( ( ( ( 8  x.  K )  +  5 )  -  1 )  /  2 )  -  ( |_ `  ( ( ( 8  x.  K )  +  5 )  /  4
) ) )  =  ( ( 2  x.  K )  +  1 ) )
1086, 107sylan9eqr 2287 1  |-  ( ( K  e.  NN0  /\  P  =  ( (
8  x.  K )  +  5 ) )  ->  N  =  ( ( 2  x.  K
)  +  1 ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 104    <-> wb 105    = wceq 1398    e. wcel 2203   class class class wbr 4109   ` cfv 5352  (class class class)co 6050   CCcc 8125   0cc0 8127   1c1 8128    + caddc 8130    x. cmul 8132    < clt 8308    - cmin 8444   # cap 8855    / cdiv 8946   NNcn 9237   2c2 9288   4c4 9290   5c5 9291   8c8 9294   NN0cn0 9496   ZZcz 9577   RR+crp 9986   |_cfl 10628
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 717  ax-5 1496  ax-7 1497  ax-gen 1498  ax-ie1 1542  ax-ie2 1543  ax-8 1553  ax-10 1554  ax-11 1555  ax-i12 1556  ax-bndl 1558  ax-4 1559  ax-17 1575  ax-i9 1579  ax-ial 1583  ax-i5r 1584  ax-13 2205  ax-14 2206  ax-ext 2214  ax-sep 4228  ax-pow 4287  ax-pr 4322  ax-un 4554  ax-setind 4659  ax-cnex 8218  ax-resscn 8219  ax-1cn 8220  ax-1re 8221  ax-icn 8222  ax-addcl 8223  ax-addrcl 8224  ax-mulcl 8225  ax-mulrcl 8226  ax-addcom 8227  ax-mulcom 8228  ax-addass 8229  ax-mulass 8230  ax-distr 8231  ax-i2m1 8232  ax-0lt1 8233  ax-1rid 8234  ax-0id 8235  ax-rnegex 8236  ax-precex 8237  ax-cnre 8238  ax-pre-ltirr 8239  ax-pre-ltwlin 8240  ax-pre-lttrn 8241  ax-pre-apti 8242  ax-pre-ltadd 8243  ax-pre-mulgt0 8244  ax-pre-mulext 8245  ax-arch 8246
This theorem depends on definitions:  df-bi 117  df-3or 1006  df-3an 1007  df-tru 1401  df-fal 1404  df-nf 1510  df-sb 1812  df-eu 2083  df-mo 2084  df-clab 2219  df-cleq 2225  df-clel 2228  df-nfc 2373  df-ne 2413  df-nel 2508  df-ral 2525  df-rex 2526  df-reu 2527  df-rmo 2528  df-rab 2529  df-v 2815  df-sbc 3043  df-csb 3139  df-dif 3213  df-un 3215  df-in 3217  df-ss 3224  df-pw 3671  df-sn 3695  df-pr 3696  df-op 3698  df-uni 3915  df-int 3950  df-iun 3993  df-br 4110  df-opab 4172  df-mpt 4173  df-id 4414  df-po 4417  df-iso 4418  df-xp 4755  df-rel 4756  df-cnv 4757  df-co 4758  df-dm 4759  df-rn 4760  df-res 4761  df-ima 4762  df-iota 5312  df-fun 5354  df-fn 5355  df-f 5356  df-fv 5360  df-riota 6003  df-ov 6053  df-oprab 6054  df-mpo 6055  df-1st 6334  df-2nd 6335  df-pnf 8310  df-mnf 8311  df-xr 8312  df-ltxr 8313  df-le 8314  df-sub 8446  df-neg 8447  df-reap 8849  df-ap 8856  df-div 8947  df-inn 9238  df-2 9296  df-3 9297  df-4 9298  df-5 9299  df-6 9300  df-7 9301  df-8 9302  df-n0 9497  df-z 9578  df-q 9952  df-rp 9987  df-fl 10630
This theorem is referenced by:  2lgslem3c1  15970
  Copyright terms: Public domain W3C validator