File: load_theory.doc

package info (click to toggle)
hol88 2.02.19940316dfsg-5
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 65,816 kB
  • sloc: ml: 199,939; ansic: 9,666; sh: 6,913; makefile: 6,032; lisp: 2,747; yacc: 894; sed: 201; cpp: 87; awk: 5
file content (28 lines) | stat: -rw-r--r-- 1,110 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
\DOC load_theory

\TYPE {load_theory : (string -> void)}

\SYNOPSIS
Loads an existing theory into the system.

\DESCRIBE
A call {load_theory `thy`} loads the existing theory {thy} into the system
and makes it the current theory. The message `{Theory thy loaded}' is printed.
The theory is entered in proof mode. Whilst in this mode only theorems may be
added to the theory segment.

\FAILURE
A call to {load_theory `thy`} will fail if theory {thy} does not appear on
the current search path. It will fail if theory {thy} is not a descendant of
the current theory. It will fail if an ancestor of theory {thy} has been
extended with either new types or constants which clash with names in theory
{thy}. It will also fail if any of the theory files of the theory {thy}
have been damaged. On failure, the system recovers cleanly, unloading any
theory segments it had loaded before the failure was detected. It will diverge
if the theory hierarchy within theory {thy} contains loops, so that a theory
segment is its own ancestor.

\SEEALSO
extend_theory, new_parent, new_theory, print_theory, search_path.

\ENDDOC