Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
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
Rice Wine
Iris
Commits
7dc83979
Commit
7dc83979
authored
8 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Fix instance for ndisjoint.
parent
93faeb10
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
program_logic/namespaces.v
+2
-2
2 additions, 2 deletions
program_logic/namespaces.v
tests/joining_existentials.v
+5
-4
5 additions, 4 deletions
tests/joining_existentials.v
with
7 additions
and
6 deletions
program_logic/namespaces.v
+
2
−
2
View file @
7dc83979
...
...
@@ -34,7 +34,7 @@ Section ndisjoint.
Context
`{
Countable
A
}
.
Implicit
Types
x
y
:
A
.
Global
Instance
ndisjoint_
comm
:
Comm
iff
ndisjoint
.
Global
Instance
ndisjoint_
symmetric
:
Symmetric
ndisjoint
.
Proof
.
intros
N1
N2
.
rewrite
/
disjoint
/
ndisjoint
;
naive_solver
.
Qed
.
Lemma
ndot_ne_disjoint
N
x
y
:
x
≠
y
→
N
.
@
x
⊥
N
.
@
y
.
...
...
@@ -47,7 +47,7 @@ Section ndisjoint.
Qed
.
Lemma
ndot_preserve_disjoint_r
N1
N2
x
:
N1
⊥
N2
→
N1
⊥
N2
.
@
x
.
Proof
.
rewrite
!
[
N1
⊥
_]
comm
.
apply
ndot_preserve_disjoint_l
.
Qed
.
Proof
.
intros
.
by
apply
symmetry
,
ndot_preserve_disjoint_l
.
Qed
.
Lemma
ndisj_disjoint
N1
N2
:
N1
⊥
N2
→
nclose
N1
⊥
nclose
N2
.
Proof
.
...
...
This diff is collapsed.
Click to expand it.
tests/joining_existentials.v
+
5
−
4
View file @
7dc83979
...
...
@@ -77,8 +77,9 @@ Proof.
wp_apply
(
newbarrier_spec
heapN
N
(
barrier_res
γ
Φ
));
auto
.
iFrame
"Hh"
.
iIntros
{
l
}
"[Hr Hs]"
.
set
(
workers_post
(
v
:
val
)
:=
(
barrier_res
γ
Ψ1
★
barrier_res
γ
Ψ2
)
%
I
)
.
wp_let
.
wp_apply
(
wp_par
_
_
(
λ
_,
True
)
%
I
workers_post
);
first
done
.
iFrame
"Hh"
.
iSplitL
"HP Hs Hγ"
;
[|
iSplitL
"Hr"
]
.
wp_let
.
wp_apply
(
wp_par
_
_
(
λ
_,
True
)
%
I
workers_post
);
try
iFrame
"Hh"
;
first
done
.
iSplitL
"HP Hs Hγ"
;
[|
iSplitL
"Hr"
]
.
-
wp_focus
eM
.
iApply
wp_wand_l
;
iSplitR
"HP"
;
[|
by
iApply
"He"
]
.
iIntros
{
v
}
"HP"
;
iDestruct
"HP"
as
{
x
}
"HP"
.
wp_let
.
iPvs
(
own_update
_
_
(
Cinr
(
to_agree
_))
with
"Hγ"
)
as
"Hx"
.
...
...
@@ -88,8 +89,8 @@ Proof.
-
iDestruct
(
recv_weaken
with
"[] Hr"
)
as
"Hr"
;
first
by
iApply
P_res_split
.
iPvs
(
recv_split
with
"Hr"
)
as
"[H1 H2]"
;
first
done
.
wp_apply
(
wp_par
_
_
(
λ
_,
barrier_res
γ
Ψ1
)
%
I
(
λ
_,
barrier_res
γ
Ψ2
)
%
I
);
first
done
.
iSplit
;
[
done
|];
iSplitL
"H1"
;
[|
iSplitL
"H2"
]
.
(
λ
_,
barrier_res
γ
Ψ2
)
%
I
);
try
iFrame
"Hh"
;
first
done
.
iSplitL
"H1"
;
[|
iSplitL
"H2"
]
.
+
iApply
worker_spec
;
auto
.
+
iApply
worker_spec
;
auto
.
+
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