Skip to content

Commit 38efbe6

Browse files
committed
New Makefile and minor changes
1 parent d9cdd5b commit 38efbe6

File tree

19 files changed

+117
-286
lines changed

19 files changed

+117
-286
lines changed

Coq_patches/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
This directory contains patches for Coq-8.3pl2 written by Hugo Hereblin and Dan Grayson which are needed for proper compilation of the "Foundations" library.
1+
This directory contains patches for Coq-8.3pl2 written by Hugo Hereblin and Dan Grayson which are needed for proper compilation of the "Foundations" library. The source code for Coq-8.3pl2 can be found at http://coq.inria.fr/distrib/ .
22

33
Hugo's patches "inductive-indice-levels-matter-8.3.patch" and "patch.type-in-type" are intended only as a temporary solution for the universe management issues in Coq which arise in connection with the univalent approach.
44

Generalities/uu0.v

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Unset Automatic Introduction. (* This line has to be removed for the file to com
1717

1818
(* Add LoadPath ".." as Foundations. *)
1919

20-
Require Export Foundations.Generalities.uuu.
20+
Require Export "uuu".
2121

2222
(** Universe structure *)
2323

@@ -28,7 +28,6 @@ Definition UU := Type .
2828

2929

3030

31-
3231
(** ** Some standard constructions not using identity types (paths) *)
3332

3433
(** *** Canonical functions from [ empty ] and to [ unit ] *)

Generalities/uuu.v

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,6 @@ Definition pr2 { T: Type } { P : T -> Type } ( tp : total2 P ) : P ( pr1 tp ) :=
6565

6666

6767

68-
69-
7068
(*
7169
7270
(** The phantom type family ( following George Gonthier ) *)

Make

Lines changed: 0 additions & 16 deletions
This file was deleted.

Make.makefile

Lines changed: 0 additions & 220 deletions
This file was deleted.

Makefile

Lines changed: 74 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,74 @@
1-
# -*- makefile-gmake -*-
2-
include Make.makefile
3-
COQDEFS := --language=none -r '/^[[:space:]]*\(Axiom\|Theorem\|Class\|Instance\|Let\|Ltac\|Definition\|Lemma\|Record\|Remark\|Structure\|Fixpoint\|Fact\|Corollary\|Let\|Inductive\|Coinductive\|Proposition\)[[:space:]]+\([[:alnum:]_]+\)/\2/'
4-
TAGS : $(VFILES); etags $(COQDEFS) $^
5-
clean:clean2
6-
clean2:; rm -f TAGS
1+
all : hlevel2/hq.vo hlevel2/finitesets.vo Proof_of_Extensionality/funextfun.vo
2+
3+
hlevel2/hq.vo : hlevel2/hq.v hlevel2/hz.vo
4+
cd hlevel2/ && coqc hq
5+
hlevel2/hz.vo : hlevel2/hz.v hlevel2/hnat.vo
6+
cd hlevel2/ && coqc hz
7+
8+
hlevel2/finitesets.vo : hlevel2/finitesets.v hlevel2/stnfsets.vo
9+
cd hlevel2/ && coqc finitesets
10+
hlevel2/stnfsets.vo : hlevel2/stnfsets.v hlevel2/hnat.vo
11+
cd hlevel2/ && coqc stnfsets
12+
13+
hlevel2/hnat.vo : hlevel2/hnat.v hlevel2/algebra1d.vo
14+
cd hlevel2/ && coqc hnat
15+
hlevel2/algebra1d.vo : hlevel2/algebra1d.v hlevel2/algebra1c.vo
16+
cd hlevel2/ && coqc algebra1d
17+
hlevel2/algebra1c.vo : hlevel2/algebra1c.v hlevel2/algebra1b.vo
18+
cd hlevel2/ && coqc algebra1c
19+
hlevel2/algebra1b.vo : hlevel2/algebra1b.v hlevel2/algebra1a.vo
20+
cd hlevel2/ && coqc algebra1b
21+
hlevel2/algebra1a.vo : hlevel2/algebra1a.v hlevel2/hSet.vo
22+
cd hlevel2/ && coqc algebra1a
23+
24+
hlevel2/hSet.vo : hlevel2/hSet.v hlevel1/hProp.vo
25+
cd hlevel2/ && coqc hSet
26+
27+
hlevel1/hProp.vo : hlevel1/hProp.v Generalities/uu0.vo
28+
cd hlevel1/ && coqc hProp
29+
30+
Proof_of_Extensionality/funextfun.vo : Proof_of_Extensionality/funextfun.v Generalities/uu0.vo
31+
cd Proof_of_Extensionality/ && coqc funextfun
32+
33+
Generalities/uu0.vo : Generalities/uu0.v Generalities/uuu.vo
34+
cd Generalities/ && coqc uu0
35+
Generalities/uuu.vo : Generalities/uuu.v
36+
cd Generalities/ && coqc uuu
37+
38+
39+
clean :
40+
rm -f Generalities/*.vo Proof_of_Extensionality/*.vo hlevel1/*.vo hlevel2/*.vo
41+
rm -f Generalities/*.glob Proof_of_Extensionality/*.glob hlevel1/*.glob hlevel2/*.glob
42+
43+
44+
45+
#
46+
# The following is copied from a makefile generated by coq_makefile V8.3pl5
47+
#
48+
49+
50+
VFILES:=Generalities/uuu.v\
51+
Generalities/uu0.v\
52+
Proof_of_Extensionality/funextfun.v\
53+
hlevel1/hProp.v\
54+
hlevel2/hSet.v\
55+
hlevel2/algebra1a.v\
56+
hlevel2/algebra1b.v\
57+
hlevel2/algebra1c.v\
58+
hlevel2/algebra1d.v\
59+
hlevel2/hnat.v\
60+
hlevel2/stnfsets.v\
61+
hlevel2/finitesets.v\
62+
hlevel2/hz.v\
63+
hlevel2/hq.v
64+
VOFILES:=$(VFILES:.v=.vo)
65+
66+
COQLIB:=$(shell $(COQBIN)coqtop -where | sed -e 's/\\/\\\\/g')
67+
68+
install :
69+
mkdir -p $(COQLIB)/user-contrib
70+
(for i in $(VOFILES); do \
71+
install -d `dirname $(COQLIB)/user-contrib/Foundations/$$i`; \
72+
install $$i $(COQLIB)/user-contrib/Foundations/$$i; \
73+
done)
74+

Proof_of_Extensionality/funextfun.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ This file contains the formulation of the univalence axiom and the proof that it
1111

1212
Unset Automatic Introduction. (** This line has to be removed for the file to compile with Coq8.2 *)
1313

14-
(* Add LoadPath ".." as Foundations. *)
14+
Add LoadPath "../Generalities".
1515

16-
Require Export Foundations.Generalities.uu0.
16+
Require Export "uu0".
1717

1818

1919
(** ** Univalence axiom. *)

README

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
By Vladimir Voevodsky Feb. 2010 - Nov. 2013 .
1+
By Vladimir Voevodsky Feb. 2010 - Dec. 2013 .
22

33
This is the current version of the mathematical library for the proof assistant Coq based on the univalent semantics for the calculus of inductive constructions. The best way to see in detail what the files in these subdirectories are about is to generate the corresponding tables of content with coqdoc . Here we give a brief outline of the library structure .
44

@@ -28,4 +28,6 @@ At the end of files finitesets.v, hz.v and hq.v there are sample computations w
2828

2929
Directory Proof_of_Extensionality/ contains the formulation of general Univalence Axiom and a proof that it implies functional extensionality .
3030

31+
The easiest way to compile the library is by typing "make" in this directory. For this to work one should have GNU Make installed which is easly to find on the web.
3132

33+
Once the library is compiled the individual files of the library can be followed line-by-line in CoqIDE or Proof General.

hlevel1/hProp.v

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ Unset Automatic Introduction. (* This line has to be removed for the file to com
2525

2626
(** Imports *)
2727

28-
(* Add LoadPath ".." as Foundations. *)
28+
Add LoadPath "../Generalities" .
2929

30-
Require Export Foundations.Generalities.uu0 .
30+
Require Export "uu0" .
3131

3232
(** Universe structure *)
3333

0 commit comments

Comments
 (0)