Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  bits0ALTV Structured version   Visualization version   GIF version

Theorem bits0ALTV 45549
Description: Value of the zeroth bit. (Contributed by Mario Carneiro, 5-Sep-2016.) (Revised by AV, 19-Jun-2020.)
Assertion
Ref Expression
bits0ALTV (𝑁 ∈ ℤ → (0 ∈ (bits‘𝑁) ↔ 𝑁 ∈ Odd ))

Proof of Theorem bits0ALTV
StepHypRef Expression
1 0nn0 12353 . . 3 0 ∈ ℕ0
2 bitsval2 16231 . . 3 ((𝑁 ∈ ℤ ∧ 0 ∈ ℕ0) → (0 ∈ (bits‘𝑁) ↔ ¬ 2 ∥ (⌊‘(𝑁 / (2↑0)))))
31, 2mpan2 689 . 2 (𝑁 ∈ ℤ → (0 ∈ (bits‘𝑁) ↔ ¬ 2 ∥ (⌊‘(𝑁 / (2↑0)))))
4 2cn 12153 . . . . . . . . 9 2 ∈ ℂ
5 exp0 13891 . . . . . . . . 9 (2 ∈ ℂ → (2↑0) = 1)
64, 5ax-mp 5 . . . . . . . 8 (2↑0) = 1
76oveq2i 7352 . . . . . . 7 (𝑁 / (2↑0)) = (𝑁 / 1)
8 zcn 12429 . . . . . . . 8 (𝑁 ∈ ℤ → 𝑁 ∈ ℂ)
98div1d 11848 . . . . . . 7 (𝑁 ∈ ℤ → (𝑁 / 1) = 𝑁)
107, 9eqtrid 2789 . . . . . 6 (𝑁 ∈ ℤ → (𝑁 / (2↑0)) = 𝑁)
1110fveq2d 6833 . . . . 5 (𝑁 ∈ ℤ → (⌊‘(𝑁 / (2↑0))) = (⌊‘𝑁))
12 flid 13633 . . . . 5 (𝑁 ∈ ℤ → (⌊‘𝑁) = 𝑁)
1311, 12eqtrd 2777 . . . 4 (𝑁 ∈ ℤ → (⌊‘(𝑁 / (2↑0))) = 𝑁)
1413breq2d 5108 . . 3 (𝑁 ∈ ℤ → (2 ∥ (⌊‘(𝑁 / (2↑0))) ↔ 2 ∥ 𝑁))
1514notbid 318 . 2 (𝑁 ∈ ℤ → (¬ 2 ∥ (⌊‘(𝑁 / (2↑0))) ↔ ¬ 2 ∥ 𝑁))
16 isodd3 45522 . . 3 (𝑁 ∈ Odd ↔ (𝑁 ∈ ℤ ∧ ¬ 2 ∥ 𝑁))
1716baibr 538 . 2 (𝑁 ∈ ℤ → (¬ 2 ∥ 𝑁𝑁 ∈ Odd ))
183, 15, 173bitrd 305 1 (𝑁 ∈ ℤ → (0 ∈ (bits‘𝑁) ↔ 𝑁 ∈ Odd ))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205   = wceq 1541  wcel 2106   class class class wbr 5096  cfv 6483  (class class class)co 7341  cc 10974  0cc0 10976  1c1 10977   / cdiv 11737  2c2 12133  0cn0 12338  cz 12424  cfl 13615  cexp 13887  cdvds 16062  bitscbits 16225   Odd codd 45495
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 2708  ax-sep 5247  ax-nul 5254  ax-pow 5312  ax-pr 5376  ax-un 7654  ax-cnex 11032  ax-resscn 11033  ax-1cn 11034  ax-icn 11035  ax-addcl 11036  ax-addrcl 11037  ax-mulcl 11038  ax-mulrcl 11039  ax-mulcom 11040  ax-addass 11041  ax-mulass 11042  ax-distr 11043  ax-i2m1 11044  ax-1ne0 11045  ax-1rid 11046  ax-rnegex 11047  ax-rrecex 11048  ax-cnre 11049  ax-pre-lttri 11050  ax-pre-lttrn 11051  ax-pre-ltadd 11052  ax-pre-mulgt0 11053  ax-pre-sup 11054
This theorem depends on definitions:  df-bi 206  df-an 398  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 2539  df-eu 2568  df-clab 2715  df-cleq 2729  df-clel 2815  df-nfc 2887  df-ne 2942  df-nel 3048  df-ral 3063  df-rex 3072  df-rmo 3350  df-reu 3351  df-rab 3405  df-v 3444  df-sbc 3731  df-csb 3847  df-dif 3904  df-un 3906  df-in 3908  df-ss 3918  df-pss 3920  df-nul 4274  df-if 4478  df-pw 4553  df-sn 4578  df-pr 4580  df-op 4584  df-uni 4857  df-iun 4947  df-br 5097  df-opab 5159  df-mpt 5180  df-tr 5214  df-id 5522  df-eprel 5528  df-po 5536  df-so 5537  df-fr 5579  df-we 5581  df-xp 5630  df-rel 5631  df-cnv 5632  df-co 5633  df-dm 5634  df-rn 5635  df-res 5636  df-ima 5637  df-pred 6242  df-ord 6309  df-on 6310  df-lim 6311  df-suc 6312  df-iota 6435  df-fun 6485  df-fn 6486  df-f 6487  df-f1 6488  df-fo 6489  df-f1o 6490  df-fv 6491  df-riota 7297  df-ov 7344  df-oprab 7345  df-mpo 7346  df-om 7785  df-2nd 7904  df-frecs 8171  df-wrecs 8202  df-recs 8276  df-rdg 8315  df-er 8573  df-en 8809  df-dom 8810  df-sdom 8811  df-sup 9303  df-inf 9304  df-pnf 11116  df-mnf 11117  df-xr 11118  df-ltxr 11119  df-le 11120  df-sub 11312  df-neg 11313  df-div 11738  df-nn 12079  df-2 12141  df-n0 12339  df-z 12425  df-uz 12688  df-fl 13617  df-seq 13827  df-exp 13888  df-dvds 16063  df-bits 16228  df-odd 45497
This theorem is referenced by:  bits0eALTV  45550  bits0oALTV  45551
  Copyright terms: Public domain W3C validator