File: EVERY_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 (33 lines) | stat: -rw-r--r-- 934 bytes parent folder | download | duplicates (6)
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
31
32
33
\DOC EVERY_CONV

\TYPE {EVERY_CONV : conv list -> conv}

\SYNOPSIS
Applies in sequence all the conversions in a given list of conversions.

\KEYWORDS
conversional.

\DESCRIBE
{EVERY_CONV [c1;...;cn] `t`} returns the result of applying the conversions
{c1}, ..., {cn} in sequence to the term {`t`}. The conversions are applied in
the order in which they are given in the list. In particular, if {ci `ti`}
returns {|- ti=ti+1} for {i} from {1} to {n}, then
{EVERY_CONV [c1;...;cn] `t1`} returns {|- t1=t(n+1)}.  If the supplied list of
conversions is empty, then {EVERY_CONV} returns the identity conversion.  That
is, {EVERY_CONV [] `t`} returns {|- t=t}.

\FAILURE
{EVERY_CONV [c1;...;cn] `t`} fails if any one of the conversions {c1}, ...,
{cn} fails when applied in sequence as specified above.

\EXAMPLE
{
  # EVERY_CONV [BETA_CONV; NUM_ADD_CONV] `(\x. x + 2) 5`;;
  val it : thm = |- (\x. x + 2) 5 = 7
}

\SEEALSO
THENC.

\ENDDOC