Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Paolo G. Giarrusso
examples
Commits
0d9e2d1b
Commit
0d9e2d1b
authored
Jun 05, 2019
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bump Iris.
parent
b3159ec2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
opam
opam
+1
-1
theories/barrier/example_joining_existentials.v
theories/barrier/example_joining_existentials.v
+3
-3
No files found.
opam
View file @
0d9e2d1b
...
@@ -9,6 +9,6 @@ build: [make "-j%{jobs}%"]
...
@@ -9,6 +9,6 @@ build: [make "-j%{jobs}%"]
install: [make "install"]
install: [make "install"]
remove: ["rm" "-rf" "%{lib}%/coq/user-contrib/iris_examples"]
remove: ["rm" "-rf" "%{lib}%/coq/user-contrib/iris_examples"]
depends: [
depends: [
"coq-iris" { (= "dev.2019-06-0
3
.2.
b368c861
") | (= "dev") }
"coq-iris" { (= "dev.2019-06-0
4
.2.
322cdf37
") | (= "dev") }
"coq-autosubst" { = "dev.coq86" }
"coq-autosubst" { = "dev.coq86" }
]
]
theories/barrier/example_joining_existentials.v
View file @
0d9e2d1b
...
@@ -7,9 +7,9 @@ From iris_examples.barrier Require Import proof specification.
...
@@ -7,9 +7,9 @@ From iris_examples.barrier Require Import proof specification.
Set
Default
Proof
Using
"Type"
.
Set
Default
Proof
Using
"Type"
.
Definition
one_shotR
(
Σ
:
gFunctors
)
(
F
:
cFunctor
)
:
=
Definition
one_shotR
(
Σ
:
gFunctors
)
(
F
:
cFunctor
)
:
=
csumR
(
exclR
unitC
)
(
agreeR
$
laterC
$
F
(
iPreProp
Σ
)).
csumR
(
exclR
unitC
)
(
agreeR
$
laterC
$
F
(
iPreProp
Σ
)
_
).
Definition
Pending
{
Σ
F
}
:
one_shotR
Σ
F
:
=
Cinl
(
Excl
()).
Definition
Pending
{
Σ
F
}
:
one_shotR
Σ
F
:
=
Cinl
(
Excl
()).
Definition
Shot
{
Σ
}
{
F
:
cFunctor
}
(
x
:
F
(
iProp
Σ
))
:
one_shotR
Σ
F
:
=
Definition
Shot
{
Σ
}
{
F
:
cFunctor
}
(
x
:
F
(
iProp
Σ
)
_
)
:
one_shotR
Σ
F
:
=
Cinr
$
to_agree
$
Next
$
cFunctor_map
F
(
iProp_fold
,
iProp_unfold
)
x
.
Cinr
$
to_agree
$
Next
$
cFunctor_map
F
(
iProp_fold
,
iProp_unfold
)
x
.
Class
oneShotG
(
Σ
:
gFunctors
)
(
F
:
cFunctor
)
:
=
Class
oneShotG
(
Σ
:
gFunctors
)
(
F
:
cFunctor
)
:
=
...
@@ -28,7 +28,7 @@ Section proof.
...
@@ -28,7 +28,7 @@ Section proof.
Local
Set
Default
Proof
Using
"Type*"
.
Local
Set
Default
Proof
Using
"Type*"
.
Context
`
{!
heapG
Σ
,
!
barrierG
Σ
,
!
spawnG
Σ
,
!
oneShotG
Σ
F
}.
Context
`
{!
heapG
Σ
,
!
barrierG
Σ
,
!
spawnG
Σ
,
!
oneShotG
Σ
F
}.
Context
(
N
:
namespace
).
Context
(
N
:
namespace
).
Local
Notation
X
:
=
(
F
(
iProp
Σ
)).
Local
Notation
X
:
=
(
F
(
iProp
Σ
)
_
).
Definition
barrier_res
γ
(
Φ
:
X
→
iProp
Σ
)
:
iProp
Σ
:
=
Definition
barrier_res
γ
(
Φ
:
X
→
iProp
Σ
)
:
iProp
Σ
:
=
(
∃
x
,
own
γ
(
Shot
x
)
∗
Φ
x
)%
I
.
(
∃
x
,
own
γ
(
Shot
x
)
∗
Φ
x
)%
I
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment