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