Get the w field from a lhrange.
This is an ordinary field accessor created by defprod.
Function:
(defun lhrange->w$inline (x) (declare (xargs :guard (lhrange-p x))) (declare (xargs :guard t)) (let ((__function__ 'lhrange->w)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (pos-fix (if (and (consp x) (integerp (car x))) (car x) 1))) :exec (if (and (consp x) (integerp (car x))) (car x) 1))))
Theorem:
(defthm posp-of-lhrange->w (b* ((w (lhrange->w$inline x))) (posp w)) :rule-classes (:rewrite :type-prescription))
Theorem:
(defthm lhrange->w$inline-of-lhrange-fix-x (equal (lhrange->w$inline (lhrange-fix x)) (lhrange->w$inline x)))
Theorem:
(defthm lhrange->w$inline-lhrange-equiv-congruence-on-x (implies (lhrange-equiv x x-equiv) (equal (lhrange->w$inline x) (lhrange->w$inline x-equiv))) :rule-classes :congruence)