From db8cca3c3177fec2e66634366a6621ca979c0dc9 Mon Sep 17 00:00:00 2001 From: Son Ho Date: Tue, 7 Mar 2023 09:05:45 +0100 Subject: Update the generation of termination and decreases_by templates for Lean --- tests/lean/hashmap/Hashmap/Clauses/Template.lean | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'tests/lean/hashmap') 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) -- cgit v1.2.3