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
Gaëtan Gilbert
Iris
Commits
418ca5de
Commit
418ca5de
authored
7 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
expand comments
parent
42dfffc9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/program_logic/language.v
+10
-3
10 additions, 3 deletions
theories/program_logic/language.v
with
10 additions
and
3 deletions
theories/program_logic/language.v
+
10
−
3
View file @
418ca5de
...
@@ -52,12 +52,19 @@ Section language.
...
@@ -52,12 +52,19 @@ Section language.
Definition
irreducible
(
e
:
expr
Λ
)
(
σ
:
state
Λ
)
:=
Definition
irreducible
(
e
:
expr
Λ
)
(
σ
:
state
Λ
)
:=
∀
e'
σ'
efs
,
¬
prim_step
e
σ
e'
σ'
efs
.
∀
e'
σ'
efs
,
¬
prim_step
e
σ
e'
σ'
efs
.
(* This (weak) form of atomicity is enough to open invariants when WP is safe,
(* This (weak) form of atomicity is enough to open invariants when WP ensures
i.e., programs never can get stuck. *)
safety, i.e., programs never can get stuck. We have an example in
lambdaRust of an expression that is atomic in this sense, but not in the
stronger sense defined below, and we have to be able to open invariants
around that expression. See `CasStuckS` in
[lambdaRust](https://gitlab.mpi-sws.org/FP/LambdaRust-coq/blob/master/theories/lang/lang.v). *)
Definition
atomic
(
e
:
expr
Λ
)
:
Prop
:=
Definition
atomic
(
e
:
expr
Λ
)
:
Prop
:=
∀
σ
e'
σ'
efs
,
prim_step
e
σ
e'
σ'
efs
→
irreducible
e'
σ'
.
∀
σ
e'
σ'
efs
,
prim_step
e
σ
e'
σ'
efs
→
irreducible
e'
σ'
.
(* To open invariants with unsafe WP, we need a stronger form of atomicity. *)
(* To open invariants with a WP that does not ensure safety, we need a
stronger form of atomicity. With the above definition, in case `e` reduces
to a stuck non-value, there is no proof that the invariants have been
established again. *)
Definition
strongly_atomic
(
e
:
expr
Λ
)
:
Prop
:=
Definition
strongly_atomic
(
e
:
expr
Λ
)
:
Prop
:=
∀
σ
e'
σ'
efs
,
prim_step
e
σ
e'
σ'
efs
→
is_Some
(
to_val
e'
)
.
∀
σ
e'
σ'
efs
,
prim_step
e
σ
e'
σ'
efs
→
is_Some
(
to_val
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