File: EXPAND_TAC.doc

package info (click to toggle)
hol-light 20230128-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 45,636 kB
  • sloc: ml: 688,681; cpp: 439; makefile: 302; lisp: 286; java: 279; sh: 251; yacc: 108; perl: 78; ansic: 57; sed: 39; python: 13
file content (38 lines) | stat: -rw-r--r-- 781 bytes parent folder | download | duplicates (3)
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
\DOC EXPAND_TAC

\TYPE {EXPAND_TAC : string -> tactic}

\SYNOPSIS
Expand an abbreviation in the hypotheses.

\DESCRIBE
The tactic {EXPAND_TAC "x"}, applied to a goal, looks for a hypothesis of the
form {`t = x`} where {x} is a variable with the given name. It then replaces
{x} by {t} throughout the conclusion of the goal.

\FAILURE
Fails if there is no suitable assumption in the goal.

\EXAMPLE
Consider the final goal in the example given for {ABBREV_TAC}:
{
  val it : goalstack = 1 subgoal (1 total)

   0 [`12345 + 12345 = n`]

  `n + f n = f n`
}
\noindent If we expand it, we get:
{
  # e(EXPAND_TAC "n");;
  val it : goalstack = 1 subgoal (1 total)

   0 [`12345 + 12345 = n`]

  `(12345 + 12345) + f (12345 + 12345) = f (12345 + 12345)`
}

\SEEALSO
ABBREV_TAC.

\ENDDOC