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