Major Section: HISTORY
Examples: :pc 3 ; print the third command executed :pc :max ; print the most recent command :pc :x ; print the most recent command :pc fn ; print the command that introduced fnSee command-descriptor.
Pc takes one argument, a command descriptor, and prints the command
identified by that descriptor. See command-descriptor. For
ACL2 !>:pc foo LVd 52 (DEFUN FOO (X) X)
Pcalways prints a space first, followed by three (possibly blank) characters (``LVd'' above) explained below (four, in the experimental HONS version; see hons-and-memoization). Then
pcprints the command number, a number uniquely identifying the command's position in the sequence of commands since the beginning of the user's session. Finally, the command itself is printed.
pc always prints a space first, some history commands, for
pe, use the first column of output to delimit a
region of commands or to point to a particular event within a
:pcs 52 54 will print something like
/LVd 52 (DEFUN FOO (X) X) LV 53 (DEFUN BAR (X) (CONS X X)) \ 54 (DEFTHM FOO-BAR (EQUAL (CAR (BAR X)) (FOO X))) : ... 127 (DEFUN LATEST (X) X)Here, the two slash characters in the first column are intended to suggest a bracket delimiting commands 52 through 54. The last command printed by
pcsis always the most recent command, i.e., the command at
:here, and is separated from the rest of the display by an elipsis if some commands are omitted.
pe command will print a particular event within a
command block and will indicate that event by printing a ``
the first column. The symbol is intended to be an arrow pointing at
the event in question.
true-listp-app might print:
1 (INCLUDE-BOOK "list-book") \ > (DEFTHM TRUE-LISTP-APP (EQUAL (TRUE-LISTP (APP A B)) (TRUE-LISTP B)))using the arrow to indicate the event itself. The slash printed to connect the command,
include-book, with the event,
defthm, is intended to suggest a tree branch indicating that the event is inferior to (and part of) the command.
The mysterious characters sometimes preceding a command have the following interpretations. The first two have to do with the function symbols introduced by the command and are blank if no symbols were introduced.
At any time we can classify our function symbols into disjoint sets, which we
will here name with characters. The ``
P'' functions are those in
program mode. The ``
L'' functions are those in
logic mode whose guards have not been verified. The
V'' functions are those in
logic mode whose guards have
been verified. You may also see the use of (lower-case) ``
indicate functions introduced by
encapsulate. Note that
verify-guards cause function symbols to be
reclassified. If a command introduces function symbols then the first
mysterious character indicates the class of the symbols at the time of
introduction and the second character indicates the current class of the
symbols (if the current class is different from the introductory class).
Thus, the display
PLd 52 (DEFUN FOO (X) X)tells us that command 52 introduced a
programfunction but that some command after 52 changed its mode to
logicand that the guards of
foohave not been verified. That is,
foo's termination has been verified even though it was not verified as part of the command that introduced
foo. Had a subsequent command verified the guards of
foo, the display would contain a
P d 52 (DEFUN FOO (X) X)indicates that
foowas introduced in
programmode and still is in that mode.
The third character indicates the enabled/disabled status of the
runes introduced by the command. If the status character is blank
then all the runes (if any) introduced are enabled. If the status
character is ``
D'' then some runes were introduced and they are
all disabled. If the status character is ``
d'' then at least
one, but not all, of the runes introduced is disabled. Thus, in the
L d 52 (DEFUN FOO (X) X)we see that some rune introduced by command 52 is disabled. As noted in the documentation for rune, a
defuncommand introduces many runes, e.g., the axiomatic definition rule,
(:definition fn), the executable counterpart rule,
(:executable-counterpart fn), and type-prescriptions,
(:type-prescription fn). The display above does not say which of the runes based on
foois disabled, but it does tell us one of them is; see disabledp for how to obtain the disabled runes for a given function symbol.
Finally, for the experimental HONS version only (see hons-and-memoization),
a fourth character is printed, indicating whether functions are memoized.
A symbol may be memoized if it is a function symbol that is not constrained
(i.e., introduced by
defchoose or in the signature of an
encapsulate event). If the command introduces no symbol that may be
memoized, then a space is printed. Otherwise, if every memoizable symbol is
memoized, an ``
M'' is printed. Otherwise, an ``
m'' is printed.