File: 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 (61 lines) | stat: -rw-r--r-- 2,571 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
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
% ===================================================================== %
% FILE		: pred_sets.ml						%
% DESCRIPTION   : loads the library pred_sets into hol.			%
%									%
% AUTHOR        : T. Kalker						%
% DATE		: 18 September 1989					%
% REVISED       : 90.12.02 by T Melham					%
% ===================================================================== %

% --------------------------------------------------------------------- %
% First, load the fixpoints library					%
% --------------------------------------------------------------------- %

load_library `fixpoints`;;

% --------------------------------------------------------------------- %
% Put the pathname to the library pred_sets onto the search path	%
% --------------------------------------------------------------------- %

let path = library_pathname() ^ `/pred_sets/` in
    print_string `Updating search path`; print_newline();
    set_search_path (union (search_path()) [path]);;

% --------------------------------------------------------------------- %
% Load (or attempt to load) the theory pred_sets			%
% --------------------------------------------------------------------- %

if draft_mode() 
   then (print_string `Declaring theory pred_sets a new parent`;
         print_newline();
         new_parent `pred_sets`)
   else (load_theory `pred_sets` ?
         (print_string `Defining ML function load_pred_sets`;
          print_newline() ;
          loadf `load_pred_sets`));;

% --------------------------------------------------------------------- %
% Special symbols.							%
% --------------------------------------------------------------------- %

new_special_symbol `-->>`;;
new_special_symbol `>-->`;;   
new_special_symbol `<-->`;;

% --------------------------------------------------------------------- %
% Need to autoload a definition from fixpoints.				%
% --------------------------------------------------------------------- %

if (mem `fixpoints` (ancestry())) then
   (autoload_theory(`definition`,`fixpoints`,`BOT`) ; ());;

% --------------------------------------------------------------------- %
% Set up autoloading of definitions and theorems			%
% --------------------------------------------------------------------- %

if (draft_mode() or (current_theory() = `pred_sets`)) then
   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`; ();;