Get the len field from a backref.
This is an ordinary field accessor created by defprod.
Function:
(defun backref->len$inline (x) (declare (xargs :guard (backref-p x))) (declare (xargs :guard t)) (let ((__function__ 'backref->len)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (nfix (std::prod-cdr x))) :exec (std::prod-cdr x))))
Theorem:
(defthm natp-of-backref->len (b* ((len (backref->len$inline x))) (natp len)) :rule-classes :type-prescription)
Theorem:
(defthm backref->len$inline-of-backref-fix-x (equal (backref->len$inline (backref-fix x)) (backref->len$inline x)))
Theorem:
(defthm backref->len$inline-backref-equiv-congruence-on-x (implies (backref-equiv x x-equiv) (equal (backref->len$inline x) (backref->len$inline x-equiv))) :rule-classes :congruence)