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