File: types.doc

package info (click to toggle)
hol-light 20230128-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 45,636 kB
  • sloc: ml: 688,681; cpp: 439; makefile: 302; lisp: 286; java: 279; sh: 251; yacc: 108; perl: 78; ansic: 57; sed: 39; python: 13
file content (29 lines) | stat: -rw-r--r-- 713 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
\DOC types

\TYPE {types : unit -> (string * int) list}

\SYNOPSIS
Lists all the types presently declared.

\DESCRIBE
The function {types} should be applied to {()} and returns a list of all the
type constructors declared, in the form of arity-name pairs.

\FAILURE
Never fails.

\EXAMPLE
In the initial state we have:
{
  # types();;
  val it : (string * int) list =
    [("finite_sum", 2); ("cart", 2); ("finite_image", 1); ("int", 0);
     ("real", 0); ("hreal", 0); ("nadd", 0); ("3", 0); ("2", 0); ("list", 1);
     ("option", 1); ("sum", 2); ("recspace", 1); ("num", 0); ("ind", 0);
     ("prod", 2); ("1", 0); ("bool", 0); ("fun", 2)]
}

\SEEALSO
axioms, constants, new_type, new_type_definition.

\ENDDOC