Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Rice Wine
Iris
Commits
d442538d
Commit
d442538d
authored
Jan 17, 2016
by
Robbert Krebbers
Browse files
Misc languages changes.
parent
1b561324
Changes
1
Hide whitespace changes
Inline
Side-by-side
iris/language.v
View file @
d442538d
Require
Im
port
prelude
.
prelud
e
.
Require
Ex
port
modures
.
bas
e
.
Class
Language
(
E
V
St
:
Type
)
:
=
{
of_val
:
V
→
E
;
...
...
@@ -18,6 +18,13 @@ Class Language (E V St : Type) := {
Section
language
.
Context
`
{
Language
E
V
St
}.
Lemma
atomic_of_val
v
:
¬
atomic
(
of_val
v
).
Proof
.
by
intros
Hat
;
apply
atomic_not_value
in
Hat
;
rewrite
to_of_val
in
Hat
.
Qed
.
Global
Instance
:
Injective
(=)
(=)
of_val
.
Proof
.
by
intros
v
v'
Hv
;
apply
(
injective
Some
)
;
rewrite
-!
to_of_val
Hv
.
Qed
.
Definition
cfg
:
Type
:
=
(
list
E
*
St
)%
type
.
Inductive
step
(
ρ
1
ρ
2
:
cfg
)
:
Prop
:
=
|
step_atomic
e1
σ
1 e2
σ
2
ef
t1
t2
:
...
...
@@ -30,7 +37,7 @@ Section language.
Definition
stepn
:
=
nsteps
step
.
Record
is_ctx
(
K
:
E
→
E
)
:
=
IsCtx
{
is_ctx_value
e
:
is_Some
(
to_val
(
K
e
))
→
is_Some
(
to_val
e
)
;
is_ctx_value
e
:
to_val
e
=
None
→
to_val
(
K
e
)
=
None
;
is_ctx_step_preserved
e1
σ
1 e2
σ
2
ef
:
prim_step
e1
σ
1 e2
σ
2
ef
→
prim_step
(
K
e1
)
σ
1
(
K
e2
)
σ
2
ef
;
is_ctx_step
e1'
σ
1 e2
σ
2
ef
:
...
...
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