Convert from type
Function:
(defun sint-from-schar (x) (declare (xargs :guard (scharp x))) (let ((__function__ 'sint-from-schar)) (declare (ignorable __function__)) (sint-from-integer (integer-from-schar x))))
Theorem:
(defthm sintp-of-sint-from-schar (b* ((result (sint-from-schar x))) (sintp result)) :rule-classes :rewrite)
Theorem:
(defthm sint-from-schar-of-schar-fix-x (equal (sint-from-schar (schar-fix x)) (sint-from-schar x)))
Theorem:
(defthm sint-from-schar-schar-equiv-congruence-on-x (implies (schar-equiv x x-equiv) (equal (sint-from-schar x) (sint-from-schar x-equiv))) :rule-classes :congruence)