File: RECALL_ACCEPT_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-- 856 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 RECALL_ACCEPT_TAC

\TYPE {RECALL_ACCEPT_TAC : ('a -> thm) -> 'a -> goal -> goalstate}

\SYNOPSIS
Delay evaluation of theorem-producing function till needed.

\DESCRIBE
Given a theorem-producing inference rule {f} and its argument {a}, the tactic 
{RECALL_ACCEPT_TAC f a} will evaluate {th = f a} and do {ACCEPT_TAC th}, but 
only when the tactic is applied to a goal.

\FAILURE
Never fails until subsequently applied to a goal, but then may fail if the
theorem-producing function does.

\EXAMPLE
You might for example do
{
  RECALL_ACCEPT_TAC (EQT_ELIM o NUM_REDUCE_CONV) `16 EXP 53 < 15 EXP 55`;;
}
\noindent and the call 
{
  (EQT_ELIM o NUM_REDUCE_CONV) `16 EXP 53 < 15 EXP 55`
}
\noindent will be delayed until the tactic is applied.

\USES
Delaying a time-consuming compound inference rule in a tactic script until it 
is actually used.

\ENDDOC