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
Pierre Roux
Iris
Commits
01d2e142
Commit
01d2e142
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
review feedback
parent
97b9de6c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
theories/heap_lang/derived_laws.v
+5
-6
5 additions, 6 deletions
theories/heap_lang/derived_laws.v
theories/heap_lang/primitive_laws.v
+2
-1
2 additions, 1 deletion
theories/heap_lang/primitive_laws.v
theories/program_logic/lifting.v
+3
-0
3 additions, 0 deletions
theories/program_logic/lifting.v
with
10 additions
and
7 deletions
theories/heap_lang/derived_laws.v
+
5
−
6
View file @
01d2e142
(** This file extens the HeapLang program logic with some derived laws
abou
t
(** This file exten
d
s the HeapLang program logic with some derived laws
(no
t
arrays and prophecies.
using the lifting lemmas) about
arrays and prophecies.
For
more array operations, see [heap_lang.lib.array].
For
utility functions on arrays (e.g., freeing/copying an array), see
*)
[heap_lang.lib.array].
*)
From
stdpp
Require
Import
fin_maps
.
From
stdpp
Require
Import
fin_maps
.
From
iris
.
bi
Require
Import
lib
.
fractional
.
From
iris
.
bi
Require
Import
lib
.
fractional
.
From
iris
.
proofmode
Require
Import
tactics
.
From
iris
.
proofmode
Require
Import
tactics
.
From
iris
.
program_logic
Require
Import
ectx_lifting
.
From
iris
.
heap_lang
Require
Export
primitive_laws
.
From
iris
.
heap_lang
Require
Export
primitive_laws
.
From
iris
.
heap_lang
Require
Import
tactics
notation
.
From
iris
.
heap_lang
Require
Import
tactics
notation
.
Set
Default
Proof
Using
"Type"
.
Set
Default
Proof
Using
"Type"
.
...
@@ -333,7 +332,7 @@ Lemma wp_resolve_proph s E (p : proph_id) (pvs : list (val * val)) v :
...
@@ -333,7 +332,7 @@ Lemma wp_resolve_proph s E (p : proph_id) (pvs : list (val * val)) v :
{{{
pvs'
,
RET
(
LitV
LitUnit
);
⌜
pvs
=
(
LitV
LitUnit
,
v
)::
pvs'
⌝
∗
proph
p
pvs'
}}}
.
{{{
pvs'
,
RET
(
LitV
LitUnit
);
⌜
pvs
=
(
LitV
LitUnit
,
v
)::
pvs'
⌝
∗
proph
p
pvs'
}}}
.
Proof
.
Proof
.
iIntros
(
Φ
)
"Hp HΦ"
.
iApply
(
wp_resolve
with
"Hp"
);
first
done
.
iIntros
(
Φ
)
"Hp HΦ"
.
iApply
(
wp_resolve
with
"Hp"
);
first
done
.
iApply
wp_pure_step_later
=>
//=.
iApply
wp_value
.
iApply
lifting
.
wp_pure_step_later
=>
//=.
iApply
wp_value
.
iIntros
"!>"
(
vs'
)
"HEq Hp"
.
iApply
"HΦ"
.
iFrame
.
iIntros
"!>"
(
vs'
)
"HEq Hp"
.
iApply
"HΦ"
.
iFrame
.
Qed
.
Qed
.
...
...
This diff is collapsed.
Click to expand it.
theories/heap_lang/primitive_laws.v
+
2
−
1
View file @
01d2e142
(** This file proves the basic laws of the HeapLang program logic. *)
(** This file proves the basic laws of the HeapLang program logic by applying
the Iris lifting lemmas. *)
From
stdpp
Require
Import
fin_maps
.
From
stdpp
Require
Import
fin_maps
.
From
iris
.
proofmode
Require
Import
tactics
.
From
iris
.
proofmode
Require
Import
tactics
.
...
...
This diff is collapsed.
Click to expand it.
theories/program_logic/lifting.v
+
3
−
0
View file @
01d2e142
(** The "lifting lemmas" in this file serve to lift the rules of the operational
semantics to the program logic. *)
From
iris
.
proofmode
Require
Import
tactics
.
From
iris
.
proofmode
Require
Import
tactics
.
From
iris
.
program_logic
Require
Export
weakestpre
.
From
iris
.
program_logic
Require
Export
weakestpre
.
Set
Default
Proof
Using
"Type"
.
Set
Default
Proof
Using
"Type"
.
...
...
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