Recognizer for commit-op structures.
(commit-opp x) → *
Function:
(defun commit-opp (x) (declare (xargs :guard t)) (let ((__function__ 'commit-opp)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :commit.bhp256)) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :commit.bhp512) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :commit.bhp768) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :commit.bhp1024) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :commit.ped64) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) (t (and (eq (car x) :commit.ped128) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-commit-opp (implies (commit-opp x) (consp x)) :rule-classes :compound-recognizer)