Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ReLoC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
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
Iris
ReLoC
Commits
15dac0c4
Commit
15dac0c4
authored
4 years ago
by
Dan Frumin
Browse files
Options
Downloads
Patches
Plain Diff
Simplify `revoke_offer_l` further
parent
26051162
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#27251
passed
4 years ago
Changes
1
Pipelines
6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/experimental/helping/helping_stack.v
+5
-10
5 additions, 10 deletions
theories/experimental/helping/helping_stack.v
with
5 additions
and
10 deletions
theories/experimental/helping/helping_stack.v
+
5
−
10
View file @
15dac0c4
...
...
@@ -229,22 +229,19 @@ Section refinement.
(** First we have the revoke_offer symbolic execution rule specialized for helping.
This is also the only place where we need to unfold the definition of the refinement proposition. *)
(* DF: Can this be simplified ? *)
Lemma
revoke_offer_l
γ
off
E
K
(
v
:
val
)
e1
e2
A
:
offer_token
γ
-∗
(
∀
j
K'
,
(
j
⤇
fill
K'
e1
)
-∗
is_offer
γ
off
(
j
⤇
fill
K'
e1
)
(
j
⤇
fill
K'
e2
))
-∗
(
∀
j
K'
,
is_offer
γ
off
(
j
⤇
fill
K'
e1
)
(
j
⤇
fill
K'
e2
)
=
{
E
,
⊤
,
E
}
▷=∗
(
∀
j
K'
,
(
j
⤇
fill
K'
e1
)
=
{
E
,
⊤
,
E
}
▷=∗
▷
is_offer
γ
off
(
j
⤇
fill
K'
e1
)
(
j
⤇
fill
K'
e2
)
∗
▷
(
is_offer
γ
off
(
j
⤇
fill
K'
e1
)
(
j
⤇
fill
K'
e2
)
-∗
((
REL
fill
K
(
of_val
NONEV
)
<<
e2
@
E
:
A
)
∧
(
REL
fill
K
(
of_val
$
SOMEV
v
)
<<
e1
@
E
:
A
))))
-∗
REL
fill
K
(
revoke_offer
(
v
,
#
off
)
%
V
)
<<
e1
@
E
:
A
.
Proof
.
iIntros
"Hγ
Hoff
Hlog"
.
iIntros
"Hγ Hlog"
.
rewrite
{
3
}
refines_eq
/
refines_def
.
iIntros
(
j
K'
)
"#Hs Hj"
.
iSpecialize
(
"Hoff"
with
"Hj"
)
.
iMod
(
"Hlog"
with
"Hoff"
)
as
"Hlog"
.
iMod
(
"Hlog"
with
"Hj"
)
as
"Hlog"
.
iModIntro
.
iApply
wp_bind
.
(* TODO: why do we have to use wp_bind here? *)
wp_apply
(
wp_revoke_offer
with
"Hγ [-]"
)
.
iNext
.
iMod
"Hlog"
as
"[Hoff Hcont]"
.
iModIntro
.
...
...
@@ -527,10 +524,8 @@ Section refinement.
iIntros
"Hmb"
.
rel_pures_l
.
rel_apply_l
(
revoke_offer_l
with
"Htok [Hoff]"
)
.
{
iIntros
(
j
K'
)
"Hj"
.
iApply
(
"Hoff"
with
"Hj"
)
.
}
iIntros
(
j
K'
)
"Hoff"
.
rel_apply_l
(
revoke_offer_l
with
"Htok"
)
.
iIntros
(
j
K'
)
"Hj"
.
iSpecialize
(
"Hoff"
with
"Hj"
)
.
iDestruct
(
offerInv_excl
with
"HN Hoff"
)
as
%
?
.
iMod
(
offerReg_alloc
off
h2
γ
j
K'
with
"HNown"
)
as
"[HNown #Hfrag]"
;
eauto
.
iMod
(
"Hcl"
with
"[-]"
)
as
"_"
.
...
...
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