Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tej Chajed
iris
Commits
fd02cdaa
Commit
fd02cdaa
authored
2 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
In logatom lock: Formalize that the lock is Free before acquire.
parent
6d670edc
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iris_heap_lang/lib/logatom_lock.v
+2
-2
2 additions, 2 deletions
iris_heap_lang/lib/logatom_lock.v
with
2 additions
and
2 deletions
iris_heap_lang/lib/logatom_lock.v
+
2
−
2
View file @
fd02cdaa
...
...
@@ -74,7 +74,7 @@ Section tada.
tada_is_lock
γ
lk
-∗
<<<
∀∀
s
,
tada_lock_state
γ
s
>>>
l
.(
acquire
)
lk
@
∅
<<<
tada_lock_state
γ
Locked
,
RET
#
()
>>>.
<<<
⌜
s
=
Free
⌝
∗
tada_lock_state
γ
Locked
,
RET
#
()
>>>.
Proof
.
iIntros
"#Hislock %Φ AU"
.
iApply
wp_fupd
.
wp_apply
(
l
.(
acquire_spec
)
with
"Hislock"
)
.
...
...
@@ -83,7 +83,7 @@ Section tada.
iDestruct
(
ghost_var_agree
with
"Hvar1 Hvar2"
)
as
%<-.
iMod
(
ghost_var_update_2
Locked
with
"Hvar1 Hvar2"
)
as
"[Hvar1 Hvar2]"
.
{
rewrite
Qp
.
quarter_three_quarter
//.
}
iMod
(
"Hclose"
with
"[$Hvar2 $Hlocked $Hvar1]"
)
.
done
.
iMod
(
"Hclose"
with
"[$Hvar2 $Hlocked $Hvar1]"
)
;
done
.
Qed
.
Lemma
release_tada_spec
γ
lk
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment