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