(vl-trunc/extend-type-err lhs-size rhs-selfsize) → err
Function:
(defun vl-trunc/extend-type-err (lhs-size rhs-selfsize) (declare (xargs :guard (and (natp lhs-size) (natp rhs-selfsize)))) (let ((__function__ 'vl-trunc/extend-type-err)) (declare (ignorable __function__)) (and (not (equal (lnfix lhs-size) (lnfix rhs-selfsize))) (make-vl-type-error-trunc/extend :lhs-size lhs-size :rhs-selfsize rhs-selfsize))))
Theorem:
(defthm vl-maybe-type-error-p-of-vl-trunc/extend-type-err (b* ((err (vl-trunc/extend-type-err lhs-size rhs-selfsize))) (vl-maybe-type-error-p err)) :rule-classes :rewrite)
Theorem:
(defthm vl-trunc/extend-type-err-of-nfix-lhs-size (equal (vl-trunc/extend-type-err (nfix lhs-size) rhs-selfsize) (vl-trunc/extend-type-err lhs-size rhs-selfsize)))
Theorem:
(defthm vl-trunc/extend-type-err-nat-equiv-congruence-on-lhs-size (implies (acl2::nat-equiv lhs-size lhs-size-equiv) (equal (vl-trunc/extend-type-err lhs-size rhs-selfsize) (vl-trunc/extend-type-err lhs-size-equiv rhs-selfsize))) :rule-classes :congruence)
Theorem:
(defthm vl-trunc/extend-type-err-of-nfix-rhs-selfsize (equal (vl-trunc/extend-type-err lhs-size (nfix rhs-selfsize)) (vl-trunc/extend-type-err lhs-size rhs-selfsize)))
Theorem:
(defthm vl-trunc/extend-type-err-nat-equiv-congruence-on-rhs-selfsize (implies (acl2::nat-equiv rhs-selfsize rhs-selfsize-equiv) (equal (vl-trunc/extend-type-err lhs-size rhs-selfsize) (vl-trunc/extend-type-err lhs-size rhs-selfsize-equiv))) :rule-classes :congruence)