File: loads.doc

package info (click to toggle)
hol-light 20170109-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 36,568 kB
  • ctags: 8,549
  • sloc: ml: 540,018; cpp: 439; lisp: 286; java: 279; makefile: 262; sh: 229; yacc: 108; perl: 78; ansic: 57; sed: 39
file content (34 lines) | stat: -rw-r--r-- 761 bytes parent folder | download | duplicates (6)
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
\DOC loads

\TYPE {loads : string -> unit}

\SYNOPSIS
Load a file from the HOL Light system tree.

\DESCRIBE
Finds the named file, either by its absolute pathname or by starting in the
base of the HOL installation stored by {hol_dir}, and loads it.

\FAILURE
Fails if the file is not found or generates an exception.

\EXAMPLE
To load a library with more number theory:
{
  # loads "Library/prime.ml";;
  - : unit = ()
  val ( MULT_MONO_EQ ) : thm = |- !m i n. SUC n * m = SUC n * i <=> m = i
  ...
  ...
  val ( GCD_CONV ) : term -> thm = <fun>
  val it : unit = ()
}

\USES
Loading HOL Light standard libraries without accidentally picking up other
files of the same name in the current directory or on {load_path}

\SEEALSO
load_path, loadt, needs.

\ENDDOC