Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Iris
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
Rodolphe Lepigre
Iris
Commits
1b561324
Commit
1b561324
authored
9 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Misc changes to language.
parent
ed0cd58b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
channel/heap_lang.v
+3
-3
3 additions, 3 deletions
channel/heap_lang.v
iris/language.v
+15
-14
15 additions, 14 deletions
iris/language.v
with
18 additions
and
17 deletions
channel/heap_lang.v
+
3
−
3
View file @
1b561324
...
...
@@ -409,8 +409,8 @@ Section Language.
exists
K
e1'
e2'
,
e1
=
fill
K
e1'
/\
e2
=
fill
K
e2'
/\
prim_step
e1'
σ1
e2'
σ2
ef
.
Instance
heap_lang
:
Language
expr
value
state
:=
{|
to_expr
:=
v2e
;
of_expr
:=
e2v
;
of_val
:=
v2e
;
to_val
:=
e2v
;
atomic
:=
atomic
;
prim_step
:=
ectx_step
|}
.
...
...
@@ -430,7 +430,7 @@ Section Language.
(** We can have bind with arbitrary evaluation contexts **)
Lemma
fill_is_ctx
K
:
is_ctx
(
fill
K
)
.
Proof
.
split
;
last
split
.
split
.
-
intros
?
[
v
Hval
]
.
eapply
fill_value
.
eassumption
.
-
intros
?
?
?
?
?
(
K'
&
e1'
&
e2'
&
Heq1
&
Heq2
&
Hstep
)
.
exists
(
comp_ctx
K
K'
),
e1'
,
e2'
.
rewrite
-!
fill_comp
Heq1
Heq2
.
...
...
This diff is collapsed.
Click to expand it.
iris/language.v
+
15
−
14
View file @
1b561324
Require
Import
prelude
.
prelude
.
Class
Language
(
E
V
St
:
Type
)
:=
{
to_expr
:
V
→
E
;
of_expr
:
E
→
option
V
;
of_val
:
V
→
E
;
to_val
:
E
→
option
V
;
atomic
:
E
→
Prop
;
prim_step
:
E
→
St
→
E
→
St
→
option
E
→
Prop
;
of_to_expr
v
:
of_expr
(
to_expr
v
)
=
Some
v
;
to_of_expr
e
v
:
of_expr
e
=
Some
v
→
to_expr
v
=
e
;
values_stuck
e
σ
e'
σ'
ef
:
prim_step
e
σ
e'
σ'
ef
→
of_expr
e
=
None
;
atomic_not_value
e
:
atomic
e
→
of_expr
e
=
None
;
to_of_val
v
:
to_val
(
of_val
v
)
=
Some
v
;
of_to_val
e
v
:
to_val
e
=
Some
v
→
of_val
v
=
e
;
values_stuck
e
σ
e'
σ'
ef
:
prim_step
e
σ
e'
σ'
ef
→
to_val
e
=
None
;
atomic_not_value
e
:
atomic
e
→
to_val
e
=
None
;
atomic_step
e1
σ1
e2
σ2
ef
:
atomic
e1
→
prim_step
e1
σ1
e2
σ2
ef
→
is_Some
(
of_expr
e2
)
is_Some
(
to_val
e2
)
}
.
Section
language
.
...
...
@@ -29,12 +29,13 @@ Section language.
Definition
steps
:=
rtc
step
.
Definition
stepn
:=
nsteps
step
.
Definition
is_ctx
(
ctx
:
E
→
E
)
:
Prop
:=
(
∀
e
,
is_Some
(
of_expr
(
ctx
e
))
→
is_Some
(
of_expr
e
))
∧
(
∀
e1
σ1
e2
σ2
ef
,
prim_step
e1
σ1
e2
σ2
ef
->
prim_step
(
ctx
e1
)
σ1
(
ctx
e2
)
σ2
ef
)
∧
(
∀
e1'
σ1
e2
σ2
ef
,
of_expr
e1'
=
None
→
prim_step
(
ctx
e1'
)
σ1
e2
σ2
ef
→
∃
e2'
,
e2
=
ctx
e2'
∧
prim_step
e1'
σ1
e2'
σ2
ef
)
.
Record
is_ctx
(
K
:
E
→
E
)
:=
IsCtx
{
is_ctx_value
e
:
is_Some
(
to_val
(
K
e
))
→
is_Some
(
to_val
e
);
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
:
to_val
e1'
=
None
→
prim_step
(
K
e1'
)
σ1
e2
σ2
ef
→
∃
e2'
,
e2
=
K
e2'
∧
prim_step
e1'
σ1
e2'
σ2
ef
}
.
End
language
.
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