Commit b87eea7b authored by Adam Chlipala's avatar Adam Chlipala

Port DataStruct

parent 971c8851
...@@ -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/
......
This diff is collapsed.
...@@ -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
......
...@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment