MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  2lgslem1 Structured version   Visualization version   GIF version

Theorem 2lgslem1 26894
Description: Lemma 1 for 2lgs 26907. (Contributed by AV, 19-Jun-2021.)
Assertion
Ref Expression
2lgslem1 ((๐‘ƒ โˆˆ โ„™ โˆง ยฌ 2 โˆฅ ๐‘ƒ) โ†’ (โ™ฏโ€˜{๐‘ฅ โˆˆ โ„ค โˆฃ โˆƒ๐‘– โˆˆ (1...((๐‘ƒ โˆ’ 1) / 2))(๐‘ฅ = (๐‘– ยท 2) โˆง (๐‘ƒ / 2) < (๐‘ฅ mod ๐‘ƒ))}) = (((๐‘ƒ โˆ’ 1) / 2) โˆ’ (โŒŠโ€˜(๐‘ƒ / 4))))
Distinct variable group:   ๐‘ƒ,๐‘–,๐‘ฅ

Proof of Theorem 2lgslem1
Dummy variables ๐‘“ ๐‘ฆ are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 2lgslem1a 26891 . . 3 ((๐‘ƒ โˆˆ โ„™ โˆง ยฌ 2 โˆฅ ๐‘ƒ) โ†’ {๐‘ฅ โˆˆ โ„ค โˆฃ โˆƒ๐‘– โˆˆ (1...((๐‘ƒ โˆ’ 1) / 2))(๐‘ฅ = (๐‘– ยท 2) โˆง (๐‘ƒ / 2) < (๐‘ฅ mod ๐‘ƒ))} = {๐‘ฅ โˆˆ โ„ค โˆฃ โˆƒ๐‘– โˆˆ (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))๐‘ฅ = (๐‘– ยท 2)})
21fveq2d 6895 . 2 ((๐‘ƒ โˆˆ โ„™ โˆง ยฌ 2 โˆฅ ๐‘ƒ) โ†’ (โ™ฏโ€˜{๐‘ฅ โˆˆ โ„ค โˆฃ โˆƒ๐‘– โˆˆ (1...((๐‘ƒ โˆ’ 1) / 2))(๐‘ฅ = (๐‘– ยท 2) โˆง (๐‘ƒ / 2) < (๐‘ฅ mod ๐‘ƒ))}) = (โ™ฏโ€˜{๐‘ฅ โˆˆ โ„ค โˆฃ โˆƒ๐‘– โˆˆ (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))๐‘ฅ = (๐‘– ยท 2)}))
3 ovex 7441 . . 3 (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2)) โˆˆ V
43mptex 7224 . . . . 5 (๐‘ฆ โˆˆ (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2)) โ†ฆ (๐‘ฆ ยท 2)) โˆˆ V
5 f1oeq1 6821 . . . . 5 (๐‘“ = (๐‘ฆ โˆˆ (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2)) โ†ฆ (๐‘ฆ ยท 2)) โ†’ (๐‘“:(((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))โ€“1-1-ontoโ†’{๐‘ฅ โˆˆ โ„ค โˆฃ โˆƒ๐‘– โˆˆ (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))๐‘ฅ = (๐‘– ยท 2)} โ†” (๐‘ฆ โˆˆ (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2)) โ†ฆ (๐‘ฆ ยท 2)):(((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))โ€“1-1-ontoโ†’{๐‘ฅ โˆˆ โ„ค โˆฃ โˆƒ๐‘– โˆˆ (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))๐‘ฅ = (๐‘– ยท 2)}))
6 eqid 2732 . . . . . 6 (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2)) = (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))
7 eqid 2732 . . . . . 6 (๐‘ฆ โˆˆ (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2)) โ†ฆ (๐‘ฆ ยท 2)) = (๐‘ฆ โˆˆ (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2)) โ†ฆ (๐‘ฆ ยท 2))
86, 72lgslem1b 26892 . . . . 5 (๐‘ฆ โˆˆ (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2)) โ†ฆ (๐‘ฆ ยท 2)):(((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))โ€“1-1-ontoโ†’{๐‘ฅ โˆˆ โ„ค โˆฃ โˆƒ๐‘– โˆˆ (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))๐‘ฅ = (๐‘– ยท 2)}
94, 5, 8ceqsexv2d 3528 . . . 4 โˆƒ๐‘“ ๐‘“:(((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))โ€“1-1-ontoโ†’{๐‘ฅ โˆˆ โ„ค โˆฃ โˆƒ๐‘– โˆˆ (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))๐‘ฅ = (๐‘– ยท 2)}
109a1i 11 . . 3 ((๐‘ƒ โˆˆ โ„™ โˆง ยฌ 2 โˆฅ ๐‘ƒ) โ†’ โˆƒ๐‘“ ๐‘“:(((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))โ€“1-1-ontoโ†’{๐‘ฅ โˆˆ โ„ค โˆฃ โˆƒ๐‘– โˆˆ (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))๐‘ฅ = (๐‘– ยท 2)})
11 hasheqf1oi 14310 . . 3 ((((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2)) โˆˆ V โ†’ (โˆƒ๐‘“ ๐‘“:(((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))โ€“1-1-ontoโ†’{๐‘ฅ โˆˆ โ„ค โˆฃ โˆƒ๐‘– โˆˆ (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))๐‘ฅ = (๐‘– ยท 2)} โ†’ (โ™ฏโ€˜(((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))) = (โ™ฏโ€˜{๐‘ฅ โˆˆ โ„ค โˆฃ โˆƒ๐‘– โˆˆ (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))๐‘ฅ = (๐‘– ยท 2)})))
123, 10, 11mpsyl 68 . 2 ((๐‘ƒ โˆˆ โ„™ โˆง ยฌ 2 โˆฅ ๐‘ƒ) โ†’ (โ™ฏโ€˜(((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))) = (โ™ฏโ€˜{๐‘ฅ โˆˆ โ„ค โˆฃ โˆƒ๐‘– โˆˆ (((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))๐‘ฅ = (๐‘– ยท 2)}))
13 prmz 16611 . . . . . . . 8 (๐‘ƒ โˆˆ โ„™ โ†’ ๐‘ƒ โˆˆ โ„ค)
1413zred 12665 . . . . . . 7 (๐‘ƒ โˆˆ โ„™ โ†’ ๐‘ƒ โˆˆ โ„)
15 4re 12295 . . . . . . . 8 4 โˆˆ โ„
1615a1i 11 . . . . . . 7 (๐‘ƒ โˆˆ โ„™ โ†’ 4 โˆˆ โ„)
17 4ne0 12319 . . . . . . . 8 4 โ‰  0
1817a1i 11 . . . . . . 7 (๐‘ƒ โˆˆ โ„™ โ†’ 4 โ‰  0)
1914, 16, 18redivcld 12041 . . . . . 6 (๐‘ƒ โˆˆ โ„™ โ†’ (๐‘ƒ / 4) โˆˆ โ„)
2019flcld 13762 . . . . 5 (๐‘ƒ โˆˆ โ„™ โ†’ (โŒŠโ€˜(๐‘ƒ / 4)) โˆˆ โ„ค)
2120adantr 481 . . . 4 ((๐‘ƒ โˆˆ โ„™ โˆง ยฌ 2 โˆฅ ๐‘ƒ) โ†’ (โŒŠโ€˜(๐‘ƒ / 4)) โˆˆ โ„ค)
22 oddm1d2 16302 . . . . . 6 (๐‘ƒ โˆˆ โ„ค โ†’ (ยฌ 2 โˆฅ ๐‘ƒ โ†” ((๐‘ƒ โˆ’ 1) / 2) โˆˆ โ„ค))
2313, 22syl 17 . . . . 5 (๐‘ƒ โˆˆ โ„™ โ†’ (ยฌ 2 โˆฅ ๐‘ƒ โ†” ((๐‘ƒ โˆ’ 1) / 2) โˆˆ โ„ค))
2423biimpa 477 . . . 4 ((๐‘ƒ โˆˆ โ„™ โˆง ยฌ 2 โˆฅ ๐‘ƒ) โ†’ ((๐‘ƒ โˆ’ 1) / 2) โˆˆ โ„ค)
25 2lgslem1c 26893 . . . 4 ((๐‘ƒ โˆˆ โ„™ โˆง ยฌ 2 โˆฅ ๐‘ƒ) โ†’ (โŒŠโ€˜(๐‘ƒ / 4)) โ‰ค ((๐‘ƒ โˆ’ 1) / 2))
26 eluz2 12827 . . . 4 (((๐‘ƒ โˆ’ 1) / 2) โˆˆ (โ„คโ‰ฅโ€˜(โŒŠโ€˜(๐‘ƒ / 4))) โ†” ((โŒŠโ€˜(๐‘ƒ / 4)) โˆˆ โ„ค โˆง ((๐‘ƒ โˆ’ 1) / 2) โˆˆ โ„ค โˆง (โŒŠโ€˜(๐‘ƒ / 4)) โ‰ค ((๐‘ƒ โˆ’ 1) / 2)))
2721, 24, 25, 26syl3anbrc 1343 . . 3 ((๐‘ƒ โˆˆ โ„™ โˆง ยฌ 2 โˆฅ ๐‘ƒ) โ†’ ((๐‘ƒ โˆ’ 1) / 2) โˆˆ (โ„คโ‰ฅโ€˜(โŒŠโ€˜(๐‘ƒ / 4))))
28 hashfzp1 14390 . . 3 (((๐‘ƒ โˆ’ 1) / 2) โˆˆ (โ„คโ‰ฅโ€˜(โŒŠโ€˜(๐‘ƒ / 4))) โ†’ (โ™ฏโ€˜(((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))) = (((๐‘ƒ โˆ’ 1) / 2) โˆ’ (โŒŠโ€˜(๐‘ƒ / 4))))
2927, 28syl 17 . 2 ((๐‘ƒ โˆˆ โ„™ โˆง ยฌ 2 โˆฅ ๐‘ƒ) โ†’ (โ™ฏโ€˜(((โŒŠโ€˜(๐‘ƒ / 4)) + 1)...((๐‘ƒ โˆ’ 1) / 2))) = (((๐‘ƒ โˆ’ 1) / 2) โˆ’ (โŒŠโ€˜(๐‘ƒ / 4))))
302, 12, 293eqtr2d 2778 1 ((๐‘ƒ โˆˆ โ„™ โˆง ยฌ 2 โˆฅ ๐‘ƒ) โ†’ (โ™ฏโ€˜{๐‘ฅ โˆˆ โ„ค โˆฃ โˆƒ๐‘– โˆˆ (1...((๐‘ƒ โˆ’ 1) / 2))(๐‘ฅ = (๐‘– ยท 2) โˆง (๐‘ƒ / 2) < (๐‘ฅ mod ๐‘ƒ))}) = (((๐‘ƒ โˆ’ 1) / 2) โˆ’ (โŒŠโ€˜(๐‘ƒ / 4))))
Colors of variables: wff setvar class
Syntax hints:  ยฌ wn 3   โ†’ wi 4   โ†” wb 205   โˆง wa 396   = wceq 1541  โˆƒwex 1781   โˆˆ wcel 2106   โ‰  wne 2940  โˆƒwrex 3070  {crab 3432  Vcvv 3474   class class class wbr 5148   โ†ฆ cmpt 5231  โ€“1-1-ontoโ†’wf1o 6542  โ€˜cfv 6543  (class class class)co 7408  โ„cr 11108  0cc0 11109  1c1 11110   + caddc 11112   ยท cmul 11114   < clt 11247   โ‰ค cle 11248   โˆ’ cmin 11443   / cdiv 11870  2c2 12266  4c4 12268  โ„คcz 12557  โ„คโ‰ฅcuz 12821  ...cfz 13483  โŒŠcfl 13754   mod cmo 13833  โ™ฏchash 14289   โˆฅ cdvds 16196  โ„™cprime 16607
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2703  ax-rep 5285  ax-sep 5299  ax-nul 5306  ax-pow 5363  ax-pr 5427  ax-un 7724  ax-cnex 11165  ax-resscn 11166  ax-1cn 11167  ax-icn 11168  ax-addcl 11169  ax-addrcl 11170  ax-mulcl 11171  ax-mulrcl 11172  ax-mulcom 11173  ax-addass 11174  ax-mulass 11175  ax-distr 11176  ax-i2m1 11177  ax-1ne0 11178  ax-1rid 11179  ax-rnegex 11180  ax-rrecex 11181  ax-cnre 11182  ax-pre-lttri 11183  ax-pre-lttrn 11184  ax-pre-ltadd 11185  ax-pre-mulgt0 11186  ax-pre-sup 11187
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 846  df-3or 1088  df-3an 1089  df-tru 1544  df-fal 1554  df-ex 1782  df-nf 1786  df-sb 2068  df-mo 2534  df-eu 2563  df-clab 2710  df-cleq 2724  df-clel 2810  df-nfc 2885  df-ne 2941  df-nel 3047  df-ral 3062  df-rex 3071  df-rmo 3376  df-reu 3377  df-rab 3433  df-v 3476  df-sbc 3778  df-csb 3894  df-dif 3951  df-un 3953  df-in 3955  df-ss 3965  df-pss 3967  df-nul 4323  df-if 4529  df-pw 4604  df-sn 4629  df-pr 4631  df-op 4635  df-uni 4909  df-int 4951  df-iun 4999  df-br 5149  df-opab 5211  df-mpt 5232  df-tr 5266  df-id 5574  df-eprel 5580  df-po 5588  df-so 5589  df-fr 5631  df-we 5633  df-xp 5682  df-rel 5683  df-cnv 5684  df-co 5685  df-dm 5686  df-rn 5687  df-res 5688  df-ima 5689  df-pred 6300  df-ord 6367  df-on 6368  df-lim 6369  df-suc 6370  df-iota 6495  df-fun 6545  df-fn 6546  df-f 6547  df-f1 6548  df-fo 6549  df-f1o 6550  df-fv 6551  df-riota 7364  df-ov 7411  df-oprab 7412  df-mpo 7413  df-om 7855  df-1st 7974  df-2nd 7975  df-frecs 8265  df-wrecs 8296  df-recs 8370  df-rdg 8409  df-1o 8465  df-er 8702  df-en 8939  df-dom 8940  df-sdom 8941  df-fin 8942  df-sup 9436  df-inf 9437  df-card 9933  df-pnf 11249  df-mnf 11250  df-xr 11251  df-ltxr 11252  df-le 11253  df-sub 11445  df-neg 11446  df-div 11871  df-nn 12212  df-2 12274  df-3 12275  df-4 12276  df-n0 12472  df-z 12558  df-uz 12822  df-rp 12974  df-fz 13484  df-fl 13756  df-mod 13834  df-hash 14290  df-dvds 16197  df-prm 16608
This theorem is referenced by:  2lgs  26907
  Copyright terms: Public domain W3C validator