summaryrefslogtreecommitdiff
path: root/tests/lean/hashmap
diff options
context:
space:
mode:
authorSon Ho2023-03-07 09:05:45 +0100
committerSon HO2023-06-04 21:44:33 +0200
commitdb8cca3c3177fec2e66634366a6621ca979c0dc9 (patch)
treec84958eb00667700cf628f55aabc5128ca4a55d5 /tests/lean/hashmap
parent73b95970460fb7d8c90e2ea97fa6457d7850af07 (diff)
Update the generation of termination and decreases_by templates for Lean
Diffstat (limited to 'tests/lean/hashmap')
-rw-r--r--tests/lean/hashmap/Hashmap/Clauses/Template.lean18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/lean/hashmap/Hashmap/Clauses/Template.lean b/tests/lean/hashmap/Hashmap/Clauses/Template.lean
index b767a0eb..7ba079f2 100644
--- a/tests/lean/hashmap/Hashmap/Clauses/Template.lean
+++ b/tests/lean/hashmap/Hashmap/Clauses/Template.lean
@@ -9,8 +9,8 @@ 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)
@@ -20,8 +20,8 @@ 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)
@@ -31,8 +31,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)
@@ -43,8 +43,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)
@@ -55,8 +55,8 @@ def hash_map_move_elements_loop_terminates (T : Type) (ntable : hash_map_t T)
(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)
@@ -67,8 +67,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)
@@ -79,8 +79,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)
@@ -90,8 +90,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)
@@ -101,8 +101,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)