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
I
Iris
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
116
Issues
116
List
Boards
Labels
Service Desk
Milestones
Merge Requests
23
Merge Requests
23
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Iris
Iris
Commits
b2527d69
Commit
b2527d69
authored
Jan 27, 2016
by
Ralf Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make Plus lemma more concise
parent
9a2e4b47
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
barrier/lifting.v
barrier/lifting.v
+2
-4
barrier/tests.v
barrier/tests.v
+1
-1
No files found.
barrier/lifting.v
View file @
b2527d69
...
...
@@ -188,11 +188,9 @@ Proof.
by
asimpl
.
Qed
.
Lemma
wp_plus
n1
n2
E
P
Q
:
P
⊑
Q
(
LitNatV
(
n1
+
n2
))
→
▷
P
⊑
wp
(
Σ
:
=
Σ
)
E
(
Plus
(
LitNat
n1
)
(
LitNat
n2
))
Q
.
Lemma
wp_plus
n1
n2
E
Q
:
▷
Q
(
LitNatV
(
n1
+
n2
))
⊑
wp
(
Σ
:
=
Σ
)
E
(
Plus
(
LitNat
n1
)
(
LitNat
n2
))
Q
.
Proof
.
intros
HP
.
etransitivity
;
last
eapply
wp_lift_pure_step
with
(
φ
:
=
λ
e'
,
e'
=
LitNat
(
n1
+
n2
))
;
last
first
.
-
intros
?
?
?
?
Hstep
.
inversion_clear
Hstep
;
done
.
...
...
barrier/tests.v
View file @
b2527d69
...
...
@@ -47,7 +47,7 @@ Module LiftingTests.
{
eapply
wp_load
.
apply
:
lookup_insert
.
}
(* RJ TODO: figure out why apply and eapply fail. *)
move
=>
v
;
apply
const_elim_l
;
move
=>->
{
v
}.
rewrite
-(
wp_bind
_
_
(
SeqCtx
(
StoreRCtx
(
LocV
_
)
EmptyCtx
)
(
Load
(
Loc
_
)))).
rewrite
(
later_intro
(
ownP
_
))
;
apply
wp_plus
.
rewrite
-
wp_plus
-
later_intro
.
rewrite
-(
wp_bind
_
_
(
SeqCtx
EmptyCtx
(
Load
(
Loc
_
)))).
rewrite
-
wp_mono
.
{
eapply
wp_store
;
first
reflexivity
.
apply
:
lookup_insert
.
}
...
...
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