Get the command field from a command-error-wrong-command.
(command-error-wrong-command->command x) → command
This is an ordinary field accessor created by fty::defprod.
Function:
(defun command-error-wrong-command->command$inline (x) (declare (xargs :guard (command-error-p x))) (declare (xargs :guard (equal (command-error-kind x) :wrong-command))) (let ((__function__ 'command-error-wrong-command->command)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (command-error-kind x) :wrong-command) x))) (acl2::str-fix (std::da-nth 0 (cdr x)))) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm stringp-of-command-error-wrong-command->command (b* ((command (command-error-wrong-command->command$inline x))) (stringp command)) :rule-classes :rewrite)
Theorem:
(defthm command-error-wrong-command->command$inline-of-command-error-fix-x (equal (command-error-wrong-command->command$inline (command-error-fix x)) (command-error-wrong-command->command$inline x)))
Theorem:
(defthm command-error-wrong-command->command$inline-command-error-equiv-congruence-on-x (implies (command-error-equiv x x-equiv) (equal (command-error-wrong-command->command$inline x) (command-error-wrong-command->command$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm command-error-wrong-command->command-when-wrong-kind (implies (not (equal (command-error-kind x) :wrong-command)) (equal (command-error-wrong-command->command x) (acl2::str-fix nil))))