Recognizer for ternary-op structures.
(ternary-opp x) → *
Function:
(defun ternary-opp (x) (declare (xargs :guard t)) (let ((__function__ 'ternary-opp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :ternary) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t))))
Theorem:
(defthm consp-when-ternary-opp (implies (ternary-opp x) (consp x)) :rule-classes :compound-recognizer)