Metamath Proof Explorer


Theorem blenn0

Description: The binary length of a "number" not being 0. (Contributed by AV, 20-May-2020)

Ref Expression
Assertion blenn0 NVN0#b N = log2N+1

Proof

Step Hyp Ref Expression
1 blenval NV#b N = ifN=01log2N+1
2 ifnefalse N0ifN=01log2N+1=log2N+1
3 1 2 sylan9eq NVN0#b N = log2N+1