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
feaf69e5
Commit
feaf69e5
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Some comments for total weakest preconditions.
parent
ae38ce8f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/program_logic/total_weakestpre.v
+6
-0
6 additions, 0 deletions
theories/program_logic/total_weakestpre.v
with
6 additions
and
0 deletions
theories/program_logic/total_weakestpre.v
+
6
−
0
View file @
feaf69e5
...
...
@@ -4,6 +4,10 @@ From iris.program_logic Require Export weakestpre.
Set
Default
Proof
Using
"Type"
.
Import
uPred
.
(** The definition of total weakest preconditions is very similar to the
definition of normal (i.e. partial) weakest precondition, with the exception
that there is no later modality. Hence, instead of taking a Banach's fixpoint,
we take a least fixpoint. *)
Definition
twp_pre
`{
!
irisG
Λ
Σ
}
(
s
:
stuckness
)
(
wp
:
coPset
→
expr
Λ
→
(
val
Λ
→
iProp
Σ
)
→
iProp
Σ
)
:
coPset
→
expr
Λ
→
(
val
Λ
→
iProp
Σ
)
→
iProp
Σ
:=
λ
E
e1
Φ
,
...
...
@@ -19,6 +23,8 @@ Definition twp_pre `{!irisG Λ Σ} (s : stuckness)
[
∗
list
]
ef
∈
efs
,
wp
⊤
ef
fork_post
end
%
I
.
(** This is some uninteresting bookkeeping to prove that [twp_pre_mono] is
monotone. The actual least fixpoint [twp_def] can be found below. *)
Lemma
twp_pre_mono
`{
!
irisG
Λ
Σ
}
s
(
wp1
wp2
:
coPset
→
expr
Λ
→
(
val
Λ
→
iProp
Σ
)
→
iProp
Σ
)
:
((
□
∀
E
e
Φ
,
wp1
E
e
Φ
-∗
wp2
E
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