Skip to content

Commit

Permalink
lib extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikbhargavan committed Feb 2, 2025
1 parent 3d2cbc0 commit 59ff7cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion proof-libs/fstar/core/Core.Array.fsti
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ let impl_23__map #a n #b (arr: t_Array a n) (f: a -> b): t_Array b n

let impl_23__as_slice #a len (arr: t_Array a len): t_Slice a = arr

val from_fn #a len (f: usize -> a): Pure (t_Array a len) (requires True) (ensures (fun a -> forall i. Seq.index a i == f (sz i)))
val from_fn #a len (f: (x:usize{x <. len}) -> a): Pure (t_Array a len) (requires True) (ensures (fun a -> forall i. Seq.index a i == f (sz i)))


2 changes: 2 additions & 0 deletions proof-libs/fstar/core/Core.Num.fsti
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ module Core.Num
open Rust_primitives

let impl_u16__MAX: u16 = mk_u16 (maxint u16_inttype)
let impl_i32__MAX: i32 = mk_i32 (maxint i32_inttype)
let impl_i32__MIN: i32 = mk_i32 (minint i32_inttype)

let impl_u8__wrapping_add: u8 -> u8 -> u8 = add_mod
let impl_u8__wrapping_sub: u8 -> u8 -> u8 = sub_mod
Expand Down

0 comments on commit 59ff7cd

Please sign in to comment.