Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
examples
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
Iris
examples
Commits
6606345b
"git-rts@gitlab.mpi-sws.org:lczch/iris.git" did not exist on "df4574f2c2ab98938913401f7a6c1a959e65b55b"
Commit
6606345b
authored
6 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
fix previous commit
parent
650de4e4
No related branches found
No related tags found
No related merge requests found
Pipeline
#15060
passed
6 years ago
Stage: build
Changes
3
Pipelines
7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
opam
+1
-1
1 addition, 1 deletion
opam
theories/hocap/cg_bag.v
+4
-4
4 additions, 4 deletions
theories/hocap/cg_bag.v
theories/hocap/fg_bag.v
+4
-4
4 additions, 4 deletions
theories/hocap/fg_bag.v
with
9 additions
and
9 deletions
opam
+
1
−
1
View file @
6606345b
...
...
@@ -9,6 +9,6 @@ build: [make "-j%{jobs}%"]
install: [make "install"]
remove: ["rm" "-rf" "%{lib}%/coq/user-contrib/iris_examples"]
depends: [
"coq-iris" { (= "dev.2019-02-22.
0.0c5f29db
") | (= "dev") }
"coq-iris" { (= "dev.2019-02-22.
1.9c04e2b4
") | (= "dev") }
"coq-autosubst" { = "dev.coq86" }
]
This diff is collapsed.
Click to expand it.
theories/hocap/cg_bag.v
+
4
−
4
View file @
6606345b
...
...
@@ -52,7 +52,7 @@ Section proof.
Fixpoint
bag_of_val
(
ls
:
val
)
:
gmultiset
val
:=
match
ls
with
|
NONEV
=>
∅
|
SOMEV
(
v1
,
t
)
=>
{[
v1
]}
∪
bag_of_val
t
|
SOMEV
(
v1
,
t
)
=>
{[
v1
]}
⊎
bag_of_val
t
|
_
=>
∅
end
.
Fixpoint
val_of_list
(
ls
:
list
val
)
:
val
:=
...
...
@@ -62,7 +62,7 @@ Section proof.
end
.
Definition
bag_inv
(
γb
:
gname
)
(
b
:
loc
)
:
iProp
Σ
:=
(
∃
ls
:
list
val
,
b
↦
(
val_of_list
ls
)
∗
own
γb
((
1
/
2
)
%
Qp
,
to_agree
(
list_to_set
ls
)))
%
I
.
(
∃
ls
:
list
val
,
b
↦
(
val_of_list
ls
)
∗
own
γb
((
1
/
2
)
%
Qp
,
to_agree
(
list_to_set
_disj
ls
)))
%
I
.
Definition
is_bag
(
γb
:
gname
)
(
x
:
val
)
:=
(
∃
(
lk
:
val
)
(
b
:
loc
)
(
γ
:
gname
),
...
...
@@ -116,7 +116,7 @@ Section proof.
Local
Opaque
acquire
release
.
(* so that wp_pure doesn't stumble *)
Lemma
pushBag_spec
(
P
Q
:
iProp
Σ
)
γ
(
x
v
:
val
)
:
□
(
∀
(
X
:
gmultiset
val
),
bag_contents
γ
X
∗
P
=
{
⊤∖↑
N
}
=∗
▷
(
bag_contents
γ
({[
v
]}
∪
X
)
∗
Q
))
-∗
=
{
⊤∖↑
N
}
=∗
▷
(
bag_contents
γ
({[
v
]}
⊎
X
)
∗
Q
))
-∗
{{{
is_bag
γ
x
∗
P
}}}
pushBag
x
(
of_val
v
)
{{{
RET
#
();
Q
}}}
.
...
...
@@ -141,7 +141,7 @@ Section proof.
Lemma
popBag_spec
(
P
:
iProp
Σ
)
(
Q
:
val
→
iProp
Σ
)
γ
x
:
□
(
∀
(
X
:
gmultiset
val
)
(
y
:
val
),
bag_contents
γ
({[
y
]}
∪
X
)
∗
P
bag_contents
γ
({[
y
]}
⊎
X
)
∗
P
=
{
⊤∖↑
N
}
=∗
▷
(
bag_contents
γ
X
∗
Q
(
SOMEV
y
)))
-∗
□
(
bag_contents
γ
∅
∗
P
=
{
⊤∖↑
N
}
=∗
▷
(
bag_contents
γ
∅
∗
Q
NONEV
))
-∗
{{{
is_bag
γ
x
∗
P
}}}
...
...
This diff is collapsed.
Click to expand it.
theories/hocap/fg_bag.v
+
4
−
4
View file @
6606345b
...
...
@@ -87,11 +87,11 @@ Section proof.
iDestruct
(
mapsto_agree
l'
q
q'
(
PairV
x
tl
)
(
PairV
y
tl'
)
with
"Hro Hro'"
)
as
%
?
.
simplify_eq
/=.
iDestruct
(
"IH"
with
"Hls Hls'"
)
as
%->
.
done
.
Qed
.
Qed
.
Definition
bag_inv
(
γb
:
gname
)
(
b
:
loc
)
:
iProp
Σ
:=
(
∃
(
hd
:
val
)
(
ls
:
list
val
),
b
↦
hd
∗
is_list
hd
ls
∗
own
γb
((
1
/
2
)
%
Qp
,
to_agree
(
list_to_set
ls
)))
%
I
.
b
↦
hd
∗
is_list
hd
ls
∗
own
γb
((
1
/
2
)
%
Qp
,
to_agree
(
list_to_set
_disj
ls
)))
%
I
.
Definition
is_bag
(
γb
:
gname
)
(
x
:
val
)
:=
(
∃
(
b
:
loc
),
⌜
x
=
#
b
⌝
∗
inv
N
(
bag_inv
γb
b
))
%
I
.
Definition
bag_contents
(
γb
:
gname
)
(
X
:
gmultiset
val
)
:
iProp
Σ
:=
...
...
@@ -142,7 +142,7 @@ Section proof.
Lemma
pushBag_spec
(
P
Q
:
iProp
Σ
)
γ
(
x
v
:
val
)
:
□
(
∀
(
X
:
gmultiset
val
),
bag_contents
γ
X
∗
P
=
{
⊤∖↑
N
}
=∗
▷
(
bag_contents
γ
({[
v
]}
∪
X
)
∗
Q
))
-∗
=
{
⊤∖↑
N
}
=∗
▷
(
bag_contents
γ
({[
v
]}
⊎
X
)
∗
Q
))
-∗
{{{
is_bag
γ
x
∗
P
}}}
pushBag
x
(
of_val
v
)
{{{
RET
#
();
Q
}}}
.
...
...
@@ -179,7 +179,7 @@ Section proof.
Lemma
popBag_spec
(
P
:
iProp
Σ
)
(
Q
:
val
→
iProp
Σ
)
γ
x
:
□
(
∀
(
X
:
gmultiset
val
)
(
y
:
val
),
bag_contents
γ
({[
y
]}
∪
X
)
∗
P
bag_contents
γ
({[
y
]}
⊎
X
)
∗
P
=
{
⊤∖↑
N
}
=∗
▷
(
bag_contents
γ
X
∗
Q
(
SOMEV
y
)))
-∗
□
(
bag_contents
γ
∅
∗
P
=
{
⊤∖↑
N
}
=∗
▷
(
bag_contents
γ
∅
∗
Q
NONEV
))
-∗
{{{
is_bag
γ
x
∗
P
}}}
...
...
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