/usr/share/hol88-2.02.19940316/contrib/bags/bags.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 | % ===================================================================== %
% FILE : bags.ml %
% DESCRIPTION : loads the library "bags" into hol. %
% %
% DATE : 90.12.01 %
% UPDATED (sk) : 91.01.25 %
% ===================================================================== %
% --------------------------------------------------------------------- %
% Put the pathname to the library `bags` onto the search path. %
% --------------------------------------------------------------------- %
let path = library_pathname() ^ `/bags/` in
print_string `Updating search path`; print_newline();
set_search_path (union (search_path()) [path]);;
% --------------------------------------------------------------------- %
% Load (or attempt to load) the theory `bags` %
% --------------------------------------------------------------------- %
if draft_mode()
then (print_string `Declaring theory bags a new parent`;
print_newline();
new_parent `bags`)
else (load_theory `bags` ?
(print_string `Defining ML function load_bags`;
print_newline() ;
loadf `load_bags`));;
% --------------------------------------------------------------------- %
% Set up autoloading of definitions and theorems %
% --------------------------------------------------------------------- %
if (draft_mode() or (current_theory() = `bags`)) then
let defs = map fst (definitions `bags`) in
map (\name. autoload_theory(`definition`,`bags`,name)) defs;
let thms = map fst (theorems `bags`) in
map (\name. autoload_theory(`theorem`,`bags`,name)) thms;
let defs = map fst (definitions `more_arithmetic`) in
map (\name. autoload_theory(`definition`,`more_arithmetic`,name)) defs;
let thms = map fst (theorems `more_arithmetic`) in
map (\name. autoload_theory(`theorem`,`more_arithmetic`,name)) thms;
delete_cache `bags`; ();;
|