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