Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
iris
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jonas Kastberg
iris
Commits
446bc644
Commit
446bc644
authored
Jan 18, 2020
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More `subst_map` lemmas.
parent
250a2dd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
theories/heap_lang/metatheory.v
theories/heap_lang/metatheory.v
+10
-0
No files found.
theories/heap_lang/metatheory.v
View file @
446bc644
...
...
@@ -187,6 +187,10 @@ Lemma subst_map_binder_insert b v vs e :
subst_map
(
binder_insert
b
v
vs
)
e
=
subst'
b
v
(
subst_map
(
binder_delete
b
vs
)
e
).
Proof
.
destruct
b
;
rewrite
?subst_map_insert
//.
Qed
.
Lemma
subst_map_binder_insert_empty
b
v
e
:
subst_map
(
binder_insert
b
v
∅
)
e
=
subst'
b
v
e
.
Proof
.
by
rewrite
subst_map_binder_insert
binder_delete_empty
subst_map_empty
.
Qed
.
Lemma
subst_map_binder_insert_2
b1
v1
b2
v2
vs
e
:
subst_map
(
binder_insert
b1
v1
(
binder_insert
b2
v2
vs
))
e
=
subst'
b2
v2
(
subst'
b1
v1
(
subst_map
(
binder_delete
b2
(
binder_delete
b1
vs
))
e
)).
...
...
@@ -196,6 +200,12 @@ Proof.
-
by
rewrite
delete_idemp
subst_subst
delete_insert_delete
.
-
by
rewrite
delete_insert_ne
//
subst_map_insert
subst_subst_ne
.
Qed
.
Lemma
subst_map_binder_insert_2_empty
b1
v1
b2
v2
e
:
subst_map
(
binder_insert
b1
v1
(
binder_insert
b2
v2
∅
))
e
=
subst'
b2
v2
(
subst'
b1
v1
e
).
Proof
.
by
rewrite
subst_map_binder_insert_2
!
binder_delete_empty
subst_map_empty
.
Qed
.
(* subst_map on closed expressions *)
Lemma
subst_map_is_closed
X
e
vs
:
...
...
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