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