Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Jonas Kastberg
iris
Commits
98ddbead
Commit
98ddbead
authored
Oct 30, 2018
by
Robbert Krebbers
Browse files
Document `state_interp` and `fork_post`.
parent
f7af5b3f
Changes
1
Hide whitespace changes
Inline
Side-by-side
theories/program_logic/weakestpre.v
View file @
98ddbead
...
...
@@ -7,7 +7,17 @@ Import uPred.
Class
irisG'
(
Λ
state
Λ
observation
:
Type
)
(
Σ
:
gFunctors
)
:
=
IrisG
{
iris_invG
:
>
invG
Σ
;
(** The state interpretation is an invariant that should hold in between each
step of reduction. Here [Λstate] is the global state, [list Λobservation] are
the remaining observations, and [nat] is the number of forked-off threads
(not the total number of threads, which is one higher because there is always
a main thread). *)
state_interp
:
Λ
state
→
list
Λ
observation
→
nat
→
iProp
Σ
;
(** A fixed postcondition for any forked-off thread. For most languages, e.g.
heap_lang, this will simply be [True]. However, it is useful if one wants to
keep track of resources precisely, as in e.g. Iron. *)
fork_post
:
iProp
Σ
;
}.
Notation
irisG
Λ
Σ
:
=
(
irisG'
(
state
Λ
)
(
observation
Λ
)
Σ
).
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment