| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > bitsfval | Structured version Visualization version GIF version | ||
| Description: Expand the definition of the bits of an integer. (Contributed by Mario Carneiro, 5-Sep-2016.) |
| Ref | Expression |
|---|---|
| bitsfval | ⊢ (𝑁 ∈ ℤ → (bits‘𝑁) = {𝑚 ∈ ℕ0 ∣ ¬ 2 ∥ (⌊‘(𝑁 / (2↑𝑚)))}) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | fvoveq1 7364 | . . . . 5 ⊢ (𝑛 = 𝑁 → (⌊‘(𝑛 / (2↑𝑚))) = (⌊‘(𝑁 / (2↑𝑚)))) | |
| 2 | 1 | breq2d 5101 | . . . 4 ⊢ (𝑛 = 𝑁 → (2 ∥ (⌊‘(𝑛 / (2↑𝑚))) ↔ 2 ∥ (⌊‘(𝑁 / (2↑𝑚))))) |
| 3 | 2 | notbid 318 | . . 3 ⊢ (𝑛 = 𝑁 → (¬ 2 ∥ (⌊‘(𝑛 / (2↑𝑚))) ↔ ¬ 2 ∥ (⌊‘(𝑁 / (2↑𝑚))))) |
| 4 | 3 | rabbidv 3400 | . 2 ⊢ (𝑛 = 𝑁 → {𝑚 ∈ ℕ0 ∣ ¬ 2 ∥ (⌊‘(𝑛 / (2↑𝑚)))} = {𝑚 ∈ ℕ0 ∣ ¬ 2 ∥ (⌊‘(𝑁 / (2↑𝑚)))}) |
| 5 | df-bits 16325 | . 2 ⊢ bits = (𝑛 ∈ ℤ ↦ {𝑚 ∈ ℕ0 ∣ ¬ 2 ∥ (⌊‘(𝑛 / (2↑𝑚)))}) | |
| 6 | nn0ex 12379 | . . 3 ⊢ ℕ0 ∈ V | |
| 7 | 6 | rabex 5275 | . 2 ⊢ {𝑚 ∈ ℕ0 ∣ ¬ 2 ∥ (⌊‘(𝑁 / (2↑𝑚)))} ∈ V |
| 8 | 4, 5, 7 | fvmpt 6924 | 1 ⊢ (𝑁 ∈ ℤ → (bits‘𝑁) = {𝑚 ∈ ℕ0 ∣ ¬ 2 ∥ (⌊‘(𝑁 / (2↑𝑚)))}) |
| Colors of variables: wff setvar class |
| Syntax hints: ¬ wn 3 → wi 4 = wceq 1541 ∈ wcel 2110 {crab 3393 class class class wbr 5089 ‘cfv 6477 (class class class)co 7341 / cdiv 11766 2c2 12172 ℕ0cn0 12373 ℤcz 12460 ⌊cfl 13686 ↑cexp 13960 ∥ cdvds 16155 bitscbits 16322 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1796 ax-4 1810 ax-5 1911 ax-6 1968 ax-7 2009 ax-8 2112 ax-9 2120 ax-10 2143 ax-11 2159 ax-12 2179 ax-ext 2702 ax-sep 5232 ax-nul 5242 ax-pr 5368 ax-un 7663 ax-cnex 11054 ax-1cn 11056 ax-addcl 11058 |
| This theorem depends on definitions: df-bi 207 df-an 396 df-or 848 df-3or 1087 df-3an 1088 df-tru 1544 df-fal 1554 df-ex 1781 df-nf 1785 df-sb 2067 df-mo 2534 df-eu 2563 df-clab 2709 df-cleq 2722 df-clel 2804 df-nfc 2879 df-ne 2927 df-ral 3046 df-rex 3055 df-reu 3345 df-rab 3394 df-v 3436 df-sbc 3740 df-csb 3849 df-dif 3903 df-un 3905 df-in 3907 df-ss 3917 df-pss 3920 df-nul 4282 df-if 4474 df-pw 4550 df-sn 4575 df-pr 4577 df-op 4581 df-uni 4858 df-iun 4941 df-br 5090 df-opab 5152 df-mpt 5171 df-tr 5197 df-id 5509 df-eprel 5514 df-po 5522 df-so 5523 df-fr 5567 df-we 5569 df-xp 5620 df-rel 5621 df-cnv 5622 df-co 5623 df-dm 5624 df-rn 5625 df-res 5626 df-ima 5627 df-pred 6244 df-ord 6305 df-on 6306 df-lim 6307 df-suc 6308 df-iota 6433 df-fun 6479 df-fn 6480 df-f 6481 df-f1 6482 df-fo 6483 df-f1o 6484 df-fv 6485 df-ov 7344 df-om 7792 df-2nd 7917 df-frecs 8206 df-wrecs 8237 df-recs 8286 df-rdg 8324 df-nn 12118 df-n0 12374 df-bits 16325 |
| This theorem is referenced by: bitsval 16327 |
| Copyright terms: Public domain | W3C validator |