File: LIST_CONV.doc

package info (click to toggle)
hol-light 20170109-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 36,568 kB
  • ctags: 8,549
  • sloc: ml: 540,018; cpp: 439; lisp: 286; java: 279; makefile: 262; sh: 229; yacc: 108; perl: 78; ansic: 57; sed: 39
file content (28 lines) | stat: -rw-r--r-- 648 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
\DOC LIST_CONV

\TYPE {LIST_CONV : conv -> conv}

\SYNOPSIS
Apply a conversion to each element of a list.

\DESCRIBE
If {cnv `ti`} returns {|- ti = ti'} for {i} ranging from {1} to {n}, then 
{LIST_CONV cnv `[t1; ...; tn]`} returns {|- [t1; ...; tn] = [t1'; ...; tn']}.

\FAILURE
Fails if the conversion fails on any list element.

\EXAMPLE
{
  # LIST_CONV num_CONV `[1;2;3;4;5]`;;
  val it : thm = |- [1; 2; 3; 4; 5] = [SUC 0; SUC 1; SUC 2; SUC 3; SUC 4]
}

\USES
Applying a conversion more delicately than simply by {DEPTH_CONV} etc.

\SEEALSO
DEPTH_BINOP_CONV, DEPTH_CONV, ONCE_DEPTH_CONV, REDEPTH_CONV, TOP_DEPTH_CONV,
TOP_SWEEP_CONV.

\ENDDOC