File: genvar.doc

package info (click to toggle)
hol-light 20120602-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 23,452 kB
  • sloc: ml: 348,797; cpp: 438; java: 279; makefile: 252; sh: 183; yacc: 108; perl: 78; ansic: 57; sed: 39
file content (34 lines) | stat: -rw-r--r-- 861 bytes parent folder | download | duplicates (7)
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 genvar

\TYPE {genvar : hol_type -> term}

\SYNOPSIS
Returns a `fresh' variable with specified type.

\DESCRIBE
When given a type, {genvar} returns a variable of that type whose name has not
previously been produced by {genvar}.

\FAILURE
Never fails.

\EXAMPLE
The following indicates the typical stylized form of the names (this should
not be relied on, of course):
{
  # genvar `:bool`;;
  val it : term = `_56799`
}
There is no guard against users' own variables clashing, but if the user avoids
names in the same lexical style, that can be guaranteed.

\USES
The unique variables are useful in writing derived rules, for specializing
terms without having to worry about such things as free variable capture.
If the names are to be visible to a typical user, the function {variant} can
provide rather more meaningful names.

\SEEALSO
variant.

\ENDDOC