File: open_context.doc

package info (click to toggle)
hol88 2.02.19940316-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 63,052 kB
  • ctags: 19,365
  • sloc: ml: 199,939; ansic: 9,300; sh: 7,118; makefile: 6,076; lisp: 2,747; yacc: 894; sed: 201; cpp: 87; awk: 5
file content (33 lines) | stat: -rw-r--r-- 1,106 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
\DOC open_context

\TYPE {open_context : (term -> path -> (window -> window) -> window -> window)}

\SYNOPSIS
Derive a new lemma by applying a transformation to a subwindow on
one of the assumptions, lemmas or conjectures.

\LIBRARY window

\DESCRIBE
{open_context tm path fn win} opens a subwindow on the
assumption, lemma or conjecture {tm} at the position described by {path}.
The window transforming function {fn} is then applied to the resulting
subwindow.
The relationship preserved by the subwindow will be chosen so that
transforming the subwindow will transform {tm} to {tm'} generating the
theorem {.|- tm' <== tm}.
The subwindow is then closed thereby making {tm'} an additional lemma of
the parent window.
The parent window with its new lemma is returned as the result.

\FAILURE
{open_context tm path fn win} will fail if {tm} is not an assumption, lemma
or conjecture of {win}.
{open_context tm path fn win} will fail if {path} describes a position which
is not present in {tm}.

\SEEALSO
open_win, OPEN_WIN, CLOSE_WIN, OPEN_CONTEXT, establish, ESTABLISH,
gen_open_win, GEN_OPEN_WIN

\ENDDOC