File: BINOP_CONV.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 (28 lines) | stat: -rw-r--r-- 756 bytes parent folder | download | duplicates (3)
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 BINOP_CONV

\TYPE {BINOP_CONV : (term -> thm) -> term -> thm}

\SYNOPSIS
Applies a conversion to both arguments of a binary operator.

\DESCRIBE
If {c} is a conversion where {c `l`} returns {|- l = l'} and {c `r`} returns 
{|- r = r'}, then {BINOP_CONV `op l r`} returns {|- op l r = op l' r'}. The 
term {op} is arbitrary, but is often a constant such as addition or 
conjunction.

\FAILURE
Never fails when applied to the conversion. But may fail when applied to the 
term if one of the core conversions fails or returns an inappropriate theorem 
on the subterms.

\EXAMPLE
{
  # BINOP_CONV NUM_ADD_CONV `(1 + 1) * (2 + 2)`;;
  val it : thm = |- (1 + 1) * (2 + 2) = 2 * 4
}

\SEEALSO
ABS_CONV, COMB_CONV, COMB2_CONV, RAND_CONV, RATOR_CONV.

\ENDDOC