File: mk_comb.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 (28 lines) | stat: -rw-r--r-- 590 bytes parent folder | download | duplicates (2)
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
\DOC mk_comb

\TYPE {mk_comb : term * term -> term}

\SYNOPSIS
Constructs a combination.

\DESCRIBE
Given two terms {f} and {x}, the call {mk_comb(f,x)} returns the combination or 
application {f x}. It is necessary that {f} has a function type with domain
type the same as {x}'s type.

\FAILURE
Fails if the types of the terms are not compatible as specified above.

\EXAMPLE
{
  # mk_comb(`SUC`,`0`);;
  val it : term = `SUC 0`

  #  mk_comb(`SUC`,`T`);;
  Exception: Failure "mk_comb: types do not agree".
}

\SEEALSO
dest_comb, is_comb, list_mk_comb, list_mk_icomb, mk_icomb.
 
\ENDDOC