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
e3cdf16b
Commit
e3cdf16b
authored
5 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
all-value adequacy: fix the list of observations in advance
parent
9fc80517
No related branches found
Branches containing commit
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/adequacy.v
+7
-4
7 additions, 4 deletions
theories/program_logic/adequacy.v
with
7 additions
and
4 deletions
theories/program_logic/adequacy.v
+
7
−
4
View file @
e3cdf16b
...
...
@@ -212,8 +212,11 @@ Proof.
iIntros
"_"
.
by
iApply
fupd_mask_weaken
.
Qed
.
Theorem
wp_strong_all_adequacy
Σ
Λ
`{
!
invPreG
Σ
}
s
e
σ1
v
vs
σ2
φ
:
(
∀
`{
Hinv
:
!
invG
Σ
}
κs
,
(* Special adequacy for when *all threads* evaluate to a value. Here we let the
user pick the one list of observations for which the proof needs to apply. If
you just got an [rtc erased_step], use [erased_steps_nsteps]. *)
Theorem
wp_strong_all_adequacy
Σ
Λ
`{
!
invPreG
Σ
}
s
e
σ1
n
κs
v
vs
σ2
φ
:
(
∀
`{
Hinv
:
!
invG
Σ
},
(|
=
{
⊤
}=>
∃
(
stateI
:
state
Λ
→
list
(
observation
Λ
)
→
nat
→
iProp
Σ
)
(
fork_post
:
val
Λ
→
iProp
Σ
),
...
...
@@ -221,10 +224,10 @@ Theorem wp_strong_all_adequacy Σ Λ `{!invPreG Σ} s e σ1 v vs σ2 φ :
stateI
σ1
κs
0
∗
WP
e
@
s
;
⊤
{{
v
,
stateI
σ2
[]
(
length
vs
)
-∗
([
∗
list
]
v
∈
vs
,
fork_post
v
)
=
{
⊤
,
∅
}
=∗
⌜
φ
v
⌝
}})
%
I
)
→
rtc
erased_
step
([
e
],
σ1
)
(
of_val
<$>
v
::
vs
,
σ2
)
→
n
step
s
n
([
e
],
σ1
)
κs
(
of_val
<$>
v
::
vs
,
σ2
)
→
φ
v
.
Proof
.
intros
Hwp
[
n
[
κs
?]]
%
erased_steps_nsteps
.
intros
Hwp
?
.
eapply
(
step_fupdN_soundness'
_
(
S
(
S
n
)))=>
Hinv
.
rewrite
Nat_iter_S
.
iMod
Hwp
as
(
stateI
fork_post
)
"[Hσ Hwp]"
.
iApply
step_fupd_intro
;
first
done
.
iModIntro
.
...
...
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