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