-
Notifications
You must be signed in to change notification settings - Fork 78
/
holtest.mk
270 lines (251 loc) · 8.33 KB
/
holtest.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
HOLLIGHT:=./hol.sh
STANDALONE_EXAMPLES:=\
Library/agm \
Library/bdd \
Examples/bdd_examples \
Library/binary \
Library/binomial \
Examples/bitblast \
Library/bitmatch \
Library/bitsize \
Examples/bondy \
Examples/borsuk \
Examples/brunn_minkowski \
Library/card \
Examples/combin \
Examples/complexpolygon \
Examples/cong \
Examples/cooper \
Examples/dickson \
Examples/digit_serial_methods \
Examples/division_algebras \
Examples/dlo \
Library/floor \
Examples/forster \
Examples/gcdrecurrence \
Library/grouptheory \
Examples/harmonicsum \
Examples/hol88 \
Examples/holby \
Library/integer \
Examples/inverse_bug_puzzle_miz3 \
Examples/inverse_bug_puzzle_tac \
RichterHilbertAxiomGeometry/inverse_bug_puzzle_read \
Library/isum \
Library/jacobi \
Examples/kb \
Examples/lagrange_lemma \
Examples/lucas_lehmer \
Examples/mangoldt \
Library/matroids \
Examples/mccarthy \
Examples/miller_rabin \
Examples/misiurewicz \
Examples/mizar \
Library/modmul_group \
Library/multiplicative \
Examples/multiwf \
Examples/padics \
Examples/pell \
Library/permutations \
Library/primitive \
Library/products \
Examples/prog \
Examples/prover9 \
Examples/pseudoprime \
Library/q \
Examples/rectypes \
Library/ringtheory \
Examples/safetyliveness \
Examples/schnirelmann \
Examples/solovay \
Examples/sos \
Examples/ste \
Examples/sylvester_gallai \
Examples/vitali \
Library/wo \
Library/words \
Examples/zolotarev \
Library/analysis-transc \
Library/prime-pratt \
Library/prime-pocklington \
Library/rstc-reduct
EXTENDED_EXAMPLES:=\
Arithmetic/make \
Boyer_Moore/make \
Cadical/make-test \
Complex/make \
Divstep/make \
EC/make \
GL/make \
Geometric_Algebra/make \
IEEE/make \
IsabelleLight/make \
Jordan/make \
Logic/make \
Mizarlight/make \
miz3/make-test \
Minisat/make-test \
Model/make \
Multivariate/make \
Multivariate/make_complex \
Ntrie/ntrie \
Permutation/make \
QBF/make \
Quaternions/make \
RichterHilbertAxiomGeometry/miz3/make \
RichterHilbertAxiomGeometry/HilbertAxiom_read \
Rqe/make \
Unity/make \
Multivariate/cross \
Multivariate/cvectors \
Multivariate/flyspeck \
Multivariate/gamma \
Multivariate/geom \
Multivariate/homology \
Multivariate/lpspaces \
Multivariate/msum \
Multivariate/specialtopologies \
Multivariate/tarski \
RichterHilbertAxiomGeometry/Topology \
RichterHilbertAxiomGeometry/TarskiAxiomGeometry_read \
Functionspaces/make \
Formal_ineqs/make-ineqs
GREAT_100_THEOREMS:= \
100/arithmetic_geometric_mean \
100/arithmetic \
100/ballot \
100/bernoulli \
100/bertrand-primerecip \
100/birthday \
100/cantor \
100/cayley_hamilton \
100/ceva \
100/circle \
100/chords \
100/combinations \
100/constructible \
100/cosine \
100/cubic \
100/derangements \
100/desargues \
100/descartes \
100/dirichlet \
100/div3 \
100/divharmonic \
100/e_is_transcendental \
100/euler \
100/feuerbach \
100/fourier \
100/four_squares \
100/friendship \
100/fta \
100/gcd \
100/heron \
100/isoperimetric \
100/inclusion_exclusion \
100/independence \
100/isosceles \
100/konigsberg \
100/lagrange \
100/leibniz \
100/lhopital \
100/liouville \
100/minkowski \
100/morley \
100/pascal \
100/perfect \
100/pick \
100/piseries \
100/platonic \
100/pnt \
100/polyhedron \
100/ptolemy \
100/pythagoras \
100/quartic \
100/ramsey \
100/ratcountable \
100/realsuncountable \
100/reciprocity \
100/stirling \
100/subsequence \
100/thales \
100/triangular \
100/two_squares \
100/wilson
TESTS:=$(STANDALONE_EXAMPLES) $(EXTENDED_EXAMPLES) $(GREAT_100_THEOREMS)
LOGDIR:=/tmp/hol-light-test
LOGS:=$(patsubst %,$(LOGDIR)/%,$(TESTS))
READY:=$(patsubst %,%.ready,$(LOGS))
all: $(READY)
cat $(LOGS) > $(LOGDIR)/holtest.log
$(LOGDIR)/Library/analysis-transc.ready:
@mkdir -p $(LOGDIR)/$$(dirname Library/analysis-transc)
@echo '### Loading Library/analysis.ml,/transc.ml,calc_real.ml,machin.ml,polylog.ml,poly.ml'
@echo '### Loading Library/analysis.ml,/transc.ml,calc_real.ml,machin.ml,polylog.ml,poly.ml' > $(LOGDIR)/Library/analysis-transc
@(echo 'loadt "Library/analysis.ml";;'; echo 'loadt "Library/transc.ml";;'; \
echo 'loadt "Library/calc_real.ml";;'; echo 'loadt "Examples/machin.ml";;'; \
echo 'loadt "Examples/polylog.ml";;'; echo 'loadt "Library/poly.ml";;') | (time $(HOLLIGHT)) >> $(LOGDIR)/Library/analysis-transc 2>&1
@touch $(LOGDIR)/Library/analysis-transc.ready
$(LOGDIR)/Library/prime-pratt.ready:
@mkdir -p $(LOGDIR)/$$(dirname Library/prime-pratt)
@echo '### Loading Library/prime.ml,pratt.ml'
@echo '### Loading Library/prime.ml,pratt.ml' > $(LOGDIR)/Library/prime-pratt
@(echo 'loadt "Library/prime.ml";;'; echo 'loadt "Library/pratt.ml";;') | (time $(HOLLIGHT)) >> $(LOGDIR)/Library/prime-pratt 2>&1
@touch $(LOGDIR)/Library/prime-pratt.ready
$(LOGDIR)/Library/prime-pocklington.ready:
@mkdir -p $(LOGDIR)/$$(dirname Library/prime-pocklington)
@echo '### Loading Library/prime.ml,pocklington.ml'
@echo '### Loading Library/prime.ml,pocklington.ml' > $(LOGDIR)/Library/prime-pocklington
@(echo 'loadt "Library/prime.ml";;'; echo 'loadt "Library/pocklington.ml";;') | (time $(HOLLIGHT)) >> $(LOGDIR)/Library/prime-pocklington 2>&1
@touch $(LOGDIR)/Library/prime-pocklington.ready
$(LOGDIR)/Library/rstc-reduct.ready:
@mkdir -p $(LOGDIR)/$$(dirname Library/rstc-reduct)
@echo '### Loading Library/rstc.ml,reduct.ml'
@echo '### Loading Library/rstc.ml,reduct.ml' > $(LOGDIR)/Library/rstc-reduct
@(echo 'loadt "Library/rstc.ml";;'; echo 'loadt "Examples/reduct.ml";;') | (time $(HOLLIGHT)) >> $(LOGDIR)/Library/rstc-reduct 2>&1
@touch $(LOGDIR)/Library/rstc-reduct.ready
$(LOGDIR)/miz3/make-test.ready:
@mkdir -p $(LOGDIR)/$$(dirname miz3/make-test)
@echo '### Loading miz3/make.ml, miz3/test.ml (twice)'
@echo '### Loading miz3/make.ml, miz3/test.ml (twice)' > $(LOGDIR)/miz3/make-test
@(echo 'loadt "miz3/make.ml";;'; echo 'loadt "miz3/test.ml";;'; echo 'loadt "miz3/test.ml";;') | (time $(HOLLIGHT)) >> $(LOGDIR)/miz3/make-test 2>&1
@touch $(LOGDIR)/miz3/make-test.ready
$(LOGDIR)/Minisat/make-test.ready:
@mkdir -p $(LOGDIR)/$$(dirname Minisat/make-test)
@echo '### Loading Minisat/make.ml,Minisat/test.ml'
if which zchaff > /dev/null ; then \
echo '### Loading Minisat/make.ml,Minisat/test.ml' > $(LOGDIR)/Minisat/make-test ; \
(echo 'loadt "Minisat/make.ml";;'; echo 'loadt "Minisat/taut.ml";;'; echo 'loadt "Minisat/test.ml";;') | (time $(HOLLIGHT)) >> $(LOGDIR)/Minisat/make-test 2>&1 ; \
else \
echo '### Error: skip Minisat/make.ml, Minisat/test.ml because zchaff is not available' > $(LOGDIR)/Minisat/make-test ; \
fi
@touch $(LOGDIR)/Minisat/make-test.ready
$(LOGDIR)/Formal_ineqs/make-ineqs.ready:
@mkdir -p $(LOGDIR)/$$(dirname Formal_ineqs/make-ineqs)
@echo '### Loading Formal_ineqs/make.ml, examples.hl, examples_poly.hl, examples_flyspeck.hl' > $(LOGDIR)/Formal_ineqs/make-ineqs
@(echo 'loadt "Formal_ineqs/make.ml";;'; echo 'loadt "Formal_ineqs/examples.hl";;'; echo 'loadt "Formal_ineqs/examples_poly.hl";;'; echo 'loadt "Formal_ineqs/examples_flyspeck.hl";;') | (time $(HOLLIGHT)) >> $(LOGDIR)/Formal_ineqs/make-ineqs 2>&1
@touch $(LOGDIR)/Formal_ineqs/make-ineqs.ready
$(LOGDIR)/100/bertrand-primerecip.ready:
@mkdir -p $(LOGDIR)/$$(dirname 100/bertrand-primerecip)
@echo '### Loading 100/bertrand.ml,100/primerecip.ml'
@echo '### Loading 100/bertrand.ml,100/primerecip.ml' > $(LOGDIR)/100/bertrand-primerecip
@(echo 'loadt "100/bertrand.ml";;'; echo 'loadt "100/primerecip.ml";;') | (time $(HOLLIGHT)) >> $(LOGDIR)/100/bertrand-primerecip 2>&1
@touch $(LOGDIR)/100/bertrand-primerecip.ready
$(LOGDIR)/Cadical/make-test.ready:
@mkdir -p $(LOGDIR)/$$(dirname Cadical/make-test)
@echo '### Loading Cadical/make.ml,Cadical/test.ml'
if which cadical > /dev/null ; then \
echo '### Loading Cadical/make.ml,Cadical/test.ml' > $(LOGDIR)/Cadical/make-test ; \
(echo 'loadt "Cadical/make.ml";;'; echo 'loadt "Minisat/taut.ml";;'; echo 'loadt "Cadical/test.ml";;') | (time $(HOLLIGHT)) >> $(LOGDIR)/Cadical/make-test 2>&1 ; \
else \
echo '### Error: skip Cadical/make.ml, Cadical/test.ml because cadical is not available' > $(LOGDIR)/Cadical/make-test ; \
fi
@touch $(LOGDIR)/Cadical/make-test.ready
# Recall that $* is the stem matched by the %
$(LOGDIR)/%.ready:
@mkdir -p $(LOGDIR)/$$(dirname $*)
@echo '### Loading $*.ml'
@echo '### Loading $*.ml' > $(LOGDIR)/$*
@echo 'loadt "$*.ml";;' | (time $(HOLLIGHT)) >> $(LOGDIR)/$* 2>&1
@touch $(LOGDIR)/$*.ready