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