summaryrefslogtreecommitdiff
path: root/tests/lean/hashmap/Hashmap/Clauses/Clauses.lean
diff options
context:
space:
mode:
authorSon Ho2023-03-07 19:24:16 +0100
committerSon HO2023-06-04 21:44:33 +0200
commita946df8b716695f4d387d852b7e74cf288ddb03e (patch)
treeba4f91ae1e6e24f342edac9d6db35d52be385b99 /tests/lean/hashmap/Hashmap/Clauses/Clauses.lean
parent27df0acdce31c3afc6e44a7b3161cb5372cdfc60 (diff)
Make minor modifications to the Lean files
Diffstat (limited to 'tests/lean/hashmap/Hashmap/Clauses/Clauses.lean')
-rw-r--r--tests/lean/hashmap/Hashmap/Clauses/Clauses.lean24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/lean/hashmap/Hashmap/Clauses/Clauses.lean b/tests/lean/hashmap/Hashmap/Clauses/Clauses.lean
index eec8ef96..fad5c11a 100644
--- a/tests/lean/hashmap/Hashmap/Clauses/Clauses.lean
+++ b/tests/lean/hashmap/Hashmap/Clauses/Clauses.lean
@@ -4,23 +4,23 @@ 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))
+def hash_map_allocate_slots_loop_terminates (T : Type) (slots : Vec (list_t T))
(n : USize) :=
(slots, n)
+/- [hashmap::HashMap::{0}::allocate_slots]: decreases_by tactic -/
syntax "hash_map_allocate_slots_loop_decreases" term+ : tactic
-
macro_rules
| `(tactic| hash_map_allocate_slots_loop_decreases $slots $n) =>`(tactic| sorry)
/- [hashmap::HashMap::{0}::clear]: termination measure -/
@[simp]
-def hash_map_clear_loop_terminates (T : Type) (slots : vec (list_t T))
+def hash_map_clear_loop_terminates (T : Type) (slots : Vec (list_t T))
(i : USize) :=
(slots, i)
+/- [hashmap::HashMap::{0}::clear]: decreases_by tactic -/
syntax "hash_map_clear_loop_decreases" term+ : tactic
-
macro_rules
| `(tactic| hash_map_clear_loop_decreases $slots $i) =>`(tactic| sorry)
@@ -30,8 +30,8 @@ def hash_map_insert_in_list_loop_terminates (T : Type) (key : USize)
(value : T) (ls : list_t T) :=
(key, value, ls)
+/- [hashmap::HashMap::{0}::insert_in_list]: decreases_by tactic -/
syntax "hash_map_insert_in_list_loop_decreases" term+ : tactic
-
macro_rules
| `(tactic| hash_map_insert_in_list_loop_decreases $key $value $ls) =>
`(tactic| sorry)
@@ -42,8 +42,8 @@ def hash_map_move_elements_from_list_loop_terminates (T : Type)
(ntable : hash_map_t T) (ls : list_t T) :=
(ntable, ls)
+/- [hashmap::HashMap::{0}::move_elements_from_list]: decreases_by tactic -/
syntax "hash_map_move_elements_from_list_loop_decreases" term+ : tactic
-
macro_rules
| `(tactic| hash_map_move_elements_from_list_loop_decreases $ntable $ls) =>
`(tactic| sorry)
@@ -51,11 +51,11 @@ 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 -/
syntax "hash_map_move_elements_loop_decreases" term+ : tactic
-
macro_rules
| `(tactic| hash_map_move_elements_loop_decreases $ntable $slots $i) =>
`(tactic| sorry)
@@ -66,8 +66,8 @@ def hash_map_contains_key_in_list_loop_terminates (T : Type) (key : USize)
(ls : list_t T) :=
(key, ls)
+/- [hashmap::HashMap::{0}::contains_key_in_list]: decreases_by tactic -/
syntax "hash_map_contains_key_in_list_loop_decreases" term+ : tactic
-
macro_rules
| `(tactic| hash_map_contains_key_in_list_loop_decreases $key $ls) =>
`(tactic| sorry)
@@ -78,8 +78,8 @@ def hash_map_get_in_list_loop_terminates (T : Type) (key : USize)
(ls : list_t T) :=
(key, ls)
+/- [hashmap::HashMap::{0}::get_in_list]: decreases_by tactic -/
syntax "hash_map_get_in_list_loop_decreases" term+ : tactic
-
macro_rules
| `(tactic| hash_map_get_in_list_loop_decreases $key $ls) =>`(tactic| sorry)
@@ -89,8 +89,8 @@ def hash_map_get_mut_in_list_loop_terminates (T : Type) (ls : list_t T)
(key : USize) :=
(ls, key)
+/- [hashmap::HashMap::{0}::get_mut_in_list]: decreases_by tactic -/
syntax "hash_map_get_mut_in_list_loop_decreases" term+ : tactic
-
macro_rules
| `(tactic| hash_map_get_mut_in_list_loop_decreases $ls $key) =>`(tactic| sorry)
@@ -100,8 +100,8 @@ def hash_map_remove_from_list_loop_terminates (T : Type) (key : USize)
(ls : list_t T) :=
(key, ls)
+/- [hashmap::HashMap::{0}::remove_from_list]: decreases_by tactic -/
syntax "hash_map_remove_from_list_loop_decreases" term+ : tactic
-
macro_rules
| `(tactic| hash_map_remove_from_list_loop_decreases $key $ls) =>`(tactic| sorry)