diff options
Diffstat (limited to 'tests/lean/hashmap/Hashmap/Clauses/Template.lean')
-rw-r--r-- | tests/lean/hashmap/Hashmap/Clauses/Template.lean | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/lean/hashmap/Hashmap/Clauses/Template.lean b/tests/lean/hashmap/Hashmap/Clauses/Template.lean index 7ba079f2..560592c8 100644 --- a/tests/lean/hashmap/Hashmap/Clauses/Template.lean +++ b/tests/lean/hashmap/Hashmap/Clauses/Template.lean @@ -6,7 +6,7 @@ import Hashmap.Types /- [hashmap::HashMap::{0}::allocate_slots]: termination measure -/ @[simp] def hash_map_allocate_slots_loop_terminates (T : Type) (slots : Vec (list_t T)) - (n : USize) := + (n : Usize) := (slots, n) /- [hashmap::HashMap::{0}::allocate_slots]: decreases_by tactic -/ @@ -17,7 +17,7 @@ macro_rules /- [hashmap::HashMap::{0}::clear]: termination measure -/ @[simp] def hash_map_clear_loop_terminates (T : Type) (slots : Vec (list_t T)) - (i : USize) := + (i : Usize) := (slots, i) /- [hashmap::HashMap::{0}::clear]: decreases_by tactic -/ @@ -27,7 +27,7 @@ macro_rules /- [hashmap::HashMap::{0}::insert_in_list]: termination measure -/ @[simp] -def hash_map_insert_in_list_loop_terminates (T : Type) (key : USize) +def hash_map_insert_in_list_loop_terminates (T : Type) (key : Usize) (value : T) (ls : list_t T) := (key, value, ls) @@ -52,7 +52,7 @@ macro_rules /- [hashmap::HashMap::{0}::move_elements]: termination measure -/ @[simp] def hash_map_move_elements_loop_terminates (T : Type) (ntable : hash_map_t T) - (slots : Vec (list_t T)) (i : USize) := + (slots : Vec (list_t T)) (i : Usize) := (ntable, slots, i) /- [hashmap::HashMap::{0}::move_elements]: decreases_by tactic -/ @@ -63,7 +63,7 @@ macro_rules /- [hashmap::HashMap::{0}::contains_key_in_list]: termination measure -/ @[simp] -def hash_map_contains_key_in_list_loop_terminates (T : Type) (key : USize) +def hash_map_contains_key_in_list_loop_terminates (T : Type) (key : Usize) (ls : list_t T) := (key, ls) @@ -75,7 +75,7 @@ macro_rules /- [hashmap::HashMap::{0}::get_in_list]: termination measure -/ @[simp] -def hash_map_get_in_list_loop_terminates (T : Type) (key : USize) +def hash_map_get_in_list_loop_terminates (T : Type) (key : Usize) (ls : list_t T) := (key, ls) @@ -87,7 +87,7 @@ macro_rules /- [hashmap::HashMap::{0}::get_mut_in_list]: termination measure -/ @[simp] def hash_map_get_mut_in_list_loop_terminates (T : Type) (ls : list_t T) - (key : USize) := + (key : Usize) := (ls, key) /- [hashmap::HashMap::{0}::get_mut_in_list]: decreases_by tactic -/ @@ -97,7 +97,7 @@ macro_rules /- [hashmap::HashMap::{0}::remove_from_list]: termination measure -/ @[simp] -def hash_map_remove_from_list_loop_terminates (T : Type) (key : USize) +def hash_map_remove_from_list_loop_terminates (T : Type) (key : Usize) (ls : list_t T) := (key, ls) |