Skip to content

Commit

Permalink
Merge pull request #870 from hacspec/countones
Browse files Browse the repository at this point in the history
count-ones post-condition
  • Loading branch information
W95Psp authored Sep 2, 2024
2 parents b285b13 + d8d9c0f commit 3b38e61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion proof-libs/fstar/core/Core.Num.fsti
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ val impl__u128__pow: u128 -> u32 -> u128
val impl__i16__pow (base: i16) (exponent: u32): result: i16 {v base == 2 /\ v exponent < 15 ==> (Math.Lemmas.pow2_lt_compat 15 (v exponent); result == mk_int #Lib.IntTypes.S16 (pow2 (v exponent)))}
val impl__i32__pow (base: i32) (exponent: u32): result: i32 {v base == 2 /\ v exponent <= 16 ==> result == mk_int #Lib.IntTypes.S32 (pow2 (v exponent))}

val impl__u8__count_ones: u8 -> u32
val impl__u8__count_ones: u8 -> r:u32{v r <= 8}

val impl__u8__from_str_radix: string -> u32 -> Core.Result.t_Result u8 Core.Num.Error.t_ParseIntError

Expand Down

0 comments on commit 3b38e61

Please sign in to comment.