-
Notifications
You must be signed in to change notification settings - Fork 78
/
holtest
executable file
·236 lines (226 loc) · 18.1 KB
/
holtest
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
#!/bin/bash
#######################################################################
# Load in a bunch of examples to test HOL Light is working properly
# Try examining the output using something like
#
# egrep -i '###|error|not.found' nohup.out
#
# to see progress and whether anything has gone wrong.
#
# You might first want to install the necessary external tools,
# for instance with
#
# aptitude install prover9 coinor-csdp pari-gp libocamlgraph-ocaml-dev
#
#######################################################################
set -e
if which hol-light > /dev/null ; then
hollight=hol-light
elif type ckpt > /dev/null; then
make clean; make hol
(cd Mizarlight; make clean; make)
hollight=./hol
else
make clean; make
(cd Mizarlight; make clean; make)
hollight=./hol.sh
fi
# Standalone examples
echo '### Loading Library/agm.ml'; echo 'loadt "Library/agm.ml";;' | (time $hollight)
echo '### Loading Library/bdd.ml, Examples/bdd_examples.ml';
(echo 'loadt "Library/bdd.ml";;'; echo 'loadt "Examples/bdd_examples.ml";;') | (time $hollight)
echo '### Loading Library/binary.ml'; echo 'loadt "Library/binary.ml";;' | (time $hollight)
echo '### Loading Library/binomial.ml'; echo 'loadt "Library/binomial.ml";;' | (time $hollight)
echo '### Loading Examples/bitblast.ml'; echo 'loadt "Examples/bitblast.ml";;' | (time $hollight)
echo '### Loading Library/bitmatch.ml'; echo 'loadt "Library/bitmatch.ml";;' | (time $hollight)
echo '### Loading Library/bitsize.ml'; echo 'loadt "Library/bitsize.ml";;' | (time $hollight)
echo '### Loading Examples/bondy.ml'; echo 'loadt "Examples/bondy.ml";;' | (time $hollight)
echo '### Loading Examples/borsuk.ml'; echo 'loadt "Examples/borsuk.ml";;' | (time $hollight)
echo '### Loading Examples/brunn_minkowski.ml'; echo 'loadt "Examples/brunn_minkowski.ml";;' | (time $hollight)
echo '### Loading Library/card.ml'; echo 'loadt "Library/card.ml";;' | (time $hollight)
echo '### Loading Examples/combin.ml'; echo 'loadt "Examples/combin.ml";;' | (time $hollight)
echo '### Loading Examples/complexpolygon.ml'; echo 'loadt "Examples/complexpolygon.ml";;' | (time $hollight)
echo '### Loading Examples/cong.ml'; echo 'loadt "Examples/cong.ml";;' | (time $hollight)
echo '### Loading Examples/cooper.ml'; echo 'loadt "Examples/cooper.ml";;' | (time $hollight)
echo '### Loading Examples/dickson.ml'; echo 'loadt "Examples/dickson.ml";;' | (time $hollight)
echo '### Loading Examples/digit_serial_methods.ml'; echo 'loadt "Examples/digit_serial_methods.ml";;' | (time $hollight)
echo '### Loading Examples/division_algebras.ml'; echo 'loadt "Examples/division_algebras.ml";;' | (time $hollight)
echo '### Loading Examples/dlo.ml'; echo 'loadt "Examples/dlo.ml";;' | (time $hollight)
echo '### Loading Library/floor.ml'; echo 'loadt "Library/floor.ml";;' | (time $hollight)
echo '### Loading Examples/forster.ml'; echo 'loadt "Examples/forster.ml";;' | (time $hollight)
echo '### Loading Examples/gcdrecurrence.ml'; echo 'loadt "Examples/gcdrecurrence.ml";;' | (time $hollight)
echo '### Loading Library/grouptheory.ml'; echo 'loadt "Library/grouptheory.ml";;' | (time $hollight)
echo '### Loading Examples/harmonicsum.ml'; echo 'loadt "Examples/harmonicsum.ml";;' | (time $hollight)
echo '### Loading Examples/hol88.ml'; echo 'loadt "Examples/hol88.ml";;' | (time $hollight)
echo '### Loading Examples/holby.ml'; echo 'loadt "Examples/holby.ml";;' | (time $hollight)
echo '### Loading Library/integer.ml'; echo 'loadt "Library/integer.ml";;' | (time $hollight)
echo '### Loading Examples/inverse_bug_puzzle_miz3.ml'; echo 'loadt "Examples/inverse_bug_puzzle_miz3.ml";;' | (time $hollight)
echo '### Loading Examples/inverse_bug_puzzle_tac.ml'; echo 'loadt "Examples/inverse_bug_puzzle_tac.ml";;' | (time $hollight)
echo '### Loading RichterHilbertAxiomGeometry/inverse_bug_puzzle_read.ml'; echo 'loadt "RichterHilbertAxiomGeometry/inverse_bug_puzzle_read.ml";;' | (time $hollight)
echo '### Loading Library/isum.ml'; echo 'loadt "Library/isum.ml";;' | (time $hollight)
echo '### Loading Library/jacobi.ml'; echo 'loadt "Library/jacobi.ml";;' | (time $hollight)
echo '### Loading Examples/kb.ml'; echo 'loadt "Examples/kb.ml";;' | (time $hollight)
echo '### Loading Examples/lagrange_lemma.ml'; echo 'loadt "Examples/lagrange_lemma.ml";;' | (time $hollight)
echo '### Loading Examples/lucas_lehmer.ml'; echo 'loadt "Examples/lucas_lehmer.ml";;' | (time $hollight)
echo '### Loading Examples/mangoldt.ml'; echo 'loadt "Examples/mangoldt.ml";;' | (time $hollight)
echo '### Loading Library/matroids.ml'; echo 'loadt "Library/matroids.ml";;' | (time $hollight)
echo '### Loading Examples/mccarthy.ml'; echo 'loadt "Examples/mccarthy.ml";;' | (time $hollight)
echo '### Loading Examples/miller_rabin.ml'; echo 'loadt "Examples/miller_rabin.ml";;' | (time $hollight)
echo '### Loading Examples/misiurewicz.ml'; echo 'loadt "Examples/misiurewicz.ml";;' | (time $hollight)
echo '### Loading Examples/mizar.ml'; echo 'loadt "Examples/mizar.ml";;' | (time $hollight)
echo '### Loading Library/modmul_group.ml'; echo 'loadt "Library/modmul_group.ml";;' | (time $hollight)
echo '### Loading Library/multiplicative.ml'; echo 'loadt "Library/multiplicative.ml";;' | (time $hollight)
echo '### Loading Examples/multiwf.ml'; echo 'loadt "Examples/multiwf.ml";;' | (time $hollight)
echo '### Loading Examples/padics.ml'; echo 'loadt "Examples/padics.ml";;' | (time $hollight)
echo '### Loading Examples/pell.ml'; echo 'loadt "Examples/pell.ml";;' | (time $hollight)
echo '### Loading Library/permutations.ml'; echo 'loadt "Library/permutations.ml";;' | (time $hollight)
echo '### Loading Library/primitive.ml'; echo 'loadt "Library/primitive.ml";;' | (time $hollight)
echo '### Loading Library/products.ml'; echo 'loadt "Library/products.ml";;' | (time $hollight)
echo '### Loading Examples/prog.ml'; echo 'loadt "Examples/prog.ml";;' | (time $hollight)
echo '### Loading Examples/prover9.ml'; echo 'loadt "Examples/prover9.ml";;' | (time $hollight)
echo '### Loading Examples/pseudoprime.ml'; echo 'loadt "Examples/pseudoprime.ml";;' | (time $hollight)
echo '### Loading Library/q.ml'; echo 'loadt "Library/q.ml";;' | (time $hollight)
echo '### Loading Examples/rectypes.ml'; echo 'loadt "Examples/rectypes.ml";;' | (time $hollight)
echo '### Loading Library/ringtheory.ml'; echo 'loadt "Library/ringtheory.ml";;' | (time $hollight)
echo '### Loading Examples/safetyliveness.ml'; echo 'loadt "Examples/safetyliveness.ml";;' | (time $hollight)
echo '### Loading Examples/schnirelmann.ml'; echo 'loadt "Examples/schnirelmann.ml";;' | (time $hollight)
echo '### Loading Examples/solovay.ml'; echo 'loadt "Examples/solovay.ml";;' | (time $hollight)
echo '### Loading Examples/sos.ml'; echo 'loadt "Examples/sos.ml";;' | (time $hollight)
echo '### Loading Examples/ste.ml'; echo 'loadt "Examples/ste.ml";;' | (time $hollight)
echo '### Loading Examples/sylvester_gallai.ml'; echo 'loadt "Examples/sylvester_gallai.ml";;' | (time $hollight)
echo '### Loading Examples/vitali.ml'; echo 'loadt "Examples/vitali.ml";;' | (time $hollight)
echo '### Loading Library/wo.ml'; echo 'loadt "Library/wo.ml";;' | (time $hollight)
echo '### Loading Library/words.ml'; echo 'loadt "Library/words.ml";;' | (time $hollight)
echo '### Loading Examples/zolotarev.ml'; echo 'loadt "Examples/zolotarev.ml";;' | (time $hollight)
echo '### Loading Library/analysis.ml,/transc.ml,calc_real.ml,machin.ml,polylog.ml,poly.ml';
(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)
echo '### Loading Library/prime.ml,pratt.ml';
(echo 'loadt "Library/prime.ml";;'; echo 'loadt "Library/pratt.ml";;') | (time $hollight)
echo '### Loading Library/prime.ml,pocklington.ml';
(echo 'loadt "Library/prime.ml";;'; echo 'loadt "Library/pocklington.ml";;') | (time $hollight)
echo '### Loading Library/rstc.ml,reduct.ml';
(echo 'loadt "Library/rstc.ml";;'; echo 'loadt "Examples/reduct.ml";;') | (time $hollight)
# Extended examples
echo '### Loading Arithmetic/make.ml'; echo 'loadt "Arithmetic/make.ml";;' | (time $hollight)
echo '### Loading Boyer_Moore/make.ml'; echo 'loadt "Boyer_Moore/make.ml";;' | (time $hollight)
if which cadical > /dev/null ; then
echo '### Loading Cadical/make.ml,Cadical/test.ml';
(echo 'loadt "Cadical/make.ml";;'; echo 'loadt "Minisat/taut.ml";;'; echo 'loadt "Cadical/test.ml";;') | (time $hollight)
else
echo '### Error: skip Cadical/make.ml because cadical is not available'
fi
echo '### Loading Complex/make.ml'; echo 'loadt "Complex/make.ml";;' | (time $hollight)
echo '### Loading Divstep/make.ml'; echo 'loadt "Divstep/make.ml";;' | (time $hollight)
echo '### Loading EC/make.ml'; echo 'loadt "EC/make.ml";;' | (time $hollight)
echo '### Loading GL/make.ml'; echo 'loadt "GL/make.ml";;' | (time $hollight)
echo '### Loading Geometric_Algebra/make.ml'; echo 'loadt "Geometric_Algebra/make.ml";;' | (time $hollight)
echo '### Loading IEEE/make.ml'; echo 'loadt "IEEE/make.ml";;' | (time $hollight)
echo '### Loading IsabelleLight/make.ml'; echo 'loadt "IsabelleLight/make.ml";;' | (time $hollight)
echo '### Loading Jordan/make.ml'; echo 'loadt "Jordan/make.ml";;' | (time $hollight)
echo '### Loading Logic/make.ml'; echo 'loadt "Logic/make.ml";;' | (time $hollight)
echo '### Loading Mizarlight/make.ml'; echo 'loadt "Mizarlight/make.ml";;' | (time $hollight)
echo '### Loading miz3/make.ml, miz3/test.ml (twice)'; (echo 'loadt "miz3/make.ml";;'; echo 'loadt "miz3/test.ml";;'; echo 'loadt "miz3/test.ml";;') | (time $hollight)
if which zchaff > /dev/null ; then
echo '### Loading Minisat/make.ml,Minisat/test.ml';
(echo 'loadt "Minisat/make.ml";;'; echo 'loadt "Minisat/taut.ml";;'; echo 'loadt "Minisat/test.ml";;') | (time $hollight)
else
echo '### Error: skip Minisat/make.ml, Minisat/taut.ml because zchaff is not available'
fi
echo '### Loading Model/make.ml'; echo 'loadt "Model/make.ml";;' | (time $hollight)
echo '### Loading Multivariate/make.ml'; echo 'loadt "Multivariate/make.ml";;' | (time $hollight)
echo '### Loading Multivariate/make_complex.ml'; echo 'loadt "Multivariate/make_complex.ml";;' | (time $hollight)
echo '### Loading Ntrie/ntrie.ml'; echo 'loadt "Ntrie/ntrie.ml";;' | (time $hollight)
echo '### Loading Permutation/make.ml'; echo 'loadt "Permutation/make.ml";;' | (time $hollight)
echo '### Loading QBF/make.ml'; echo 'loadt "QBF/make.ml";;' | (time $hollight)
echo '### Loading Quaternions/make.ml'; echo 'loadt "Quaternions/make.ml";;' | (time $hollight)
echo '### Loading RichterHilbertAxiomGeometry/miz3/make.ml'; echo 'loadt "RichterHilbertAxiomGeometry/miz3/make.ml";;' | (time $hollight)
echo '### Loading RichterHilbertAxiomGeometry/HilbertAxiom_read.ml'; echo 'loadt "RichterHilbertAxiomGeometry/HilbertAxiom_read.ml";;' | (time $hollight)
echo '### Loading Rqe/make.ml'; echo 'loadt "Rqe/make.ml";;' | (time $hollight)
echo '### Loading Unity/make.ml'; echo 'loadt "Unity/make.ml";;' | (time $hollight)
echo '### Loading Multivariate/cross.ml'; echo 'loadt "Multivariate/cross.ml";;' | (time $hollight)
echo '### Loading Multivariate/cvectors.ml'; echo 'loadt "Multivariate/cvectors.ml";;' | (time $hollight)
echo '### Loading Multivariate/flyspeck.ml'; echo 'loadt "Multivariate/flyspeck.ml";;' | (time $hollight)
echo '### Loading Multivariate/gamma.ml'; echo 'loadt "Multivariate/gamma.ml";;' | (time $hollight)
echo '### Loading Multivariate/geom.ml'; echo 'loadt "Multivariate/geom.ml";;' | (time $hollight)
echo '### Loading Multivariate/homology.ml'; echo 'loadt "Multivariate/homology.ml";;' | (time $hollight)
echo '### Loading Multivariate/lpspaces.ml'; echo 'loadt "Multivariate/lpspaces.ml";;' | (time $hollight)
echo '### Loading Multivariate/msum.ml'; echo 'loadt "Multivariate/msum.ml";;' | (time $hollight)
echo '### Loading Multivariate/specialtopologies.ml'; echo 'loadt "Multivariate/specialtopologies.ml";;' | (time $hollight)
echo '### Loading Multivariate/tarski.ml'; echo 'loadt "Multivariate/tarski.ml";;' | (time $hollight)
echo '### Loading RichterHilbertAxiomGeometry/Topology.ml'; echo 'loadt "RichterHilbertAxiomGeometry/Topology.ml";;' | (time $hollight)
echo '### Loading RichterHilbertAxiomGeometry/TarskiAxiomGeometry_read.ml'; echo 'loadt "RichterHilbertAxiomGeometry/TarskiAxiomGeometry_read.ml";;' | (time $hollight)
echo '### Loading Functionspaces/make.ml'; echo 'loadt "Functionspaces/make.ml";;' | (time $hollight)
echo '### Loading Formal_ineqs/make.ml,examples.hl,examples_poly.hl,examples_flyspeck.hl';
(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)
# Some of the "Great 100 theorems"
echo '### Loading 100/arithmetic_geometric_mean.ml'; echo 'loadt "100/arithmetic_geometric_mean.ml";;' | (time $hollight)
echo '### Loading 100/arithmetic.ml'; echo 'loadt "100/arithmetic.ml";;' | (time $hollight)
echo '### Loading 100/ballot.ml'; echo 'loadt "100/ballot.ml";;' | (time $hollight)
echo '### Loading 100/bernoulli.ml'; echo 'loadt "100/bernoulli.ml";;' | (time $hollight)
echo '### Loading 100/bertrand.ml,100/primerecip.ml';
(echo 'loadt "100/bertrand.ml";;'; echo 'loadt "100/primerecip.ml";;') | (time $hollight)
echo '### Loading 100/birthday.ml'; echo 'loadt "100/birthday.ml";;' | (time $hollight)
echo '### Loading 100/cantor.ml'; echo 'loadt "100/cantor.ml";;' | (time $hollight)
echo '### Loading 100/cayley_hamilton.ml'; echo 'loadt "100/cayley_hamilton.ml";;' | (time $hollight)
echo '### Loading 100/ceva.ml'; echo 'loadt "100/ceva.ml";;' | (time $hollight)
echo '### Loading 100/circle.ml'; echo 'loadt "100/circle.ml";;' | (time $hollight)
echo '### Loading 100/chords.ml'; echo 'loadt "100/chords.ml";;' | (time $hollight)
echo '### Loading 100/combinations.ml'; echo 'loadt "100/combinations.ml";;' | (time $hollight)
echo '### Loading 100/constructible.ml'; echo 'loadt "100/constructible.ml";;' | (time $hollight)
echo '### Loading 100/cosine.ml'; echo 'loadt "100/cosine.ml";;' | (time $hollight)
echo '### Loading 100/cubic.ml'; echo 'loadt "100/cubic.ml";;' | (time $hollight)
echo '### Loading 100/derangements.ml'; echo 'loadt "100/derangements.ml";;' | (time $hollight)
echo '### Loading 100/desargues.ml'; echo 'loadt "100/desargues.ml";;' | (time $hollight)
echo '### Loading 100/descartes.ml'; echo 'loadt "100/descartes.ml";;' | (time $hollight)
echo '### Loading 100/dirichlet.ml'; echo 'loadt "100/dirichlet.ml";;' | (time $hollight)
echo '### Loading 100/div3.ml'; echo 'loadt "100/div3.ml";;' | (time $hollight)
echo '### Loading 100/divharmonic.ml'; echo 'loadt "100/divharmonic.ml";;' | (time $hollight)
echo '### Loading 100/e_is_transcendental.ml'; echo 'loadt "100/e_is_transcendental.ml";;' | (time $hollight)
echo '### Loading 100/euler.ml'; echo 'loadt "100/euler.ml";;' | (time $hollight)
echo '### Loading 100/feuerbach.ml'; echo 'loadt "100/feuerbach.ml";;' | (time $hollight)
echo '### Loading 100/fourier.ml'; echo 'loadt "100/fourier.ml";;' | (time $hollight)
echo '### Loading 100/four_squares.ml'; echo 'loadt "100/four_squares.ml";;' | (time $hollight)
echo '### Loading 100/friendship.ml'; echo 'loadt "100/friendship.ml";;' | (time $hollight)
echo '### Loading 100/fta.ml'; echo 'loadt "100/fta.ml";;' | (time $hollight)
echo '### Loading 100/gcd.ml'; echo 'loadt "100/gcd.ml";;' | (time $hollight)
echo '### Loading 100/heron.ml'; echo 'loadt "100/heron.ml";;' | (time $hollight)
echo '### Loading 100/isoperimetric.ml'; echo 'loadt "100/isoperimetric.ml";;' | (time $hollight)
echo '### Loading 100/inclusion_exclusion.ml'; echo 'loadt "100/inclusion_exclusion.ml";;' | (time $hollight)
echo '### Loading 100/independence.ml'; echo 'loadt "100/independence.ml";;' | (time $hollight)
echo '### Loading 100/isosceles.ml'; echo 'loadt "100/isosceles.ml";;' | (time $hollight)
echo '### Loading 100/konigsberg.ml'; echo 'loadt "100/konigsberg.ml";;' | (time $hollight)
echo '### Loading 100/lagrange.ml'; echo 'loadt "100/lagrange.ml";;' | (time $hollight)
echo '### Loading 100/leibniz.ml'; echo 'loadt "100/leibniz.ml";;' | (time $hollight)
echo '### Loading 100/lhopital.ml'; echo 'loadt "100/lhopital.ml";;' | (time $hollight)
echo '### Loading 100/liouville.ml'; echo 'loadt "100/liouville.ml";;' | (time $hollight)
echo '### Loading 100/minkowski.ml'; echo 'loadt "100/minkowski.ml";;' | (time $hollight)
echo '### Loading 100/morley.ml'; echo 'loadt "100/morley.ml";;' | (time $hollight)
echo '### Loading 100/pascal.ml'; echo 'loadt "100/pascal.ml";;' | (time $hollight)
echo '### Loading 100/perfect.ml'; echo 'loadt "100/perfect.ml";;' | (time $hollight)
echo '### Loading 100/pick.ml'; echo 'loadt "100/pick.ml";;' | (time $hollight)
echo '### Loading 100/piseries.ml'; echo 'loadt "100/piseries.ml";;' | (time $hollight)
echo '### Loading 100/platonic.ml'; echo 'loadt "100/platonic.ml";;' | (time $hollight)
echo '### Loading 100/pnt.ml'; echo 'loadt "100/pnt.ml";;' | (time $hollight)
echo '### Loading 100/polyhedron.ml'; echo 'loadt "100/polyhedron.ml";;' | (time $hollight)
echo '### Loading 100/ptolemy.ml'; echo 'loadt "100/ptolemy.ml";;' | (time $hollight)
echo '### Loading 100/pythagoras.ml'; echo 'loadt "100/pythagoras.ml";;' | (time $hollight)
echo '### Loading 100/quartic.ml'; echo 'loadt "100/quartic.ml";;' | (time $hollight)
echo '### Loading 100/ramsey.ml'; echo 'loadt "100/ramsey.ml";;' | (time $hollight)
echo '### Loading 100/ratcountable.ml'; echo 'loadt "100/ratcountable.ml";;' | (time $hollight)
echo '### Loading 100/realsuncountable.ml'; echo 'loadt "100/realsuncountable.ml";;' | (time $hollight)
echo '### Loading 100/reciprocity.ml'; echo 'loadt "100/reciprocity.ml";;' | (time $hollight)
echo '### Loading 100/stirling.ml'; echo 'loadt "100/stirling.ml";;' | (time $hollight)
echo '### Loading 100/subsequence.ml'; echo 'loadt "100/subsequence.ml";;' | (time $hollight)
echo '### Loading 100/thales.ml'; echo 'loadt "100/thales.ml";;' | (time $hollight)
echo '### Loading 100/triangular.ml'; echo 'loadt "100/triangular.ml";;' | (time $hollight)
echo '### Loading 100/two_squares.ml'; echo 'loadt "100/two_squares.ml";;' | (time $hollight)
echo '### Loading 100/wilson.ml'; echo 'loadt "100/wilson.ml";;' | (time $hollight)
# Build the proof-recording version of HOL
echo '### Building proof-recording version';
cd Proofrecording/hol_light
make clean; make hol