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
Dan Frumin
ReLoC-v1
Commits
a3eb6851
Commit
a3eb6851
authored
Nov 29, 2017
by
Dan Frumin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A bit of comments on the demonic choice
parent
1e8e112a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
theories/examples/or.v
theories/examples/or.v
+15
-3
No files found.
theories/examples/or.v
View file @
a3eb6851
(
*
We
can
simulate
non
-
determinism
with
concurrency
.
In
this
file
we
derive
the
algebraic
laws
for
parallel
"or"
/
demonic
choice
combinator
.
*
)
(
*
(
In
)
equational
theory
of
erratic
choice
.
We
can
simulate
(
binary
)
non
-
determinism
with
concurrency
.
In
this
file
we
derive
the
algebraic
laws
for
parallel
"or"
/
demonic
choice
combinator
.
In
particular
,
we
show
the
following
(
≤
stands
for
contextual
refinement
and
≃
stands
for
contextual
equivalence
)
:
-
v
or
v
≃
v
()
idempotency
-
v1
or
v2
≃
v2
or
v1
commutativity
-
v
or
(
λ
_
,
⊥
)
≃
v
()
⊥
is
a
unit
-
v1
or
(
λ
_
,
v2
or
v3
)
associativity
≃
(
λ
_
,
v1
or
v2
)
or
v3
-
v1
()
≤
v1
or
v2
choice
on
the
RHS
*
)
From
iris
.
proofmode
Require
Import
tactics
.
From
iris_logrel
Require
Export
logrel
examples
.
various
.
From
iris_logrel
Require
Export
logrel
examples
.
various
(
*
for
bot
*
)
.
Definition
or
:
val
:=
λ
:
"e1"
"e2"
,
let:
"x"
:=
ref
#
0
in
...
...
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