Generate the function variables
(schemalg-gen-?f1...?fp schema ?g ?g0 ?g1 ?h x-a1...am) → events
Function:
(defun schemalg-gen-?f1...?fp (schema ?g ?g0 ?g1 ?h x-a1...am) (declare (xargs :guard (and (keywordp schema) (symbolp ?g) (symbolp ?g0) (symbolp ?g1) (symbolp ?h) (pseudo-term-listp x-a1...am)))) (let ((__function__ 'schemalg-gen-?f1...?fp)) (declare (ignorable __function__)) (case schema ((:divconq-list-0-1 :divconq-oset-0-1) (list (evmac-generate-soft-defunvar ?g (len x-a1...am)) (evmac-generate-soft-defunvar ?h (1+ (len x-a1...am))))) (:divconq-list-0-1-2 (list (evmac-generate-soft-defunvar ?g0 (len x-a1...am)) (evmac-generate-soft-defunvar ?g1 (1+ (len x-a1...am))) (evmac-generate-soft-defunvar ?h (1+ (len x-a1...am))))) (t (raise "Internal error: unknown schema ~x0." schema)))))
Theorem:
(defthm pseudo-event-form-listp-of-schemalg-gen-?f1...?fp (b* ((events (schemalg-gen-?f1...?fp schema ?g ?g0 ?g1 ?h x-a1...am))) (pseudo-event-form-listp events)) :rule-classes :rewrite)