File: new_constant.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 (30 lines) | stat: -rw-r--r-- 593 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
30
\DOC new_constant

\TYPE {new_constant : string * hol_type -> unit}

\SYNOPSIS
Declares a new constant.

\DESCRIBE
A call {new_constant("c",`:ty`)} makes {c} a constant with most general type 
{ty}.

\FAILURE
Fails if there is already a constant of that name in the current theory.

\EXAMPLE
{

  #new_constant("graham's_number",`:num`);;
  val it : unit = ()
}

\USES
Can be useful for declaring some arbitrary parameter, but more usually a 
prelude to some new axioms about the constant introduced. Take care when using 
{new_axiom}!

\SEEALSO
constants, new_axiom, new_definition.

\ENDDOC