summaryrefslogtreecommitdiff
path: root/tests/lean/hashmap/Hashmap/Clauses
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lean/hashmap/Hashmap/Clauses')
-rw-r--r--tests/lean/hashmap/Hashmap/Clauses/Clauses.lean18
-rw-r--r--tests/lean/hashmap/Hashmap/Clauses/Template.lean16
2 files changed, 17 insertions, 17 deletions
diff --git a/tests/lean/hashmap/Hashmap/Clauses/Clauses.lean b/tests/lean/hashmap/Hashmap/Clauses/Clauses.lean
index fad5c11a..197b0a6a 100644
--- a/tests/lean/hashmap/Hashmap/Clauses/Clauses.lean
+++ b/tests/lean/hashmap/Hashmap/Clauses/Clauses.lean
@@ -1,11 +1,11 @@
--- [hashmap]: the decreases clauses
+-- [hashmap]: templates for the decreases clauses
import Base.Primitives
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 -/
@@ -16,7 +16,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 -/
@@ -26,7 +26,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)
@@ -51,7 +51,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 -/
@@ -62,7 +62,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)
@@ -74,7 +74,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)
@@ -86,7 +86,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 -/
@@ -96,7 +96,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)
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)