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
b2527d69
Commit
b2527d69
authored
9 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
make Plus lemma more concise
parent
9a2e4b47
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
barrier/lifting.v
+2
-4
2 additions, 4 deletions
barrier/lifting.v
barrier/tests.v
+1
-1
1 addition, 1 deletion
barrier/tests.v
with
3 additions
and
5 deletions
barrier/lifting.v
+
2
−
4
View file @
b2527d69
...
@@ -188,11 +188,9 @@ Proof.
...
@@ -188,11 +188,9 @@ Proof.
by
asimpl
.
by
asimpl
.
Qed
.
Qed
.
Lemma
wp_plus
n1
n2
E
P
Q
:
Lemma
wp_plus
n1
n2
E
Q
:
P
⊑
Q
(
LitNatV
(
n1
+
n2
))
→
▷
Q
(
LitNatV
(
n1
+
n2
))
⊑
wp
(
Σ
:=
Σ
)
E
(
Plus
(
LitNat
n1
)
(
LitNat
n2
))
Q
.
▷
P
⊑
wp
(
Σ
:=
Σ
)
E
(
Plus
(
LitNat
n1
)
(
LitNat
n2
))
Q
.
Proof
.
Proof
.
intros
HP
.
etransitivity
;
last
eapply
wp_lift_pure_step
with
etransitivity
;
last
eapply
wp_lift_pure_step
with
(
φ
:=
λ
e'
,
e'
=
LitNat
(
n1
+
n2
));
last
first
.
(
φ
:=
λ
e'
,
e'
=
LitNat
(
n1
+
n2
));
last
first
.
-
intros
?
?
?
?
Hstep
.
inversion_clear
Hstep
;
done
.
-
intros
?
?
?
?
Hstep
.
inversion_clear
Hstep
;
done
.
...
...
This diff is collapsed.
Click to expand it.
barrier/tests.v
+
1
−
1
View file @
b2527d69
...
@@ -47,7 +47,7 @@ Module LiftingTests.
...
@@ -47,7 +47,7 @@ Module LiftingTests.
{
eapply
wp_load
.
apply
:
lookup_insert
.
}
(* RJ TODO: figure out why apply and eapply fail. *)
{
eapply
wp_load
.
apply
:
lookup_insert
.
}
(* RJ TODO: figure out why apply and eapply fail. *)
move
=>
v
;
apply
const_elim_l
;
move
=>
->
{
v
}
.
move
=>
v
;
apply
const_elim_l
;
move
=>
->
{
v
}
.
rewrite
-
(
wp_bind
_
_
(
SeqCtx
(
StoreRCtx
(
LocV
_)
EmptyCtx
)
(
Load
(
Loc
_))))
.
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_bind
_
_
(
SeqCtx
EmptyCtx
(
Load
(
Loc
_))))
.
rewrite
-
wp_mono
.
rewrite
-
wp_mono
.
{
eapply
wp_store
;
first
reflexivity
.
apply
:
lookup_insert
.
}
{
eapply
wp_store
;
first
reflexivity
.
apply
:
lookup_insert
.
}
...
...
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