MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  df-bits Structured version   Visualization version   GIF version

Definition df-bits 16129
Description: Define the binary bits of an integer. The expression 𝑀 ∈ (bits‘𝑁) means that the 𝑀-th bit of 𝑁 is 1 (and its negation means the bit is 0). (Contributed by Mario Carneiro, 4-Sep-2016.)
Assertion
Ref Expression
df-bits bits = (𝑛 ∈ ℤ ↦ {𝑚 ∈ ℕ0 ∣ ¬ 2 ∥ (⌊‘(𝑛 / (2↑𝑚)))})
Distinct variable group:   𝑚,𝑛

Detailed syntax breakdown of Definition df-bits
StepHypRef Expression
1 cbits 16126 . 2 class bits
2 vn . . 3 setvar 𝑛
3 cz 12319 . . 3 class
4 c2 12028 . . . . . 6 class 2
52cv 1538 . . . . . . . 8 class 𝑛
6 vm . . . . . . . . . 10 setvar 𝑚
76cv 1538 . . . . . . . . 9 class 𝑚
8 cexp 13782 . . . . . . . . 9 class
94, 7, 8co 7275 . . . . . . . 8 class (2↑𝑚)
10 cdiv 11632 . . . . . . . 8 class /
115, 9, 10co 7275 . . . . . . 7 class (𝑛 / (2↑𝑚))
12 cfl 13510 . . . . . . 7 class
1311, 12cfv 6433 . . . . . 6 class (⌊‘(𝑛 / (2↑𝑚)))
14 cdvds 15963 . . . . . 6 class
154, 13, 14wbr 5074 . . . . 5 wff 2 ∥ (⌊‘(𝑛 / (2↑𝑚)))
1615wn 3 . . . 4 wff ¬ 2 ∥ (⌊‘(𝑛 / (2↑𝑚)))
17 cn0 12233 . . . 4 class 0
1816, 6, 17crab 3068 . . 3 class {𝑚 ∈ ℕ0 ∣ ¬ 2 ∥ (⌊‘(𝑛 / (2↑𝑚)))}
192, 3, 18cmpt 5157 . 2 class (𝑛 ∈ ℤ ↦ {𝑚 ∈ ℕ0 ∣ ¬ 2 ∥ (⌊‘(𝑛 / (2↑𝑚)))})
201, 19wceq 1539 1 wff bits = (𝑛 ∈ ℤ ↦ {𝑚 ∈ ℕ0 ∣ ¬ 2 ∥ (⌊‘(𝑛 / (2↑𝑚)))})
Colors of variables: wff setvar class
This definition is referenced by:  bitsfval  16130  bitsval  16131  bitsf  16134
  Copyright terms: Public domain W3C validator