Recognizer for inverter structures.
(inverter-p x) → *
Function:
(defun inverter-p (x) (declare (xargs :guard t)) (let ((acl2::__function__ 'inverter-p)) (declare (ignorable acl2::__function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(input output))) :exec (fty::alist-with-carsp x '(input output))) (b* ((input (cdr (std::da-nth 0 x))) (output (cdr (std::da-nth 1 x)))) (and (sig-path-p input) (sig-path-p output))))))
Theorem:
(defthm consp-when-inverter-p (implies (inverter-p x) (consp x)) :rule-classes :compound-recognizer)