Function vstd::std_specs::bits::axiom_u64_trailing_ones
source · pub broadcast proof fn axiom_u64_trailing_ones(i: u64)
Expand description
ensures
0 <= #[trigger] u64_trailing_ones(i) <= 64,
i == 0xffff_ffff_ffff_ffffu64 <==> u64_trailing_ones(i) == 64,
0 <= u64_trailing_ones(i) < 64 ==> (i >> u64_trailing_ones(i) as u64) & 1u64 == 0u64,
(!i) << sub(64, u64_trailing_ones(i) as u64) == 0,
forall |j: u64| 0 <= j < u64_trailing_ones(i) ==> #[trigger] (i >> j) & 1u64 == 1u64,