(sv::aig-logand-sss a b c) → and
Function:
(defun sv::aig-logand-sss (a b c) (declare (xargs :guard (and (true-listp a) (true-listp b) (true-listp c)))) (let ((__function__ 'sv::aig-logand-sss)) (declare (ignorable __function__)) (b* (((mv af ar aend) (first/rest/end a)) ((mv bf br bend) (first/rest/end b)) ((mv cf cr cend) (first/rest/end c)) (lsb (acl2::aig-and af bf cf)) ((when (and aend bend cend)) (sv::aig-sterm lsb)) (rest (sv::aig-logand-sss ar br cr))) (sv::aig-scons lsb rest))))
Theorem:
(defthm sv::true-listp-of-aig-logand-sss (b* ((and (sv::aig-logand-sss a b c))) (true-listp and)) :rule-classes :type-prescription)
Theorem:
(defthm sv::aig-logand-sss-correct (b* ((and (sv::aig-logand-sss a b c))) (and (equal (sv::aig-list->s and env) (logand (sv::aig-list->s a env) (logand (sv::aig-list->s b env) (sv::aig-list->s c env)))))))