Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lambda-rust
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
Model registry
Operate
Environments
Monitor
Service Desk
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
Iris
lambda-rust
Commits
e8b5ce29
There was a problem fetching the pipeline metadata.
Commit
e8b5ce29
authored
8 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
vector-based substitution
parent
845c8fa1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/lang/lang.v
+11
-0
11 additions, 0 deletions
theories/lang/lang.v
with
11 additions
and
0 deletions
theories/lang/lang.v
+
11
−
0
View file @
e8b5ce29
...
...
@@ -163,6 +163,17 @@ Fixpoint subst_l (xl : list binder) (esl : list expr) (e : expr) : option expr :
|
_,
_
=>
None
end
.
Definition
subst_l_vec
{
n
}
(
xl
:
vec
binder
n
)
(
el
:
vec
expr
n
)
:
expr
→
expr
:=
Vector
.
rect2
(
λ
_
_
_,
expr
→
expr
)
id
(
λ
n
_
_
rec
x
e
,
rec
∘
subst'
x
e
)
xl
el
.
Lemma
subst_l_vec_eq
{
n
}
(
xl
:
vec
binder
n
)
(
el
:
vec
expr
n
)
e
:
Some
$
subst_l_vec
xl
el
e
=
subst_l
xl
el
e
.
Proof
.
revert
n
xl
el
e
.
eapply
(
vec_rect2
(
λ
n
xl
el
,
∀
e
,
Some
$
subst_l_vec
xl
el
e
=
subst_l
xl
el
e
));
first
done
.
move
=>
n
xl
el
IH
x
es
e
.
simpl
.
apply
IH
.
Qed
.
(** The stepping relation *)
Definition
lit_of_bool
(
b
:
bool
)
:
base_lit
:=
LitInt
(
if
b
then
1
else
0
)
.
...
...
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