The function
The
Function:
(defun lebs2ip (s) (declare (xargs :guard (bit-listp s))) (let ((__function__ 'lebs2ip)) (declare (ignorable __function__)) (acl2::lebits=>nat s)))
Theorem:
(defthm natp-of-lebs2ip (b* ((x (lebs2ip s))) (natp x)) :rule-classes :type-prescription)
Theorem:
(defthm lebs2ip-upper-bound (b* ((?x (lebs2ip s))) (< x (expt 2 (len s)))) :rule-classes :linear)
Theorem:
(defthm lebs2ip-injectivity (implies (equal (len s1) (len s2)) (equal (equal (lebs2ip s1) (lebs2ip s2)) (equal (bit-list-fix s1) (bit-list-fix s2)))))