Skip to content
Snippets Groups Projects
Commit 51da9c32 authored by Ralf Jung's avatar Ralf Jung
Browse files

Merge branch 'logatom_lock' into 'master'

logatom_lock tweaks

See merge request iris/iris!829
parents 75c9df64 fc4b08fe
No related branches found
No related tags found
No related merge requests found
(** A TaDA-style logically atomic specification for a lock, derived for an
arbitrary implementation of the lock interfacne. The opposite direction
could also be derived rather easily, as shown in the TaDA paper.
could also be derived rather easily (modulo a later in the [acquire] postcondition
or a restriction to timeless lock invariants), as shown in the TaDA paper.
In essence, this is an instance of the general fact that 'invariant-based'
("HoCAP-style") logically atomic specifications are equivalent to TaDA-style
......@@ -27,8 +28,8 @@ Section tada.
Context `{!heapGS Σ, !lockG Σ} (l : lock).
Record tada_lock_name := TadaLockName {
tada_lock_name_state : gname;
tada_lock_name_lock : l.(name);
tada_lock_name_state : gname;
tada_lock_name_lock : l.(name);
}.
Definition tada_lock_state (γ : tada_lock_name) (s : state) : iProp Σ :=
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment