|
| 1 | +abbrev u8 := Nat |
| 2 | +abbrev u16 := Nat |
| 3 | +abbrev u32 := Nat |
| 4 | +abbrev u64 := Nat |
| 5 | +abbrev usize := Nat |
| 6 | +abbrev i8 := Nat |
| 7 | +abbrev i16 := Nat |
| 8 | +abbrev i32 := Nat |
| 9 | +abbrev i64 := Nat |
| 10 | +abbrev isize := Nat |
| 11 | + |
| 12 | +-- Arithmetic |
| 13 | +def hax_machine_int_add (x y: Nat) := x + y |
| 14 | +def hax_machine_int_mul (x y: Nat) := x * y |
| 15 | +def hax_machine_int_bitxor (x y: Nat) : Nat := sorry |
| 16 | + |
| 17 | +def hax_machine_int_eq (x y: Nat) : Bool := x = y |
| 18 | +def hax_machine_int_ne (x y: Nat) : Bool := x != y |
| 19 | +def hax_machine_int_ge (x y: Nat) : Bool := x >= y |
| 20 | +def hax_machine_int_gt (x y: Nat) : Bool := x > y |
| 21 | +def hax_machine_int_le (x y: Nat) : Bool := x <= y |
| 22 | +def hax_machine_int_lt (x y: Nat) : Bool := x < y |
| 23 | + |
| 24 | + |
| 25 | +-- Nums |
| 26 | +def num_impl_wrapping_add : Nat -> Nat -> Nat := sorry |
| 27 | +def num_impl_from_le_bytes {α} : (Array α) -> u32 := sorry |
| 28 | + |
| 29 | +-- Results |
| 30 | +inductive result_Result α β |
| 31 | +| ok : α -> result_Result α β |
| 32 | +| err : β -> result_Result α β |
| 33 | + |
| 34 | +axiom array_TryFromSliceError : Type |
| 35 | + |
| 36 | +-- Assert |
| 37 | +def assert : Bool -> Unit := fun _ => () |
| 38 | +def assume : Prop -> Unit := fun _ => () |
| 39 | +def prop_constructors_from_bool : Bool -> Prop := sorry |
| 40 | + |
| 41 | +-- Hax |
| 42 | +def hax_folds_fold_range |
| 43 | + (s: Nat) |
| 44 | + (e: Nat) : |
| 45 | + ((Array u32) -> Nat -> Bool) -> |
| 46 | + (Array u32) -> |
| 47 | + ((Array u32) -> Nat -> (Array u32)) -> |
| 48 | + (Array u32) := sorry |
| 49 | + |
| 50 | +def hax_monomorphized_update_at_update_at_usize : |
| 51 | + (Array u32) -> |
| 52 | + Nat -> |
| 53 | + u32 -> |
| 54 | + (Array u32) := sorry |
| 55 | + |
| 56 | +abbrev hax__autogenerated_refinement__BoundedUsize_BoundedUsize (_: Nat) (_: Nat) := Nat |
| 57 | + |
| 58 | +def result_impl_unwrap {α} : α -> Array β := sorry |
| 59 | + |
| 60 | +-- Vectors |
| 61 | +def hax_repeat (x:Nat) (y:Nat) : Array u32 := sorry |
| 62 | + |
| 63 | +-- Ranges |
| 64 | + |
| 65 | +structure ops_range_Range_arg (α: Type) where |
| 66 | +ops_range_Range_start : α |
| 67 | +ops_range_Range_end : α |
| 68 | + |
| 69 | +inductive ops_range_Range (α: Type) where |
| 70 | +| constr_ops_range_Range : ops_range_Range_arg α -> ops_range_Range α |
| 71 | + |
| 72 | + |
| 73 | +-- Arrays |
| 74 | +def ops_index_Index_index (a: Array u8) : α -> β := sorry |
| 75 | +def convert_TryInto_try_into {α} : Array α -> |
| 76 | + result_Result (Array α) array_TryFromSliceError := sorry |
| 77 | + |
| 78 | + |
| 79 | +-- Slices |
| 80 | +def slice_impl_len (a: Array u32) : Nat := sorry |
| 81 | + |
| 82 | +-- Bytes |
| 83 | +def num_impl_to_le_bytes : u32 -> Array u8 := sorry |
0 commit comments