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