Function vstd::bits::lemma_u8_shr_is_div

source ·
pub broadcast proof fn lemma_u8_shr_is_div(x: u8, shift: u8)
Expand description
requires
0 <= shift < <u8>::BITS,
ensures
#[trigger] (x >> shift) == x as nat / pow2(shift as nat),

Proof that for x and n of type u8 , shifting x right by n is equivalent to division of x by 2^n.