(macro) display the type-alist from the current context
Examples: (type-alist nil t nil) ; display type-alist based on governors (default) type-alist ; same as (type-alist nil t) -- governors only (type-alist t t) ; display type-alist based on conclusion and governors (type-alist t t t) ; as above, but also display forward-chaining report type-alist ; same as (type-alist nil t) -- governors only (type-alist nil) ; same as (type-alist nil t) -- governors only (type-alist t) ; same as (type-alist t nil) -- conclusion only (type-alist nil nil) ; based on neither conclusion nor governors (type-alist nil t nil nil) ; same as type-alist (default) -- governors only (type-alist nil t nil :raw) ; governors only, raw alist format (type-alist nil t nil t) ; governors only, simple alist format General Form: (type-alist &optional concl-flg govs-flg fc-report-flg alistp)
where if
Display the current assumptions as a type-alist. Note that this
display includes the result of forward chaining. When
There are two basic reasons contemplated for using this command.
1. The theorem prover has failed (either outside the interactive
proof-builder or using a proof-builder command such as
a. You really are interested in the context for the current term. Include hypotheses and governors (i.e., accounting for tests of surrounding
if -expressions that must be true or false) but not the current conclusion (which the theorem prover's heuristics would generally ignore for contextual information). Command:
(type-alist nil t) ; equivalently,type-alist or(type-alist nil) b. You are not thinking in particular about the current term; you just want to get an idea of the context that the prover would build at the top-level, for forward-chaining. Incorporate the conclusion but not the governors. Command:
(type-alist t nil) ; equivalently,(type-alist t)
2. You intend to use one of the interactive proof-builder-commands
that does simplification, such as
See type-set (also see type-prescription) for information
about ACL2's type system, which can assist in understanding the output of the