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
1f53f0a4
Commit
1f53f0a4
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
some more playing around with the proof mode.
parent
0243cbd4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
heap_lang/lifting.v
+11
-8
11 additions, 8 deletions
heap_lang/lifting.v
program_logic/hoare.v
+1
-1
1 addition, 1 deletion
program_logic/hoare.v
with
12 additions
and
9 deletions
heap_lang/lifting.v
+
11
−
8
View file @
1f53f0a4
...
...
@@ -2,6 +2,7 @@ From iris.program_logic Require Export ectx_weakestpre.
From
iris
.
program_logic
Require
Import
ownership
.
(* for ownP *)
From
iris
.
heap_lang
Require
Export
lang
.
From
iris
.
heap_lang
Require
Import
tactics
.
From
iris
.
proofmode
Require
Import
weakestpre
.
Import
uPred
.
Local
Hint
Extern
0
(
head_reducible
_
_)
=>
do_head_step
eauto
2
.
...
...
@@ -32,14 +33,16 @@ Proof.
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
)
.
apply
sep_mono
,
later_mono
;
first
done
.
apply
forall_intro
=>
v2
;
apply
forall_intro
=>
σ2
;
apply
forall_intro
=>
ef
.
apply
wand_intro_l
.
rewrite
always_and_sep_l
-
assoc
-
always_and_sep_l
.
apply
const_elim_l
=>
-
[
l
[
->
[
Hl
[
->
?]]]]
.
rewrite
(
forall_elim
l
)
right_id
const_equiv
//
left_id
wand_elim_r
.
rewrite
-
(
of_to_val
(
Loc
l
)
(
LocV
l
))
//
in
Hl
.
by
apply
of_val_inj
in
Hl
as
->
.
iIntros
"[HP HΦ]"
.
iFrame
"HP"
.
iNext
.
iIntros
{
v2
σ2
ef
}
"[% HP]"
.
(* FIXME: I should not have to refer to "H0". *)
destruct
H0
as
(
l
&
->
&
?
&
->
&
?)
.
rewrite
-
(
of_to_val
(
Loc
l
)
(
LocV
l
))
//
in
H0
.
apply
of_val_inj
in
H0
as
->
.
simpl
.
iSplitL
;
last
done
.
(* FIXME: I should be able to do [iSpecialize "HΦ" l]. *)
(* FIXME: I should be able to do [iApply "HΦ" l]. *)
iApply
"HΦ"
.
iSplit
;
done
.
Qed
.
Lemma
wp_load_pst
E
σ
l
v
Φ
:
...
...
This diff is collapsed.
Click to expand it.
program_logic/hoare.v
+
1
−
1
View file @
1f53f0a4
...
...
@@ -115,7 +115,7 @@ Proof.
-
iPvs
"Hvs1"
"HR"
as
"HR"
;
first
by
set_solver
.
iPvsIntro
.
iNext
.
iPvs
"Hvs2"
"HR"
as
"HR"
;
first
by
set_solver
.
iPvsIntro
.
iApply
"HR"
.
-
iApply
"Hwp"
.
done
.
-
iApply
"Hwp"
"HP"
.
Qed
.
Lemma
ht_frame_step_r
E
E1
E2
P
R1
R2
R3
e
Φ
:
...
...
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