Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Iris
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
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
Simcha van Collem
Iris
Commits
d442538d
Commit
d442538d
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Misc languages changes.
parent
1b561324
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iris/language.v
+9
-2
9 additions, 2 deletions
iris/language.v
with
9 additions
and
2 deletions
iris/language.v
+
9
−
2
View file @
d442538d
Require
Im
port
prelude
.
prelud
e
.
Require
Ex
port
modures
.
bas
e
.
Class
Language
(
E
V
St
:
Type
)
:=
{
Class
Language
(
E
V
St
:
Type
)
:=
{
of_val
:
V
→
E
;
of_val
:
V
→
E
;
...
@@ -18,6 +18,13 @@ Class Language (E V St : Type) := {
...
@@ -18,6 +18,13 @@ Class Language (E V St : Type) := {
Section
language
.
Section
language
.
Context
`{
Language
E
V
St
}
.
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
.
Definition
cfg
:
Type
:=
(
list
E
*
St
)
%
type
.
Inductive
step
(
ρ1
ρ2
:
cfg
)
:
Prop
:=
Inductive
step
(
ρ1
ρ2
:
cfg
)
:
Prop
:=
|
step_atomic
e1
σ1
e2
σ2
ef
t1
t2
:
|
step_atomic
e1
σ1
e2
σ2
ef
t1
t2
:
...
@@ -30,7 +37,7 @@ Section language.
...
@@ -30,7 +37,7 @@ Section language.
Definition
stepn
:=
nsteps
step
.
Definition
stepn
:=
nsteps
step
.
Record
is_ctx
(
K
:
E
→
E
)
:=
IsCtx
{
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
:
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
;
prim_step
e1
σ1
e2
σ2
ef
→
prim_step
(
K
e1
)
σ1
(
K
e2
)
σ2
ef
;
is_ctx_step
e1'
σ1
e2
σ2
ef
:
is_ctx_step
e1'
σ1
e2
σ2
ef
:
...
...
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