File: delete_thm.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 (52 lines) | stat: -rw-r--r-- 1,182 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
\DOC delete_thm

\TYPE {delete_thm : (string -> string -> thm)}

\SYNOPSIS
Deletes a theorem from a theory.

\DESCRIBE
If {thy} is an ancestor theory, and {th} the name of a theorem of that theory,
then the call
{
   delete_thm `thy` `th`
}
\noindent will delete the theorem {th} from the theory {thy}. As usual, the
special string {`-`} is allowed as a theory name, standing for the current
theory. The call will return the theorem deleted.

\FAILURE
Fails if {thy} is not an ancestor theory, or if {th} is not one of its
theorems, or for various system-dependent reasons connected with writing to the
theory file.

\EXAMPLE
{
#new_theory `geek`;;
() : void

#theorems `-`;;
[] : (string # thm) list

#save_thm(`truth`,TRUTH);;
|- T

#theorems `-`;;
[(`truth`, |- T)] : (string # thm) list

#delete_thm `-` `truth`;;
|- T

#theorems `-`;;
[] : (string # thm) list
}
\COMMENTS
The particular theorems which are stored in a theory have no logical
significance, so this operation is quite safe. By contrast, being able to
delete a definition from a theory would compromise the consistency of the
logic, so it is not allowed.

\SEEALSO
prove_thm, save_thm, theorem, theorems.

\ENDDOC