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