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 15981
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 15978 . 2 class bits
2 vn . . 3 setvar 𝑛
3 cz 12176 . . 3 class
4 c2 11885 . . . . . 6 class 2
52cv 1542 . . . . . . . 8 class 𝑛
6 vm . . . . . . . . . 10 setvar 𝑚
76cv 1542 . . . . . . . . 9 class 𝑚
8 cexp 13635 . . . . . . . . 9 class
94, 7, 8co 7213 . . . . . . . 8 class (2↑𝑚)
10 cdiv 11489 . . . . . . . 8 class /
115, 9, 10co 7213 . . . . . . 7 class (𝑛 / (2↑𝑚))
12 cfl 13365 . . . . . . 7 class
1311, 12cfv 6380 . . . . . 6 class (⌊‘(𝑛 / (2↑𝑚)))
14 cdvds 15815 . . . . . 6 class
154, 13, 14wbr 5053 . . . . 5 wff 2 ∥ (⌊‘(𝑛 / (2↑𝑚)))
1615wn 3 . . . 4 wff ¬ 2 ∥ (⌊‘(𝑛 / (2↑𝑚)))
17 cn0 12090 . . . 4 class 0
1816, 6, 17crab 3065 . . 3 class {𝑚 ∈ ℕ0 ∣ ¬ 2 ∥ (⌊‘(𝑛 / (2↑𝑚)))}
192, 3, 18cmpt 5135 . 2 class (𝑛 ∈ ℤ ↦ {𝑚 ∈ ℕ0 ∣ ¬ 2 ∥ (⌊‘(𝑛 / (2↑𝑚)))})
201, 19wceq 1543 1 wff bits = (𝑛 ∈ ℤ ↦ {𝑚 ∈ ℕ0 ∣ ¬ 2 ∥ (⌊‘(𝑛 / (2↑𝑚)))})
Colors of variables: wff setvar class
This definition is referenced by:  bitsfval  15982  bitsval  15983  bitsf  15986
  Copyright terms: Public domain W3C validator