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

Theorem blenn0 48461
Description: The binary length of a "number" not being 0. (Contributed by AV, 20-May-2020.)
Assertion
Ref Expression
blenn0 ((𝑁𝑉𝑁 ≠ 0) → (#b𝑁) = ((⌊‘(2 logb (abs‘𝑁))) + 1))

Proof of Theorem blenn0
StepHypRef Expression
1 blenval 48459 . 2 (𝑁𝑉 → (#b𝑁) = if(𝑁 = 0, 1, ((⌊‘(2 logb (abs‘𝑁))) + 1)))
2 ifnefalse 4546 . 2 (𝑁 ≠ 0 → if(𝑁 = 0, 1, ((⌊‘(2 logb (abs‘𝑁))) + 1)) = ((⌊‘(2 logb (abs‘𝑁))) + 1))
31, 2sylan9eq 2797 1 ((𝑁𝑉𝑁 ≠ 0) → (#b𝑁) = ((⌊‘(2 logb (abs‘𝑁))) + 1))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1539  wcel 2108  wne 2940  ifcif 4534  cfv 6569  (class class class)co 7438  0cc0 11162  1c1 11163   + caddc 11165  2c2 12328  cfl 13836  abscabs 15279   logb clogb 26833  #bcblen 48457
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1794  ax-4 1808  ax-5 1910  ax-6 1967  ax-7 2007  ax-8 2110  ax-9 2118  ax-10 2141  ax-11 2157  ax-12 2177  ax-ext 2708  ax-sep 5305  ax-nul 5315  ax-pr 5441  ax-1cn 11220
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 849  df-3an 1089  df-tru 1542  df-fal 1552  df-ex 1779  df-nf 1783  df-sb 2065  df-mo 2540  df-eu 2569  df-clab 2715  df-cleq 2729  df-clel 2816  df-nfc 2892  df-ne 2941  df-ral 3062  df-rex 3071  df-rab 3437  df-v 3483  df-dif 3969  df-un 3971  df-ss 3983  df-nul 4343  df-if 4535  df-sn 4635  df-pr 4637  df-op 4641  df-uni 4916  df-br 5152  df-opab 5214  df-mpt 5235  df-id 5587  df-xp 5699  df-rel 5700  df-cnv 5701  df-co 5702  df-dm 5703  df-iota 6522  df-fun 6571  df-fv 6577  df-ov 7441  df-blen 48458
This theorem is referenced by:  blenre  48462  blennn  48463
  Copyright terms: Public domain W3C validator