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
Pierre Roux
Iris
Commits
7a4f28b1
Commit
7a4f28b1
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
rename lemma variable names for more clarity
parent
6019fde6
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
theories/program_logic/ectx_language.v
+15
-15
15 additions, 15 deletions
theories/program_logic/ectx_language.v
with
15 additions
and
15 deletions
theories/program_logic/ectx_language.v
+
15
−
15
View file @
7a4f28b1
...
@@ -29,19 +29,19 @@ Section ectx_language_mixin.
...
@@ -29,19 +29,19 @@ Section ectx_language_mixin.
mixin_fill_inj
K
:
Inj
(
=
)
(
=
)
(
fill
K
);
mixin_fill_inj
K
:
Inj
(
=
)
(
=
)
(
fill
K
);
mixin_fill_val
K
e
:
is_Some
(
to_val
(
fill
K
e
))
→
is_Some
(
to_val
e
);
mixin_fill_val
K
e
:
is_Some
(
to_val
(
fill
K
e
))
→
is_Some
(
to_val
e
);
(** Given a head redex [e1
'
] somewhere in a term, and another
decomposition
(** Given a head redex [e1
_redex
] somewhere in a term, and another
of the same term into [fill K e1] such that [e1] is not
a value, then
decomposition
of the same term into [fill K
'
e1
'
] such that [e1
'
] is not
the head redex context is [e1]'s context [K] filled with
another context
a value, then
the head redex context is [e1
'
]'s context [K
'
] filled with
[K'']. In particular, this implies [e1 = fill K''
e1'] by [fill_inj],
another context
[K'']. In particular, this implies [e1 = fill K''
i.e., [e1] contains the head redex.)
e1_redex] by [fill_inj],
i.e., [e1]
'
contains the head redex.)
This implies there can be only one head redex, see
This implies there can be only one head redex, see
[head_redex_unique]. *)
[head_redex_unique]. *)
mixin_step_by_val
K
K
'
e1
e1
'
σ1
κ
e2
σ2
efs
:
mixin_step_by_val
K
'
K
_redex
e1
'
e1
_redex
σ1
κ
e2
σ2
efs
:
fill
K
e1
=
fill
K
'
e1'
→
fill
K
'
e1
'
=
fill
K
_redex
e1_redex
→
to_val
e1
=
None
→
to_val
e1
'
=
None
→
head_step
e1
'
σ1
κ
e2
σ2
efs
→
head_step
e1
_redex
σ1
κ
e2
σ2
efs
→
∃
K''
,
K
'
=
comp_ectx
K
K''
;
∃
K''
,
K
_redex
=
comp_ectx
K
'
K''
;
(** If [fill K e] takes a head step, then either [e] is a value or [K] is
(** If [fill K e] takes a head step, then either [e] is a value or [K] is
the empty evaluation context. In other words, if [e] is not a value
the empty evaluation context. In other words, if [e] is not a value
...
@@ -98,11 +98,11 @@ Section ectx_language.
...
@@ -98,11 +98,11 @@ Section ectx_language.
Proof
.
apply
ectx_language_mixin
.
Qed
.
Proof
.
apply
ectx_language_mixin
.
Qed
.
Lemma
fill_val
K
e
:
is_Some
(
to_val
(
fill
K
e
))
→
is_Some
(
to_val
e
)
.
Lemma
fill_val
K
e
:
is_Some
(
to_val
(
fill
K
e
))
→
is_Some
(
to_val
e
)
.
Proof
.
apply
ectx_language_mixin
.
Qed
.
Proof
.
apply
ectx_language_mixin
.
Qed
.
Lemma
step_by_val
K
K
'
e1
e1
'
σ1
κ
e2
σ2
efs
:
Lemma
step_by_val
K
'
K
_redex
e1
'
e1
_redex
σ1
κ
e2
σ2
efs
:
fill
K
e1
=
fill
K
'
e1'
→
fill
K
'
e1
'
=
fill
K
_redex
e1_redex
→
to_val
e1
=
None
→
to_val
e1
'
=
None
→
head_step
e1
'
σ1
κ
e2
σ2
efs
→
head_step
e1
_redex
σ1
κ
e2
σ2
efs
→
∃
K''
,
K
'
=
comp_ectx
K
K''
.
∃
K''
,
K
_redex
=
comp_ectx
K
'
K''
.
Proof
.
apply
ectx_language_mixin
.
Qed
.
Proof
.
apply
ectx_language_mixin
.
Qed
.
Lemma
head_ctx_step_val
K
e
σ1
κ
e2
σ2
efs
:
Lemma
head_ctx_step_val
K
e
σ1
κ
e2
σ2
efs
:
head_step
(
fill
K
e
)
σ1
κ
e2
σ2
efs
→
is_Some
(
to_val
e
)
∨
K
=
empty_ectx
.
head_step
(
fill
K
e
)
σ1
κ
e2
σ2
efs
→
is_Some
(
to_val
e
)
∨
K
=
empty_ectx
.
...
...
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