File: open_TAC.doc

package info (click to toggle)
hol88 2.02.19940316-8
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 63,120 kB
  • ctags: 19,367
  • sloc: ml: 199,939; ansic: 9,300; sh: 7,118; makefile: 6,074; lisp: 2,747; yacc: 894; sed: 201; cpp: 87; awk: 5
file content (44 lines) | stat: -rw-r--r-- 1,211 bytes parent folder | download | duplicates (11)
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
34
35
36
37
38
39
40
41
42
43
44
\DOC open_TAC

\TYPE {open_TAC : (path -> thm list -> (window -> window) -> tactic)}

\SYNOPSIS
Do some window inference on the current goal of the subgoals package.

\LIBRARY window

\DESCRIBE
{open_TAC path thms fn} is a tactic will allows the window inference system
to be called from within the subgoals package.
A subwindow is opened on that subterm of the goal, {goal}, selected by {path}.
The window will have the assumptions of the goal as it's assumptions, as
well as any assumptions which follow from it's context.
The window will have {thms} as it's set of relevant theorems.
The relation preserved by the subwindow is chosen so that transforming the
subwindow, with {fn}, transforms {goal} to {goal'}, generating the theorem
{(H |- goal' ==> goal')}.
The subwindow is then closed and the goal is transformed from {goal} to
{goal'}.

\FAILURE
{open_TAC path thms fn} will fail if the goal stack is empty or if
{path} denotes a position which is not present in the current goal.

\EXAMPLE
{
   #set_goal ([], "A \/ (B \/ F)");;
   "A \/ B \/ F"
   
   () : void
   
   #e (open_TAC [RAND] [] (rewrite_win []));;
   OK..
   "A \/ B"
   
   () : void
}

\SEEALSO
BEGIN_STACK_TAC, END_STACK_TAC

\ENDDOC