Get the msbs field from a sparseint$-concat.
(sparseint$-concat->msbs x) → msbs
This is an ordinary field accessor created by fty::defprod.
Function:
(defun sparseint$-concat->msbs$inline (x) (declare (xargs :guard (sparseint$-p x))) (declare (xargs :guard (equal (sparseint$-kind x) :concat))) (let ((__function__ 'sparseint$-concat->msbs)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (sparseint$-kind x) :concat) x))) (sparseint$-fix (cddr x))) :exec (cddr x))))
Theorem:
(defthm sparseint$-p-of-sparseint$-concat->msbs (b* ((msbs (sparseint$-concat->msbs$inline x))) (sparseint$-p msbs)) :rule-classes :rewrite)
Theorem:
(defthm sparseint$-concat->msbs$inline-of-sparseint$-fix-x (equal (sparseint$-concat->msbs$inline (sparseint$-fix x)) (sparseint$-concat->msbs$inline x)))
Theorem:
(defthm sparseint$-concat->msbs$inline-sparseint$-equiv-congruence-on-x (implies (sparseint$-equiv x x-equiv) (equal (sparseint$-concat->msbs$inline x) (sparseint$-concat->msbs$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm sparseint$-concat->msbs-when-wrong-kind (implies (not (equal (sparseint$-kind x) :concat)) (equal (sparseint$-concat->msbs x) (sparseint$-fix nil))))