/usr/share/hol88-2.02.19940316/contrib/auxiliary/auxiliary.ml is in hol88-contrib-source 2.02.19940316-35.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | % ===================================================================== %
% FILE : auxiliary.ml %
% DESCRIPTION : loads the library "auxiliary" into hol. %
% %
% AUTHOR : T. Kalker %
% DATE : 28 August 1989 %
% REVISED : 90.12.01 (TFM) %
% ===================================================================== %
% --------------------------------------------------------------------- %
% Put the pathname to the library auxiliary onto the search path. %
% --------------------------------------------------------------------- %
let path = library_pathname() ^ `/auxiliary/` in
print_string `Updating search path`; print_newline();
set_search_path (union (search_path()) [path]);;
% --------------------------------------------------------------------- %
% Load (or attempt to load) the theory auxiliary %
% --------------------------------------------------------------------- %
if draft_mode()
then (print_string `Declaring theory auxiliary a new parent`;
print_newline();
new_parent `auxiliary`)
else (load_theory `auxiliary` ?
(print_string `Defining ML function load_auxiliary`;
print_newline() ;
loadf `load_auxiliary`));;
% --------------------------------------------------------------------- %
% Load compiled code if possible %
% --------------------------------------------------------------------- %
if (draft_mode() or (current_theory() = `auxiliary`)) then
let path st = library_pathname() ^ `/auxiliary/` ^ st in
load(path `functions`, get_flag_value `print_lib`);
load(path `tactics`, get_flag_value `print_lib`);
load(path `rules`, get_flag_value `print_lib`);
load(path `conversions`, get_flag_value `print_lib`);;
% --------------------------------------------------------------------- %
% Set up autoloading. %
% --------------------------------------------------------------------- %
if (draft_mode() or (current_theory() = `auxiliary`)) then
(let defs = map fst (definitions `auxiliary`) in
map (\name. autoload_theory(`definition`,`auxiliary`,name)) defs;
let thms = map fst (theorems `auxiliary`) in
map (\name. autoload_theory(`theorem`,`auxiliary`,name)) thms; ());;
% --------------------------------------------------------------------- %
% Make a couple of abbreviations. (why? [TFM]) %
% --------------------------------------------------------------------- %
let goal = g
and apply = expandf;;
|