Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
cpdt
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
research
cpdt
Commits
9e8c63f9
Commit
9e8c63f9
authored
Oct 20, 2008
by
Adam Chlipala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More DepList notations
parent
225b083d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
DepList.v
src/DepList.v
+8
-0
No files found.
src/DepList.v
View file @
9e8c63f9
...
...
@@ -64,6 +64,11 @@ Section hlist.
|
x
::
ls
'
=>
(
x
=
elm
)
+
member
ls
'
end
%
type
.
Definition
hfirst
(
x
:
A
)
(
ls
:
list
A
)
(
pf
:
x
=
elm
)
:
member
(
x
::
ls
)
:=
inl
_
pf
.
Definition
hnext
(
x
:
A
)
(
ls
:
list
A
)
(
m
:
member
ls
)
:
member
(
x
::
ls
)
:=
inr
_
m
.
Fixpoint
hget
(
ls
:
list
A
)
:
hlist
ls
->
member
ls
->
B
elm
:=
match
ls
return
hlist
ls
->
member
ls
->
B
elm
with
|
nil
=>
fun
_
idx
=>
match
idx
with
end
...
...
@@ -88,5 +93,8 @@ Implicit Arguments hcons [A B x ls].
Implicit
Arguments
hget
[
A
B
elm
ls
]
.
Implicit
Arguments
happ
[
A
B
ls1
ls2
]
.
Implicit
Arguments
hfirst
[
A
elm
x
ls
]
.
Implicit
Arguments
hnext
[
A
elm
x
ls
]
.
Infix
":::"
:=
hcons
(
right
associativity
,
at
level
60
)
.
Infix
"+++"
:=
happ
(
right
associativity
,
at
level
60
)
.
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