1 (*.evaluate isac (all the code of the kernel) and isactest
2 (c) Walther Neuper 1997
4 --------------------------------------------------------old heap on new nb
5 polyisac /home/neuper/devel/isac-10/heap/HOL-Real-Isac
6 --------------------------------------------------------old heap on new nb
8 poly /usr/local/Isabelle2002/heaps/polyml-4.1.3_x86-linux/HOL-Real
9 cd"/home/neuper/proto2/isac/src/sml"; use"ROOT.ML";
11 ############################# nb-setup 080917 broke the isabelle configuration; thus HOL-Real CANNOT BE RECOMPUTED todo !
13 /usr/local/Isabelle2002/bin/isabelle HOL-Real
14 cd"/home/neuper/proto2/isac/src/sml"; use"ROOT.ML";
16 ############################# Rational-SK070730.ML #############
18 cd"/home/neuper/proto2/isac/src/sml"; use"RCODE-root.sml";
19 cd"/home/neuper/proto2/isac/src/sml"; use"RTEST-root.sml";
22 (*.please change HERE and in RCODE-root accordingly,
23 if you store a new heap ...*)
24 val version_isac = "WN071206-applyTacticTW";
26 print_depth 1;(*reduces verbosity of stdout*)
28 (*.these functions from Isabelle2002/src/Pure/library.ML are overwritten
29 by some Isabelle2002 theory file; thus reestablished for isac.*)
30 fun find_first _ [] = None
31 | find_first pred (x :: xs) =
32 if pred x then Some x else find_first pred xs;
33 fun swap (x, y) = (y, x);
34 (*HACK.WN080107*) val sstr = str;
36 "**** build the isac kernel = math-engine + IsacKnowledge ";
37 "**** build the math-engine ******************************";
40 check_guhs_unique := true;
47 use_thy"~/proto2/isac/src/sml/Scripts/Script";
67 use"pbl-met-hierarchy.sml";
68 use"thy-hierarchy.sml";
69 use"interface-xml.sml";
77 "**** build math-engine complete *************************";
79 "**** build the IsacKnowledge ****************************";
81 use_thy"Isac"; (*evaluates ALL thys depending on the root 'Isac'*)
83 (* remove_thy"Typefix";
84 use_thy"~/proto2/isac/src/sml/IsacKnowledge/Isac";
87 "**** build IsacKnowledge complete ***********************";
88 "**** build isac kernel complete *************************";
89 check_guhs_unique := false;
91 "**** run the tests **************************************";
93 (*+ check kbtest/diffapp.sml for additional items in met-model*)
96 (* use"script_if.sml"; WN03 missing: is_rootequation_in*)
100 use"interface-xml.sml";
101 (* use"testdaten.sml"; no update after dropping 'errorBound'*)
103 "**** run systests complete ******************************";
104 (*TODO copy the whole filestructure from sml to smltest*)
107 use"calculate-float.sml";
119 use"solve.sml"; (*detailrls can notyet ackn. 'Rewrite_Set "cancel"' *);
126 use"pbl-met-hierarchy.sml";
127 use"thy-hierarchy.sml";
129 cd"smltest/FE-interface";
132 "**** run tests on math-engine complete ******************";
133 cd"smltest/IsacKnowledge";
140 (*use"inssort.sml"; problems with recdef in Isabelle2002*)
144 use"polyeq.sml"; (*TODO 31.b, n1., 44.a, 1.a~, 1.b (all'expanded')WN
145 ? also check others without check 'diff.behav.'*);
147 use"rational.sml" (*TODO add_fractions_p throws overflow-exn WN*);
148 use"rlang.sml"; (*WN.12.6.03: for TODOs search 'writeln',
149 for simplification search MG
150 erls: 98a(1) 104a(1) 104a(2) 68a *);
162 "**** run tests on IsacKnowledge complete ****************";
164 val path = "/home/neuper/proto2/testsml2xml/";
165 pbl_hierarchy2file (path ^ "pbl/");
166 pbls2file (path ^ "pbl/");
167 met_hierarchy2file (path ^ "met/");
168 mets2file (path ^ "met/");
169 thy_hierarchy2file (path ^ "thy/");
170 thes2file (path ^ "thy/");
171 "**** tested creation of xmldata *************************";
176 "=========================================================";
178 "**** build math-engine complete *************************";
179 "**** build IsacKnowledge complete ***********************";
180 "**** run systests complete ***************** re-organize!";
181 "**** run tests on math-engine complete ******************";
182 "**** run tests on IsacKnowledge complete ****************";
183 "**** tested creation of xmldata *************************";
184 "**** build isac kernel + run tests complete *************";
188 (****************************************************************************
190 -----------------------------------------------------------------------------
191 cd ~/isabelle-smlnj/heaps/smlnj-110_x86-linux/
192 sml @SMLload=02-HOL-Real-isac
196 *****************************************************************************
197 WN.notebook: create HTML representation for theory files für Isac
198 -----------------------------------------------------------------------------
200 cd /home/neuper/proto2/isac/src/
202 mv Isac/ROOT.ML Isac/ROOT.ML-save
203 cp Isac/RCODE-root.sml Isac/ROOT.ML
204 (*!!!cd"sml";!!! in ROOT.ML-save causes SysErr ("chdir failed", SOME ENOENT)*)
206 /usr/local/Isabelle2002/bin/isatool usedir -i true HOL-Real /home/neuper/proto2/isac/src/Isac/
207 (*^^^ does not create a new heap and writes only NEW files ...
208 ... to isab-installation vvv*)
209 cd /usr/local/Isabelle2002/browser_info/HOL/HOL-Real/
210 cp -r Isac/ /home/neuper/proto2/www/kbase/thy/browser_info/HOL/HOL-Real/
212 cd /home/neuper/proto2/isac/src/
214 mv sml/ROOT.ML-save sml/ROOT.ML
217 *****************************************************************************
218 save and restore contents in *.xml-files; @ stands for thy | pbl | met
219 -----------------------------------------------------------------------------
220 @> grep EXPLANATIONS *.xml > saveecex/EXPLANATIONS.tex
221 @> emacs saveexec/EXPLANATIONS.tex &
222 ## there search with "<EXPLANATIONS> </EXPLANATIONS>" for missing lines ...
224 ## ... and check with ls -l file.xml
227 -----------------------------------------------------------------------------
228 export of problems and methods from sml to xml ... see below ***
229 restore contents in *.xml-files:
230 -----------------------------------------------------------------------------
234 *****************************************************************************
235 export of problems and methods from sml to xml
236 -----------------------------------------------------------------------------
237 > val path = "/home/neuper/proto2/isac/xmldata/";
239 > pbl_hierarchy2file (path ^ "pbl/");
240 > pbls2file (path ^ "pbl/");
242 > met_hierarchy2file (path ^ "met/");
243 > mets2file (path ^ "met/");
245 > thy_hierarchy2file (path ^ "thy/");
246 > thes2file (path ^ "thy/");
248 *****************************************************************************
249 WN.notebook: create a new heap (which is used by java in eclipse)
250 (PolyML overwrites HOL-Real-Isac !)
251 -----------------------------------------------------------------------------
253 cd /usr/local/Isabelle2002/heaps/polyml-4.1.3_x86-linux
255 cp HOL-Real HOL-Real-Isac
256 poly /usr/local/Isabelle2002/heaps/polyml-4.1.3_x86-linux/HOL-Real-Isac
257 cd"/home/neuper/proto2/isac/src/sml"; use"RCODE-root.sml";
261 *****************************************************************************;
262 IST has another linux + polyml: create another new heap
263 -----------------------------------------------------------------------------
264 notebook:sml> scp -r ../sml wneuper@pear.ist.intra:del_graz/
267 cd /usr/local/Isabelle2002/heaps/polyml-4.1.3_x86-linux/
270 cp HOL-Real HOL-Real-Isac
271 chmod u+w HOL-Real-Isac
273 /usr/local/Isabelle2002/bin/isabelle HOL-Real-Isac
276 cd /usr/local/Isabelle2002/heaps/polyml-4.1.3_x86-linux/
277 chmod u-w HOL-Real-Isac
280 -----------------------------------------------------------------------------
281 test ist> /usr/local/Isabelle2002/bin/isabelle HOL-Real-Isac
282 *****************************************************************************);