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
Gaëtan Gilbert
Iris
Commits
ff87776b
Commit
ff87776b
authored
5 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Add lemma `subst_map_binder_insert_2`.
parent
5088d5b0
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/heap_lang/metatheory.v
+9
-0
9 additions, 0 deletions
theories/heap_lang/metatheory.v
with
9 additions
and
0 deletions
theories/heap_lang/metatheory.v
+
9
−
0
View file @
ff87776b
...
...
@@ -187,6 +187,15 @@ 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_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
))
.
Proof
.
destruct
b1
as
[|
s1
],
b2
as
[|
s2
]=>
/=
;
auto
using
subst_map_insert
.
rewrite
subst_map_insert
.
destruct
(
decide
(
s1
=
s2
))
as
[
->
|]
.
-
by
rewrite
delete_idemp
subst_subst
delete_insert_delete
.
-
by
rewrite
delete_insert_ne
//
subst_map_insert
subst_subst_ne
.
Qed
.
(* subst_map on closed expressions *)
Lemma
subst_map_is_closed
X
e
vs
:
...
...
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