Documentation

Init.Data.Nat.Power2.Lemmas

Further lemmas about Nat.isPowerOfTwo, with the convenience of having bitwise lemmas available. #

theorem Nat.and_sub_one_testBit_log2 {n : Nat} (h : n 0) (hpow2 : ¬n.isPowerOfTwo) :
(n &&& n - 1).testBit n.log2 = true