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
a983f1ed
Commit
a983f1ed
authored
Nov 04, 2008
by
Adam Chlipala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Feeling stuck with Hoas
parent
9360a245
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
437 additions
and
30 deletions
+437
-30
DepList.v
src/DepList.v
+15
-0
Hoas.v
src/Hoas.v
+422
-30
No files found.
src/DepList.v
View file @
a983f1ed
...
...
@@ -142,3 +142,18 @@ Implicit Arguments hnext [A elm x ls].
Infix
":::"
:=
hcons
(
right
associativity
,
at
level
60
)
.
Infix
"+++"
:=
happ
(
right
associativity
,
at
level
60
)
.
Section
hmap
.
Variable
A
:
Type
.
Variables
B1
B2
:
A
->
Type
.
Variable
f
:
forall
x
,
B1
x
->
B2
x
.
Fixpoint
hmap
(
ls
:
list
A
)
:
hlist
B1
ls
->
hlist
B2
ls
:=
match
ls
return
hlist
B1
ls
->
hlist
B2
ls
with
|
nil
=>
fun
_
=>
hnil
|
_
::
_
=>
fun
hl
=>
f
(
fst
hl
)
:::
hmap
_
(
snd
hl
)
end
.
End
hmap
.
Implicit
Arguments
hmap
[
A
B1
B2
ls
]
.
src/Hoas.v
View file @
a983f1ed
This diff is collapsed.
Click to expand it.
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