Recognizer for load-funct structures.
(load-funct-p x) → *
Function:
(defun load-funct-p (x) (declare (xargs :guard t)) (let ((__function__ 'load-funct-p)) (declare (ignorable __function__)) (and (consp x) (cond ((or (atom x) (eq (car x) :lb)) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :lbu) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :lh) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :lhu) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :lw) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) ((eq (car x) :lwu) (and (true-listp (cdr x)) (eql (len (cdr x)) 0) (b* nil t))) (t (and (eq (car x) :ld) (and (true-listp (cdr x)) (eql (len (cdr x)) 0)) (b* nil t)))))))
Theorem:
(defthm consp-when-load-funct-p (implies (load-funct-p x) (consp x)) :rule-classes :compound-recognizer)