Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
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
William Mansky
Iris
Commits
8b3a3d96
Commit
8b3a3d96
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of gitlab.mpi-sws.org:FP/iris-coq
parents
ce820d49
3845293e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/derived.tex
+2
-2
2 additions, 2 deletions
docs/derived.tex
docs/logic.tex
+2
-2
2 additions, 2 deletions
docs/logic.tex
heap_lang/lifting.v
+5
-4
5 additions, 4 deletions
heap_lang/lifting.v
with
9 additions
and
8 deletions
docs/derived.tex
+
2
−
2
View file @
8b3a3d96
...
...
@@ -176,8 +176,8 @@ The following rules can be derived for Hoare triples.
{
\hoare
{
\prop
*
\propC
}{
\expr
}{
\Ret\val
.
\propB
*
\propC
}
[
\mask
]
}
\and
\inferH
{
Ht-frame-step
}
{
\hoare
{
\prop
}{
\expr
}{
\Ret\val
.
\propB
}
[
\mask
]
\and
\toval
(
\expr
) =
\bot
}
{
\hoare
{
\prop
*
\later
\propC
}{
\expr
}{
\Ret\val
.
\propB
*
\propC
}
[
\mask
]
}
{
\hoare
{
\prop
}{
\expr
}{
\Ret\val
.
\propB
}
[
\mask
]
\and
\toval
(
\expr
) =
\bot
\and
\mask
_
2
\subseteq
\mask
_
2
\\\\
\propC
_
1
\vs
[\mask_1][\mask_2]
\later\propC
_
2
\and
\propC
_
2
\vs
[\mask_2][\mask_1]
\propC
_
3
}
{
\hoare
{
\prop
*
\propC
_
1
}{
\expr
}{
\Ret\val
.
\propB
*
\propC
_
3
}
[
\mask
\uplus
\mask
_
1
]
}
\and
\inferH
{
Ht-atomic
}
{
\prop
\vs
[\mask \uplus \mask'][\mask]
\prop
'
\\
...
...
This diff is collapsed.
Click to expand it.
docs/logic.tex
+
2
−
2
View file @
8b3a3d96
...
...
@@ -584,8 +584,8 @@ This is entirely standard.
{}{
\propB
*
\wpre\expr
[\mask]
{
\Ret\var
.
\prop
}
\proves
\wpre\expr
[\mask]
{
\Ret\var
.
\propB*\prop
}}
\infer
[wp-frame-step]
{
\toval
(
\expr
) =
\bot
}
{
\later\propB
*
\wpre\expr
[\mask]
{
\Ret\var
.
\prop
}
\proves
\wpre\expr
[\mask]
{
\Ret\var
.
\propB*\prop
}}
{
\toval
(
\expr
) =
\bot
\and
\mask
_
2
\subseteq
\mask
_
1
}
{
\wpre\expr
[\mask]
{
\Ret\var
.
\prop
}
*
\pvs
[\mask_1][\mask_2]
\later\pvs
[\mask_2][\mask_1]
\propB
\proves
\wpre\expr
[\mask
\uplus \mask_1
]
{
\Ret\var
.
\propB*\prop
}}
\infer
[wp-bind]
{
\text
{$
\lctx
$
is a context
}}
...
...
This diff is collapsed.
Click to expand it.
heap_lang/lifting.v
+
5
−
4
View file @
8b3a3d96
...
...
@@ -28,12 +28,13 @@ Lemma wp_alloc_pst E σ e v Φ :
(
▷
ownP
σ
★
▷
(
∀
l
,
σ
!!
l
=
None
∧
ownP
(
<
[
l
:=
v
]
>
σ
)
-★
Φ
(
LocV
l
)))
⊢
WP
Alloc
e
@
E
{{
Φ
}}
.
Proof
.
iIntros
{?}
"[HP HΦ]"
.
(* TODO: This works around ssreflect bug #22. *)
intros
.
set
(
φ
(
e'
:
expr
[])
σ'
ef
:=
∃
l
,
set
(
φ
(
e'
:
expr
[])
σ'
ef
:=
∃
l
,
ef
=
None
∧
e'
=
Loc
l
∧
σ'
=
<
[
l
:=
v
]
>
σ
∧
σ
!!
l
=
None
)
.
rewrite
-
(
wp_lift_atomic_head_step
(
Alloc
e
)
φ
σ
)
//
/
φ
;
last
(
by
intros
;
inv_head_step
;
eauto
8
);
last
(
by
simpl
;
eauto
)
.
i
Intros
"[$ HΦ] >"
;
iIntros
{
v2
σ2
ef
}
"[% HP]"
.
iApply
(
wp_lift_atomic_head_step
(
Alloc
e
)
φ
σ
)
;
try
(
by
simpl
;
eauto
)
;
[
by
intros
;
subst
φ
;
inv_head_step
;
eauto
8
|]
.
i
Frame
"HP"
.
iNext
.
iIntros
{
v2
σ2
ef
}
"[% HP]"
.
(* FIXME: I should not have to refer to "H0". *)
destruct
H0
as
(
l
&
->
&
[
=
<-
]
%
of_to_val_flip
&
->
&
?);
simpl
.
iSplit
;
last
done
.
iApply
"HΦ"
;
by
iSplit
.
...
...
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