Skip to content

Commit

Permalink
NIT
Browse files Browse the repository at this point in the history
  • Loading branch information
hei411 committed Dec 6, 2024
1 parent d3faa10 commit 0b40584
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions theories/coneris/examples/hash/con_hash_impl.v
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,19 @@ Section con_hash_impl.
own γ4 (●E (length (map_to_list m) + length (tape_m_elements tape_m)))
.

Definition abstract_con_hash_inv f l hm γ1 γ2 γ3 γ4:=
inv (nroot.@"con_hash_abstract") (abstract_con_hash f l hm γ1 γ2 γ3 γ4).

Definition concrete_con_hash (hm:loc) (m:gmap nat nat) γ : iProp Σ:=
map_list hm ((λ b, LitV (LitInt (Z.of_nat b))) <$> m) ∗
own γ (◯E m).

Definition concrete_con_hash_inv hm l γ_lock γ:=
is_lock (L:=conhashG_lockG) γ_lock l (∃ m, concrete_con_hash hm m γ).

Definition con_hash_inv f l hm γ1 γ2 γ3 γ4 γ_lock :=
(abstract_con_hash_inv f l hm γ1 γ2 γ3 γ4 ∗
concrete_con_hash_inv hm l γ_lock γ3)%I.

End con_hash_impl.

0 comments on commit 0b40584

Please sign in to comment.