File: load_pred_sets.ml

package info (click to toggle)
hol88 2.02.19940316-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 63,052 kB
  • ctags: 19,365
  • sloc: ml: 199,939; ansic: 9,300; sh: 7,118; makefile: 6,076; lisp: 2,747; yacc: 894; sed: 201; cpp: 87; awk: 5
file content (24 lines) | stat: -rw-r--r-- 1,135 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
% ===================================================================== %
% FILE		: load_pred_sets.ml					%
% DESCRIPTION   : creates a function that loads the contents of the	%
%		  library "pred_sets" into hol.				%
%									%
% AUTHOR	: T. Melham						%
% DATE		: 91.01.20						%
% ===================================================================== %

% --------------------------------------------------------------------- %
% define the function load_pred_sets.					%
% --------------------------------------------------------------------- %

let load_pred_sets (v:void) =
    if (mem `pred_sets` (ancestry())) then
       (print_string `Loading contents of pred_sets...`; print_newline();
        autoload_theory(`definition`,`fixpoints`,`BOT`);
        let defs = map fst (definitions `pred_sets`) in
            map (\name. autoload_theory(`definition`,`pred_sets`,name)) defs;
        let thms = map fst (theorems `pred_sets`) in
            map (\name. autoload_theory(`theorem`,`pred_sets`,name)) thms; 
        delete_cache `pred_sets`; ()) else
    failwith `theory pred_sets not an ancestor of the current theory`;;