File: PSPEC.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 (44 lines) | stat: -rw-r--r-- 1,010 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 PSPEC

\TYPE {PSPEC : (term -> thm -> thm)}

\SYNOPSIS
Specializes the conclusion of a theorem.

\KEYWORDS
rule.

\LIBRARY pair

\DESCRIBE
When applied to a term {q} and a theorem {A |- !p. t}, then {PSPEC} returns
the theorem {A |- t[q/p]}.
If necessary, variables will be renamed prior to the specialization to ensure
that {q} is free for {p} in {t}, that is,
no variables free in {q} become bound after substitution.
{
     A |- !p. t
   --------------  PSPEC "q"
    A |- t[q/p]
}
\FAILURE
Fails if the theorem's conclusion is not a paired universal quantification,
or if {p} and {q} have different types.

\EXAMPLE
{PSPEC} specialised paired quantifications.
{
   #PSPEC "(1,2)" (ASSUME "!(x,y). (x + y) = (y + x)");;
   . |- 1 + 2 = 2 + 1
}
{PSPEC} treats paired structures of variables as variables and 
preserves structure accordingly.
{
   #PSPEC "x:*#*" (ASSUME "!(x:*,y:*). (x,y) = (x,y)");;
   . |- x = x
}

\SEEALSO
SPEC, IPSPEC, PSPECL, PSPEC_ALL, PSPEC_VAR, PGEN, PGENL, PGEN_ALL.

\ENDDOC