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
b87eea7b
Commit
b87eea7b
authored
Nov 11, 2009
by
Adam Chlipala
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Port DataStruct
parent
971c8851
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
116 additions
and
111 deletions
+116
-111
Makefile
Makefile
+2
-4
DataStruct.v
src/DataStruct.v
+109
-102
DepList.v
src/DepList.v
+4
-4
Generic.v
src/Generic.v
+1
-1
No files found.
Makefile
View file @
b87eea7b
...
@@ -7,7 +7,6 @@ MODULES_DOC := $(MODULES_PROSE) $(MODULES_CODE)
...
@@ -7,7 +7,6 @@ MODULES_DOC := $(MODULES_PROSE) $(MODULES_CODE)
MODULES
:=
$(MODULES_NODOC)
$(MODULES_DOC)
MODULES
:=
$(MODULES_NODOC)
$(MODULES_DOC)
VS
:=
$
(
MODULES:%
=
src/%.v
)
VS
:=
$
(
MODULES:%
=
src/%.v
)
VS_DOC
:=
$
(
MODULES_DOC:%
=
%.v
)
VS_DOC
:=
$
(
MODULES_DOC:%
=
%.v
)
GLOBALS
:=
.coq_globals
TEMPLATES
:=
$
(
MODULES_CODE:%
=
templates/%.v
)
TEMPLATES
:=
$
(
MODULES_CODE:%
=
templates/%.v
)
.PHONY
:
coq clean doc dvi html templates install cpdt.tgz
.PHONY
:
coq clean doc dvi html templates install cpdt.tgz
...
@@ -17,13 +16,13 @@ coq: Makefile.coq
...
@@ -17,13 +16,13 @@ coq: Makefile.coq
Makefile.coq
:
Makefile $(VS)
Makefile.coq
:
Makefile $(VS)
coq_makefile
$(VS)
\
coq_makefile
$(VS)
\
COQC
=
"coqc -I src
-dump-glob
$(GLOBALS)
"
\
COQC
=
"coqc -I src"
\
COQDEP
=
"coqdep -I src"
\
COQDEP
=
"coqdep -I src"
\
-o
Makefile.coq
-o
Makefile.coq
clean
::
Makefile.coq
clean
::
Makefile.coq
make
-f
Makefile.coq clean
make
-f
Makefile.coq clean
rm
-f
Makefile.coq .depend
$(GLOBALS)
cpdt.tgz
\
rm
-f
Makefile.coq .depend cpdt.tgz
\
latex/
*
.sty latex/cpdt.
*
templates/
*
.v
latex/
*
.sty latex/cpdt.
*
templates/
*
.v
rm
-f
*
.aux
*
.dvi
*
.log
rm
-f
*
.aux
*
.dvi
*
.log
...
@@ -51,7 +50,6 @@ latex/%.pdf: latex/%.dvi
...
@@ -51,7 +50,6 @@ latex/%.pdf: latex/%.dvi
html
:
Makefile $(VS) src/toc.html
html
:
Makefile $(VS) src/toc.html
mkdir
-p
html
mkdir
-p
html
cd
src
;
coqdoc
--interpolate
$(VS_DOC)
\
cd
src
;
coqdoc
--interpolate
$(VS_DOC)
\
--glob-from
../
$(GLOBALS)
\
-d
../html
-d
../html
cp
src/toc.html html/
cp
src/toc.html html/
...
...
src/DataStruct.v
View file @
b87eea7b
This diff is collapsed.
Click to expand it.
src/DepList.v
View file @
b87eea7b
...
@@ -31,14 +31,14 @@ Section ilist.
...
@@ -31,14 +31,14 @@ Section ilist.
Implicit
Arguments
icons
[
n
]
.
Implicit
Arguments
icons
[
n
]
.
Fixpoint
index
(
n
:
nat
)
:
Type
:=
Fixpoint
fin
(
n
:
nat
)
:
Type
:=
match
n
with
match
n
with
|
O
=>
Empty_set
|
O
=>
Empty_set
|
S
n
'
=>
option
(
index
n
'
)
|
S
n
'
=>
option
(
fin
n
'
)
end
.
end
.
Fixpoint
get
(
n
:
nat
)
:
ilist
n
->
index
n
->
A
:=
Fixpoint
get
(
n
:
nat
)
:
ilist
n
->
fin
n
->
A
:=
match
n
return
ilist
n
->
index
n
->
A
with
match
n
return
ilist
n
->
fin
n
->
A
with
|
O
=>
fun
_
idx
=>
match
idx
with
end
|
O
=>
fun
_
idx
=>
match
idx
with
end
|
S
n
'
=>
fun
ls
idx
=>
|
S
n
'
=>
fun
ls
idx
=>
match
idx
with
match
idx
with
...
...
src/Generic.v
View file @
b87eea7b
...
@@ -217,7 +217,7 @@ Section ok.
...
@@ -217,7 +217,7 @@ Section ok.
Definition
datatypeDenoteOk
:=
Definition
datatypeDenoteOk
:=
forall
P
:
T
->
Prop
,
forall
P
:
T
->
Prop
,
(
forall
c
(
m
:
member
c
dt
)
(
x
:
nonrecursive
c
)
(
r
:
ilist
T
(
recursive
c
))
,
(
forall
c
(
m
:
member
c
dt
)
(
x
:
nonrecursive
c
)
(
r
:
ilist
T
(
recursive
c
))
,
(
forall
i
:
index
(
recursive
c
)
,
P
(
get
r
i
))
(
forall
i
:
fin
(
recursive
c
)
,
P
(
get
r
i
))
->
P
((
hget
dd
m
)
x
r
))
->
P
((
hget
dd
m
)
x
r
))
->
forall
v
,
P
v
.
->
forall
v
,
P
v
.
...
...
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