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