author | paulson |
Fri, 06 Jun 1997 10:18:46 +0200 | |
changeset 3417 | 58ccb80eb50a |
parent 3390 | 0c7625196d95 |
child 3482 | ef918a90f9bf |
permissions | -rw-r--r-- |
2448 | 1 |
# |
2 |
# $Id$ |
|
3 |
# |
|
4 |
# IsaMakefile for HOL |
|
5 |
# |
|
6 |
||
7 |
#### Base system |
|
8 |
||
3118 | 9 |
OUT = $(ISABELLE_OUTPUT) |
2448 | 10 |
|
3195 | 11 |
NAMES = HOL Ord Set Fun subset equalities Prod Relation Trancl Sum WF WF_Rel \ |
3025 | 12 |
mono Lfp Gfp NatDef Nat intr_elim indrule Inductive Finite Arith \ |
3390
0c7625196d95
New theory "Power" of exponentiation (and binomial coefficients)
paulson
parents:
3369
diff
changeset
|
13 |
Divides Power Sexp Univ List RelPow Option |
2448 | 14 |
|
3232
19a2b853ba7b
Removal of ex/LexProd; TFL files; new treatment of Prover files
paulson
parents:
3222
diff
changeset
|
15 |
PROVERS = hypsubst.ML classical.ML blast.ML \ |
19a2b853ba7b
Removal of ex/LexProd; TFL files; new treatment of Prover files
paulson
parents:
3222
diff
changeset
|
16 |
simplifier.ML splitter.ML nat_transitive.ML |
19a2b853ba7b
Removal of ex/LexProd; TFL files; new treatment of Prover files
paulson
parents:
3222
diff
changeset
|
17 |
|
3354 | 18 |
TFL = dcterm.sml post.sml rules.new.sml rules.sig \ |
3232
19a2b853ba7b
Removal of ex/LexProd; TFL files; new treatment of Prover files
paulson
parents:
3222
diff
changeset
|
19 |
sys.sml tfl.sig tfl.sml thms.sig thms.sml thry.sig thry.sml \ |
19a2b853ba7b
Removal of ex/LexProd; TFL files; new treatment of Prover files
paulson
parents:
3222
diff
changeset
|
20 |
usyntax.sig usyntax.sml utils.sig utils.sml |
19a2b853ba7b
Removal of ex/LexProd; TFL files; new treatment of Prover files
paulson
parents:
3222
diff
changeset
|
21 |
|
2448 | 22 |
FILES = ROOT.ML add_ind_def.ML datatype.ML hologic.ML \ |
23 |
ind_syntax.ML cladata.ML simpdata.ML \ |
|
24 |
typedef.ML thy_syntax.ML thy_data.ML ../Pure/section_utils.ML \ |
|
3232
19a2b853ba7b
Removal of ex/LexProd; TFL files; new treatment of Prover files
paulson
parents:
3222
diff
changeset
|
25 |
$(NAMES:%=%.thy) $(NAMES:%=%.ML) $(TFL:%=../TFL/%) \ |
19a2b853ba7b
Removal of ex/LexProd; TFL files; new treatment of Prover files
paulson
parents:
3222
diff
changeset
|
26 |
$(PROVERS:%=../Provers/%) |
2448 | 27 |
|
28 |
$(OUT)/HOL: $(OUT)/Pure $(FILES) |
|
2826 | 29 |
@$(ISATOOL) usedir -b $(OUT)/Pure HOL |
2448 | 30 |
@chmod -w $@ |
31 |
||
32 |
$(OUT)/Pure: |
|
2473 | 33 |
@cd ../Pure; $(ISATOOL) make |
2448 | 34 |
|
35 |
||
2473 | 36 |
#### Tests and examples |
37 |
||
3125 | 38 |
## Inductive definitions: simple examples |
39 |
||
40 |
INDUCT_FILES = Perm Comb Mutil SList LList LFilter Acc PropLog Term Simult |
|
41 |
||
42 |
INDUCT_FILES = Induct/ROOT.ML \ |
|
43 |
$(INDUCT_NAMES:%=Induct/%.thy) $(INDUCT_NAMES:%=Induct/%.ML) |
|
44 |
||
45 |
Induct: $(OUT)/HOL $(INDUCT_FILES) |
|
46 |
@$(ISATOOL) usedir $(OUT)/HOL Induct |
|
47 |
||
48 |
||
2448 | 49 |
## IMP-semantics example |
50 |
||
51 |
IMP_NAMES = Expr Com Natural Transition Denotation Hoare VC |
|
52 |
IMP_FILES = IMP/ROOT.ML $(IMP_NAMES:%=IMP/%.thy) $(IMP_NAMES:%=IMP/%.ML) |
|
53 |
||
54 |
IMP: $(OUT)/HOL $(IMP_FILES) |
|
2826 | 55 |
@$(ISATOOL) usedir $(OUT)/HOL IMP |
2448 | 56 |
|
57 |
||
58 |
## Hoare logic |
|
59 |
||
60 |
Hoare_NAMES = Hoare Arith2 Examples |
|
61 |
Hoare_FILES = Hoare/ROOT.ML $(Hoare_NAMES:%=Hoare/%.thy) \ |
|
62 |
$(Hoare_NAMES:%=Hoare/%.ML) |
|
63 |
||
64 |
Hoare: $(OUT)/HOL $(Hoare_FILES) |
|
2826 | 65 |
@$(ISATOOL) usedir $(OUT)/HOL Hoare |
2448 | 66 |
|
67 |
||
68 |
## The integers in HOL |
|
69 |
||
70 |
INTEG_NAMES = Equiv Integ Group Ring Lagrange IntRingDefs IntRing |
|
71 |
||
72 |
INTEG_FILES = Integ/ROOT.ML \ |
|
73 |
$(INTEG_NAMES:%=Integ/%.thy) $(INTEG_NAMES:%=Integ/%.ML) |
|
74 |
||
75 |
Integ: $(OUT)/HOL $(INTEG_FILES) |
|
2826 | 76 |
@$(ISATOOL) usedir $(OUT)/HOL Integ |
2448 | 77 |
|
78 |
||
3079 | 79 |
## I/O Automata (meta theory only) |
2448 | 80 |
|
81 |
||
3079 | 82 |
IOA_FILES = IOA/ROOT.ML IOA/Asig.thy IOA/Asig.ML IOA/IOA.thy \ |
83 |
IOA/IOA.ML IOA/Solve.thy IOA/Solve.ML |
|
2448 | 84 |
|
3079 | 85 |
IOA: $(OUT)/HOL $(IOA_FILES) |
86 |
@$(ISATOOL) usedir $(OUT)/HOL IOA |
|
2448 | 87 |
|
88 |
||
89 |
## Authentication & Security Protocols |
|
90 |
||
91 |
Auth_NAMES = Message Shared NS_Shared OtwayRees OtwayRees_AN OtwayRees_Bad \ |
|
2473 | 92 |
Recur WooLam Yahalom Yahalom2 Public NS_Public_Bad NS_Public |
2448 | 93 |
|
94 |
AUTH_FILES = Auth/ROOT.ML $(AUTH_NAMES:%=Auth/%.thy) $(AUTH_NAMES:%=Auth/%.ML) |
|
95 |
||
96 |
Auth: $(OUT)/HOL $(AUTH_FILES) |
|
2826 | 97 |
@$(ISATOOL) usedir $(OUT)/HOL Auth |
2448 | 98 |
|
99 |
||
3218 | 100 |
## Modelchecker invocation |
101 |
||
102 |
MC_FILES = Modelcheck/CTL.thy Modelcheck/Example.ML \ |
|
103 |
Modelcheck/Example.thy Modelcheck/MCSyn.ML Modelcheck/MCSyn.thy \ |
|
104 |
Modelcheck/MuCalculus.ML Modelcheck/MuCalculus.thy Modelcheck/ROOT.ML |
|
105 |
||
106 |
Modelcheck: $(OUT)/HOL $(MC_FILES) |
|
107 |
@$(ISATOOL) usedir $(OUT)/HOL Modelcheck |
|
108 |
||
109 |
||
2448 | 110 |
## Properties of substitutions |
111 |
||
3195 | 112 |
SUBST_NAMES = AList Subst Unifier UTerm Unify |
2448 | 113 |
|
114 |
SUBST_FILES = Subst/ROOT.ML \ |
|
115 |
$(SUBST_NAMES:%=Subst/%.thy) $(SUBST_NAMES:%=Subst/%.ML) |
|
116 |
||
117 |
Subst: $(OUT)/HOL $(SUBST_FILES) |
|
2826 | 118 |
@$(ISATOOL) usedir $(OUT)/HOL Subst |
2448 | 119 |
|
120 |
||
121 |
## Confluence of Lambda-calculus |
|
122 |
||
123 |
LAMBDA_NAMES = Lambda ParRed Commutation Eta |
|
124 |
||
125 |
LAMBDA_FILES = Lambda/ROOT.ML \ |
|
126 |
$(LAMBDA_NAMES:%=Lambda/%.thy) $(LAMBDA_NAMES:%=Lambda/%.ML) |
|
127 |
||
128 |
Lambda: $(OUT)/HOL $(LAMBDA_FILES) |
|
2826 | 129 |
@$(ISATOOL) usedir $(OUT)/HOL Lambda |
2448 | 130 |
|
131 |
||
2527 | 132 |
## Type inference without let |
133 |
||
134 |
W0_NAMES = I Maybe MiniML Type W |
|
135 |
||
136 |
W0_FILES = W0/ROOT.ML \ |
|
137 |
$(W0_NAMES:%=W0/%.thy) $(W0_NAMES:%=W0/%.ML) |
|
2448 | 138 |
|
2527 | 139 |
W0: $(OUT)/HOL $(W0_FILES) |
2826 | 140 |
@$(ISATOOL) usedir $(OUT)/HOL W0 |
2527 | 141 |
|
142 |
||
143 |
## Type inference with let |
|
144 |
||
145 |
MINIML_NAMES = Generalize Instance Maybe MiniML Type W |
|
2448 | 146 |
|
147 |
MINIML_FILES = MiniML/ROOT.ML \ |
|
148 |
$(MINIML_NAMES:%=MiniML/%.thy) $(MINIML_NAMES:%=MiniML/%.ML) |
|
149 |
||
150 |
MiniML: $(OUT)/HOL $(MINIML_FILES) |
|
2826 | 151 |
@$(ISATOOL) usedir $(OUT)/HOL MiniML |
2448 | 152 |
|
153 |
||
154 |
## Lexical analysis |
|
155 |
||
156 |
LEX_FILES = Auto AutoChopper Chopper Prefix |
|
157 |
||
158 |
LEX_FILES = Lex/ROOT.ML \ |
|
159 |
$(LEX_NAMES:%=Lex/%.thy) $(LEX_NAMES:%=Lex/%.ML) |
|
160 |
||
161 |
Lex: $(OUT)/HOL $(LEX_FILES) |
|
2826 | 162 |
@$(ISATOOL) usedir $(OUT)/HOL Lex |
2448 | 163 |
|
164 |
||
2545 | 165 |
## Axiomatic type classes examples |
166 |
||
167 |
AXC_GROUP_FILES = Group.ML Group.thy GroupDefs.ML GroupDefs.thy \ |
|
168 |
GroupInsts.thy Monoid.thy MonoidGroupInsts.thy ROOT.ML Sigs.thy |
|
169 |
||
170 |
AXC_LATTICE_FILES = CLattice.ML CLattice.thy LatInsts.ML LatInsts.thy \ |
|
171 |
LatMorph.ML LatMorph.thy LatPreInsts.ML LatPreInsts.thy \ |
|
172 |
Lattice.ML Lattice.thy OrdDefs.ML OrdDefs.thy OrdInsts.thy \ |
|
173 |
Order.ML Order.thy ROOT.ML tools.ML |
|
174 |
||
175 |
AXC_TUTORIAL_FILES = BoolGroupInsts.thy Group.ML Group.thy Monoid.thy \ |
|
176 |
MonoidGroupInsts.thy ProdGroupInsts.thy Product.thy \ |
|
177 |
ProductInsts.thy ROOT.ML Semigroup.thy Semigroups.thy Sigs.thy \ |
|
178 |
Xor.ML Xor.thy |
|
179 |
||
180 |
AXCLASSES_FILES = AxClasses/ROOT.ML \ |
|
181 |
$(AXC_GROUP_FILES:%=AxClasses/Group/%) \ |
|
182 |
$(AXC_LATTICE_FILES:%=AxClasses/Lattice/%) \ |
|
183 |
$(AXC_TUTORIAL_FILES:%=AxClasses/Tutorial/%) |
|
184 |
||
185 |
AxClasses: $(OUT)/HOL $(AXCLASSES_FILES) |
|
2826 | 186 |
@$(ISATOOL) usedir $(OUT)/HOL AxClasses |
2827 | 187 |
@$(ISATOOL) usedir -s AxClasses-Group $(OUT)/HOL AxClasses/Group |
188 |
@$(ISATOOL) usedir -s AxClasses-Lattice $(OUT)/HOL AxClasses/Lattice |
|
189 |
@$(ISATOOL) usedir -s AxClasses-Tutorial $(OUT)/HOL AxClasses/Tutorial |
|
2545 | 190 |
|
191 |
||
2909 | 192 |
## Higher-order quotients and example fractionals |
2900 | 193 |
|
2909 | 194 |
QUOT_FILES = Quot/ROOT.ML Quot/PER0.thy Quot/PER0.ML Quot/PER.thy Quot/PER.ML \ |
195 |
Quot/HQUOT.thy Quot/HQUOT.ML Quot/NPAIR.thy Quot/NPAIR.ML \ |
|
196 |
Quot/FRACT.thy Quot/FRACT.ML |
|
2900 | 197 |
Quot: $(OUT)/HOL $(QUOT_FILES) |
198 |
@$(ISATOOL) usedir $(OUT)/HOL Quot |
|
199 |
||
200 |
||
2448 | 201 |
## Miscellaneous examples |
202 |
||
3417 | 203 |
EX_NAMES = Recdef Fib Primes Primrec NatSum String BT InSort Qsort Puzzle MT |
2448 | 204 |
|
205 |
EX_FILES = ex/ROOT.ML ex/cla.ML ex/meson.ML ex/mesontest.ML ex/rel.ML \ |
|
206 |
ex/set.ML $(EX_NAMES:%=ex/%.thy) $(EX_NAMES:%=ex/%.ML) |
|
207 |
||
208 |
ex: $(OUT)/HOL $(EX_FILES) |
|
2826 | 209 |
@$(ISATOOL) usedir $(OUT)/HOL ex |
2448 | 210 |
|
211 |
||
212 |
## Full test |
|
213 |
||
2635 | 214 |
test: $(OUT)/HOL \ |
3218 | 215 |
Subst Induct IMP Hoare Lex Integ Auth Modelcheck Lambda \ |
3125 | 216 |
W0 MiniML IOA AxClasses Quot ex |
2448 | 217 |
echo 'Test examples ran successfully' > test |
218 |
||
219 |
||
220 |
.PRECIOUS: $(OUT)/Pure $(OUT)/HOL |