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