File: BETA_TAC.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 (32 lines) | stat: -rw-r--r-- 836 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
29
30
31
32
\DOC BETA_TAC

\TYPE {BETA_TAC : tactic}

\SYNOPSIS
Beta-reduces all the beta-redexes in the conclusion of a goal.

\KEYWORDS
tactic.

\DESCRIBE
When applied to a goal {A ?- t}, the tactic {BETA_TAC} produces a new goal
which results from beta-reducing all beta-redexes, at any depth, in {t}.
Variables are renamed where necessary to avoid free variable capture.
{
    A ?- ...((\x. s1) s2)...
   ==========================  BETA_TAC
     A ?- ...(s1[s2/x])...
}

\FAILURE
Never fails, but will have no effect if there are no beta-redexes.

\COMMENTS
Beta-reduction, and indeed, generalized beta reduction ({GEN_BETA_CONV}) are 
already among the basic rewrites, so happen anyway simply on {REWRITE_TAC[]}. 
But occasionally it is convenient to be able to invoke them separately.

\SEEALSO
BETA_CONV, BETA_RULE, GEN_BETA_CONV.

\ENDDOC