Event expansion of defpred.
(defpred-fn args ctx state) → (mv erp event state)
Function:
(defun defpred-fn (args ctx state) (declare (xargs :stobjs (state))) (declare (xargs :guard (and (true-listp args) (ctxp ctx)))) (let ((__function__ 'defpred-fn)) (declare (ignorable __function__)) (b* (((mv erp event) (defpred-process-inputs-and-gen-everything args (w state))) ((when erp) (er-soft+ ctx t '(_) "~@0" erp))) (value event))))
Theorem:
(defthm pseudo-event-formp-of-defpred-fn.event (b* (((mv acl2::?erp acl2::?event acl2::?state) (defpred-fn args ctx state))) (pseudo-event-formp event)) :rule-classes :rewrite)