(driverlist-rest-after-strength x strength) → rest
Function:
(defun driverlist-rest-after-strength (x strength) (declare (xargs :guard (and (driverlist-p x) (natp strength)))) (declare (xargs :guard (drivestrength-ordered-p x))) (let ((__function__ 'driverlist-rest-after-strength)) (declare (ignorable __function__)) (b* (((when (atom x)) nil) ((driver x1) (car x)) (strength (lnfix strength)) ((when (< x1.strength strength)) (driverlist-fix x))) (driverlist-rest-after-strength (cdr x) strength))))
Theorem:
(defthm driverlist-p-of-driverlist-rest-after-strength (b* ((rest (driverlist-rest-after-strength x strength))) (driverlist-p rest)) :rule-classes :rewrite)
Theorem:
(defthm vars-of-driverlist-rest-after-strength (implies (not (member v (driverlist-vars x))) (not (member v (driverlist-vars (driverlist-rest-after-strength x strength))))))
Theorem:
(defthm len-of-driverlist-rest-after-strength (implies (consp x) (< (len (driverlist-rest-after-strength x (driver->strength (car x)))) (len x))) :rule-classes :linear)
Theorem:
(defthm drivestrength-ordered-p-of-driverlist-rest-after-strength (implies (drivestrength-ordered-p x) (drivestrength-ordered-p (driverlist-rest-after-strength x strength))))
Theorem:
(defthm driverlist-rest-after-strength-of-driverlist-fix-x (equal (driverlist-rest-after-strength (driverlist-fix x) strength) (driverlist-rest-after-strength x strength)))
Theorem:
(defthm driverlist-rest-after-strength-driverlist-equiv-congruence-on-x (implies (driverlist-equiv x x-equiv) (equal (driverlist-rest-after-strength x strength) (driverlist-rest-after-strength x-equiv strength))) :rule-classes :congruence)
Theorem:
(defthm driverlist-rest-after-strength-of-nfix-strength (equal (driverlist-rest-after-strength x (nfix strength)) (driverlist-rest-after-strength x strength)))
Theorem:
(defthm driverlist-rest-after-strength-nat-equiv-congruence-on-strength (implies (nat-equiv strength strength-equiv) (equal (driverlist-rest-after-strength x strength) (driverlist-rest-after-strength x strength-equiv))) :rule-classes :congruence)