diff options
author | Son Ho | 2023-07-26 15:07:09 +0200 |
---|---|---|
committer | Son Ho | 2023-07-26 15:07:09 +0200 |
commit | 42551283ecab981b9bb646cab2e8da5491d71b17 (patch) | |
tree | 53c174413f45d79e6bf3a5d9baa0e48bb78a241c /tests/lean/Hashmap | |
parent | 31de6eb8a82e17b4113262a18abf61e6233b55df (diff) |
Make minor modifications
Diffstat (limited to 'tests/lean/Hashmap')
-rw-r--r-- | tests/lean/Hashmap/Properties.lean | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/lean/Hashmap/Properties.lean b/tests/lean/Hashmap/Properties.lean index ee63a065..e1bd8669 100644 --- a/tests/lean/Hashmap/Properties.lean +++ b/tests/lean/Hashmap/Properties.lean @@ -271,7 +271,8 @@ theorem if_update_eq := by split <;> simp [Pure.pure] --- TODO: move: small helper +-- Small helper +-- TODO: move, and introduce a better solution with nice syntax def mk_opaque {α : Sort u} (x : α) : { y : α // y = x} := ⟨ x, by simp ⟩ @@ -328,8 +329,6 @@ theorem insert_no_resize_spec {α : Type} (hm : HashMap α) (key : Usize) (value else simp [*, Pure.pure] progress as ⟨ i0 ⟩ - -- TODO: progress "eager" to match premises with assumptions while instantiating - -- meta-variables have h_slot : slot_s_inv_hash hm.slots.length (hash_mod_key key hm.slots.length) l.v := by simp [inv] at hinv |