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