Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
ReLoC-v1
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dan Frumin
ReLoC-v1
Commits
f7b78e01
Commit
f7b78e01
authored
Aug 11, 2017
by
Dan Frumin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ProofMode's iDestruct to eliminate intuitionistic conjunction
parent
1769a63f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
F_mu_ref_conc/examples/counter.v
F_mu_ref_conc/examples/counter.v
+7
-7
No files found.
F_mu_ref_conc/examples/counter.v
View file @
f7b78e01
...
...
@@ -163,12 +163,12 @@ Section CG_Counter.
unfold
FG_increment
.
unlock
.
simpl
.
iL
ö
b
as
"IH"
.
rel_rec_l
.
rel_bind_l
(
Load
(
Loc
x
)).
iPoseProof
"H"
as
"H2"
.
(
*
lolwhat
*
)
rel_bind_l
(
Load
#
x
).
iApply
(
bin_log_related_load_l
).
iMod
"H"
as
(
n
)
"[Hx [HR Hrev]]"
.
iModIntro
.
iExists
(#
nv
n
).
iFrame
.
iNext
.
iIntros
"Hx"
.
rewrite
->
uPred
.
and_elim_l
.
iDestruct
"Hrev"
as
"[Hrev _]"
.
iApply
fupd_logrel
.
iMod
(
"Hrev"
with
"[HR Hx]"
).
{
iExists
_.
iFrame
.
}
iModIntro
.
simpl
.
...
...
@@ -181,15 +181,15 @@ Section CG_Counter.
-
iExists
(#
nv
n
'
).
iFrame
.
iSplitR
;
eauto
.
{
iDestruct
1
as
%
Hfoo
.
exfalso
.
done
.
}
iIntros
"_ !> Hx"
.
simpl
.
rewrite
->
uPred
.
and_elim_r
.
iDestruct
"HQ"
as
"[_ HQ]"
.
iSpecialize
(
"HQ"
$
!
n
'
with
"[Hx HR]"
).
{
iFrame
.
}
iApply
(
bin_log_related_if_true_masked_l
_
_
_
K
);
auto
.
-
iExists
(#
nv
n
'
).
iFrame
.
iSplitL
;
eauto
;
last
first
.
{
iDestruct
1
as
%
Hfoo
.
exfalso
.
simplify_eq
.
}
iIntros
"_ !> Hx"
.
simpl
.
iApply
(
bin_log_related_if_false_masked_l
_
_
_
K
);
auto
.
rewrite
->
uPred
.
and_elim_l
.
iApply
(
bin_log_related_if_false_masked_l
_
_
_
K
);
auto
.
iDestruct
"HQ"
as
"[HQ _]"
.
iMod
(
"HQ"
with
"[Hx HR]"
).
{
iExists
_
;
iFrame
.
}
iApply
"IH"
.
...
...
@@ -205,12 +205,12 @@ Section CG_Counter.
Proof
.
iIntros
"#H"
.
unfold
counter_read
.
unlock
.
simpl
.
iApply
(
bin_log_related_rec_l
_
E1
_
);
auto
.
iNext
.
simp
l
.
rel_rec_
l
.
iApply
(
bin_log_related_load_l
).
iMod
"H"
as
(
n
)
"[Hx [HR Hfin]]"
.
iModIntro
.
iExists
_
;
iFrame
"Hx"
.
iNext
.
iIntros
"Hx"
.
rewrite
->
uPred
.
and_elim_r
.
(
*
TODO
:
a
tactic
for
this
*
)
iDestruct
"Hfin"
as
"[_ Hfin]"
.
iApply
"Hfin"
.
by
iFrame
.
Qed
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment