File: string_of_term.doc

package info (click to toggle)
hol-light 20131026-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 26,264 kB
  • ctags: 4,620
  • sloc: ml: 400,325; cpp: 438; java: 279; lisp: 261; makefile: 256; sh: 190; yacc: 108; perl: 78; ansic: 57; sed: 39
file content (29 lines) | stat: -rw-r--r-- 606 bytes parent folder | download | duplicates (4)
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
\DOC string_of_term

\TYPE {string_of_term : term -> string}

\SYNOPSIS
Converts a HOL term to a string representation.

\DESCRIBE
The call {string_of_term tm} produces a textual representation of the term {tm}
as a string, similar to what is printed automatically at the toplevel, though 
without the surrounding quotes.

\FAILURE
Never fails.

\EXAMPLE
{
  # string_of_term `x + 1 < 2 <=> x = 0`;;
  val it : string = "x + 1 < 2 <=> x = 0"
}

\COMMENTS
The string may contain newlines for large terms, broken in a similar fashion to 
automatic printing.

\SEEALSO
string_of_thm, string_of_type.

\ENDDOC