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

Theorem 2lgslem3c 15817
Description: Lemma for 2lgslem3c1 15821. (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 6020 . . . . 5  |-  ( P  =  ( ( 8  x.  K )  +  5 )  ->  ( P  -  1 )  =  ( ( ( 8  x.  K )  +  5 )  - 
1 ) )
32oveq1d 6028 . . . 4  |-  ( P  =  ( ( 8  x.  K )  +  5 )  ->  (
( P  -  1 )  /  2 )  =  ( ( ( ( 8  x.  K
)  +  5 )  -  1 )  / 
2 ) )
4 fvoveq1 6036 . . . 4  |-  ( P  =  ( ( 8  x.  K )  +  5 )  ->  ( |_ `  ( P  / 
4 ) )  =  ( |_ `  (
( ( 8  x.  K )  +  5 )  /  4 ) ) )
53, 4oveq12d 6031 . . 3  |-  ( P  =  ( ( 8  x.  K )  +  5 )  ->  (
( ( P  - 
1 )  /  2
)  -  ( |_
`  ( P  / 
4 ) ) )  =  ( ( ( ( ( 8  x.  K )  +  5 )  -  1 )  /  2 )  -  ( |_ `  ( ( ( 8  x.  K
)  +  5 )  /  4 ) ) ) )
61, 5eqtrid 2274 . 2  |-  ( P  =  ( ( 8  x.  K )  +  5 )  ->  N  =  ( ( ( ( ( 8  x.  K )  +  5 )  -  1 )  /  2 )  -  ( |_ `  ( ( ( 8  x.  K
)  +  5 )  /  4 ) ) ) )
7 8nn0 9418 . . . . . . . . . . 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 9453 . . . . . . . . 9  |-  ( K  e.  NN0  ->  ( 8  x.  K )  e. 
NN0 )
1110nn0cnd 9450 . . . . . . . 8  |-  ( K  e.  NN0  ->  ( 8  x.  K )  e.  CC )
12 5cn 9216 . . . . . . . . 9  |-  5  e.  CC
1312a1i 9 . . . . . . . 8  |-  ( K  e.  NN0  ->  5  e.  CC )
14 1cnd 8188 . . . . . . . 8  |-  ( K  e.  NN0  ->  1  e.  CC )
1511, 13, 14addsubassd 8503 . . . . . . 7  |-  ( K  e.  NN0  ->  ( ( ( 8  x.  K
)  +  5 )  -  1 )  =  ( ( 8  x.  K )  +  ( 5  -  1 ) ) )
16 4t2e8 9295 . . . . . . . . . . . 12  |-  ( 4  x.  2 )  =  8
1716eqcomi 2233 . . . . . . . . . . 11  |-  8  =  ( 4  x.  2 )
1817a1i 9 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  8  =  ( 4  x.  2 ) )
1918oveq1d 6028 . . . . . . . . 9  |-  ( K  e.  NN0  ->  ( 8  x.  K )  =  ( ( 4  x.  2 )  x.  K
) )
20 4cn 9214 . . . . . . . . . . 11  |-  4  e.  CC
2120a1i 9 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  4  e.  CC )
22 2cn 9207 . . . . . . . . . . 11  |-  2  e.  CC
2322a1i 9 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  2  e.  CC )
24 nn0cn 9405 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  K  e.  CC )
2521, 23, 24mul32d 8325 . . . . . . . . 9  |-  ( K  e.  NN0  ->  ( ( 4  x.  2 )  x.  K )  =  ( ( 4  x.  K )  x.  2 ) )
2619, 25eqtrd 2262 . . . . . . . 8  |-  ( K  e.  NN0  ->  ( 8  x.  K )  =  ( ( 4  x.  K )  x.  2 ) )
27 5m1e4 9258 . . . . . . . . 9  |-  ( 5  -  1 )  =  4
2827a1i 9 . . . . . . . 8  |-  ( K  e.  NN0  ->  ( 5  -  1 )  =  4 )
2926, 28oveq12d 6031 . . . . . . 7  |-  ( K  e.  NN0  ->  ( ( 8  x.  K )  +  ( 5  -  1 ) )  =  ( ( ( 4  x.  K )  x.  2 )  +  4 ) )
3015, 29eqtrd 2262 . . . . . 6  |-  ( K  e.  NN0  ->  ( ( ( 8  x.  K
)  +  5 )  -  1 )  =  ( ( ( 4  x.  K )  x.  2 )  +  4 ) )
3130oveq1d 6028 . . . . 5  |-  ( K  e.  NN0  ->  ( ( ( ( 8  x.  K )  +  5 )  -  1 )  /  2 )  =  ( ( ( ( 4  x.  K )  x.  2 )  +  4 )  /  2
) )
32 4nn0 9414 . . . . . . . . . 10  |-  4  e.  NN0
3332a1i 9 . . . . . . . . 9  |-  ( K  e.  NN0  ->  4  e. 
NN0 )
3433, 9nn0mulcld 9453 . . . . . . . 8  |-  ( K  e.  NN0  ->  ( 4  x.  K )  e. 
NN0 )
3534nn0cnd 9450 . . . . . . 7  |-  ( K  e.  NN0  ->  ( 4  x.  K )  e.  CC )
3635, 23mulcld 8193 . . . . . 6  |-  ( K  e.  NN0  ->  ( ( 4  x.  K )  x.  2 )  e.  CC )
37 2rp 9886 . . . . . . . 8  |-  2  e.  RR+
3837a1i 9 . . . . . . 7  |-  ( K  e.  NN0  ->  2  e.  RR+ )
3938rpap0d 9930 . . . . . 6  |-  ( K  e.  NN0  ->  2 #  0 )
4036, 21, 23, 39divdirapd 9002 . . . . 5  |-  ( K  e.  NN0  ->  ( ( ( ( 4  x.  K )  x.  2 )  +  4 )  /  2 )  =  ( ( ( ( 4  x.  K )  x.  2 )  / 
2 )  +  ( 4  /  2 ) ) )
4135, 23, 39divcanap4d 8969 . . . . . 6  |-  ( K  e.  NN0  ->  ( ( ( 4  x.  K
)  x.  2 )  /  2 )  =  ( 4  x.  K
) )
42 4d2e2 9297 . . . . . . 7  |-  ( 4  /  2 )  =  2
4342a1i 9 . . . . . 6  |-  ( K  e.  NN0  ->  ( 4  /  2 )  =  2 )
4441, 43oveq12d 6031 . . . . 5  |-  ( K  e.  NN0  ->  ( ( ( ( 4  x.  K )  x.  2 )  /  2 )  +  ( 4  / 
2 ) )  =  ( ( 4  x.  K )  +  2 ) )
4531, 40, 443eqtrd 2266 . . . 4  |-  ( K  e.  NN0  ->  ( ( ( ( 8  x.  K )  +  5 )  -  1 )  /  2 )  =  ( ( 4  x.  K )  +  2 ) )
46 4ap0 9235 . . . . . . . . 9  |-  4 #  0
4746a1i 9 . . . . . . . 8  |-  ( K  e.  NN0  ->  4 #  0 )
4811, 13, 21, 47divdirapd 9002 . . . . . . 7  |-  ( K  e.  NN0  ->  ( ( ( 8  x.  K
)  +  5 )  /  4 )  =  ( ( ( 8  x.  K )  / 
4 )  +  ( 5  /  4 ) ) )
49 8cn 9222 . . . . . . . . . . 11  |-  8  e.  CC
5049a1i 9 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  8  e.  CC )
5150, 24, 21, 47div23apd 9001 . . . . . . . . 9  |-  ( K  e.  NN0  ->  ( ( 8  x.  K )  /  4 )  =  ( ( 8  / 
4 )  x.  K
) )
5217oveq1i 6023 . . . . . . . . . . . 12  |-  ( 8  /  4 )  =  ( ( 4  x.  2 )  /  4
)
5322, 20, 46divcanap3i 8931 . . . . . . . . . . . 12  |-  ( ( 4  x.  2 )  /  4 )  =  2
5452, 53eqtri 2250 . . . . . . . . . . 11  |-  ( 8  /  4 )  =  2
5554a1i 9 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  ( 8  /  4 )  =  2 )
5655oveq1d 6028 . . . . . . . . 9  |-  ( K  e.  NN0  ->  ( ( 8  /  4 )  x.  K )  =  ( 2  x.  K
) )
5751, 56eqtrd 2262 . . . . . . . 8  |-  ( K  e.  NN0  ->  ( ( 8  x.  K )  /  4 )  =  ( 2  x.  K
) )
5857oveq1d 6028 . . . . . . 7  |-  ( K  e.  NN0  ->  ( ( ( 8  x.  K
)  /  4 )  +  ( 5  / 
4 ) )  =  ( ( 2  x.  K )  +  ( 5  /  4 ) ) )
5948, 58eqtrd 2262 . . . . . 6  |-  ( K  e.  NN0  ->  ( ( ( 8  x.  K
)  +  5 )  /  4 )  =  ( ( 2  x.  K )  +  ( 5  /  4 ) ) )
6059fveq2d 5639 . . . . 5  |-  ( K  e.  NN0  ->  ( |_
`  ( ( ( 8  x.  K )  +  5 )  / 
4 ) )  =  ( |_ `  (
( 2  x.  K
)  +  ( 5  /  4 ) ) ) )
61 1lt4 9311 . . . . . 6  |-  1  <  4
62 2nn0 9412 . . . . . . . . . . . 12  |-  2  e.  NN0
6362a1i 9 . . . . . . . . . . 11  |-  ( K  e.  NN0  ->  2  e. 
NN0 )
6463, 9nn0mulcld 9453 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  ( 2  x.  K )  e. 
NN0 )
6564nn0zd 9593 . . . . . . . . 9  |-  ( K  e.  NN0  ->  ( 2  x.  K )  e.  ZZ )
6665peano2zd 9598 . . . . . . . 8  |-  ( K  e.  NN0  ->  ( ( 2  x.  K )  +  1 )  e.  ZZ )
67 1nn0 9411 . . . . . . . . 9  |-  1  e.  NN0
6867a1i 9 . . . . . . . 8  |-  ( K  e.  NN0  ->  1  e. 
NN0 )
69 4nn 9300 . . . . . . . . 9  |-  4  e.  NN
7069a1i 9 . . . . . . . 8  |-  ( K  e.  NN0  ->  4  e.  NN )
71 adddivflid 10545 . . . . . . . 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 1271 . . . . . . 7  |-  ( K  e.  NN0  ->  ( 1  <  4  <->  ( |_ `  ( ( ( 2  x.  K )  +  1 )  +  ( 1  /  4 ) ) )  =  ( ( 2  x.  K
)  +  1 ) ) )
7323, 24mulcld 8193 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  ( 2  x.  K )  e.  CC )
7421, 47recclapd 8954 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  ( 1  /  4 )  e.  CC )
7573, 14, 74addassd 8195 . . . . . . . . 9  |-  ( K  e.  NN0  ->  ( ( ( 2  x.  K
)  +  1 )  +  ( 1  / 
4 ) )  =  ( ( 2  x.  K )  +  ( 1  +  ( 1  /  4 ) ) ) )
76 df-5 9198 . . . . . . . . . . . . . 14  |-  5  =  ( 4  +  1 )
7776oveq1i 6023 . . . . . . . . . . . . 13  |-  ( 5  /  4 )  =  ( ( 4  +  1 )  /  4
)
78 ax-1cn 8118 . . . . . . . . . . . . . 14  |-  1  e.  CC
7920, 78, 20, 46divdirapi 8942 . . . . . . . . . . . . 13  |-  ( ( 4  +  1 )  /  4 )  =  ( ( 4  / 
4 )  +  ( 1  /  4 ) )
8020, 46dividapi 8918 . . . . . . . . . . . . . 14  |-  ( 4  /  4 )  =  1
8180oveq1i 6023 . . . . . . . . . . . . 13  |-  ( ( 4  /  4 )  +  ( 1  / 
4 ) )  =  ( 1  +  ( 1  /  4 ) )
8277, 79, 813eqtri 2254 . . . . . . . . . . . 12  |-  ( 5  /  4 )  =  ( 1  +  ( 1  /  4 ) )
8382a1i 9 . . . . . . . . . . 11  |-  ( K  e.  NN0  ->  ( 5  /  4 )  =  ( 1  +  ( 1  /  4 ) ) )
8483eqcomd 2235 . . . . . . . . . 10  |-  ( K  e.  NN0  ->  ( 1  +  ( 1  / 
4 ) )  =  ( 5  /  4
) )
8584oveq2d 6029 . . . . . . . . 9  |-  ( K  e.  NN0  ->  ( ( 2  x.  K )  +  ( 1  +  ( 1  /  4
) ) )  =  ( ( 2  x.  K )  +  ( 5  /  4 ) ) )
8675, 85eqtrd 2262 . . . . . . . 8  |-  ( K  e.  NN0  ->  ( ( ( 2  x.  K
)  +  1 )  +  ( 1  / 
4 ) )  =  ( ( 2  x.  K )  +  ( 5  /  4 ) ) )
8786fveqeq2d 5643 . . . . . . 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 2262 . . . 4  |-  ( K  e.  NN0  ->  ( |_
`  ( ( ( 8  x.  K )  +  5 )  / 
4 ) )  =  ( ( 2  x.  K )  +  1 ) )
9145, 90oveq12d 6031 . . 3  |-  ( K  e.  NN0  ->  ( ( ( ( ( 8  x.  K )  +  5 )  -  1 )  /  2 )  -  ( |_ `  ( ( ( 8  x.  K )  +  5 )  /  4
) ) )  =  ( ( ( 4  x.  K )  +  2 )  -  (
( 2  x.  K
)  +  1 ) ) )
9264nn0cnd 9450 . . . 4  |-  ( K  e.  NN0  ->  ( 2  x.  K )  e.  CC )
9335, 23, 92, 14addsub4d 8530 . . 3  |-  ( K  e.  NN0  ->  ( ( ( 4  x.  K
)  +  2 )  -  ( ( 2  x.  K )  +  1 ) )  =  ( ( ( 4  x.  K )  -  ( 2  x.  K
) )  +  ( 2  -  1 ) ) )
94 2t2e4 9291 . . . . . . . . . 10  |-  ( 2  x.  2 )  =  4
9594eqcomi 2233 . . . . . . . . 9  |-  4  =  ( 2  x.  2 )
9695a1i 9 . . . . . . . 8  |-  ( K  e.  NN0  ->  4  =  ( 2  x.  2 ) )
9796oveq1d 6028 . . . . . . 7  |-  ( K  e.  NN0  ->  ( 4  x.  K )  =  ( ( 2  x.  2 )  x.  K
) )
9823, 23, 24mulassd 8196 . . . . . . 7  |-  ( K  e.  NN0  ->  ( ( 2  x.  2 )  x.  K )  =  ( 2  x.  (
2  x.  K ) ) )
9997, 98eqtrd 2262 . . . . . 6  |-  ( K  e.  NN0  ->  ( 4  x.  K )  =  ( 2  x.  (
2  x.  K ) ) )
10099oveq1d 6028 . . . . 5  |-  ( K  e.  NN0  ->  ( ( 4  x.  K )  -  ( 2  x.  K ) )  =  ( ( 2  x.  ( 2  x.  K
) )  -  (
2  x.  K ) ) )
101 2txmxeqx 9268 . . . . . 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 2262 . . . 4  |-  ( K  e.  NN0  ->  ( ( 4  x.  K )  -  ( 2  x.  K ) )  =  ( 2  x.  K
) )
104 2m1e1 9254 . . . . 5  |-  ( 2  -  1 )  =  1
105104a1i 9 . . . 4  |-  ( K  e.  NN0  ->  ( 2  -  1 )  =  1 )
106103, 105oveq12d 6031 . . 3  |-  ( K  e.  NN0  ->  ( ( ( 4  x.  K
)  -  ( 2  x.  K ) )  +  ( 2  -  1 ) )  =  ( ( 2  x.  K )  +  1 ) )
10791, 93, 1063eqtrd 2266 . 2  |-  ( K  e.  NN0  ->  ( ( ( ( ( 8  x.  K )  +  5 )  -  1 )  /  2 )  -  ( |_ `  ( ( ( 8  x.  K )  +  5 )  /  4
) ) )  =  ( ( 2  x.  K )  +  1 ) )
1086, 107sylan9eqr 2284 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 1395    e. wcel 2200   class class class wbr 4086   ` cfv 5324  (class class class)co 6013   CCcc 8023   0cc0 8025   1c1 8026    + caddc 8028    x. cmul 8030    < clt 8207    - cmin 8343   # cap 8754    / cdiv 8845   NNcn 9136   2c2 9187   4c4 9189   5c5 9190   8c8 9193   NN0cn0 9395   ZZcz 9472   RR+crp 9881   |_cfl 10521
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 617  ax-in2 618  ax-io 714  ax-5 1493  ax-7 1494  ax-gen 1495  ax-ie1 1539  ax-ie2 1540  ax-8 1550  ax-10 1551  ax-11 1552  ax-i12 1553  ax-bndl 1555  ax-4 1556  ax-17 1572  ax-i9 1576  ax-ial 1580  ax-i5r 1581  ax-13 2202  ax-14 2203  ax-ext 2211  ax-sep 4205  ax-pow 4262  ax-pr 4297  ax-un 4528  ax-setind 4633  ax-cnex 8116  ax-resscn 8117  ax-1cn 8118  ax-1re 8119  ax-icn 8120  ax-addcl 8121  ax-addrcl 8122  ax-mulcl 8123  ax-mulrcl 8124  ax-addcom 8125  ax-mulcom 8126  ax-addass 8127  ax-mulass 8128  ax-distr 8129  ax-i2m1 8130  ax-0lt1 8131  ax-1rid 8132  ax-0id 8133  ax-rnegex 8134  ax-precex 8135  ax-cnre 8136  ax-pre-ltirr 8137  ax-pre-ltwlin 8138  ax-pre-lttrn 8139  ax-pre-apti 8140  ax-pre-ltadd 8141  ax-pre-mulgt0 8142  ax-pre-mulext 8143  ax-arch 8144
This theorem depends on definitions:  df-bi 117  df-3or 1003  df-3an 1004  df-tru 1398  df-fal 1401  df-nf 1507  df-sb 1809  df-eu 2080  df-mo 2081  df-clab 2216  df-cleq 2222  df-clel 2225  df-nfc 2361  df-ne 2401  df-nel 2496  df-ral 2513  df-rex 2514  df-reu 2515  df-rmo 2516  df-rab 2517  df-v 2802  df-sbc 3030  df-csb 3126  df-dif 3200  df-un 3202  df-in 3204  df-ss 3211  df-pw 3652  df-sn 3673  df-pr 3674  df-op 3676  df-uni 3892  df-int 3927  df-iun 3970  df-br 4087  df-opab 4149  df-mpt 4150  df-id 4388  df-po 4391  df-iso 4392  df-xp 4729  df-rel 4730  df-cnv 4731  df-co 4732  df-dm 4733  df-rn 4734  df-res 4735  df-ima 4736  df-iota 5284  df-fun 5326  df-fn 5327  df-f 5328  df-fv 5332  df-riota 5966  df-ov 6016  df-oprab 6017  df-mpo 6018  df-1st 6298  df-2nd 6299  df-pnf 8209  df-mnf 8210  df-xr 8211  df-ltxr 8212  df-le 8213  df-sub 8345  df-neg 8346  df-reap 8748  df-ap 8755  df-div 8846  df-inn 9137  df-2 9195  df-3 9196  df-4 9197  df-5 9198  df-6 9199  df-7 9200  df-8 9201  df-n0 9396  df-z 9473  df-q 9847  df-rp 9882  df-fl 10523
This theorem is referenced by:  2lgslem3c1  15821
  Copyright terms: Public domain W3C validator