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
49b04515
Commit
49b04515
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
avoid non-value notation in val_scope
parent
c1449e94
No related branches found
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/heap_lang/lib/coin_flip.v
+1
-1
1 addition, 1 deletion
theories/heap_lang/lib/coin_flip.v
theories/heap_lang/lib/par.v
+1
-3
1 addition, 3 deletions
theories/heap_lang/lib/par.v
with
2 additions
and
4 deletions
theories/heap_lang/lib/coin_flip.v
+
1
−
1
View file @
49b04515
From
iris
.
base_logic
.
lib
Require
Export
invariants
.
From
iris
.
program_logic
Require
Export
atomic
.
From
iris
.
proofmode
Require
Import
tactics
.
From
iris
.
heap_lang
Require
Import
proofmode
notation
par
.
From
iris
.
heap_lang
Require
Import
proofmode
notation
.
Set
Default
Proof
Using
"Type"
.
(** Nondeterminism and Speculation:
...
...
This diff is collapsed.
Click to expand it.
theories/heap_lang/lib/par.v
+
1
−
3
View file @
49b04515
...
...
@@ -12,8 +12,6 @@ Definition par : val :=
let
:
"v1"
:=
join
"handle"
in
(
"v1"
,
"v2"
)
.
Notation
"e1 ||| e2"
:=
(
par
(
λ
:
<>
,
e1
)
%
E
(
λ
:
<>
,
e2
)
%
E
)
:
expr_scope
.
(* Not a value itself, but with *unlocked* value lambdas. *)
Local
Notation
"e1 ||| e2"
:=
(
par
(
LamV
BAnon
e1
%
E
)
(
LamV
BAnon
e2
%
E
))
:
val_scope
.
Section
proof
.
Local
Set
Default
Proof
Using
"Type*"
.
...
...
@@ -39,7 +37,7 @@ Qed.
Lemma
wp_par
(
Ψ1
Ψ2
:
val
→
iProp
Σ
)
(
e1
e2
:
expr
)
(
Φ
:
val
→
iProp
Σ
)
:
WP
e1
{{
Ψ1
}}
-∗
WP
e2
{{
Ψ2
}}
-∗
(
∀
v1
v2
,
Ψ1
v1
∗
Ψ2
v2
-∗
▷
Φ
(
v1
,
v2
)
%
V
)
-∗
WP
(
e1
|||
e2
)
%
V
{{
Φ
}}
.
WP
par
(
LamV
BAnon
e1
)
(
LamV
BAnon
e2
)
{{
Φ
}}
.
Proof
.
iIntros
"H1 H2 H"
.
wp_apply
(
par_spec
Ψ1
Ψ2
with
"[H1] [H2] [H]"
);
[
by
wp_lam
..|
auto
]
.
...
...
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